diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index dc9ec69cf05..88bf98c5a75 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -8,7 +8,7 @@ Do not submit pull requests that directly modify generated source files, e.g. `/ Manual changes to these files will be overwritten by code generation that occurs as part of the daily SDK release process. -Do not submit pull requests that directly modify files in the `/codegen/aws-models` folder. These are API model files, owned by each AWS service team, that are updated automatically as part of the daily SDK release process. Local changes to these files will not persist. +Do not submit pull requests that directly modify files in the `/codegen/sdk-codegen/aws-models` folder. These are API model files, owned by each AWS service team, that are updated automatically as part of the daily SDK release process. Local changes to these files will not persist. If you believe the contents of any of these files need to be changed, please [open an issue](https://github.com/aws/aws-sdk-go-v2/issues/new/choose). diff --git a/CHANGELOG.md b/CHANGELOG.md index 819fb6914f5..36e4ac3646a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,99 @@ +# Release (2024-11-20) + +## Module Highlights +* `github.com/aws/aws-sdk-go-v2/service/applicationdiscoveryservice`: [v1.29.0](service/applicationdiscoveryservice/CHANGELOG.md#v1290-2024-11-20) + * **Feature**: Add support to import data from commercially available discovery tools without file manipulation. +* `github.com/aws/aws-sdk-go-v2/service/autoscaling`: [v1.50.0](service/autoscaling/CHANGELOG.md#v1500-2024-11-20) + * **Feature**: With this release, customers can prioritize launching instances into ODCRs using targets from ASGs or Launch Templates. Customers can express their baseline instances' CPU-performance in attribute-based Instance Requirements configuration by referencing an instance family that meets their needs. +* `github.com/aws/aws-sdk-go-v2/service/bedrockagentruntime`: [v1.25.0](service/bedrockagentruntime/CHANGELOG.md#v1250-2024-11-20) + * **Feature**: Releasing new Prompt Optimization to enhance your prompts for improved performance +* `github.com/aws/aws-sdk-go-v2/service/cloudfront`: [v1.42.0](service/cloudfront/CHANGELOG.md#v1420-2024-11-20) + * **Feature**: Add support for gRPC, VPC origins, and Anycast IP Lists. Allow LoggingConfig IncludeCookies to be set regardless of whether the LoggingConfig is enabled. +* `github.com/aws/aws-sdk-go-v2/service/computeoptimizer`: [v1.40.0](service/computeoptimizer/CHANGELOG.md#v1400-2024-11-20) + * **Feature**: This release enables AWS Compute Optimizer to analyze and generate optimization recommendations for Amazon Aurora database instances. It also enables Compute Optimizer to identify idle Amazon EC2 instances, Amazon EBS volumes, Amazon ECS services running on Fargate, and Amazon RDS databases. +* `github.com/aws/aws-sdk-go-v2/service/controltower`: [v1.20.0](service/controltower/CHANGELOG.md#v1200-2024-11-20) + * **Feature**: Adds support for child enabled baselines which allow you to see the enabled baseline status for individual accounts. +* `github.com/aws/aws-sdk-go-v2/service/costoptimizationhub`: [v1.11.0](service/costoptimizationhub/CHANGELOG.md#v1110-2024-11-20) + * **Feature**: This release adds action type "Delete" to the GetRecommendation, ListRecommendations and ListRecommendationSummaries APIs to support new EBS and ECS recommendations with action type "Delete". +* `github.com/aws/aws-sdk-go-v2/service/datazone`: [v1.24.0](service/datazone/CHANGELOG.md#v1240-2024-11-20) + * **Feature**: This release supports Metadata Enforcement Rule feature for Create Subscription Request action. +* `github.com/aws/aws-sdk-go-v2/service/ec2`: [v1.192.0](service/ec2/CHANGELOG.md#v11920-2024-11-20) + * **Feature**: With this release, customers can express their desire to launch instances only in an ODCR or ODCR group rather than OnDemand capacity. Customers can express their baseline instances' CPU-performance in attribute-based Instance Requirements configuration by referencing an instance family. +* `github.com/aws/aws-sdk-go-v2/service/ecs`: [v1.52.0](service/ecs/CHANGELOG.md#v1520-2024-11-20) + * **Feature**: This release adds support for the Availability Zone rebalancing feature on Amazon ECS. +* `github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2`: [v1.42.0](service/elasticloadbalancingv2/CHANGELOG.md#v1420-2024-11-20) + * **Feature**: This release adds support for configuring Load balancer Capacity Unit reservations +* `github.com/aws/aws-sdk-go-v2/service/lambda`: [v1.67.0](service/lambda/CHANGELOG.md#v1670-2024-11-20) + * **Feature**: Add Node 22.x (node22.x) support to AWS Lambda +* `github.com/aws/aws-sdk-go-v2/service/mediaconvert`: [v1.63.0](service/mediaconvert/CHANGELOG.md#v1630-2024-11-20) + * **Feature**: This release adds the ability to reconfigure concurrent job settings for existing queues and create queues with custom concurrent job settings. +* `github.com/aws/aws-sdk-go-v2/service/mediapackagev2`: [v1.20.0](service/mediapackagev2/CHANGELOG.md#v1200-2024-11-20) + * **Feature**: MediaPackage v2 now supports the Media Quality Confidence Score (MQCS) published from MediaLive. Customers can control input switching based on the MQCS and publishing HTTP Headers for the MQCS via the API. +* `github.com/aws/aws-sdk-go-v2/service/omics`: [v1.27.0](service/omics/CHANGELOG.md#v1270-2024-11-20) + * **Feature**: Enabling call caching feature that allows customers to reuse previously computed results from a set of completed tasks in a new workflow run. +* `github.com/aws/aws-sdk-go-v2/service/rbin`: [v1.21.0](service/rbin/CHANGELOG.md#v1210-2024-11-20) + * **Feature**: This release adds support for exclusion tags for Recycle Bin, which allows you to identify resources that are to be excluded, or ignored, by a Region-level retention rule. +* `github.com/aws/aws-sdk-go-v2/service/rds`: [v1.91.0](service/rds/CHANGELOG.md#v1910-2024-11-20) + * **Feature**: This release adds support for scale storage on the DB instance using a Blue/Green Deployment. +* `github.com/aws/aws-sdk-go-v2/service/timestreamquery`: [v1.29.0](service/timestreamquery/CHANGELOG.md#v1290-2024-11-20) + * **Feature**: This release adds support for Provisioning Timestream Compute Units (TCUs), a new feature that allows provisioning dedicated compute resources for your queries, providing predictable and cost-effective query performance. +* `github.com/aws/aws-sdk-go-v2/service/workspaces`: [v1.50.0](service/workspaces/CHANGELOG.md#v1500-2024-11-20) + * **Feature**: Added support for Rocky Linux 8 on Amazon WorkSpaces Personal. +* `github.com/aws/aws-sdk-go-v2/service/workspacesweb`: [v1.25.0](service/workspacesweb/CHANGELOG.md#v1250-2024-11-20) + * **Feature**: Added data protection settings with support for inline data redaction. + +# Release (2024-11-19) + +## Module Highlights +* `github.com/aws/aws-sdk-go-v2/service/b2bi`: [v1.0.0-preview.54](service/b2bi/CHANGELOG.md#v100-preview54-2024-11-19) + * **Feature**: Add new X12 transactions sets and versions +* `github.com/aws/aws-sdk-go-v2/service/ec2`: [v1.191.0](service/ec2/CHANGELOG.md#v11910-2024-11-19) + * **Feature**: This release adds VPC Block Public Access (VPC BPA), a new declarative control which blocks resources in VPCs and subnets that you own in a Region from reaching or being reached from the internet through internet gateways and egress-only internet gateways. +* `github.com/aws/aws-sdk-go-v2/service/ecs`: [v1.51.0](service/ecs/CHANGELOG.md#v1510-2024-11-19) + * **Feature**: This release introduces support for configuring the version consistency feature for individual containers defined within a task definition. The configuration allows to specify whether ECS should resolve the container image tag specified in the container definition to an image digest. +* `github.com/aws/aws-sdk-go-v2/service/efs`: [v1.34.0](service/efs/CHANGELOG.md#v1340-2024-11-19) + * **Feature**: Add support for the new parameters in EFS replication APIs +* `github.com/aws/aws-sdk-go-v2/service/glue`: [v1.102.0](service/glue/CHANGELOG.md#v11020-2024-11-19) + * **Feature**: AWS Glue Data Catalog now enhances managed table optimizations of Apache Iceberg tables that can be accessed only from a specific Amazon Virtual Private Cloud (VPC) environment. +* `github.com/aws/aws-sdk-go-v2/service/keyspaces`: [v1.16.0](service/keyspaces/CHANGELOG.md#v1160-2024-11-19) + * **Feature**: Amazon Keyspaces Multi-Region Replication: Adds support to add new regions to multi and single-region keyspaces. +* `github.com/aws/aws-sdk-go-v2/service/mwaa`: [v1.33.0](service/mwaa/CHANGELOG.md#v1330-2024-11-19) + * **Feature**: Amazon MWAA now supports a new environment class, mw1.micro, ideal for workloads requiring fewer resources than mw1.small. This class supports a single instance of each Airflow component: Scheduler, Worker, and Webserver. +* `github.com/aws/aws-sdk-go-v2/service/taxsettings`: [v1.7.0](service/taxsettings/CHANGELOG.md#v170-2024-11-19) + * **Feature**: Release Tax Inheritance APIs, Tax Exemption APIs, and functionality update for some existing Tax Registration APIs +* `github.com/aws/aws-sdk-go-v2/service/workspaces`: [v1.49.0](service/workspaces/CHANGELOG.md#v1490-2024-11-19) + * **Feature**: Releasing new ErrorCodes for Image Validation failure during CreateWorkspaceImage process + +# Release (2024-11-18) + +## General Highlights +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + +## Module Highlights +* `github.com/aws/aws-sdk-go-v2/service/appconfig`: [v1.36.0](service/appconfig/CHANGELOG.md#v1360-2024-11-18) + * **Feature**: AWS AppConfig has added a new extension action point, AT_DEPLOYMENT_TICK, to support third-party monitors to trigger an automatic rollback during a deployment. +* `github.com/aws/aws-sdk-go-v2/service/autoscaling`: [v1.49.0](service/autoscaling/CHANGELOG.md#v1490-2024-11-18) + * **Feature**: Amazon EC2 Auto Scaling now supports Amazon Application Recovery Controller (ARC) zonal shift and zonal autoshift to help you quickly recover an impaired application from failures in an Availability Zone (AZ). +* `github.com/aws/aws-sdk-go-v2/service/cloudformation`: [v1.56.0](service/cloudformation/CHANGELOG.md#v1560-2024-11-18) + * **Feature**: This release adds a new API, ListHookResults, that allows retrieving CloudFormation Hooks invocation results for hooks invoked during a create change set operation or Cloud Control API operation +* `github.com/aws/aws-sdk-go-v2/service/connect`: [v1.116.0](service/connect/CHANGELOG.md#v11160-2024-11-18) + * **Feature**: Adds CreateContactFlowVersion and ListContactFlowVersions APIs to create and view the versions of a contact flow. +* `github.com/aws/aws-sdk-go-v2/service/customerprofiles`: [v1.43.0](service/customerprofiles/CHANGELOG.md#v1430-2024-11-18) + * **Feature**: This release introduces Segmentation APIs and new Calculated Attribute Event Filters as part of Amazon Connect Customer Profiles service. +* `github.com/aws/aws-sdk-go-v2/service/ec2`: [v1.190.0](service/ec2/CHANGELOG.md#v11900-2024-11-18) + * **Feature**: Adding request and response elements for managed resources. +* `github.com/aws/aws-sdk-go-v2/service/ecs`: [v1.50.0](service/ecs/CHANGELOG.md#v1500-2024-11-18) + * **Feature**: This release adds support for adding VPC Lattice configurations in ECS CreateService/UpdateService APIs. The configuration allows for associating VPC Lattice target groups with ECS Services. +* `github.com/aws/aws-sdk-go-v2/service/iotsitewise`: [v1.44.0](service/iotsitewise/CHANGELOG.md#v1440-2024-11-18) + * **Feature**: The release introduces a generative AI Assistant in AWS IoT SiteWise. It includes: 1) InvokeAssistant API - Invoke the Assistant to get alarm summaries and ask questions. 2) Dataset APIs - Manage knowledge base configuration for the Assistant. 3) Portal APIs enhancement - Manage AI-aware dashboards. +* `github.com/aws/aws-sdk-go-v2/service/qconnect`: [v1.13.0](service/qconnect/CHANGELOG.md#v1130-2024-11-18) + * **Feature**: This release introduces MessageTemplate as a resource in Amazon Q in Connect, along with APIs to create, read, search, update, and delete MessageTemplate resources. +* `github.com/aws/aws-sdk-go-v2/service/rds`: [v1.90.0](service/rds/CHANGELOG.md#v1900-2024-11-18) + * **Feature**: Add support for the automatic pause/resume feature of Aurora Serverless v2. +* `github.com/aws/aws-sdk-go-v2/service/rdsdata`: [v1.26.0](service/rdsdata/CHANGELOG.md#v1260-2024-11-18) + * **Feature**: Add support for the automatic pause/resume feature of Aurora Serverless v2. + # Release (2024-11-15.2) ## Module Highlights diff --git a/aws/go_module_metadata.go b/aws/go_module_metadata.go index 1d54fc7ad0b..f965a510e6d 100644 --- a/aws/go_module_metadata.go +++ b/aws/go_module_metadata.go @@ -3,4 +3,4 @@ package aws // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.32.4" +const goModuleVersion = "1.32.5" diff --git a/aws/protocol/eventstream/CHANGELOG.md b/aws/protocol/eventstream/CHANGELOG.md index 3cd35b13ac5..a4872987aef 100644 --- a/aws/protocol/eventstream/CHANGELOG.md +++ b/aws/protocol/eventstream/CHANGELOG.md @@ -1,3 +1,7 @@ +# v1.6.7 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. + # v1.6.6 (2024-10-04) * No change notes available for this release. diff --git a/aws/protocol/eventstream/go.mod b/aws/protocol/eventstream/go.mod index 9929fd7782e..3902775f1bb 100644 --- a/aws/protocol/eventstream/go.mod +++ b/aws/protocol/eventstream/go.mod @@ -2,6 +2,6 @@ module github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream go 1.21 -require github.com/aws/smithy-go v1.22.0 +require github.com/aws/smithy-go v1.22.1 replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/aws/protocol/eventstream/go.sum b/aws/protocol/eventstream/go.sum index 70a20636e37..bd2678891af 100644 --- a/aws/protocol/eventstream/go.sum +++ b/aws/protocol/eventstream/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/aws/protocol/eventstream/go_module_metadata.go b/aws/protocol/eventstream/go_module_metadata.go index a10d75655ad..78af41cbedf 100644 --- a/aws/protocol/eventstream/go_module_metadata.go +++ b/aws/protocol/eventstream/go_module_metadata.go @@ -3,4 +3,4 @@ package eventstream // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.6.6" +const goModuleVersion = "1.6.7" diff --git a/codegen/sdk-codegen/aws-models/appconfig.json b/codegen/sdk-codegen/aws-models/appconfig.json index 3197601eb80..4d7a178473e 100644 --- a/codegen/sdk-codegen/aws-models/appconfig.json +++ b/codegen/sdk-codegen/aws-models/appconfig.json @@ -69,7 +69,7 @@ } }, "traits": { - "smithy.api#documentation": "

An action defines the tasks that the extension performs during the AppConfig\n workflow. Each action includes an action point such as\n ON_CREATE_HOSTED_CONFIGURATION, PRE_DEPLOYMENT, or\n ON_DEPLOYMENT. Each action also includes a name, a URI to an Lambda function, and an Amazon Resource Name (ARN) for an Identity and Access Management\n assume role. You specify the name, URI, and ARN for each action point\n defined in the extension. You can specify the following actions for an extension:

\n " + "smithy.api#documentation": "

An action defines the tasks that the extension performs during the AppConfig\n workflow. Each action includes an action point, as shown in the following list:

\n \n

Each action also includes a name, a URI to an Lambda function, and an\n Amazon Resource Name (ARN) for an Identity and Access Management assume role. You specify the name,\n URI, and ARN for each action point defined in the extension.

" } }, "com.amazonaws.appconfig#ActionInvocation": { @@ -155,6 +155,12 @@ "smithy.api#enumValue": "PRE_START_DEPLOYMENT" } }, + "AT_DEPLOYMENT_TICK": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AT_DEPLOYMENT_TICK" + } + }, "ON_DEPLOYMENT_START": { "target": "smithy.api#Unit", "traits": { @@ -1835,7 +1841,7 @@ "LocationUri": { "target": "com.amazonaws.appconfig#Uri", "traits": { - "smithy.api#documentation": "

A URI to locate the configuration. You can specify the following:

\n ", + "smithy.api#documentation": "

A URI to locate the configuration. You can specify the following:

\n ", "smithy.api#required": {} } }, @@ -5040,7 +5046,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists configurations stored in the AppConfig hosted configuration store by\n version.

", + "smithy.api#documentation": "

Lists configurations stored in the AppConfig hosted configuration store by\n version.

", "smithy.api#examples": [ { "title": "To list the available hosted configuration versions", @@ -5096,7 +5102,7 @@ "MaxResults": { "target": "com.amazonaws.appconfig#MaxResults", "traits": { - "smithy.api#documentation": "

The maximum number of items to return for this call. The call also returns a token that\n you can specify in a subsequent call to get the next set of results.

", + "smithy.api#documentation": "

The maximum number of items to return for this call. If MaxResults is not\n provided in the call, AppConfig returns the maximum of 50. The call also returns\n a token that you can specify in a subsequent call to get the next set of results.

", "smithy.api#httpQuery": "max_results" } }, diff --git a/codegen/sdk-codegen/aws-models/application-discovery-service.json b/codegen/sdk-codegen/aws-models/application-discovery-service.json index 263d487b00e..4de2578aca6 100644 --- a/codegen/sdk-codegen/aws-models/application-discovery-service.json +++ b/codegen/sdk-codegen/aws-models/application-discovery-service.json @@ -1071,6 +1071,16 @@ "smithy.api#pattern": "^[\\s\\S]*\\S[\\s\\S]*$" } }, + "com.amazonaws.applicationdiscoveryservice#ApplicationWave": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 256 + }, + "smithy.api#pattern": "^($|[^\\s\\x00]( *[^\\s\\x00])*$)$" + } + }, "com.amazonaws.applicationdiscoveryservice#AssociateConfigurationItemsToApplication": { "type": "operation", "input": { @@ -1763,14 +1773,20 @@ "name": { "target": "com.amazonaws.applicationdiscoveryservice#ApplicationName", "traits": { - "smithy.api#documentation": "

Name of the application to be created.

", + "smithy.api#documentation": "

The name of the application to be created.

", "smithy.api#required": {} } }, "description": { "target": "com.amazonaws.applicationdiscoveryservice#ApplicationDescription", "traits": { - "smithy.api#documentation": "

Description of the application to be created.

" + "smithy.api#documentation": "

The description of the application to be created.

" + } + }, + "wave": { + "target": "com.amazonaws.applicationdiscoveryservice#ApplicationWave", + "traits": { + "smithy.api#documentation": "

The name of the migration wave of the application to be created.

" } } }, @@ -1784,7 +1800,7 @@ "configurationId": { "target": "com.amazonaws.applicationdiscoveryservice#String", "traits": { - "smithy.api#documentation": "

Configuration ID of an application to be created.

" + "smithy.api#documentation": "

The configuration ID of an application to be created.

" } } }, @@ -3409,6 +3425,35 @@ "target": "com.amazonaws.applicationdiscoveryservice#FailedConfiguration" } }, + "com.amazonaws.applicationdiscoveryservice#FileClassification": { + "type": "enum", + "members": { + "MODELIZEIT_EXPORT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "MODELIZEIT_EXPORT" + } + }, + "RVTOOLS_EXPORT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "RVTOOLS_EXPORT" + } + }, + "VMWARE_NSX_EXPORT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "VMWARE_NSX_EXPORT" + } + }, + "IMPORT_TEMPLATE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "IMPORT_TEMPLATE" + } + } + } + }, "com.amazonaws.applicationdiscoveryservice#Filter": { "type": "structure", "members": { @@ -3621,6 +3666,12 @@ "smithy.api#enumValue": "IMPORT_FAILED_RECORD_LIMIT_EXCEEDED" } }, + "IMPORT_FAILED_UNSUPPORTED_FILE_TYPE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "IMPORT_FAILED_UNSUPPORTED_FILE_TYPE" + } + }, "DELETE_IN_PROGRESS": { "target": "smithy.api#Unit", "traits": { @@ -3704,6 +3755,12 @@ "smithy.api#documentation": "

The time that the import task request was deleted, presented in the Unix time stamp\n format.

" } }, + "fileClassification": { + "target": "com.amazonaws.applicationdiscoveryservice#FileClassification", + "traits": { + "smithy.api#documentation": "

The type of file detected by the import task.

" + } + }, "serverImportSuccess": { "target": "com.amazonaws.applicationdiscoveryservice#Integer", "traits": { @@ -3783,6 +3840,12 @@ "traits": { "smithy.api#enumValue": "NAME" } + }, + "FILE_CLASSIFICATION": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FILE_CLASSIFICATION" + } } } }, @@ -4332,6 +4395,9 @@ { "target": "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException" }, + { + "target": "com.amazonaws.applicationdiscoveryservice#InvalidParameterException" + }, { "target": "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException" }, @@ -5006,6 +5072,12 @@ "traits": { "smithy.api#documentation": "

New description of the application to be updated.

" } + }, + "wave": { + "target": "com.amazonaws.applicationdiscoveryservice#ApplicationWave", + "traits": { + "smithy.api#documentation": "

The new migration wave of the application that you want to update.

" + } } }, "traits": { diff --git a/codegen/sdk-codegen/aws-models/auto-scaling.json b/codegen/sdk-codegen/aws-models/auto-scaling.json index 810214113bc..273f7da8208 100644 --- a/codegen/sdk-codegen/aws-models/auto-scaling.json +++ b/codegen/sdk-codegen/aws-models/auto-scaling.json @@ -688,6 +688,12 @@ "smithy.api#documentation": "

The unique identifiers of one or more traffic sources. You can specify up to 10\n traffic sources.

", "smithy.api#required": {} } + }, + "SkipZonalShiftValidation": { + "target": "com.amazonaws.autoscaling#SkipZonalShiftValidation", + "traits": { + "smithy.api#documentation": "

\n If you enable zonal shift with cross-zone disabled load balancers, capacity could become imbalanced across Availability Zones. To skip the validation, specify true. For more information, see\n Auto Scaling group zonal shift in the Amazon EC2 Auto Scaling User Guide.\n

" + } } } }, @@ -928,6 +934,18 @@ "traits": { "smithy.api#documentation": "

\n The instance capacity distribution across Availability Zones.\n

" } + }, + "AvailabilityZoneImpairmentPolicy": { + "target": "com.amazonaws.autoscaling#AvailabilityZoneImpairmentPolicy", + "traits": { + "smithy.api#documentation": "

\n The Availability Zone impairment policy.\n

" + } + }, + "CapacityReservationSpecification": { + "target": "com.amazonaws.autoscaling#CapacityReservationSpecification", + "traits": { + "smithy.api#documentation": "

\n The capacity reservation specification. \n

" + } } }, "traits": { @@ -2323,6 +2341,26 @@ "smithy.api#documentation": "

\n Describes an Availability Zone distribution.\n

" } }, + "com.amazonaws.autoscaling#AvailabilityZoneImpairmentPolicy": { + "type": "structure", + "members": { + "ZonalShiftEnabled": { + "target": "com.amazonaws.autoscaling#ZonalShiftEnabled", + "traits": { + "smithy.api#documentation": "

\n If true, enable zonal shift for your Auto Scaling group.\n

" + } + }, + "ImpairedZoneHealthCheckBehavior": { + "target": "com.amazonaws.autoscaling#ImpairedZoneHealthCheckBehavior", + "traits": { + "smithy.api#documentation": "

\n Specifies the health check behavior for the impaired Availability Zone in an active zonal shift. If you select Replace unhealthy, instances that appear unhealthy will be replaced in all Availability Zones. \n If you select Ignore unhealthy, instances will not be replaced in the Availability Zone with the active zonal shift. For more information, see Auto Scaling group zonal shift \n in the Amazon EC2 Auto Scaling User Guide.\n \n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\n Describes an Availability Zone impairment policy.\n

" + } + }, "com.amazonaws.autoscaling#AvailabilityZones": { "type": "list", "member": { @@ -2381,6 +2419,20 @@ "smithy.api#documentation": "

Specifies the minimum and maximum for the BaselineEbsBandwidthMbps object\n when you specify InstanceRequirements for an Auto Scaling group.

" } }, + "com.amazonaws.autoscaling#BaselinePerformanceFactorsRequest": { + "type": "structure", + "members": { + "Cpu": { + "target": "com.amazonaws.autoscaling#CpuPerformanceFactorRequest", + "traits": { + "smithy.api#documentation": "

\n The CPU performance to consider, using an instance family as the baseline reference.\n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\n The baseline performance to consider, using an instance family as a baseline reference. The instance family establishes the lowest acceptable level of performance. Auto Scaling uses\n this baseline to guide instance type selection, but there is no guarantee that the selected instance types will always exceed the baseline for every application.\n

\n

Currently, this parameter only supports CPU performance as a baseline performance factor. For example, specifying c6i uses the CPU performance of the c6i\n family as the baseline reference.

" + } + }, "com.amazonaws.autoscaling#BatchDeleteScheduledAction": { "type": "operation", "input": { @@ -2693,6 +2745,87 @@ "com.amazonaws.autoscaling#CapacityRebalanceEnabled": { "type": "boolean" }, + "com.amazonaws.autoscaling#CapacityReservationIds": { + "type": "list", + "member": { + "target": "com.amazonaws.autoscaling#AsciiStringMaxLen255" + } + }, + "com.amazonaws.autoscaling#CapacityReservationPreference": { + "type": "enum", + "members": { + "CapacityReservationsOnly": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "capacity-reservations-only" + } + }, + "CapacityReservationsFirst": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "capacity-reservations-first" + } + }, + "None": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "none" + } + }, + "Default": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "default" + } + } + } + }, + "com.amazonaws.autoscaling#CapacityReservationResourceGroupArns": { + "type": "list", + "member": { + "target": "com.amazonaws.autoscaling#ResourceName" + } + }, + "com.amazonaws.autoscaling#CapacityReservationSpecification": { + "type": "structure", + "members": { + "CapacityReservationPreference": { + "target": "com.amazonaws.autoscaling#CapacityReservationPreference", + "traits": { + "smithy.api#documentation": "

\n The capacity reservation preference. The following options are available:\n

\n " + } + }, + "CapacityReservationTarget": { + "target": "com.amazonaws.autoscaling#CapacityReservationTarget", + "traits": { + "smithy.api#documentation": "

\n Describes a target Capacity Reservation or Capacity Reservation resource group.\n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\n Describes the Capacity Reservation preference and targeting options. If you specify open or none for CapacityReservationPreference, do not specify a CapacityReservationTarget.\n

" + } + }, + "com.amazonaws.autoscaling#CapacityReservationTarget": { + "type": "structure", + "members": { + "CapacityReservationIds": { + "target": "com.amazonaws.autoscaling#CapacityReservationIds", + "traits": { + "smithy.api#documentation": "

\n The Capacity Reservation IDs to launch instances into.\n

" + } + }, + "CapacityReservationResourceGroupArns": { + "target": "com.amazonaws.autoscaling#CapacityReservationResourceGroupArns", + "traits": { + "smithy.api#documentation": "

\n The resource group ARNs of the Capacity Reservation to launch instances into.\n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\n The target for the Capacity Reservation. Specify Capacity Reservations IDs or Capacity Reservation resource group ARNs. \n

" + } + }, "com.amazonaws.autoscaling#CheckpointDelay": { "type": "integer", "traits": { @@ -2823,6 +2956,21 @@ "target": "com.amazonaws.autoscaling#CpuManufacturer" } }, + "com.amazonaws.autoscaling#CpuPerformanceFactorRequest": { + "type": "structure", + "members": { + "References": { + "target": "com.amazonaws.autoscaling#PerformanceFactorReferenceSetRequest", + "traits": { + "smithy.api#documentation": "

\n Specify an instance family to use as the baseline reference for CPU performance. All instance types that match your specified attributes will be compared against the CPU performance of the\n referenced instance family, regardless of CPU manufacturer or architecture differences.\n

\n \n

Currently only one instance family can be specified in the list.

\n
", + "smithy.api#xmlName": "Reference" + } + } + }, + "traits": { + "smithy.api#documentation": "

\n The CPU performance to consider, using an instance family as the baseline reference.\n

" + } + }, "com.amazonaws.autoscaling#CreateAutoScalingGroup": { "type": "operation", "input": { @@ -3147,6 +3295,24 @@ "traits": { "smithy.api#documentation": "

The instance capacity distribution across Availability Zones.

" } + }, + "AvailabilityZoneImpairmentPolicy": { + "target": "com.amazonaws.autoscaling#AvailabilityZoneImpairmentPolicy", + "traits": { + "smithy.api#documentation": "

\n The policy for Availability Zone impairment.\n

" + } + }, + "SkipZonalShiftValidation": { + "target": "com.amazonaws.autoscaling#SkipZonalShiftValidation", + "traits": { + "smithy.api#documentation": "

\n If you enable zonal shift with cross-zone disabled load balancers, capacity could become imbalanced across Availability Zones. To skip the validation, specify true. For more information, see\n Auto Scaling group zonal shift in the Amazon EC2 Auto Scaling User Guide.\n

" + } + }, + "CapacityReservationSpecification": { + "target": "com.amazonaws.autoscaling#CapacityReservationSpecification", + "traits": { + "smithy.api#documentation": "

\n The capacity reservation specification for the Auto Scaling group. \n

" + } } } }, @@ -6272,6 +6438,23 @@ "com.amazonaws.autoscaling#HonorCooldown": { "type": "boolean" }, + "com.amazonaws.autoscaling#ImpairedZoneHealthCheckBehavior": { + "type": "enum", + "members": { + "ReplaceUnhealthy": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ReplaceUnhealthy" + } + }, + "IgnoreUnhealthy": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "IgnoreUnhealthy" + } + } + } + }, "com.amazonaws.autoscaling#IncludeDeletedGroups": { "type": "boolean" }, @@ -6866,6 +7049,12 @@ "traits": { "smithy.api#documentation": "

The instance types to apply your specified attributes against. All other instance\n types are ignored, even if they match your specified attributes.

\n

You can use strings with one or more wild cards, represented by an asterisk\n (*), to allow an instance type, size, or generation. The following are\n examples: m5.8xlarge, c5*.*, m5a.*,\n r*, *3*.

\n

For example, if you specify c5*, Amazon EC2 Auto Scaling will allow the entire C5\n instance family, which includes all C5a and C5n instance types. If you specify\n m5a.*, Amazon EC2 Auto Scaling will allow all the M5a instance types, but not the M5n\n instance types.

\n \n

If you specify AllowedInstanceTypes, you can't specify\n ExcludedInstanceTypes.

\n
\n

Default: All instance types

" } + }, + "BaselinePerformanceFactors": { + "target": "com.amazonaws.autoscaling#BaselinePerformanceFactorsRequest", + "traits": { + "smithy.api#documentation": "

\n The baseline performance factors for the instance requirements.\n

" + } } }, "traits": { @@ -8266,6 +8455,29 @@ "target": "com.amazonaws.autoscaling#LaunchTemplateOverrides" } }, + "com.amazonaws.autoscaling#PerformanceFactorReferenceRequest": { + "type": "structure", + "members": { + "InstanceFamily": { + "target": "com.amazonaws.autoscaling#String", + "traits": { + "smithy.api#documentation": "

\n The instance family to use as a baseline reference.\n

\n \n

Make sure that you specify the correct value for the instance family. The instance family is everything before the period (.) in the instance type name. For example, in the instance c6i.large, the\n instance family is c6i, not c6. For more information, see Amazon EC2 instance type naming conventions in \n Amazon EC2 Instance Types.

\n
\n

The following instance types are not supported for performance protection.

\n \n

If you performance protection by specifying a supported instance family, the returned instance types will exclude the preceding unsupported instance families.

\n

If you specify an unsupported instance family as a value for baseline performance, the API returns an empty response.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\n Specify an instance family to use as the baseline reference for CPU performance. All instance types that All instance types that match your specified attributes will be compared against the CPU performance of the\n referenced instance family, regardless of CPU manufacturer or architecture differences.\n

\n \n

Currently only one instance family can be specified in the list.

\n
" + } + }, + "com.amazonaws.autoscaling#PerformanceFactorReferenceSetRequest": { + "type": "list", + "member": { + "target": "com.amazonaws.autoscaling#PerformanceFactorReferenceRequest", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, "com.amazonaws.autoscaling#PoliciesType": { "type": "structure", "members": { @@ -10218,6 +10430,9 @@ "com.amazonaws.autoscaling#SkipMatching": { "type": "boolean" }, + "com.amazonaws.autoscaling#SkipZonalShiftValidation": { + "type": "boolean" + }, "com.amazonaws.autoscaling#SpotInstancePools": { "type": "integer" }, @@ -10381,6 +10596,9 @@ "target": "com.amazonaws.autoscaling#StepAdjustment" } }, + "com.amazonaws.autoscaling#String": { + "type": "string" + }, "com.amazonaws.autoscaling#SuspendProcesses": { "type": "operation", "input": { @@ -11012,6 +11230,24 @@ "traits": { "smithy.api#documentation": "

\n The instance capacity distribution across Availability Zones.\n

" } + }, + "AvailabilityZoneImpairmentPolicy": { + "target": "com.amazonaws.autoscaling#AvailabilityZoneImpairmentPolicy", + "traits": { + "smithy.api#documentation": "

\n The policy for Availability Zone impairment.\n

" + } + }, + "SkipZonalShiftValidation": { + "target": "com.amazonaws.autoscaling#SkipZonalShiftValidation", + "traits": { + "smithy.api#documentation": "

\n If you enable zonal shift with cross-zone disabled load balancers, capacity could become imbalanced across Availability Zones. To skip the validation, specify true. For more information, see\n Auto Scaling group zonal shift in the Amazon EC2 Auto Scaling User Guide.\n

" + } + }, + "CapacityReservationSpecification": { + "target": "com.amazonaws.autoscaling#CapacityReservationSpecification", + "traits": { + "smithy.api#documentation": "

\n The capacity reservation specification for the Auto Scaling group. \n

" + } } } }, @@ -11261,6 +11497,9 @@ }, "smithy.api#pattern": "^[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*$" } + }, + "com.amazonaws.autoscaling#ZonalShiftEnabled": { + "type": "boolean" } } } diff --git a/codegen/sdk-codegen/aws-models/b2bi.json b/codegen/sdk-codegen/aws-models/b2bi.json index e412038aaa8..71984108a38 100644 --- a/codegen/sdk-codegen/aws-models/b2bi.json +++ b/codegen/sdk-codegen/aws-models/b2bi.json @@ -6574,286 +6574,1846 @@ "com.amazonaws.b2bi#X12TransactionSet": { "type": "enum", "members": { + "X12_100": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_100" + } + }, + "X12_101": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_101" + } + }, + "X12_102": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_102" + } + }, + "X12_103": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_103" + } + }, + "X12_104": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_104" + } + }, + "X12_105": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_105" + } + }, + "X12_106": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_106" + } + }, + "X12_107": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_107" + } + }, + "X12_108": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_108" + } + }, + "X12_109": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_109" + } + }, "X12_110": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_110" + "smithy.api#enumValue": "X12_110" + } + }, + "X12_111": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_111" + } + }, + "X12_112": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_112" + } + }, + "X12_113": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_113" + } + }, + "X12_120": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_120" + } + }, + "X12_121": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_121" + } + }, + "X12_124": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_124" + } + }, + "X12_125": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_125" + } + }, + "X12_126": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_126" + } + }, + "X12_127": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_127" + } + }, + "X12_128": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_128" + } + }, + "X12_129": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_129" + } + }, + "X12_130": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_130" + } + }, + "X12_131": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_131" + } + }, + "X12_132": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_132" + } + }, + "X12_133": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_133" + } + }, + "X12_135": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_135" + } + }, + "X12_138": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_138" + } + }, + "X12_139": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_139" + } + }, + "X12_140": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_140" + } + }, + "X12_141": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_141" + } + }, + "X12_142": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_142" + } + }, + "X12_143": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_143" + } + }, + "X12_144": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_144" + } + }, + "X12_146": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_146" + } + }, + "X12_147": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_147" + } + }, + "X12_148": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_148" + } + }, + "X12_149": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_149" + } + }, + "X12_150": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_150" + } + }, + "X12_151": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_151" + } + }, + "X12_152": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_152" + } + }, + "X12_153": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_153" + } + }, + "X12_154": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_154" + } + }, + "X12_155": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_155" + } + }, + "X12_157": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_157" + } + }, + "X12_158": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_158" + } + }, + "X12_159": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_159" + } + }, + "X12_160": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_160" + } + }, + "X12_161": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_161" + } + }, + "X12_163": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_163" + } + }, + "X12_170": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_170" + } + }, + "X12_175": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_175" + } + }, + "X12_176": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_176" + } + }, + "X12_179": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_179" + } + }, + "X12_180": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_180" + } + }, + "X12_185": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_185" + } + }, + "X12_186": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_186" + } + }, + "X12_187": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_187" + } + }, + "X12_188": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_188" + } + }, + "X12_189": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_189" + } + }, + "X12_190": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_190" + } + }, + "X12_191": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_191" + } + }, + "X12_194": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_194" + } + }, + "X12_195": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_195" + } + }, + "X12_196": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_196" + } + }, + "X12_197": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_197" + } + }, + "X12_198": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_198" + } + }, + "X12_199": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_199" + } + }, + "X12_200": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_200" + } + }, + "X12_201": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_201" + } + }, + "X12_202": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_202" + } + }, + "X12_203": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_203" + } + }, + "X12_204": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_204" + } + }, + "X12_205": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_205" + } + }, + "X12_206": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_206" + } + }, + "X12_210": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_210" + } + }, + "X12_211": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_211" + } + }, + "X12_212": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_212" + } + }, + "X12_213": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_213" + } + }, + "X12_214": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_214" + } + }, + "X12_215": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_215" + } + }, + "X12_216": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_216" + } + }, + "X12_217": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_217" + } + }, + "X12_218": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_218" + } + }, + "X12_219": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_219" + } + }, + "X12_220": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_220" + } + }, + "X12_222": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_222" + } + }, + "X12_223": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_223" + } + }, + "X12_224": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_224" + } + }, + "X12_225": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_225" + } + }, + "X12_227": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_227" + } + }, + "X12_228": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_228" + } + }, + "X12_240": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_240" + } + }, + "X12_242": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_242" + } + }, + "X12_244": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_244" + } + }, + "X12_245": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_245" + } + }, + "X12_248": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_248" + } + }, + "X12_249": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_249" + } + }, + "X12_250": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_250" + } + }, + "X12_251": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_251" + } + }, + "X12_252": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_252" + } + }, + "X12_255": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_255" + } + }, + "X12_256": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_256" + } + }, + "X12_259": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_259" + } + }, + "X12_260": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_260" + } + }, + "X12_261": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_261" + } + }, + "X12_262": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_262" + } + }, + "X12_263": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_263" + } + }, + "X12_264": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_264" + } + }, + "X12_265": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_265" + } + }, + "X12_266": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_266" + } + }, + "X12_267": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_267" + } + }, + "X12_268": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_268" + } + }, + "X12_269": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_269" + } + }, + "X12_270": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_270" + } + }, + "X12_271": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_271" + } + }, + "X12_272": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_272" + } + }, + "X12_273": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_273" + } + }, + "X12_274": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_274" + } + }, + "X12_275": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_275" + } + }, + "X12_276": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_276" + } + }, + "X12_277": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_277" + } + }, + "X12_278": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_278" + } + }, + "X12_280": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_280" + } + }, + "X12_283": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_283" + } + }, + "X12_284": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_284" + } + }, + "X12_285": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_285" + } + }, + "X12_286": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_286" + } + }, + "X12_288": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_288" + } + }, + "X12_290": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_290" + } + }, + "X12_300": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_300" + } + }, + "X12_301": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_301" + } + }, + "X12_303": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_303" + } + }, + "X12_304": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_304" + } + }, + "X12_309": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_309" + } + }, + "X12_310": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_310" + } + }, + "X12_311": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_311" + } + }, + "X12_312": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_312" + } + }, + "X12_313": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_313" + } + }, + "X12_315": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_315" + } + }, + "X12_317": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_317" + } + }, + "X12_319": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_319" + } + }, + "X12_322": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_322" + } + }, + "X12_323": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_323" + } + }, + "X12_324": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_324" + } + }, + "X12_325": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_325" + } + }, + "X12_326": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_326" + } + }, + "X12_350": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_350" + } + }, + "X12_352": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_352" + } + }, + "X12_353": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_353" + } + }, + "X12_354": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_354" + } + }, + "X12_355": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_355" + } + }, + "X12_356": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_356" + } + }, + "X12_357": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_357" + } + }, + "X12_358": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_358" + } + }, + "X12_361": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_361" + } + }, + "X12_362": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_362" + } + }, + "X12_404": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_404" + } + }, + "X12_410": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_410" + } + }, + "X12_412": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_412" + } + }, + "X12_414": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_414" + } + }, + "X12_417": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_417" + } + }, + "X12_418": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_418" + } + }, + "X12_419": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_419" + } + }, + "X12_420": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_420" + } + }, + "X12_421": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_421" + } + }, + "X12_422": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_422" + } + }, + "X12_423": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_423" + } + }, + "X12_424": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_424" + } + }, + "X12_425": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_425" + } + }, + "X12_426": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_426" + } + }, + "X12_429": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_429" + } + }, + "X12_431": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_431" + } + }, + "X12_432": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_432" + } + }, + "X12_433": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_433" + } + }, + "X12_434": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_434" + } + }, + "X12_435": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_435" + } + }, + "X12_436": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_436" + } + }, + "X12_437": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_437" + } + }, + "X12_440": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_440" + } + }, + "X12_451": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_451" + } + }, + "X12_452": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_452" + } + }, + "X12_453": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_453" + } + }, + "X12_455": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_455" + } + }, + "X12_456": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_456" + } + }, + "X12_460": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_460" + } + }, + "X12_463": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_463" + } + }, + "X12_466": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_466" + } + }, + "X12_468": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_468" + } + }, + "X12_470": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_470" + } + }, + "X12_475": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_475" + } + }, + "X12_485": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_485" + } + }, + "X12_486": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_486" + } + }, + "X12_490": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_490" + } + }, + "X12_492": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_492" + } + }, + "X12_494": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_494" + } + }, + "X12_500": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_500" + } + }, + "X12_501": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_501" + } + }, + "X12_503": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_503" + } + }, + "X12_504": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_504" + } + }, + "X12_511": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_511" + } + }, + "X12_517": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_517" + } + }, + "X12_521": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_521" + } + }, + "X12_527": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_527" + } + }, + "X12_536": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_536" + } + }, + "X12_540": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_540" + } + }, + "X12_561": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_561" + } + }, + "X12_567": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_567" + } + }, + "X12_568": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_568" + } + }, + "X12_601": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_601" + } + }, + "X12_602": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_602" + } + }, + "X12_620": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_620" + } + }, + "X12_625": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_625" + } + }, + "X12_650": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_650" + } + }, + "X12_715": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_715" + } + }, + "X12_753": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_753" + } + }, + "X12_754": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_754" + } + }, + "X12_805": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_805" + } + }, + "X12_806": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_806" + } + }, + "X12_810": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_810" + } + }, + "X12_811": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_811" + } + }, + "X12_812": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_812" + } + }, + "X12_813": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_813" + } + }, + "X12_814": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_814" + } + }, + "X12_815": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_815" + } + }, + "X12_816": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_816" + } + }, + "X12_818": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_818" + } + }, + "X12_819": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_819" + } + }, + "X12_820": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_820" + } + }, + "X12_821": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_821" + } + }, + "X12_822": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_822" + } + }, + "X12_823": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_823" + } + }, + "X12_824": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_824" + } + }, + "X12_826": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_826" + } + }, + "X12_827": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_827" + } + }, + "X12_828": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_828" + } + }, + "X12_829": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_829" + } + }, + "X12_830": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_830" } }, - "X12_180": { + "X12_831": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_180" + "smithy.api#enumValue": "X12_831" } }, - "X12_204": { + "X12_832": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_204" + "smithy.api#enumValue": "X12_832" } }, - "X12_210": { + "X12_833": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_210" + "smithy.api#enumValue": "X12_833" } }, - "X12_211": { + "X12_834": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_211" + "smithy.api#enumValue": "X12_834" } }, - "X12_214": { + "X12_835": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_214" + "smithy.api#enumValue": "X12_835" } }, - "X12_215": { + "X12_836": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_215" + "smithy.api#enumValue": "X12_836" } }, - "X12_259": { + "X12_837": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_259" + "smithy.api#enumValue": "X12_837" } }, - "X12_260": { + "X12_838": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_260" + "smithy.api#enumValue": "X12_838" } }, - "X12_266": { + "X12_839": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_266" + "smithy.api#enumValue": "X12_839" } }, - "X12_269": { + "X12_840": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_269" + "smithy.api#enumValue": "X12_840" } }, - "X12_270": { + "X12_841": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_270" + "smithy.api#enumValue": "X12_841" } }, - "X12_271": { + "X12_842": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_271" + "smithy.api#enumValue": "X12_842" } }, - "X12_274": { + "X12_843": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_274" + "smithy.api#enumValue": "X12_843" } }, - "X12_275": { + "X12_844": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_275" + "smithy.api#enumValue": "X12_844" } }, - "X12_276": { + "X12_845": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_276" + "smithy.api#enumValue": "X12_845" } }, - "X12_277": { + "X12_846": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_277" + "smithy.api#enumValue": "X12_846" } }, - "X12_278": { + "X12_847": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_278" + "smithy.api#enumValue": "X12_847" } }, - "X12_310": { + "X12_848": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_310" + "smithy.api#enumValue": "X12_848" } }, - "X12_315": { + "X12_849": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_315" + "smithy.api#enumValue": "X12_849" } }, - "X12_322": { + "X12_850": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_322" + "smithy.api#enumValue": "X12_850" } }, - "X12_404": { + "X12_851": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_404" + "smithy.api#enumValue": "X12_851" } }, - "X12_410": { + "X12_852": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_410" + "smithy.api#enumValue": "X12_852" } }, - "X12_417": { + "X12_853": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_417" + "smithy.api#enumValue": "X12_853" } }, - "X12_421": { + "X12_854": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_421" + "smithy.api#enumValue": "X12_854" } }, - "X12_426": { + "X12_855": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_426" + "smithy.api#enumValue": "X12_855" } }, - "X12_810": { + "X12_856": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_810" + "smithy.api#enumValue": "X12_856" } }, - "X12_820": { + "X12_857": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_820" + "smithy.api#enumValue": "X12_857" } }, - "X12_824": { + "X12_858": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_824" + "smithy.api#enumValue": "X12_858" } }, - "X12_830": { + "X12_859": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_830" + "smithy.api#enumValue": "X12_859" } }, - "X12_832": { + "X12_860": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_832" + "smithy.api#enumValue": "X12_860" } }, - "X12_834": { + "X12_861": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_834" + "smithy.api#enumValue": "X12_861" } }, - "X12_835": { + "X12_862": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_835" + "smithy.api#enumValue": "X12_862" } }, - "X12_837": { + "X12_863": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_837" + "smithy.api#enumValue": "X12_863" } }, - "X12_844": { + "X12_864": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_844" + "smithy.api#enumValue": "X12_864" } }, - "X12_846": { + "X12_865": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_846" + "smithy.api#enumValue": "X12_865" } }, - "X12_849": { + "X12_866": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_849" + "smithy.api#enumValue": "X12_866" } }, - "X12_850": { + "X12_867": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_850" + "smithy.api#enumValue": "X12_867" } }, - "X12_852": { + "X12_868": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_852" + "smithy.api#enumValue": "X12_868" } }, - "X12_855": { + "X12_869": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_855" + "smithy.api#enumValue": "X12_869" } }, - "X12_856": { + "X12_870": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_856" + "smithy.api#enumValue": "X12_870" } }, - "X12_860": { + "X12_871": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_860" + "smithy.api#enumValue": "X12_871" } }, - "X12_861": { + "X12_872": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_861" + "smithy.api#enumValue": "X12_872" } }, - "X12_864": { + "X12_873": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_864" + "smithy.api#enumValue": "X12_873" } }, - "X12_865": { + "X12_874": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_865" + "smithy.api#enumValue": "X12_874" } }, - "X12_869": { + "X12_875": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_869" + "smithy.api#enumValue": "X12_875" } }, - "X12_870": { + "X12_876": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "X12_870" + "smithy.api#enumValue": "X12_876" + } + }, + "X12_877": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_877" + } + }, + "X12_878": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_878" + } + }, + "X12_879": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_879" + } + }, + "X12_880": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_880" + } + }, + "X12_881": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_881" + } + }, + "X12_882": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_882" + } + }, + "X12_883": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_883" + } + }, + "X12_884": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_884" + } + }, + "X12_885": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_885" + } + }, + "X12_886": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_886" + } + }, + "X12_887": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_887" + } + }, + "X12_888": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_888" + } + }, + "X12_889": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_889" + } + }, + "X12_891": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_891" + } + }, + "X12_893": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_893" + } + }, + "X12_894": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_894" + } + }, + "X12_895": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_895" + } + }, + "X12_896": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_896" + } + }, + "X12_920": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_920" + } + }, + "X12_924": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_924" + } + }, + "X12_925": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_925" + } + }, + "X12_926": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_926" + } + }, + "X12_928": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_928" } }, "X12_940": { @@ -6862,24 +8422,66 @@ "smithy.api#enumValue": "X12_940" } }, + "X12_943": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_943" + } + }, + "X12_944": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_944" + } + }, "X12_945": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "X12_945" } }, + "X12_947": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_947" + } + }, + "X12_980": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_980" + } + }, "X12_990": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "X12_990" } }, + "X12_993": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_993" + } + }, + "X12_996": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_996" + } + }, "X12_997": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "X12_997" } }, + "X12_998": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "X12_998" + } + }, "X12_999": { "target": "smithy.api#Unit", "traits": { @@ -7054,6 +8656,18 @@ "smithy.api#enumValue": "VERSION_4030" } }, + "VERSION_4050": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "VERSION_4050" + } + }, + "VERSION_4060": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "VERSION_4060" + } + }, "VERSION_5010": { "target": "smithy.api#Unit", "traits": { diff --git a/codegen/sdk-codegen/aws-models/bedrock-agent-runtime.json b/codegen/sdk-codegen/aws-models/bedrock-agent-runtime.json index cb8cd41fc58..ffd2c867315 100644 --- a/codegen/sdk-codegen/aws-models/bedrock-agent-runtime.json +++ b/codegen/sdk-codegen/aws-models/bedrock-agent-runtime.json @@ -67,7 +67,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains information about the action group being invoked. For more information about the possible structures, see the InvocationInput tab in OrchestrationTrace in the Amazon Bedrock User Guide.

" + "smithy.api#documentation": "

Contains information about the action group being invoked. For more information about the possible structures, see the InvocationInput tab in OrchestrationTrace in the Amazon Bedrock User Guide.

" } }, "com.amazonaws.bedrockagentruntime#ActionGroupInvocationOutput": { @@ -181,6 +181,9 @@ { "target": "com.amazonaws.bedrockagentruntime#MemoryResource" }, + { + "target": "com.amazonaws.bedrockagentruntime#OptimizePromptResource" + }, { "target": "com.amazonaws.bedrockagentruntime#RetrieveAndGenerateResource" }, @@ -867,6 +870,21 @@ } } }, + "com.amazonaws.bedrockagentruntime#AnalyzePromptEvent": { + "type": "structure", + "members": { + "message": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A message describing the analysis of the prompt.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

An event in which the prompt was analyzed in preparation for optimization.

", + "smithy.api#sensitive": {} + } + }, "com.amazonaws.bedrockagentruntime#ApiContentMap": { "type": "map", "key": { @@ -3336,6 +3354,20 @@ "target": "com.amazonaws.bedrockagentruntime#InputFile" } }, + "com.amazonaws.bedrockagentruntime#InputPrompt": { + "type": "union", + "members": { + "textPrompt": { + "target": "com.amazonaws.bedrockagentruntime#TextPrompt", + "traits": { + "smithy.api#documentation": "

Contains information about the text prompt to optimize.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains information about the prompt to optimize.

" + } + }, "com.amazonaws.bedrockagentruntime#InputText": { "type": "string", "traits": { @@ -3663,7 +3695,7 @@ } ], "traits": { - "smithy.api#documentation": "

Invokes an alias of a flow to run the inputs that you specify and return the output of each node as a stream. If there's an error, the error is returned. For more information, see Test a flow in Amazon Bedrock in the Amazon Bedrock User Guide.

\n \n

The CLI doesn't support streaming operations in Amazon Bedrock, including InvokeFlow.

\n
", + "smithy.api#documentation": "

Invokes an alias of a flow to run the inputs that you specify and return the output of each node as a stream. If there's an error, the error is returned. For more information, see Test a flow in Amazon Bedrock in the Amazon Bedrock User Guide.

\n \n

The CLI doesn't support streaming operations in Amazon Bedrock, including InvokeFlow.

\n
", "smithy.api#http": { "code": 200, "method": "POST", @@ -4286,6 +4318,180 @@ "smithy.api#sensitive": {} } }, + "com.amazonaws.bedrockagentruntime#OptimizePrompt": { + "type": "operation", + "input": { + "target": "com.amazonaws.bedrockagentruntime#OptimizePromptRequest" + }, + "output": { + "target": "com.amazonaws.bedrockagentruntime#OptimizePromptResponse" + }, + "errors": [ + { + "target": "com.amazonaws.bedrockagentruntime#AccessDeniedException" + }, + { + "target": "com.amazonaws.bedrockagentruntime#BadGatewayException" + }, + { + "target": "com.amazonaws.bedrockagentruntime#DependencyFailedException" + }, + { + "target": "com.amazonaws.bedrockagentruntime#InternalServerException" + }, + { + "target": "com.amazonaws.bedrockagentruntime#ThrottlingException" + }, + { + "target": "com.amazonaws.bedrockagentruntime#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Optimizes a prompt for the task that you specify. For more information, see Optimize a prompt in the Amazon Bedrock User Guide.

", + "smithy.api#http": { + "code": 200, + "method": "POST", + "uri": "/optimize-prompt" + } + } + }, + "com.amazonaws.bedrockagentruntime#OptimizePromptRequest": { + "type": "structure", + "members": { + "input": { + "target": "com.amazonaws.bedrockagentruntime#InputPrompt", + "traits": { + "smithy.api#documentation": "

Contains the prompt to optimize.

", + "smithy.api#required": {} + } + }, + "targetModelId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique identifier of the model that you want to optimize the prompt for.

", + "smithy.api#length": { + "min": 1, + "max": 2048 + }, + "smithy.api#pattern": "^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:provisioned-model/[a-z0-9]{12})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)$", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.bedrockagentruntime#OptimizePromptResource": { + "type": "resource", + "operations": [ + { + "target": "com.amazonaws.bedrockagentruntime#OptimizePrompt" + } + ] + }, + "com.amazonaws.bedrockagentruntime#OptimizePromptResponse": { + "type": "structure", + "members": { + "optimizedPrompt": { + "target": "com.amazonaws.bedrockagentruntime#OptimizedPromptStream", + "traits": { + "smithy.api#documentation": "

The prompt after being optimized for the task.

", + "smithy.api#httpPayload": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.bedrockagentruntime#OptimizedPrompt": { + "type": "union", + "members": { + "textPrompt": { + "target": "com.amazonaws.bedrockagentruntime#TextPrompt", + "traits": { + "smithy.api#documentation": "

Contains information about the text in the prompt that was optimized.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains information about the optimized prompt.

" + } + }, + "com.amazonaws.bedrockagentruntime#OptimizedPromptEvent": { + "type": "structure", + "members": { + "optimizedPrompt": { + "target": "com.amazonaws.bedrockagentruntime#OptimizedPrompt", + "traits": { + "smithy.api#documentation": "

Contains information about the optimized prompt.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

An event in which the prompt was optimized.

", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.bedrockagentruntime#OptimizedPromptStream": { + "type": "union", + "members": { + "optimizedPromptEvent": { + "target": "com.amazonaws.bedrockagentruntime#OptimizedPromptEvent", + "traits": { + "smithy.api#documentation": "

An event in which the prompt was optimized.

" + } + }, + "analyzePromptEvent": { + "target": "com.amazonaws.bedrockagentruntime#AnalyzePromptEvent", + "traits": { + "smithy.api#documentation": "

An event in which the prompt was analyzed in preparation for optimization.

" + } + }, + "internalServerException": { + "target": "com.amazonaws.bedrockagentruntime#InternalServerException", + "traits": { + "smithy.api#documentation": "

An internal server error occurred. Retry your request.

" + } + }, + "throttlingException": { + "target": "com.amazonaws.bedrockagentruntime#ThrottlingException", + "traits": { + "smithy.api#documentation": "

Your request was throttled because of service-wide limitations. Resubmit your request later or in a different region. You can also purchase Provisioned Throughput to increase the rate or number of tokens you can process.

" + } + }, + "validationException": { + "target": "com.amazonaws.bedrockagentruntime#ValidationException", + "traits": { + "smithy.api#documentation": "

Input validation failed. Check your request parameters and retry the request.

" + } + }, + "dependencyFailedException": { + "target": "com.amazonaws.bedrockagentruntime#DependencyFailedException", + "traits": { + "smithy.api#documentation": "

There was an issue with a dependency. Check the resource configurations and retry the request.

" + } + }, + "accessDeniedException": { + "target": "com.amazonaws.bedrockagentruntime#AccessDeniedException", + "traits": { + "smithy.api#documentation": "

The request is denied because of missing access permissions. Check your permissions and retry your request.

" + } + }, + "badGatewayException": { + "target": "com.amazonaws.bedrockagentruntime#BadGatewayException", + "traits": { + "smithy.api#documentation": "

There was an issue with a dependency due to a server issue. Retry your request.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The stream containing events in the prompt optimization process.

", + "smithy.api#streaming": {} + } + }, "com.amazonaws.bedrockagentruntime#OrchestrationConfiguration": { "type": "structure", "members": { @@ -5895,6 +6101,26 @@ "smithy.api#documentation": "

Configuration settings for text generation using a language model via the\n RetrieveAndGenerate operation. Includes parameters like temperature, top-p, maximum token\n count, and stop sequences.

\n \n

The valid range of maxTokens depends on the accepted values for your chosen\n model's inference parameters. To see the inference parameters for your model, see Inference\n parameters for foundation models.\n

\n
" } }, + "com.amazonaws.bedrockagentruntime#TextPrompt": { + "type": "structure", + "members": { + "text": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The text in the text prompt to optimize.

", + "smithy.api#length": { + "min": 1, + "max": 200000 + }, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains information about the text prompt to optimize.

", + "smithy.api#sensitive": {} + } + }, "com.amazonaws.bedrockagentruntime#TextPromptTemplate": { "type": "string", "traits": { diff --git a/codegen/sdk-codegen/aws-models/cloudformation.json b/codegen/sdk-codegen/aws-models/cloudformation.json index 9334d3409f4..ff51058d102 100644 --- a/codegen/sdk-codegen/aws-models/cloudformation.json +++ b/codegen/sdk-codegen/aws-models/cloudformation.json @@ -1248,6 +1248,9 @@ { "target": "com.amazonaws.cloudformation#ListGeneratedTemplates" }, + { + "target": "com.amazonaws.cloudformation#ListHookResults" + }, { "target": "com.amazonaws.cloudformation#ListImports" }, @@ -6898,6 +6901,89 @@ } } }, + "com.amazonaws.cloudformation#HookResultId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1600 + }, + "smithy.api#pattern": "^[a-zA-Z][-a-zA-Z0-9]*|arn:[-a-zA-Z0-9:/]*|^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$" + } + }, + "com.amazonaws.cloudformation#HookResultNotFoundException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.cloudformation#ErrorMessage" + } + }, + "traits": { + "aws.protocols#awsQueryError": { + "code": "HookResultNotFound", + "httpResponseCode": 404 + }, + "smithy.api#documentation": "

The specified target doesn't have any requested Hook invocations.

", + "smithy.api#error": "client", + "smithy.api#httpError": 404 + } + }, + "com.amazonaws.cloudformation#HookResultSummaries": { + "type": "list", + "member": { + "target": "com.amazonaws.cloudformation#HookResultSummary" + } + }, + "com.amazonaws.cloudformation#HookResultSummary": { + "type": "structure", + "members": { + "InvocationPoint": { + "target": "com.amazonaws.cloudformation#HookInvocationPoint", + "traits": { + "smithy.api#documentation": "

The exact point in the provisioning logic where the Hook runs.

" + } + }, + "FailureMode": { + "target": "com.amazonaws.cloudformation#HookFailureMode", + "traits": { + "smithy.api#documentation": "

The failure mode of the invocation. The following are potential modes:

\n " + } + }, + "TypeName": { + "target": "com.amazonaws.cloudformation#HookTypeName", + "traits": { + "smithy.api#documentation": "

The type name of the Hook being invoked.

" + } + }, + "TypeVersionId": { + "target": "com.amazonaws.cloudformation#HookTypeVersionId", + "traits": { + "smithy.api#documentation": "

The version of the Hook being invoked.

" + } + }, + "TypeConfigurationVersionId": { + "target": "com.amazonaws.cloudformation#HookTypeConfigurationVersionId", + "traits": { + "smithy.api#documentation": "

The version of the Hook type configuration.

" + } + }, + "Status": { + "target": "com.amazonaws.cloudformation#HookStatus", + "traits": { + "smithy.api#documentation": "

The state of the Hook invocation.

" + } + }, + "HookStatusReason": { + "target": "com.amazonaws.cloudformation#HookStatusReason", + "traits": { + "smithy.api#documentation": "

A description of the Hook results status. For example, if the Hook result is in a FAILED state, this \n may contain additional information for the FAILED state.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes a Hook invocation, its status, and the reason for its status.

" + } + }, "com.amazonaws.cloudformation#HookStatus": { "type": "enum", "members": { @@ -7454,6 +7540,114 @@ "smithy.api#output": {} } }, + "com.amazonaws.cloudformation#ListHookResults": { + "type": "operation", + "input": { + "target": "com.amazonaws.cloudformation#ListHookResultsInput" + }, + "output": { + "target": "com.amazonaws.cloudformation#ListHookResultsOutput" + }, + "errors": [ + { + "target": "com.amazonaws.cloudformation#HookResultNotFoundException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns summaries of invoked Hooks when a change set or Cloud Control API operation target is provided.

" + } + }, + "com.amazonaws.cloudformation#ListHookResultsInput": { + "type": "structure", + "members": { + "TargetType": { + "target": "com.amazonaws.cloudformation#ListHookResultsTargetType", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "

The type of operation being targeted by the Hook.

", + "smithy.api#required": {} + } + }, + "TargetId": { + "target": "com.amazonaws.cloudformation#HookResultId", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "

The logical ID of the target the operation is acting on by the Hook. If the target is a change set, \n it's the ARN of the change set.

\n

If the target is a Cloud Control API operation, this will be the HookRequestToken returned by the Cloud Control API \n operation request. For more information on the HookRequestToken, see ProgressEvent.

", + "smithy.api#required": {} + } + }, + "NextToken": { + "target": "com.amazonaws.cloudformation#NextToken", + "traits": { + "smithy.api#documentation": "

A string that identifies the next page of events that you want to retrieve.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.cloudformation#ListHookResultsOutput": { + "type": "structure", + "members": { + "TargetType": { + "target": "com.amazonaws.cloudformation#ListHookResultsTargetType", + "traits": { + "smithy.api#documentation": "

The type of operation being targeted by the Hook.

" + } + }, + "TargetId": { + "target": "com.amazonaws.cloudformation#HookResultId", + "traits": { + "smithy.api#documentation": "

The logical ID of the target the operation is acting on by the Hook. If the target is a change set, \n it's the ARN of the change set.

\n

If the target is a Cloud Control API operation, this will be the HooksRequestToken returned by the Cloud Control API \n operation request. For more information on the HooksRequestToken, see ProgressEvent.

" + } + }, + "HookResults": { + "target": "com.amazonaws.cloudformation#HookResultSummaries", + "traits": { + "smithy.api#documentation": "

A list of HookResultSummary structures that provides the status and Hook status reason for each Hook \n invocation for the specified target.

" + } + }, + "NextToken": { + "target": "com.amazonaws.cloudformation#NextToken", + "traits": { + "smithy.api#documentation": "

Pagination token, null or empty if no more results.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.cloudformation#ListHookResultsTargetType": { + "type": "enum", + "members": { + "CHANGE_SET": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CHANGE_SET" + } + }, + "STACK": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "STACK" + } + }, + "RESOURCE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "RESOURCE" + } + }, + "CLOUD_CONTROL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CLOUD_CONTROL" + } + } + } + }, "com.amazonaws.cloudformation#ListImports": { "type": "operation", "input": { diff --git a/codegen/sdk-codegen/aws-models/cloudfront.json b/codegen/sdk-codegen/aws-models/cloudfront.json index f63ca860bab..81dcd389773 100644 --- a/codegen/sdk-codegen/aws-models/cloudfront.json +++ b/codegen/sdk-codegen/aws-models/cloudfront.json @@ -190,6 +190,189 @@ "smithy.api#documentation": "

A complex type that controls which HTTP methods CloudFront processes and forwards to your\n\t\t\tAmazon S3 bucket or your custom origin. There are three choices:

\n \n

If you pick the third choice, you may need to restrict access to your Amazon S3 bucket or\n\t\t\tto your custom origin so users can't perform operations that you don't want them to. For\n\t\t\texample, you might not want users to have permissions to delete objects from your\n\t\t\torigin.

" } }, + "com.amazonaws.cloudfront#AnycastIpList": { + "type": "structure", + "members": { + "Id": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The ID of the Anycast static IP list.

", + "smithy.api#required": {} + } + }, + "Name": { + "target": "com.amazonaws.cloudfront#AnycastIpListName", + "traits": { + "smithy.api#documentation": "

The name of the Anycast static IP list.

", + "smithy.api#required": {} + } + }, + "Status": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The status of the Anycast static IP list. Valid values: Deployed, Deploying, or Failed.

", + "smithy.api#required": {} + } + }, + "Arn": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Anycast static IP list.

", + "smithy.api#required": {} + } + }, + "AnycastIps": { + "target": "com.amazonaws.cloudfront#AnycastIps", + "traits": { + "smithy.api#documentation": "

The static IP addresses that are allocated to the Anycast static IP list.

", + "smithy.api#required": {} + } + }, + "IpCount": { + "target": "com.amazonaws.cloudfront#integer", + "traits": { + "smithy.api#documentation": "

The number of IP addresses in the Anycast static IP list.

", + "smithy.api#required": {} + } + }, + "LastModifiedTime": { + "target": "com.amazonaws.cloudfront#timestamp", + "traits": { + "smithy.api#documentation": "

The last time the Anycast static IP list was modified.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

An Anycast static IP list.

" + } + }, + "com.amazonaws.cloudfront#AnycastIpListCollection": { + "type": "structure", + "members": { + "Items": { + "target": "com.amazonaws.cloudfront#AnycastIpListSummaries", + "traits": { + "smithy.api#documentation": "

Items in the Anycast static IP list collection. Each item is of the AnycastIpListSummary structure type.

" + } + }, + "Marker": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

Use this field when paginating results to indicate where to begin in your list. The response includes items in the list that occur\n\t\t\tafter the marker. To get the next page of the list, set this field's value to the value\n\t\t\tof NextMarker from the current page's response.

", + "smithy.api#required": {} + } + }, + "NextMarker": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

Indicates the next page of the Anycast static IP list collection. To get the next page of the\n\t\t\tlist, use this value in the Marker field of your request.

" + } + }, + "MaxItems": { + "target": "com.amazonaws.cloudfront#integer", + "traits": { + "smithy.api#documentation": "

The maximum number of Anycast static IP list collections that you want returned in the\n\t\t\tresponse.

", + "smithy.api#required": {} + } + }, + "IsTruncated": { + "target": "com.amazonaws.cloudfront#boolean", + "traits": { + "smithy.api#documentation": "

If there are more items in the list collection than are in this response, this value is\n\t\t\ttrue.

", + "smithy.api#required": {} + } + }, + "Quantity": { + "target": "com.amazonaws.cloudfront#integer", + "traits": { + "smithy.api#documentation": "

The quantity of Anycast static IP lists in the collection.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The Anycast static IP list collection.

" + } + }, + "com.amazonaws.cloudfront#AnycastIpListName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^[a-zA-Z0-9-_]{1,64}$" + } + }, + "com.amazonaws.cloudfront#AnycastIpListSummaries": { + "type": "list", + "member": { + "target": "com.amazonaws.cloudfront#AnycastIpListSummary", + "traits": { + "smithy.api#xmlName": "AnycastIpListSummary" + } + } + }, + "com.amazonaws.cloudfront#AnycastIpListSummary": { + "type": "structure", + "members": { + "Id": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The ID of the Anycast static IP list.

", + "smithy.api#required": {} + } + }, + "Name": { + "target": "com.amazonaws.cloudfront#AnycastIpListName", + "traits": { + "smithy.api#documentation": "

The name of the Anycast static IP list.

", + "smithy.api#required": {} + } + }, + "Status": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The deployment status of the Anycast static IP list. Valid values: Deployed, Deploying, or Failed.

", + "smithy.api#required": {} + } + }, + "Arn": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Anycast static IP list.

", + "smithy.api#required": {} + } + }, + "IpCount": { + "target": "com.amazonaws.cloudfront#integer", + "traits": { + "smithy.api#documentation": "

The number of IP addresses in the Anycast static IP list.

", + "smithy.api#required": {} + } + }, + "LastModifiedTime": { + "target": "com.amazonaws.cloudfront#timestamp", + "traits": { + "smithy.api#documentation": "

The last time the Anycast static IP list was modified.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

An abbreviated version of the AnycastIpList structure. Omits the allocated static IP addresses (AnycastIpList$AnycastIps).

" + } + }, + "com.amazonaws.cloudfront#AnycastIps": { + "type": "list", + "member": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#xmlName": "AnycastIp" + } + } + }, "com.amazonaws.cloudfront#AssociateAlias": { "type": "operation", "input": { @@ -376,6 +559,12 @@ "smithy.api#documentation": "

The identifier for a response headers policy.

" } }, + "GrpcConfig": { + "target": "com.amazonaws.cloudfront#GrpcConfig", + "traits": { + "smithy.api#documentation": "

The gRPC configuration for your cache behavior.

" + } + }, "ForwardedValues": { "target": "com.amazonaws.cloudfront#ForwardedValues", "traits": { @@ -797,7 +986,20 @@ } }, "traits": { - "smithy.api#documentation": "

The key value store entity cannot be deleted while it is in use.

", + "smithy.api#documentation": "

The entity cannot be deleted while it is in use.

", + "smithy.api#error": "client", + "smithy.api#httpError": 409 + } + }, + "com.amazonaws.cloudfront#CannotUpdateEntityWhileInUse": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.cloudfront#string" + } + }, + "traits": { + "smithy.api#documentation": "

The entity cannot be updated while it is in use.

", "smithy.api#error": "client", "smithy.api#httpError": 409 } @@ -997,6 +1199,9 @@ { "target": "com.amazonaws.cloudfront#CopyDistribution" }, + { + "target": "com.amazonaws.cloudfront#CreateAnycastIpList" + }, { "target": "com.amazonaws.cloudfront#CreateCachePolicy" }, @@ -1054,6 +1259,12 @@ { "target": "com.amazonaws.cloudfront#CreateStreamingDistributionWithTags" }, + { + "target": "com.amazonaws.cloudfront#CreateVpcOrigin" + }, + { + "target": "com.amazonaws.cloudfront#DeleteAnycastIpList" + }, { "target": "com.amazonaws.cloudfront#DeleteCachePolicy" }, @@ -1102,12 +1313,18 @@ { "target": "com.amazonaws.cloudfront#DeleteStreamingDistribution" }, + { + "target": "com.amazonaws.cloudfront#DeleteVpcOrigin" + }, { "target": "com.amazonaws.cloudfront#DescribeFunction" }, { "target": "com.amazonaws.cloudfront#DescribeKeyValueStore" }, + { + "target": "com.amazonaws.cloudfront#GetAnycastIpList" + }, { "target": "com.amazonaws.cloudfront#GetCachePolicy" }, @@ -1192,6 +1409,12 @@ { "target": "com.amazonaws.cloudfront#GetStreamingDistributionConfig" }, + { + "target": "com.amazonaws.cloudfront#GetVpcOrigin" + }, + { + "target": "com.amazonaws.cloudfront#ListAnycastIpLists" + }, { "target": "com.amazonaws.cloudfront#ListCachePolicies" }, @@ -1207,6 +1430,9 @@ { "target": "com.amazonaws.cloudfront#ListDistributions" }, + { + "target": "com.amazonaws.cloudfront#ListDistributionsByAnycastIpListId" + }, { "target": "com.amazonaws.cloudfront#ListDistributionsByCachePolicyId" }, @@ -1222,6 +1448,9 @@ { "target": "com.amazonaws.cloudfront#ListDistributionsByResponseHeadersPolicyId" }, + { + "target": "com.amazonaws.cloudfront#ListDistributionsByVpcOriginId" + }, { "target": "com.amazonaws.cloudfront#ListDistributionsByWebACLId" }, @@ -1264,6 +1493,9 @@ { "target": "com.amazonaws.cloudfront#ListTagsForResource" }, + { + "target": "com.amazonaws.cloudfront#ListVpcOrigins" + }, { "target": "com.amazonaws.cloudfront#PublishFunction" }, @@ -1323,6 +1555,9 @@ }, { "target": "com.amazonaws.cloudfront#UpdateStreamingDistribution" + }, + { + "target": "com.amazonaws.cloudfront#UpdateVpcOrigin" } ], "traits": { @@ -2900,6 +3135,90 @@ "smithy.api#output": {} } }, + "com.amazonaws.cloudfront#CreateAnycastIpList": { + "type": "operation", + "input": { + "target": "com.amazonaws.cloudfront#CreateAnycastIpListRequest" + }, + "output": { + "target": "com.amazonaws.cloudfront#CreateAnycastIpListResult" + }, + "errors": [ + { + "target": "com.amazonaws.cloudfront#AccessDenied" + }, + { + "target": "com.amazonaws.cloudfront#EntityAlreadyExists" + }, + { + "target": "com.amazonaws.cloudfront#EntityLimitExceeded" + }, + { + "target": "com.amazonaws.cloudfront#InvalidArgument" + }, + { + "target": "com.amazonaws.cloudfront#InvalidTagging" + }, + { + "target": "com.amazonaws.cloudfront#UnsupportedOperation" + } + ], + "traits": { + "smithy.api#documentation": "

Creates an Anycast static IP list.

", + "smithy.api#http": { + "method": "POST", + "uri": "/2020-05-31/anycast-ip-list", + "code": 202 + } + } + }, + "com.amazonaws.cloudfront#CreateAnycastIpListRequest": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.cloudfront#AnycastIpListName", + "traits": { + "smithy.api#documentation": "

Name of the Anycast static IP list.

", + "smithy.api#required": {} + } + }, + "IpCount": { + "target": "com.amazonaws.cloudfront#integer", + "traits": { + "smithy.api#documentation": "

The number of static IP addresses that are allocated to the Anycast static IP list.

", + "smithy.api#required": {} + } + }, + "Tags": { + "target": "com.amazonaws.cloudfront#Tags" + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.cloudfront#CreateAnycastIpListResult": { + "type": "structure", + "members": { + "AnycastIpList": { + "target": "com.amazonaws.cloudfront#AnycastIpList", + "traits": { + "smithy.api#documentation": "

A response structure that includes the version identifier (ETag) and the created AnycastIpList structure.

", + "smithy.api#httpPayload": {} + } + }, + "ETag": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The version identifier for the current version of the Anycast static IP list.

", + "smithy.api#httpHeader": "ETag" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.cloudfront#CreateCachePolicy": { "type": "operation", "input": { @@ -3175,6 +3494,9 @@ { "target": "com.amazonaws.cloudfront#DistributionAlreadyExists" }, + { + "target": "com.amazonaws.cloudfront#EntityNotFound" + }, { "target": "com.amazonaws.cloudfront#IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior" }, @@ -3437,6 +3759,9 @@ { "target": "com.amazonaws.cloudfront#DistributionAlreadyExists" }, + { + "target": "com.amazonaws.cloudfront#EntityNotFound" + }, { "target": "com.amazonaws.cloudfront#IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior" }, @@ -4204,7 +4529,7 @@ "Comment": "my-key-valuestore-comment", "ImportSource": { "SourceType": "S3", - "SourceARN": "arn:aws:s3:::my-bucket/validJSON.json" + "SourceARN": "arn:aws:s3:::amzn-s3-demo-bucket/validJSON.json" } }, "output": { @@ -4977,10 +5302,144 @@ "smithy.api#output": {} } }, - "com.amazonaws.cloudfront#CustomErrorResponse": { - "type": "structure", - "members": { - "ErrorCode": { + "com.amazonaws.cloudfront#CreateVpcOrigin": { + "type": "operation", + "input": { + "target": "com.amazonaws.cloudfront#CreateVpcOriginRequest" + }, + "output": { + "target": "com.amazonaws.cloudfront#CreateVpcOriginResult" + }, + "errors": [ + { + "target": "com.amazonaws.cloudfront#AccessDenied" + }, + { + "target": "com.amazonaws.cloudfront#EntityAlreadyExists" + }, + { + "target": "com.amazonaws.cloudfront#EntityLimitExceeded" + }, + { + "target": "com.amazonaws.cloudfront#InconsistentQuantities" + }, + { + "target": "com.amazonaws.cloudfront#InvalidArgument" + }, + { + "target": "com.amazonaws.cloudfront#InvalidTagging" + }, + { + "target": "com.amazonaws.cloudfront#UnsupportedOperation" + } + ], + "traits": { + "smithy.api#documentation": "

Create an Amazon CloudFront VPC origin.

", + "smithy.api#examples": [ + { + "title": "To create a VPC origin", + "documentation": "The following command creates a VPC origin:", + "input": { + "VpcOriginEndpointConfig": { + "Name": "my-vpcorigin-name", + "Arn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-alb-us-west-2/e6aa5c7d26415c6d", + "HTTPPort": 80, + "HTTPSPort": 443, + "OriginProtocolPolicy": "match-viewer", + "OriginSslProtocols": { + "Quantity": 2, + "Items": [ + "TLSv1.1", + "TLSv1.2" + ] + } + } + }, + "output": { + "VpcOrigin": { + "Status": "Deploying", + "VpcOriginEndpointConfig": { + "Name": "my-vpcorigin-name", + "OriginSslProtocols": { + "Items": [ + "TLSv1.1", + "TLSv1.2" + ], + "Quantity": 2 + }, + "OriginProtocolPolicy": "match-viewer", + "HTTPPort": 80, + "HTTPSPort": 443, + "Arn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-alb-us-west-2/e6aa5c7d26415c6d" + }, + "CreatedTime": "2024-10-15T17:19:42.318Z", + "LastModifiedTime": "2024-10-15T17:19:42.318Z", + "Id": "vo_BQwjxxQxjCaBcQLzJUFkDM", + "Arn": "arn:aws:cloudfront::123456789012:vpcorigin/vo_BQwjxxQxjCaBcQLzJUFkDM" + }, + "ETag": "E23ZP02F085DFQ", + "Location": "https://cloudfront.amazonaws.com/2020-05-31/vpc-origin/vo_BQwjxxQxjCaBcQLzJUFkDM" + } + } + ], + "smithy.api#http": { + "method": "POST", + "uri": "/2020-05-31/vpc-origin", + "code": 202 + } + } + }, + "com.amazonaws.cloudfront#CreateVpcOriginRequest": { + "type": "structure", + "members": { + "VpcOriginEndpointConfig": { + "target": "com.amazonaws.cloudfront#VpcOriginEndpointConfig", + "traits": { + "smithy.api#documentation": "

The VPC origin endpoint configuration.

", + "smithy.api#required": {} + } + }, + "Tags": { + "target": "com.amazonaws.cloudfront#Tags" + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.cloudfront#CreateVpcOriginResult": { + "type": "structure", + "members": { + "VpcOrigin": { + "target": "com.amazonaws.cloudfront#VpcOrigin", + "traits": { + "smithy.api#documentation": "

The VPC origin.

", + "smithy.api#httpPayload": {} + } + }, + "Location": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The VPC origin location.

", + "smithy.api#httpHeader": "Location" + } + }, + "ETag": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The VPC origin ETag.

", + "smithy.api#httpHeader": "ETag" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.cloudfront#CustomErrorResponse": { + "type": "structure", + "members": { + "ErrorCode": { "target": "com.amazonaws.cloudfront#integer", "traits": { "smithy.api#documentation": "

The HTTP status code for which you want to specify a custom error page and/or a\n\t\t\tcaching duration.

", @@ -5194,6 +5653,12 @@ "smithy.api#documentation": "

The identifier for a response headers policy.

" } }, + "GrpcConfig": { + "target": "com.amazonaws.cloudfront#GrpcConfig", + "traits": { + "smithy.api#documentation": "

The gRPC configuration for your cache behavior.

" + } + }, "ForwardedValues": { "target": "com.amazonaws.cloudfront#ForwardedValues", "traits": { @@ -5227,6 +5692,73 @@ "smithy.api#documentation": "

A complex type that describes the default cache behavior if you don't specify a\n\t\t\t\tCacheBehavior element or if request URLs don't match any of the values\n\t\t\tof PathPattern in CacheBehavior elements. You must create\n\t\t\texactly one default cache behavior.

" } }, + "com.amazonaws.cloudfront#DeleteAnycastIpList": { + "type": "operation", + "input": { + "target": "com.amazonaws.cloudfront#DeleteAnycastIpListRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.amazonaws.cloudfront#AccessDenied" + }, + { + "target": "com.amazonaws.cloudfront#CannotDeleteEntityWhileInUse" + }, + { + "target": "com.amazonaws.cloudfront#EntityNotFound" + }, + { + "target": "com.amazonaws.cloudfront#IllegalDelete" + }, + { + "target": "com.amazonaws.cloudfront#InvalidArgument" + }, + { + "target": "com.amazonaws.cloudfront#InvalidIfMatchVersion" + }, + { + "target": "com.amazonaws.cloudfront#PreconditionFailed" + }, + { + "target": "com.amazonaws.cloudfront#UnsupportedOperation" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes an Anycast static IP list.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/2020-05-31/anycast-ip-list/{Id}", + "code": 204 + } + } + }, + "com.amazonaws.cloudfront#DeleteAnycastIpListRequest": { + "type": "structure", + "members": { + "Id": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The ID of the Anycast static IP list.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "IfMatch": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The current version (ETag value) of the Anycast static IP list that\n\t\t\tyou are deleting.

", + "smithy.api#httpHeader": "If-Match", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, "com.amazonaws.cloudfront#DeleteCachePolicy": { "type": "operation", "input": { @@ -6158,6 +6690,129 @@ "smithy.api#input": {} } }, + "com.amazonaws.cloudfront#DeleteVpcOrigin": { + "type": "operation", + "input": { + "target": "com.amazonaws.cloudfront#DeleteVpcOriginRequest" + }, + "output": { + "target": "com.amazonaws.cloudfront#DeleteVpcOriginResult" + }, + "errors": [ + { + "target": "com.amazonaws.cloudfront#AccessDenied" + }, + { + "target": "com.amazonaws.cloudfront#CannotDeleteEntityWhileInUse" + }, + { + "target": "com.amazonaws.cloudfront#EntityNotFound" + }, + { + "target": "com.amazonaws.cloudfront#IllegalDelete" + }, + { + "target": "com.amazonaws.cloudfront#InvalidArgument" + }, + { + "target": "com.amazonaws.cloudfront#InvalidIfMatchVersion" + }, + { + "target": "com.amazonaws.cloudfront#PreconditionFailed" + }, + { + "target": "com.amazonaws.cloudfront#UnsupportedOperation" + } + ], + "traits": { + "smithy.api#documentation": "

Delete an Amazon CloudFront VPC origin.

", + "smithy.api#examples": [ + { + "title": "To delete a VPC origin", + "documentation": "The following command deletes a VPC origin:", + "input": { + "Id": "vo_BQwjxxQxjCaBcQLzJUFkDM", + "IfMatch": "E1F83G8C2ARO7P" + }, + "output": { + "VpcOrigin": { + "Status": "Deploying", + "VpcOriginEndpointConfig": { + "Name": "my-vpcorigin-name", + "OriginSslProtocols": { + "Items": [ + "TLSv1.1", + "TLSv1.2" + ], + "Quantity": 2 + }, + "OriginProtocolPolicy": "match-viewer", + "HTTPPort": 80, + "HTTPSPort": 443, + "Arn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-alb-us-west-2/e6aa5c7d26415c6d" + }, + "CreatedTime": "2024-10-15T17:19:42.318Z", + "LastModifiedTime": "2024-10-15T17:57:08.965Z", + "Id": "vo_BQwjxxQxjCaBcQLzJUFkDM", + "Arn": "arn:aws:cloudfront::123456789012:vpcorigin/vo_BQwjxxQxjCaBcQLzJUFkDM" + }, + "ETag": "E1PA6795UKMFR9" + } + } + ], + "smithy.api#http": { + "method": "DELETE", + "uri": "/2020-05-31/vpc-origin/{Id}", + "code": 202 + } + } + }, + "com.amazonaws.cloudfront#DeleteVpcOriginRequest": { + "type": "structure", + "members": { + "Id": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The VPC origin ID.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "IfMatch": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The VPC origin to delete, if a match occurs.

", + "smithy.api#httpHeader": "If-Match", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.cloudfront#DeleteVpcOriginResult": { + "type": "structure", + "members": { + "VpcOrigin": { + "target": "com.amazonaws.cloudfront#VpcOrigin", + "traits": { + "smithy.api#documentation": "

The VPC origin.

", + "smithy.api#httpPayload": {} + } + }, + "ETag": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The VPC origin ETag.

", + "smithy.api#httpHeader": "ETag" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.cloudfront#DescribeFunction": { "type": "operation", "input": { @@ -6526,6 +7181,12 @@ "traits": { "smithy.api#documentation": "

A Boolean that indicates whether this is a staging distribution. When this value is\n\t\t\t\ttrue, this is a staging distribution. When this value is\n\t\t\t\tfalse, this is not a staging distribution.

" } + }, + "AnycastIpListId": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

ID of the Anycast static IP list that is associated with the distribution.

" + } } }, "traits": { @@ -6819,6 +7480,12 @@ "smithy.api#documentation": "

A Boolean that indicates whether this is a staging distribution. When this value is\n\t\t\t\ttrue, this is a staging distribution. When this value is\n\t\t\t\tfalse, this is not a staging distribution.

", "smithy.api#required": {} } + }, + "AnycastIpListId": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

ID of the Anycast static IP list that is associated with the distribution.

" + } } }, "traits": { @@ -6928,7 +7595,7 @@ } }, "traits": { - "smithy.api#documentation": "

The key value store entity already exists. You must provide a unique key value store\n\t\t\tentity.

", + "smithy.api#documentation": "

The entity already exists. You must provide a unique\n\t\t\tentity.

", "smithy.api#error": "client", "smithy.api#httpError": 409 } @@ -6941,7 +7608,7 @@ } }, "traits": { - "smithy.api#documentation": "

The key value store entity limit has been exceeded.

", + "smithy.api#documentation": "

The entity limit has been exceeded.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -6954,7 +7621,7 @@ } }, "traits": { - "smithy.api#documentation": "

The key value store entity was not found.

", + "smithy.api#documentation": "

The entity was not found.

", "smithy.api#error": "client", "smithy.api#httpError": 404 } @@ -6967,7 +7634,7 @@ } }, "traits": { - "smithy.api#documentation": "

The key value store entity size limit was exceeded.

", + "smithy.api#documentation": "

The entity size limit was exceeded.

", "smithy.api#error": "client", "smithy.api#httpError": 413 } @@ -7826,24 +8493,93 @@ } } }, - "com.amazonaws.cloudfront#GetCachePolicy": { + "com.amazonaws.cloudfront#GetAnycastIpList": { "type": "operation", "input": { - "target": "com.amazonaws.cloudfront#GetCachePolicyRequest" + "target": "com.amazonaws.cloudfront#GetAnycastIpListRequest" }, "output": { - "target": "com.amazonaws.cloudfront#GetCachePolicyResult" + "target": "com.amazonaws.cloudfront#GetAnycastIpListResult" }, "errors": [ { "target": "com.amazonaws.cloudfront#AccessDenied" }, { - "target": "com.amazonaws.cloudfront#NoSuchCachePolicy" - } - ], - "traits": { - "smithy.api#documentation": "

Gets a cache policy, including the following metadata:

\n \n

To get a cache policy, you must provide the policy's identifier. If the cache policy\n\t\t\tis attached to a distribution's cache behavior, you can get the policy's identifier\n\t\t\tusing ListDistributions or GetDistribution. If the cache\n\t\t\tpolicy is not attached to a cache behavior, you can get the identifier using\n\t\t\t\tListCachePolicies.

", + "target": "com.amazonaws.cloudfront#EntityNotFound" + }, + { + "target": "com.amazonaws.cloudfront#InvalidArgument" + }, + { + "target": "com.amazonaws.cloudfront#UnsupportedOperation" + } + ], + "traits": { + "smithy.api#documentation": "

Gets an Anycast static IP list.

", + "smithy.api#http": { + "method": "GET", + "uri": "/2020-05-31/anycast-ip-list/{Id}", + "code": 200 + } + } + }, + "com.amazonaws.cloudfront#GetAnycastIpListRequest": { + "type": "structure", + "members": { + "Id": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The ID of the Anycast static IP list.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.cloudfront#GetAnycastIpListResult": { + "type": "structure", + "members": { + "AnycastIpList": { + "target": "com.amazonaws.cloudfront#AnycastIpList", + "traits": { + "smithy.api#documentation": "

The Anycast static IP list details.

", + "smithy.api#httpPayload": {} + } + }, + "ETag": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The version identifier for the current version of the Anycast static IP list.

", + "smithy.api#httpHeader": "ETag" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.cloudfront#GetCachePolicy": { + "type": "operation", + "input": { + "target": "com.amazonaws.cloudfront#GetCachePolicyRequest" + }, + "output": { + "target": "com.amazonaws.cloudfront#GetCachePolicyResult" + }, + "errors": [ + { + "target": "com.amazonaws.cloudfront#AccessDenied" + }, + { + "target": "com.amazonaws.cloudfront#NoSuchCachePolicy" + } + ], + "traits": { + "smithy.api#documentation": "

Gets a cache policy, including the following metadata:

\n \n

To get a cache policy, you must provide the policy's identifier. If the cache policy\n\t\t\tis attached to a distribution's cache behavior, you can get the policy's identifier\n\t\t\tusing ListDistributions or GetDistribution. If the cache\n\t\t\tpolicy is not attached to a cache behavior, you can get the identifier using\n\t\t\t\tListCachePolicies.

", "smithy.api#http": { "method": "GET", "uri": "/2020-05-31/cache-policy/{Id}", @@ -9670,6 +10406,123 @@ "smithy.api#output": {} } }, + "com.amazonaws.cloudfront#GetVpcOrigin": { + "type": "operation", + "input": { + "target": "com.amazonaws.cloudfront#GetVpcOriginRequest" + }, + "output": { + "target": "com.amazonaws.cloudfront#GetVpcOriginResult" + }, + "errors": [ + { + "target": "com.amazonaws.cloudfront#AccessDenied" + }, + { + "target": "com.amazonaws.cloudfront#EntityNotFound" + }, + { + "target": "com.amazonaws.cloudfront#InvalidArgument" + }, + { + "target": "com.amazonaws.cloudfront#UnsupportedOperation" + } + ], + "traits": { + "smithy.api#documentation": "

Get the details of an Amazon CloudFront VPC origin.

", + "smithy.api#examples": [ + { + "title": "To get a VPC origin", + "documentation": "The following command gets a VPC origin:", + "input": { + "Id": "vo_BQwjxxQxjCaBcQLzJUFkDM" + }, + "output": { + "VpcOrigin": { + "Status": "Deployed", + "VpcOriginEndpointConfig": { + "Name": "my-vpcorigin-name", + "OriginSslProtocols": { + "Items": [ + "TLSv1.1", + "TLSv1.2" + ], + "Quantity": 2 + }, + "OriginProtocolPolicy": "match-viewer", + "HTTPPort": 80, + "HTTPSPort": 443, + "Arn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-alb-us-west-2/e6aa5c7d26415c6d" + }, + "CreatedTime": "2024-10-15T17:19:42.318Z", + "LastModifiedTime": "2024-10-15T17:24:35.188Z", + "Id": "vo_BQwjxxQxjCaBcQLzJUFkDM", + "Arn": "arn:aws:cloudfront::123456789012:vpcorigin/vo_BQwjxxQxjCaBcQLzJUFkDM" + }, + "ETag": "ETVPDKIKX0DER" + } + } + ], + "smithy.api#http": { + "method": "GET", + "uri": "/2020-05-31/vpc-origin/{Id}", + "code": 200 + } + } + }, + "com.amazonaws.cloudfront#GetVpcOriginRequest": { + "type": "structure", + "members": { + "Id": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The VPC origin ID.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.cloudfront#GetVpcOriginResult": { + "type": "structure", + "members": { + "VpcOrigin": { + "target": "com.amazonaws.cloudfront#VpcOrigin", + "traits": { + "smithy.api#documentation": "

The VPC origin.

", + "smithy.api#httpPayload": {} + } + }, + "ETag": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The VPC origin ETag.

", + "smithy.api#httpHeader": "ETag" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.cloudfront#GrpcConfig": { + "type": "structure", + "members": { + "Enabled": { + "target": "com.amazonaws.cloudfront#boolean", + "traits": { + "smithy.api#documentation": "

Enables your CloudFront distribution to receive gRPC requests and to proxy them directly to your\n\t\t\torigins.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Amazon CloudFront supports gRPC, an open-source remote procedure call (RPC) framework built on\n\t\t\tHTTP/2. gRPC offers bi-directional streaming and binary protocol that buffers payloads,\n\t\t\tmaking it suitable for applications that require low latency communications.

\n

To enable your distribution to handle gRPC requests, you must include HTTP/2 as one of the supported HTTP versions and allow HTTP methods, including POST.

\n

For more information, see Using gRPC with CloudFront distributions in the\n\t\t\t\tAmazon CloudFront Developer Guide.

" + } + }, "com.amazonaws.cloudfront#HeaderList": { "type": "list", "member": { @@ -9760,7 +10613,7 @@ } }, "traits": { - "smithy.api#documentation": "

You cannot delete a managed policy.

", + "smithy.api#documentation": "

Deletion is not allowed for this entity.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -10788,6 +11641,75 @@ "smithy.api#documentation": "

A complex type that specifies a list of Lambda@Edge functions associations for a cache\n\t\t\tbehavior.

\n

If you want to invoke one or more Lambda@Edge functions triggered by requests that\n\t\t\tmatch the PathPattern of the cache behavior, specify the applicable values\n\t\t\tfor Quantity and Items. Note that there can be up to 4\n\t\t\t\tLambdaFunctionAssociation items in this list (one for each possible\n\t\t\tvalue of EventType) and each EventType can be associated with\n\t\t\tonly one function.

\n

If you don't want to invoke any Lambda@Edge functions for the requests that match\n\t\t\t\tPathPattern, specify 0 for Quantity and omit\n\t\t\t\tItems.

" } }, + "com.amazonaws.cloudfront#ListAnycastIpLists": { + "type": "operation", + "input": { + "target": "com.amazonaws.cloudfront#ListAnycastIpListsRequest" + }, + "output": { + "target": "com.amazonaws.cloudfront#ListAnycastIpListsResult" + }, + "errors": [ + { + "target": "com.amazonaws.cloudfront#AccessDenied" + }, + { + "target": "com.amazonaws.cloudfront#EntityNotFound" + }, + { + "target": "com.amazonaws.cloudfront#InvalidArgument" + }, + { + "target": "com.amazonaws.cloudfront#UnsupportedOperation" + } + ], + "traits": { + "smithy.api#documentation": "

Lists your Anycast static IP lists.

", + "smithy.api#http": { + "method": "GET", + "uri": "/2020-05-31/anycast-ip-list", + "code": 200 + } + } + }, + "com.amazonaws.cloudfront#ListAnycastIpListsRequest": { + "type": "structure", + "members": { + "Marker": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

Use this field when paginating results to indicate where to begin in your list. The response includes items in the list that occur\n\t\t\tafter the marker. To get the next page of the list, set this field's value to the value\n\t\t\tof NextMarker from the current page's response.

", + "smithy.api#httpQuery": "Marker" + } + }, + "MaxItems": { + "target": "com.amazonaws.cloudfront#integer", + "traits": { + "smithy.api#documentation": "

The maximum number of Anycast static IP lists that you want returned in the\n\t\t\tresponse.

", + "smithy.api#httpQuery": "MaxItems" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.cloudfront#ListAnycastIpListsResult": { + "type": "structure", + "members": { + "AnycastIpLists": { + "target": "com.amazonaws.cloudfront#AnycastIpListCollection", + "traits": { + "smithy.api#documentation": "

Root level tag for the AnycastIpLists parameters.

", + "smithy.api#httpPayload": {}, + "smithy.api#xmlName": "AnycastIpListCollection" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.cloudfront#ListCachePolicies": { "type": "operation", "input": { @@ -11098,55 +12020,58 @@ } } }, - "com.amazonaws.cloudfront#ListDistributionsByCachePolicyId": { + "com.amazonaws.cloudfront#ListDistributionsByAnycastIpListId": { "type": "operation", "input": { - "target": "com.amazonaws.cloudfront#ListDistributionsByCachePolicyIdRequest" + "target": "com.amazonaws.cloudfront#ListDistributionsByAnycastIpListIdRequest" }, "output": { - "target": "com.amazonaws.cloudfront#ListDistributionsByCachePolicyIdResult" + "target": "com.amazonaws.cloudfront#ListDistributionsByAnycastIpListIdResult" }, "errors": [ { "target": "com.amazonaws.cloudfront#AccessDenied" }, + { + "target": "com.amazonaws.cloudfront#EntityNotFound" + }, { "target": "com.amazonaws.cloudfront#InvalidArgument" }, { - "target": "com.amazonaws.cloudfront#NoSuchCachePolicy" + "target": "com.amazonaws.cloudfront#UnsupportedOperation" } ], "traits": { - "smithy.api#documentation": "

Gets a list of distribution IDs for distributions that have a cache behavior that's\n\t\t\tassociated with the specified cache policy.

\n

You can optionally specify the maximum number of items to receive in the response. If\n\t\t\tthe total number of items in the list exceeds the maximum that you specify, or the\n\t\t\tdefault maximum, the response is paginated. To get the next page of items, send a\n\t\t\tsubsequent request that specifies the NextMarker value from the current\n\t\t\tresponse as the Marker value in the subsequent request.

", + "smithy.api#documentation": "

Lists the distributions in your account that are associated with the specified AnycastIpListId.

", "smithy.api#http": { "method": "GET", - "uri": "/2020-05-31/distributionsByCachePolicyId/{CachePolicyId}", + "uri": "/2020-05-31/distributionsByAnycastIpListId/{AnycastIpListId}", "code": 200 } } }, - "com.amazonaws.cloudfront#ListDistributionsByCachePolicyIdRequest": { + "com.amazonaws.cloudfront#ListDistributionsByAnycastIpListIdRequest": { "type": "structure", "members": { "Marker": { "target": "com.amazonaws.cloudfront#string", "traits": { - "smithy.api#documentation": "

Use this field when paginating results to indicate where to begin in your list of\n\t\t\tdistribution IDs. The response includes distribution IDs in the list that occur after\n\t\t\tthe marker. To get the next page of the list, set this field's value to the value of\n\t\t\t\tNextMarker from the current page's response.

", + "smithy.api#documentation": "

Use this field when paginating results to indicate where to begin in your list. The response includes items in the list that occur\n\t\t\tafter the marker. To get the next page of the list, set this field's value to the value\n\t\t\tof NextMarker from the current page's response.

", "smithy.api#httpQuery": "Marker" } }, "MaxItems": { "target": "com.amazonaws.cloudfront#integer", "traits": { - "smithy.api#documentation": "

The maximum number of distribution IDs that you want in the response.

", + "smithy.api#documentation": "

The maximum number of distributions that you want returned in the\n\t\t\tresponse.

", "smithy.api#httpQuery": "MaxItems" } }, - "CachePolicyId": { + "AnycastIpListId": { "target": "com.amazonaws.cloudfront#string", "traits": { - "smithy.api#documentation": "

The ID of the cache policy whose associated distribution IDs you want to list.

", + "smithy.api#documentation": "

The ID of the Anycast static IP list.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -11156,13 +12081,12 @@ "smithy.api#input": {} } }, - "com.amazonaws.cloudfront#ListDistributionsByCachePolicyIdResult": { + "com.amazonaws.cloudfront#ListDistributionsByAnycastIpListIdResult": { "type": "structure", "members": { - "DistributionIdList": { - "target": "com.amazonaws.cloudfront#DistributionIdList", + "DistributionList": { + "target": "com.amazonaws.cloudfront#DistributionList", "traits": { - "smithy.api#documentation": "

A list of distribution IDs.

", "smithy.api#httpPayload": {} } } @@ -11171,32 +12095,35 @@ "smithy.api#output": {} } }, - "com.amazonaws.cloudfront#ListDistributionsByKeyGroup": { + "com.amazonaws.cloudfront#ListDistributionsByCachePolicyId": { "type": "operation", "input": { - "target": "com.amazonaws.cloudfront#ListDistributionsByKeyGroupRequest" + "target": "com.amazonaws.cloudfront#ListDistributionsByCachePolicyIdRequest" }, "output": { - "target": "com.amazonaws.cloudfront#ListDistributionsByKeyGroupResult" + "target": "com.amazonaws.cloudfront#ListDistributionsByCachePolicyIdResult" }, "errors": [ + { + "target": "com.amazonaws.cloudfront#AccessDenied" + }, { "target": "com.amazonaws.cloudfront#InvalidArgument" }, { - "target": "com.amazonaws.cloudfront#NoSuchResource" + "target": "com.amazonaws.cloudfront#NoSuchCachePolicy" } ], "traits": { - "smithy.api#documentation": "

Gets a list of distribution IDs for distributions that have a cache behavior that\n\t\t\treferences the specified key group.

\n

You can optionally specify the maximum number of items to receive in the response. If\n\t\t\tthe total number of items in the list exceeds the maximum that you specify, or the\n\t\t\tdefault maximum, the response is paginated. To get the next page of items, send a\n\t\t\tsubsequent request that specifies the NextMarker value from the current\n\t\t\tresponse as the Marker value in the subsequent request.

", + "smithy.api#documentation": "

Gets a list of distribution IDs for distributions that have a cache behavior that's\n\t\t\tassociated with the specified cache policy.

\n

You can optionally specify the maximum number of items to receive in the response. If\n\t\t\tthe total number of items in the list exceeds the maximum that you specify, or the\n\t\t\tdefault maximum, the response is paginated. To get the next page of items, send a\n\t\t\tsubsequent request that specifies the NextMarker value from the current\n\t\t\tresponse as the Marker value in the subsequent request.

", "smithy.api#http": { "method": "GET", - "uri": "/2020-05-31/distributionsByKeyGroupId/{KeyGroupId}", + "uri": "/2020-05-31/distributionsByCachePolicyId/{CachePolicyId}", "code": 200 } } }, - "com.amazonaws.cloudfront#ListDistributionsByKeyGroupRequest": { + "com.amazonaws.cloudfront#ListDistributionsByCachePolicyIdRequest": { "type": "structure", "members": { "Marker": { @@ -11213,10 +12140,10 @@ "smithy.api#httpQuery": "MaxItems" } }, - "KeyGroupId": { + "CachePolicyId": { "target": "com.amazonaws.cloudfront#string", "traits": { - "smithy.api#documentation": "

The ID of the key group whose associated distribution IDs you are listing.

", + "smithy.api#documentation": "

The ID of the cache policy whose associated distribution IDs you want to list.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -11226,12 +12153,13 @@ "smithy.api#input": {} } }, - "com.amazonaws.cloudfront#ListDistributionsByKeyGroupResult": { + "com.amazonaws.cloudfront#ListDistributionsByCachePolicyIdResult": { "type": "structure", "members": { "DistributionIdList": { "target": "com.amazonaws.cloudfront#DistributionIdList", "traits": { + "smithy.api#documentation": "

A list of distribution IDs.

", "smithy.api#httpPayload": {} } } @@ -11240,17 +12168,86 @@ "smithy.api#output": {} } }, - "com.amazonaws.cloudfront#ListDistributionsByOriginRequestPolicyId": { + "com.amazonaws.cloudfront#ListDistributionsByKeyGroup": { "type": "operation", "input": { - "target": "com.amazonaws.cloudfront#ListDistributionsByOriginRequestPolicyIdRequest" + "target": "com.amazonaws.cloudfront#ListDistributionsByKeyGroupRequest" }, "output": { - "target": "com.amazonaws.cloudfront#ListDistributionsByOriginRequestPolicyIdResult" + "target": "com.amazonaws.cloudfront#ListDistributionsByKeyGroupResult" }, "errors": [ { - "target": "com.amazonaws.cloudfront#AccessDenied" + "target": "com.amazonaws.cloudfront#InvalidArgument" + }, + { + "target": "com.amazonaws.cloudfront#NoSuchResource" + } + ], + "traits": { + "smithy.api#documentation": "

Gets a list of distribution IDs for distributions that have a cache behavior that\n\t\t\treferences the specified key group.

\n

You can optionally specify the maximum number of items to receive in the response. If\n\t\t\tthe total number of items in the list exceeds the maximum that you specify, or the\n\t\t\tdefault maximum, the response is paginated. To get the next page of items, send a\n\t\t\tsubsequent request that specifies the NextMarker value from the current\n\t\t\tresponse as the Marker value in the subsequent request.

", + "smithy.api#http": { + "method": "GET", + "uri": "/2020-05-31/distributionsByKeyGroupId/{KeyGroupId}", + "code": 200 + } + } + }, + "com.amazonaws.cloudfront#ListDistributionsByKeyGroupRequest": { + "type": "structure", + "members": { + "Marker": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

Use this field when paginating results to indicate where to begin in your list of\n\t\t\tdistribution IDs. The response includes distribution IDs in the list that occur after\n\t\t\tthe marker. To get the next page of the list, set this field's value to the value of\n\t\t\t\tNextMarker from the current page's response.

", + "smithy.api#httpQuery": "Marker" + } + }, + "MaxItems": { + "target": "com.amazonaws.cloudfront#integer", + "traits": { + "smithy.api#documentation": "

The maximum number of distribution IDs that you want in the response.

", + "smithy.api#httpQuery": "MaxItems" + } + }, + "KeyGroupId": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The ID of the key group whose associated distribution IDs you are listing.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.cloudfront#ListDistributionsByKeyGroupResult": { + "type": "structure", + "members": { + "DistributionIdList": { + "target": "com.amazonaws.cloudfront#DistributionIdList", + "traits": { + "smithy.api#httpPayload": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.cloudfront#ListDistributionsByOriginRequestPolicyId": { + "type": "operation", + "input": { + "target": "com.amazonaws.cloudfront#ListDistributionsByOriginRequestPolicyIdRequest" + }, + "output": { + "target": "com.amazonaws.cloudfront#ListDistributionsByOriginRequestPolicyIdResult" + }, + "errors": [ + { + "target": "com.amazonaws.cloudfront#AccessDenied" }, { "target": "com.amazonaws.cloudfront#InvalidArgument" @@ -11453,6 +12450,99 @@ "smithy.api#output": {} } }, + "com.amazonaws.cloudfront#ListDistributionsByVpcOriginId": { + "type": "operation", + "input": { + "target": "com.amazonaws.cloudfront#ListDistributionsByVpcOriginIdRequest" + }, + "output": { + "target": "com.amazonaws.cloudfront#ListDistributionsByVpcOriginIdResult" + }, + "errors": [ + { + "target": "com.amazonaws.cloudfront#AccessDenied" + }, + { + "target": "com.amazonaws.cloudfront#EntityNotFound" + }, + { + "target": "com.amazonaws.cloudfront#InvalidArgument" + }, + { + "target": "com.amazonaws.cloudfront#UnsupportedOperation" + } + ], + "traits": { + "smithy.api#documentation": "

List CloudFront distributions by their VPC origin ID.

", + "smithy.api#examples": [ + { + "title": "To list distributions by VPC origin ID", + "documentation": "The following command lists distributions by VPC origin ID:", + "input": { + "VpcOriginId": "vo_BQwjxxQxjCaBcQLzJUFkDM" + }, + "output": { + "DistributionIdList": { + "Items": [], + "IsTruncated": false, + "MaxItems": 100, + "Quantity": 0, + "Marker": "a" + } + } + } + ], + "smithy.api#http": { + "method": "GET", + "uri": "/2020-05-31/distributionsByVpcOriginId/{VpcOriginId}", + "code": 200 + } + } + }, + "com.amazonaws.cloudfront#ListDistributionsByVpcOriginIdRequest": { + "type": "structure", + "members": { + "Marker": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The marker associated with the VPC origin distributions list.

", + "smithy.api#httpQuery": "Marker" + } + }, + "MaxItems": { + "target": "com.amazonaws.cloudfront#integer", + "traits": { + "smithy.api#documentation": "

The maximum number of items included in the list.

", + "smithy.api#httpQuery": "MaxItems" + } + }, + "VpcOriginId": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The VPC origin ID.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.cloudfront#ListDistributionsByVpcOriginIdResult": { + "type": "structure", + "members": { + "DistributionIdList": { + "target": "com.amazonaws.cloudfront#DistributionIdList", + "traits": { + "smithy.api#httpPayload": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.cloudfront#ListDistributionsByWebACLId": { "type": "operation", "input": { @@ -12460,6 +13550,99 @@ "smithy.api#output": {} } }, + "com.amazonaws.cloudfront#ListVpcOrigins": { + "type": "operation", + "input": { + "target": "com.amazonaws.cloudfront#ListVpcOriginsRequest" + }, + "output": { + "target": "com.amazonaws.cloudfront#ListVpcOriginsResult" + }, + "errors": [ + { + "target": "com.amazonaws.cloudfront#AccessDenied" + }, + { + "target": "com.amazonaws.cloudfront#EntityNotFound" + }, + { + "target": "com.amazonaws.cloudfront#InvalidArgument" + }, + { + "target": "com.amazonaws.cloudfront#UnsupportedOperation" + } + ], + "traits": { + "smithy.api#documentation": "

List the CloudFront VPC origins in your account.

", + "smithy.api#examples": [ + { + "title": "To list VPC origins", + "documentation": "The following command lists VPC origins:", + "output": { + "VpcOriginList": { + "Items": [ + { + "Status": "Deployed", + "Name": "my-vpcorigin-name", + "CreatedTime": "2024-10-15T17:19:42.318Z", + "LastModifiedTime": "2024-10-15T17:24:35.188Z", + "Id": "vo_BQwjxxQxjCaBcQLzJUFkDM", + "Arn": "arn:aws:cloudfront::123456789012:vpcorigin/vo_BQwjxxQxjCaBcQLzJUFkDM", + "OriginEndpointArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-alb-us-west-2/e6aa5c7d26415c6d" + } + ], + "MaxItems": 100, + "Quantity": 1, + "Marker": "a", + "IsTruncated": true + } + } + } + ], + "smithy.api#http": { + "method": "GET", + "uri": "/2020-05-31/vpc-origin", + "code": 200 + } + } + }, + "com.amazonaws.cloudfront#ListVpcOriginsRequest": { + "type": "structure", + "members": { + "Marker": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The marker associated with the VPC origins list.

", + "smithy.api#httpQuery": "Marker" + } + }, + "MaxItems": { + "target": "com.amazonaws.cloudfront#integer", + "traits": { + "smithy.api#documentation": "

The maximum number of items included in the list.

", + "smithy.api#httpQuery": "MaxItems" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.cloudfront#ListVpcOriginsResult": { + "type": "structure", + "members": { + "VpcOriginList": { + "target": "com.amazonaws.cloudfront#VpcOriginList", + "traits": { + "smithy.api#documentation": "

List of VPC origins.

", + "smithy.api#httpPayload": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.cloudfront#LocationList": { "type": "list", "member": { @@ -12475,34 +13658,38 @@ "Enabled": { "target": "com.amazonaws.cloudfront#boolean", "traits": { - "smithy.api#documentation": "

Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you don't\n\t\t\twant to enable logging when you create a distribution or if you want to disable logging\n\t\t\tfor an existing distribution, specify false for Enabled, and\n\t\t\tspecify empty Bucket and Prefix elements. If you specify\n\t\t\t\tfalse for Enabled but you specify values for\n\t\t\t\tBucket, prefix, and IncludeCookies, the\n\t\t\tvalues are automatically deleted.

", - "smithy.api#required": {} + "smithy.api#addedDefault": {}, + "smithy.api#default": false, + "smithy.api#documentation": "

Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you don't want to\n\t\t\tenable logging when you create a distribution or if you want to disable logging for an\n\t\t\texisting distribution, specify false for Enabled, and specify\n\t\t\tempty Bucket and Prefix elements. If you specify\n\t\t\t\tfalse for Enabled but you specify values for\n\t\t\t\tBucket and prefix, the values are automatically\n\t\t\tdeleted.

" } }, "IncludeCookies": { "target": "com.amazonaws.cloudfront#boolean", "traits": { - "smithy.api#documentation": "

Specifies whether you want CloudFront to include cookies in access logs, specify\n\t\t\t\ttrue for IncludeCookies. If you choose to include cookies\n\t\t\tin logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for\n\t\t\tthis distribution. If you don't want to include cookies when you create a distribution\n\t\t\tor if you want to disable include cookies for an existing distribution, specify\n\t\t\t\tfalse for IncludeCookies.

", - "smithy.api#required": {} + "smithy.api#addedDefault": {}, + "smithy.api#default": false, + "smithy.api#documentation": "

Specifies whether you want CloudFront to include cookies in access logs, specify\n\t\t\t\ttrue for IncludeCookies. If you choose to include cookies\n\t\t\tin logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for\n\t\t\tthis distribution. If you don't want to include cookies when you create a distribution\n\t\t\tor if you want to disable include cookies for an existing distribution, specify\n\t\t\t\tfalse for IncludeCookies.

" } }, "Bucket": { "target": "com.amazonaws.cloudfront#string", "traits": { - "smithy.api#documentation": "

The Amazon S3 bucket to store the access logs in, for example,\n\t\t\t\tmyawslogbucket.s3.amazonaws.com.

", - "smithy.api#required": {} + "smithy.api#addedDefault": {}, + "smithy.api#default": "", + "smithy.api#documentation": "

The Amazon S3 bucket to store the access logs in, for example,\n\t\t\t\tamzn-s3-demo-bucket.s3.amazonaws.com.

" } }, "Prefix": { "target": "com.amazonaws.cloudfront#string", "traits": { - "smithy.api#documentation": "

An optional string that you want CloudFront to prefix to the access log\n\t\t\t\tfilenames for this distribution, for example, myprefix/.\n\t\t\tIf you want to enable logging, but you don't want to specify a prefix, you still must\n\t\t\tinclude an empty Prefix element in the Logging element.

", - "smithy.api#required": {} + "smithy.api#addedDefault": {}, + "smithy.api#default": "", + "smithy.api#documentation": "

An optional string that you want CloudFront to prefix to the access log\n\t\t\t\tfilenames for this distribution, for example, myprefix/.\n\t\t\tIf you want to enable logging, but you don't want to specify a prefix, you still must\n\t\t\tinclude an empty Prefix element in the Logging element.

" } } }, "traits": { - "smithy.api#documentation": "

A complex type that controls whether access logs are written for the\n\t\t\tdistribution.

" + "smithy.api#documentation": "

A complex type that specifies whether access logs are written for the distribution.

\n \n

If you already enabled standard logging (legacy) and you want to enable standard logging\n\t\t\t\t(v2) to send your access logs to Amazon S3, we recommend that you specify a\n\t\t\t\t\tdifferent Amazon S3 bucket or use a separate\n\t\t\t\t\tpath in the same bucket (for example, use a log prefix or\n\t\t\t\tpartitioning). This helps you keep track of which log files are associated with\n\t\t\t\twhich logging subscription and prevents log files from overwriting each other. For\n\t\t\t\tmore information, see Standard logging (access logs) in the\n\t\t\t\t\tAmazon CloudFront Developer Guide.

\n
" } }, "com.amazonaws.cloudfront#Method": { @@ -12910,6 +14097,12 @@ "smithy.api#documentation": "

Use this type to specify an origin that is not an Amazon S3 bucket, with one exception. If\n\t\t\tthe Amazon S3 bucket is configured with static website hosting, use this type. If the Amazon S3\n\t\t\tbucket is not configured with static website hosting, use the\n\t\t\t\tS3OriginConfig type instead.

" } }, + "VpcOriginConfig": { + "target": "com.amazonaws.cloudfront#VpcOriginConfig", + "traits": { + "smithy.api#documentation": "

The VPC origin configuration.

" + } + }, "ConnectionAttempts": { "target": "com.amazonaws.cloudfront#integer", "traits": { @@ -15818,7 +17011,7 @@ "Bucket": { "target": "com.amazonaws.cloudfront#string", "traits": { - "smithy.api#documentation": "

The Amazon S3 bucket to store the access logs in, for example,\n\t\t\t\tmyawslogbucket.s3.amazonaws.com.

", + "smithy.api#documentation": "

The Amazon S3 bucket to store the access logs in, for example,\n\t\t\t\tamzn-s3-demo-bucket.s3.amazonaws.com.

", "smithy.api#required": {} } }, @@ -17297,6 +18490,9 @@ { "target": "com.amazonaws.cloudfront#ContinuousDeploymentPolicyInUse" }, + { + "target": "com.amazonaws.cloudfront#EntityNotFound" + }, { "target": "com.amazonaws.cloudfront#IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior" }, @@ -17567,6 +18763,9 @@ { "target": "com.amazonaws.cloudfront#CNAMEAlreadyExists" }, + { + "target": "com.amazonaws.cloudfront#EntityNotFound" + }, { "target": "com.amazonaws.cloudfront#IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior" }, @@ -18966,6 +20165,161 @@ "smithy.api#output": {} } }, + "com.amazonaws.cloudfront#UpdateVpcOrigin": { + "type": "operation", + "input": { + "target": "com.amazonaws.cloudfront#UpdateVpcOriginRequest" + }, + "output": { + "target": "com.amazonaws.cloudfront#UpdateVpcOriginResult" + }, + "errors": [ + { + "target": "com.amazonaws.cloudfront#AccessDenied" + }, + { + "target": "com.amazonaws.cloudfront#CannotUpdateEntityWhileInUse" + }, + { + "target": "com.amazonaws.cloudfront#EntityAlreadyExists" + }, + { + "target": "com.amazonaws.cloudfront#EntityLimitExceeded" + }, + { + "target": "com.amazonaws.cloudfront#EntityNotFound" + }, + { + "target": "com.amazonaws.cloudfront#IllegalUpdate" + }, + { + "target": "com.amazonaws.cloudfront#InconsistentQuantities" + }, + { + "target": "com.amazonaws.cloudfront#InvalidArgument" + }, + { + "target": "com.amazonaws.cloudfront#InvalidIfMatchVersion" + }, + { + "target": "com.amazonaws.cloudfront#PreconditionFailed" + }, + { + "target": "com.amazonaws.cloudfront#UnsupportedOperation" + } + ], + "traits": { + "smithy.api#documentation": "

Update an Amazon CloudFront VPC origin in your account.

", + "smithy.api#examples": [ + { + "title": "To update a VPC origin", + "documentation": "The following command updates a VPC origin:", + "input": { + "VpcOriginEndpointConfig": { + "Name": "my-vpcorigin-name", + "Arn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-alb-us-west-2/e6aa5c7d26415c6d", + "HTTPPort": 80, + "HTTPSPort": 443, + "OriginProtocolPolicy": "match-viewer", + "OriginSslProtocols": { + "Quantity": 2, + "Items": [ + "TLSv1.1", + "TLSv1.2" + ] + } + }, + "Id": "vo_BQwjxxQxjCaBcQLzJUFkDM", + "IfMatch": "ETVPDKIKX0DER" + }, + "output": { + "VpcOrigin": { + "Status": "Deploying", + "VpcOriginEndpointConfig": { + "Name": "my-vpcorigin-name", + "OriginSslProtocols": { + "Items": [ + "TLSv1.1", + "TLSv1.2" + ], + "Quantity": 2 + }, + "OriginProtocolPolicy": "match-viewer", + "HTTPPort": 80, + "HTTPSPort": 443, + "Arn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-alb-us-west-2/e6aa5c7d26415c6d" + }, + "CreatedTime": "2024-10-15T17:19:42.318Z", + "LastModifiedTime": "2024-10-15T17:47:08.133Z", + "Id": "vo_BQwjxxQxjCaBcQLzJUFkDM", + "Arn": "arn:aws:cloudfront::123456789012:vpcorigin/vo_BQwjxxQxjCaBcQLzJUFkDM" + }, + "ETag": "E3UN6WX5RRO2AG" + } + } + ], + "smithy.api#http": { + "method": "PUT", + "uri": "/2020-05-31/vpc-origin/{Id}", + "code": 202 + } + } + }, + "com.amazonaws.cloudfront#UpdateVpcOriginRequest": { + "type": "structure", + "members": { + "VpcOriginEndpointConfig": { + "target": "com.amazonaws.cloudfront#VpcOriginEndpointConfig", + "traits": { + "smithy.api#documentation": "

The VPC origin endpoint configuration.

", + "smithy.api#httpPayload": {}, + "smithy.api#required": {}, + "smithy.api#xmlName": "VpcOriginEndpointConfig" + } + }, + "Id": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The VPC origin ID.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "IfMatch": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The VPC origin to update, if a match occurs.

", + "smithy.api#httpHeader": "If-Match", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.cloudfront#UpdateVpcOriginResult": { + "type": "structure", + "members": { + "VpcOrigin": { + "target": "com.amazonaws.cloudfront#VpcOrigin", + "traits": { + "smithy.api#documentation": "

The VPC origin.

", + "smithy.api#httpPayload": {} + } + }, + "ETag": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The VPC origin ETag.

", + "smithy.api#httpHeader": "ETag" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.cloudfront#ViewerCertificate": { "type": "structure", "members": { @@ -19041,6 +20395,231 @@ } } }, + "com.amazonaws.cloudfront#VpcOrigin": { + "type": "structure", + "members": { + "Id": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The VPC origin ID.

", + "smithy.api#required": {} + } + }, + "Arn": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The VPC origin ARN.

", + "smithy.api#required": {} + } + }, + "Status": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The VPC origin status.

", + "smithy.api#required": {} + } + }, + "CreatedTime": { + "target": "com.amazonaws.cloudfront#timestamp", + "traits": { + "smithy.api#documentation": "

The VPC origin created time.

", + "smithy.api#required": {} + } + }, + "LastModifiedTime": { + "target": "com.amazonaws.cloudfront#timestamp", + "traits": { + "smithy.api#documentation": "

The VPC origin last modified time.

", + "smithy.api#required": {} + } + }, + "VpcOriginEndpointConfig": { + "target": "com.amazonaws.cloudfront#VpcOriginEndpointConfig", + "traits": { + "smithy.api#documentation": "

The VPC origin endpoint configuration.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

An Amazon CloudFront VPC origin.

" + } + }, + "com.amazonaws.cloudfront#VpcOriginConfig": { + "type": "structure", + "members": { + "VpcOriginId": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The VPC origin ID.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

An Amazon CloudFront VPC origin configuration.

" + } + }, + "com.amazonaws.cloudfront#VpcOriginEndpointConfig": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The name of the CloudFront VPC origin endpoint configuration.

", + "smithy.api#required": {} + } + }, + "Arn": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The ARN of the CloudFront VPC origin endpoint configuration.

", + "smithy.api#required": {} + } + }, + "HTTPPort": { + "target": "com.amazonaws.cloudfront#integer", + "traits": { + "smithy.api#documentation": "

The HTTP port for the CloudFront VPC origin endpoint configuration.

", + "smithy.api#required": {} + } + }, + "HTTPSPort": { + "target": "com.amazonaws.cloudfront#integer", + "traits": { + "smithy.api#documentation": "

The HTTPS port of the CloudFront VPC origin endpoint configuration.

", + "smithy.api#required": {} + } + }, + "OriginProtocolPolicy": { + "target": "com.amazonaws.cloudfront#OriginProtocolPolicy", + "traits": { + "smithy.api#documentation": "

The origin protocol policy for the CloudFront VPC origin endpoint configuration.

", + "smithy.api#required": {} + } + }, + "OriginSslProtocols": { + "target": "com.amazonaws.cloudfront#OriginSslProtocols" + } + }, + "traits": { + "smithy.api#documentation": "

An Amazon CloudFront VPC origin endpoint configuration.

" + } + }, + "com.amazonaws.cloudfront#VpcOriginList": { + "type": "structure", + "members": { + "Marker": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The marker associated with the VPC origins list.

", + "smithy.api#required": {} + } + }, + "NextMarker": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The next marker associated with the VPC origins list.

" + } + }, + "MaxItems": { + "target": "com.amazonaws.cloudfront#integer", + "traits": { + "smithy.api#documentation": "

The maximum number of items included in the list.

", + "smithy.api#required": {} + } + }, + "IsTruncated": { + "target": "com.amazonaws.cloudfront#boolean", + "traits": { + "smithy.api#documentation": "

A flag that indicates whether more VPC origins remain to be listed. If\n\t\t\tyour results were truncated, you can make a follow-up pagination request using the\n\t\t\tMarker request parameter to retrieve more VPC origins in the\n\t\t\tlist.

", + "smithy.api#required": {} + } + }, + "Quantity": { + "target": "com.amazonaws.cloudfront#integer", + "traits": { + "smithy.api#documentation": "

The number of VPC origins in the list.

", + "smithy.api#required": {} + } + }, + "Items": { + "target": "com.amazonaws.cloudfront#VpcOriginSummaryList", + "traits": { + "smithy.api#documentation": "

The items of the VPC origins list.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A list of CloudFront VPC origins.

" + } + }, + "com.amazonaws.cloudfront#VpcOriginSummary": { + "type": "structure", + "members": { + "Id": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The VPC origin summary ID.

", + "smithy.api#required": {} + } + }, + "Name": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The VPC origin summary name.

", + "smithy.api#required": {} + } + }, + "Status": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The VPC origin summary status.

", + "smithy.api#required": {} + } + }, + "CreatedTime": { + "target": "com.amazonaws.cloudfront#timestamp", + "traits": { + "smithy.api#documentation": "

The VPC origin summary created time.

", + "smithy.api#required": {} + } + }, + "LastModifiedTime": { + "target": "com.amazonaws.cloudfront#timestamp", + "traits": { + "smithy.api#documentation": "

The VPC origin summary last modified time.

", + "smithy.api#required": {} + } + }, + "Arn": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The VPC origin summary ARN.

", + "smithy.api#required": {} + } + }, + "OriginEndpointArn": { + "target": "com.amazonaws.cloudfront#string", + "traits": { + "smithy.api#documentation": "

The VPC origin summary origin endpoint ARN.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

A summary of the CloudFront VPC origin.

" + } + }, + "com.amazonaws.cloudfront#VpcOriginSummaryList": { + "type": "list", + "member": { + "target": "com.amazonaws.cloudfront#VpcOriginSummary", + "traits": { + "smithy.api#xmlName": "VpcOriginSummary" + } + } + }, "com.amazonaws.cloudfront#aliasString": { "type": "string", "traits": { diff --git a/codegen/sdk-codegen/aws-models/compute-optimizer.json b/codegen/sdk-codegen/aws-models/compute-optimizer.json index 3af0e8d9430..468b2e52085 100644 --- a/codegen/sdk-codegen/aws-models/compute-optimizer.json +++ b/codegen/sdk-codegen/aws-models/compute-optimizer.json @@ -383,6 +383,9 @@ { "target": "com.amazonaws.computeoptimizer#ExportECSServiceRecommendations" }, + { + "target": "com.amazonaws.computeoptimizer#ExportIdleRecommendations" + }, { "target": "com.amazonaws.computeoptimizer#ExportLambdaFunctionRecommendations" }, @@ -419,6 +422,9 @@ { "target": "com.amazonaws.computeoptimizer#GetEnrollmentStatusesForOrganization" }, + { + "target": "com.amazonaws.computeoptimizer#GetIdleRecommendations" + }, { "target": "com.amazonaws.computeoptimizer#GetLambdaFunctionRecommendations" }, @@ -1572,6 +1578,9 @@ } } }, + "com.amazonaws.computeoptimizer#DBClusterIdentifier": { + "type": "string" + }, "com.amazonaws.computeoptimizer#DBInstanceClass": { "type": "string" }, @@ -1798,6 +1807,23 @@ "com.amazonaws.computeoptimizer#DestinationKeyPrefix": { "type": "string" }, + "com.amazonaws.computeoptimizer#Dimension": { + "type": "enum", + "members": { + "SAVINGS_VALUE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SavingsValue" + } + }, + "SAVINGS_VALUE_AFTER_DISCOUNT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SavingsValueAfterDiscount" + } + } + } + }, "com.amazonaws.computeoptimizer#EBSEffectiveRecommendationPreferences": { "type": "structure", "members": { @@ -3149,6 +3175,106 @@ "smithy.api#output": {} } }, + "com.amazonaws.computeoptimizer#ExportIdleRecommendations": { + "type": "operation", + "input": { + "target": "com.amazonaws.computeoptimizer#ExportIdleRecommendationsRequest" + }, + "output": { + "target": "com.amazonaws.computeoptimizer#ExportIdleRecommendationsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.computeoptimizer#AccessDeniedException" + }, + { + "target": "com.amazonaws.computeoptimizer#InternalServerException" + }, + { + "target": "com.amazonaws.computeoptimizer#InvalidParameterValueException" + }, + { + "target": "com.amazonaws.computeoptimizer#LimitExceededException" + }, + { + "target": "com.amazonaws.computeoptimizer#MissingAuthenticationToken" + }, + { + "target": "com.amazonaws.computeoptimizer#OptInRequiredException" + }, + { + "target": "com.amazonaws.computeoptimizer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.computeoptimizer#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

\n Export optimization recommendations for your idle resources.\n

\n

Recommendations are exported in a comma-separated values (CSV) file, and its metadata\n in a JavaScript Object Notation (JSON) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see Exporting\n Recommendations in the Compute Optimizer User\n Guide.

\n

You can have only one idle resource export job in progress per Amazon Web Services Region.

" + } + }, + "com.amazonaws.computeoptimizer#ExportIdleRecommendationsRequest": { + "type": "structure", + "members": { + "accountIds": { + "target": "com.amazonaws.computeoptimizer#AccountIds", + "traits": { + "smithy.api#documentation": "

\n The Amazon Web Services account IDs for the export idle resource recommendations.\n

\n

If your account is the management account or the delegated administrator \n of an organization, use this parameter to specify the member account you want to \n export recommendations to.

\n

This parameter can't be specified together with the include member accounts \n parameter. The parameters are mutually exclusive.

\n

If this parameter or the include member accounts parameter is omitted,\n the recommendations for member accounts aren't included in the export.

\n

You can specify multiple account IDs per request.

" + } + }, + "filters": { + "target": "com.amazonaws.computeoptimizer#IdleRecommendationFilters", + "traits": { + "smithy.api#documentation": "

An array of objects to specify a filter that exports a more specific set of idle resource recommendations.

" + } + }, + "fieldsToExport": { + "target": "com.amazonaws.computeoptimizer#ExportableIdleFields", + "traits": { + "smithy.api#documentation": "

The recommendations data to include in the export file. For more information about the\n fields that can be exported, see Exported files in the Compute Optimizer User\n Guide.

" + } + }, + "s3DestinationConfig": { + "target": "com.amazonaws.computeoptimizer#S3DestinationConfig", + "traits": { + "smithy.api#required": {} + } + }, + "fileFormat": { + "target": "com.amazonaws.computeoptimizer#FileFormat", + "traits": { + "smithy.api#documentation": "

The format of the export file. The CSV file is the only export file format currently supported.

" + } + }, + "includeMemberAccounts": { + "target": "com.amazonaws.computeoptimizer#IncludeMemberAccounts", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

If your account is the management account or the delegated administrator of an organization,\n this parameter indicates whether to include recommendations for resources in all member accounts of\n the organization.

\n

The member accounts must also be opted in to Compute Optimizer, and trusted access for\n Compute Optimizer must be enabled in the organization account. For more information,\n see Compute Optimizer and Amazon Web Services Organizations trusted access in the\n Compute Optimizer User Guide.

\n

If this parameter is omitted, recommendations for member accounts of the \n organization aren't included in the export file.

\n

If this parameter or the account ID parameter is omitted, recommendations for \n member accounts aren't included in the export.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.computeoptimizer#ExportIdleRecommendationsResponse": { + "type": "structure", + "members": { + "jobId": { + "target": "com.amazonaws.computeoptimizer#JobId", + "traits": { + "smithy.api#documentation": "

\n The identification number of the export job.\n

\n

To view the status of an export job, use the \n DescribeRecommendationExportJobs action and specify the job ID.\n

" + } + }, + "s3Destination": { + "target": "com.amazonaws.computeoptimizer#S3Destination" + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.computeoptimizer#ExportLambdaFunctionRecommendations": { "type": "operation", "input": { @@ -4038,6 +4164,137 @@ "target": "com.amazonaws.computeoptimizer#ExportableECSServiceField" } }, + "com.amazonaws.computeoptimizer#ExportableIdleField": { + "type": "enum", + "members": { + "ACCOUNT_ID": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AccountId" + } + }, + "RESOURCE_ARN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ResourceArn" + } + }, + "RESOURCE_ID": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ResourceId" + } + }, + "RESOURCE_TYPE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ResourceType" + } + }, + "LAST_REFRESH_TIMESTAMP": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LastRefreshTimestamp" + } + }, + "LOOKBACK_PERIOD_IN_DAYS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LookbackPeriodInDays" + } + }, + "SAVINGS_OPPORTUNITY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SavingsOpportunity" + } + }, + "SAVINGS_OPPORTUNITY_AFTER_DISCOUNT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SavingsOpportunityAfterDiscount" + } + }, + "UTILIZATION_METRICS_CPU_MAXIMUM": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UtilizationMetricsCpuMaximum" + } + }, + "UTILIZATION_METRICS_MEMORY_MAXIMUM": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UtilizationMetricsMemoryMaximum" + } + }, + "UTILIZATION_METRICS_NETWORK_OUT_BYTES_PER_SECOND_MAXIMUM": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UtilizationMetricsNetworkOutBytesPerSecondMaximum" + } + }, + "UTILIZATION_METRICS_NETWORK_IN_BYTES_PER_SECOND_MAXIMUM": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UtilizationMetricsNetworkInBytesPerSecondMaximum" + } + }, + "UTILIZATION_METRICS_DATABASE_CONNECTIONS_MAXIMUM": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UtilizationMetricsDatabaseConnectionsMaximum" + } + }, + "UTILIZATION_METRICS_EBS_VOLUME_READ_IOPS_MAXIMUM": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UtilizationMetricsEBSVolumeReadIOPSMaximum" + } + }, + "UTILIZATION_METRICS_EBS_VOLUME_WRITE_IOPS_MAXIMUM": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UtilizationMetricsEBSVolumeWriteIOPSMaximum" + } + }, + "UTILIZATION_METRICS_VOLUME_READ_OPS_PER_SECOND_MAXIMUM": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UtilizationMetricsVolumeReadOpsPerSecondMaximum" + } + }, + "UTILIZATION_METRICS_VOLUME_WRITE_OPS_PER_SECOND_MAXIMUM": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UtilizationMetricsVolumeWriteOpsPerSecondMaximum" + } + }, + "FINDING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Finding" + } + }, + "FINDING_DESCRIPTION": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FindingDescription" + } + }, + "TAGS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Tags" + } + } + } + }, + "com.amazonaws.computeoptimizer#ExportableIdleFields": { + "type": "list", + "member": { + "target": "com.amazonaws.computeoptimizer#ExportableIdleField" + } + }, "com.amazonaws.computeoptimizer#ExportableInstanceField": { "type": "enum", "members": { @@ -4902,6 +5159,12 @@ "smithy.api#enumValue": "LookbackPeriodInDays" } }, + "CURRENT_INSTANCE_PERFORMANCE_RISK": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CurrentInstancePerformanceRisk" + } + }, "UTILIZATION_METRICS_CPU_MAXIMUM": { "target": "smithy.api#Unit", "traits": { @@ -4962,67 +5225,115 @@ "smithy.api#enumValue": "UtilizationMetricsDatabaseConnectionsMaximum" } }, - "INSTANCE_FINDING": { + "UTILIZATION_METRICS_STORAGE_NETWORK_RECEIVE_THROUGHPUT_MAXIMUM": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "InstanceFinding" + "smithy.api#enumValue": "UtilizationMetricsStorageNetworkReceiveThroughputMaximum" } }, - "INSTANCE_FINDING_REASON_CODES": { + "UTILIZATION_METRICS_STORAGE_NETWORK_TRANSMIT_THROUGHPUT_MAXIMUM": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "InstanceFindingReasonCodes" + "smithy.api#enumValue": "UtilizationMetricsStorageNetworkTransmitThroughputMaximum" } }, - "STORAGE_FINDING": { + "UTILIZATION_METRICS_AURORA_MEMORY_HEALTH_STATE_MAXIMUM": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "StorageFinding" + "smithy.api#enumValue": "UtilizationMetricsAuroraMemoryHealthStateMaximum" } }, - "STORAGE_FINDING_REASON_CODES": { + "UTILIZATION_METRICS_AURORA_MEMORY_NUM_DECLINED_SQL_TOTAL_MAXIMUM": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "StorageFindingReasonCodes" + "smithy.api#enumValue": "UtilizationMetricsAuroraMemoryNumDeclinedSqlTotalMaximum" } }, - "INSTANCE_RECOMMENDATION_OPTIONS_DB_INSTANCE_CLASS": { + "UTILIZATION_METRICS_AURORA_MEMORY_NUM_KILL_CONN_TOTAL_MAXIMUM": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "InstanceRecommendationOptionsDBInstanceClass" + "smithy.api#enumValue": "UtilizationMetricsAuroraMemoryNumKillConnTotalMaximum" } }, - "INSTANCE_RECOMMENDATION_OPTIONS_RANK": { + "UTILIZATION_METRICS_AURORA_MEMORY_NUM_KILL_QUERY_TOTAL_MAXIMUM": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "InstanceRecommendationOptionsRank" + "smithy.api#enumValue": "UtilizationMetricsAuroraMemoryNumKillQueryTotalMaximum" } }, - "INSTANCE_RECOMMENDATION_OPTIONS_PERFORMANCE_RISK": { + "UTILIZATION_METRICS_READ_IOPS_EPHEMERAL_STORAGE_MAXIMUM": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "InstanceRecommendationOptionsPerformanceRisk" + "smithy.api#enumValue": "UtilizationMetricsReadIOPSEphemeralStorageMaximum" } }, - "INSTANCE_RECOMMENDATION_OPTIONS_PROJECTED_UTILIZATION_METRICS_CPU_MAXIMUM": { + "UTILIZATION_METRICS_WRITE_IOPS_EPHEMERAL_STORAGE_MAXIMUM": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "InstanceRecommendationOptionsProjectedUtilizationMetricsCpuMaximum" + "smithy.api#enumValue": "UtilizationMetricsWriteIOPSEphemeralStorageMaximum" } }, - "STORAGE_RECOMMENDATION_OPTIONS_STORAGE_TYPE": { + "INSTANCE_FINDING": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "StorageRecommendationOptionsStorageType" + "smithy.api#enumValue": "InstanceFinding" } }, - "STORAGE_RECOMMENDATION_OPTIONS_ALLOCATED_STORAGE": { + "INSTANCE_FINDING_REASON_CODES": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "StorageRecommendationOptionsAllocatedStorage" + "smithy.api#enumValue": "InstanceFindingReasonCodes" } }, - "STORAGE_RECOMMENDATION_OPTIONS_MAX_ALLOCATED_STORAGE": { + "STORAGE_FINDING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "StorageFinding" + } + }, + "STORAGE_FINDING_REASON_CODES": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "StorageFindingReasonCodes" + } + }, + "INSTANCE_RECOMMENDATION_OPTIONS_DB_INSTANCE_CLASS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "InstanceRecommendationOptionsDBInstanceClass" + } + }, + "INSTANCE_RECOMMENDATION_OPTIONS_RANK": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "InstanceRecommendationOptionsRank" + } + }, + "INSTANCE_RECOMMENDATION_OPTIONS_PERFORMANCE_RISK": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "InstanceRecommendationOptionsPerformanceRisk" + } + }, + "INSTANCE_RECOMMENDATION_OPTIONS_PROJECTED_UTILIZATION_METRICS_CPU_MAXIMUM": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "InstanceRecommendationOptionsProjectedUtilizationMetricsCpuMaximum" + } + }, + "STORAGE_RECOMMENDATION_OPTIONS_STORAGE_TYPE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "StorageRecommendationOptionsStorageType" + } + }, + "STORAGE_RECOMMENDATION_OPTIONS_ALLOCATED_STORAGE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "StorageRecommendationOptionsAllocatedStorage" + } + }, + "STORAGE_RECOMMENDATION_OPTIONS_MAX_ALLOCATED_STORAGE": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "StorageRecommendationOptionsMaxAllocatedStorage" @@ -5165,6 +5476,18 @@ "traits": { "smithy.api#enumValue": "Tags" } + }, + "DB_CLUSTER_IDENTIFIER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DBClusterIdentifier" + } + }, + "PROMOTION_TIER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PromotionTier" + } } } }, @@ -6533,6 +6856,114 @@ "smithy.api#output": {} } }, + "com.amazonaws.computeoptimizer#GetIdleRecommendations": { + "type": "operation", + "input": { + "target": "com.amazonaws.computeoptimizer#GetIdleRecommendationsRequest" + }, + "output": { + "target": "com.amazonaws.computeoptimizer#GetIdleRecommendationsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.computeoptimizer#AccessDeniedException" + }, + { + "target": "com.amazonaws.computeoptimizer#InternalServerException" + }, + { + "target": "com.amazonaws.computeoptimizer#InvalidParameterValueException" + }, + { + "target": "com.amazonaws.computeoptimizer#MissingAuthenticationToken" + }, + { + "target": "com.amazonaws.computeoptimizer#OptInRequiredException" + }, + { + "target": "com.amazonaws.computeoptimizer#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.computeoptimizer#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.computeoptimizer#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns idle resource recommendations. Compute Optimizer generates recommendations for \n idle resources that meet a specific set of requirements. For more information, see\n Resource requirements in the\n Compute Optimizer User Guide\n

" + } + }, + "com.amazonaws.computeoptimizer#GetIdleRecommendationsRequest": { + "type": "structure", + "members": { + "resourceArns": { + "target": "com.amazonaws.computeoptimizer#ResourceArns", + "traits": { + "smithy.api#documentation": "

The ARN that identifies the idle resource.

" + } + }, + "nextToken": { + "target": "com.amazonaws.computeoptimizer#NextToken", + "traits": { + "smithy.api#documentation": "

The token to advance to the next page of idle resource recommendations.

" + } + }, + "maxResults": { + "target": "com.amazonaws.computeoptimizer#IdleMaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of idle resource recommendations to return with a single request.

\n

To retrieve the remaining results, \n make another request with the returned nextToken value.

" + } + }, + "filters": { + "target": "com.amazonaws.computeoptimizer#IdleRecommendationFilters", + "traits": { + "smithy.api#documentation": "

An array of objects to specify a filter that returns a more specific list of idle resource recommendations.

" + } + }, + "accountIds": { + "target": "com.amazonaws.computeoptimizer#AccountIds", + "traits": { + "smithy.api#documentation": "

Return the idle resource recommendations to the specified Amazon Web Services account IDs.

\n

If your account is the management account \n or the delegated administrator of an organization, use this parameter to return the idle resource recommendations to \n specific member accounts.

\n

You can only specify one account ID per request.

" + } + }, + "orderBy": { + "target": "com.amazonaws.computeoptimizer#OrderBy", + "traits": { + "smithy.api#documentation": "

The order to sort the idle resource recommendations.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.computeoptimizer#GetIdleRecommendationsResponse": { + "type": "structure", + "members": { + "nextToken": { + "target": "com.amazonaws.computeoptimizer#NextToken", + "traits": { + "smithy.api#documentation": "

The token to advance to the next page of idle resource recommendations.

" + } + }, + "idleRecommendations": { + "target": "com.amazonaws.computeoptimizer#IdleRecommendations", + "traits": { + "smithy.api#documentation": "

An array of objects that describe the idle resource recommendations.

" + } + }, + "errors": { + "target": "com.amazonaws.computeoptimizer#IdleRecommendationErrors", + "traits": { + "smithy.api#documentation": "

An array of objects that describe errors of the request.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.computeoptimizer#GetLambdaFunctionRecommendations": { "type": "operation", "input": { @@ -7114,127 +7545,541 @@ "com.amazonaws.computeoptimizer#GetRecommendationSummariesRequest": { "type": "structure", "members": { - "accountIds": { - "target": "com.amazonaws.computeoptimizer#AccountIds", + "accountIds": { + "target": "com.amazonaws.computeoptimizer#AccountIds", + "traits": { + "smithy.api#documentation": "

The ID of the Amazon Web Services account for which to return recommendation\n summaries.

\n

If your account is the management account of an organization, use this parameter to\n specify the member account for which you want to return recommendation summaries.

\n

Only one account ID can be specified per request.

" + } + }, + "nextToken": { + "target": "com.amazonaws.computeoptimizer#NextToken", + "traits": { + "smithy.api#documentation": "

The token to advance to the next page of recommendation summaries.

" + } + }, + "maxResults": { + "target": "com.amazonaws.computeoptimizer#MaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of recommendation summaries to return with a single request.

\n

To retrieve the remaining results, make another request with the returned\n nextToken value.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.computeoptimizer#GetRecommendationSummariesResponse": { + "type": "structure", + "members": { + "nextToken": { + "target": "com.amazonaws.computeoptimizer#NextToken", + "traits": { + "smithy.api#documentation": "

The token to use to advance to the next page of recommendation summaries.

\n

This value is null when there are no more pages of recommendation summaries to\n return.

" + } + }, + "recommendationSummaries": { + "target": "com.amazonaws.computeoptimizer#RecommendationSummaries", + "traits": { + "smithy.api#documentation": "

An array of objects that summarize a recommendation.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.computeoptimizer#Gpu": { + "type": "structure", + "members": { + "gpuCount": { + "target": "com.amazonaws.computeoptimizer#GpuCount", + "traits": { + "smithy.api#default": 0, + "smithy.api#documentation": "

\n The number of GPUs for the instance type.\n

" + } + }, + "gpuMemorySizeInMiB": { + "target": "com.amazonaws.computeoptimizer#GpuMemorySizeInMiB", + "traits": { + "smithy.api#default": 0, + "smithy.api#documentation": "

\n The total size of the memory for the GPU accelerators for the instance type, in MiB.\n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\n Describes the GPU accelerators for the instance type.\n

" + } + }, + "com.amazonaws.computeoptimizer#GpuCount": { + "type": "integer", + "traits": { + "smithy.api#default": 0 + } + }, + "com.amazonaws.computeoptimizer#GpuInfo": { + "type": "structure", + "members": { + "gpus": { + "target": "com.amazonaws.computeoptimizer#Gpus", + "traits": { + "smithy.api#documentation": "

\n Describes the GPU accelerators for the instance type.\n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\n Describes the GPU accelerator settings for the instance type.\n

" + } + }, + "com.amazonaws.computeoptimizer#GpuMemorySizeInMiB": { + "type": "integer", + "traits": { + "smithy.api#default": 0 + } + }, + "com.amazonaws.computeoptimizer#Gpus": { + "type": "list", + "member": { + "target": "com.amazonaws.computeoptimizer#Gpu" + } + }, + "com.amazonaws.computeoptimizer#High": { + "type": "long", + "traits": { + "smithy.api#default": 0 + } + }, + "com.amazonaws.computeoptimizer#Identifier": { + "type": "string" + }, + "com.amazonaws.computeoptimizer#Idle": { + "type": "enum", + "members": { + "TRUE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "True" + } + }, + "FALSE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "False" + } + } + } + }, + "com.amazonaws.computeoptimizer#IdleEstimatedMonthlySavings": { + "type": "structure", + "members": { + "currency": { + "target": "com.amazonaws.computeoptimizer#Currency", + "traits": { + "smithy.api#documentation": "

The currency of the estimated monthly savings.

" + } + }, + "value": { + "target": "com.amazonaws.computeoptimizer#Value", + "traits": { + "smithy.api#default": 0, + "smithy.api#documentation": "

The value of the estimated monthly savings for Idle resources.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes the estimated monthly savings possible for idle resources by adopting Compute Optimizer recommendations.

" + } + }, + "com.amazonaws.computeoptimizer#IdleFinding": { + "type": "enum", + "members": { + "IDLE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Idle" + } + }, + "UNATTACHED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Unattached" + } + } + } + }, + "com.amazonaws.computeoptimizer#IdleFindingDescription": { + "type": "string" + }, + "com.amazonaws.computeoptimizer#IdleMaxResults": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 0, + "max": 100 + } + } + }, + "com.amazonaws.computeoptimizer#IdleMetricName": { + "type": "enum", + "members": { + "CPU": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CPU" + } + }, + "MEMORY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Memory" + } + }, + "NETWORK_OUT_BYTES_PER_SECOND": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NetworkOutBytesPerSecond" + } + }, + "NETWORK_IN_BYTES_PER_SECOND": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NetworkInBytesPerSecond" + } + }, + "DATABASE_CONNECTIONS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DatabaseConnections" + } + }, + "EBS_VOLUME_READ_IOPS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "EBSVolumeReadIOPS" + } + }, + "EBS_VOLUME_WRITE_IOPS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "EBSVolumeWriteIOPS" + } + }, + "VOLUME_READ_OPS_PER_SECOND": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "VolumeReadOpsPerSecond" + } + }, + "VOLUME_WRITE_OPS_PER_SECOND": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "VolumeWriteOpsPerSecond" + } + } + } + }, + "com.amazonaws.computeoptimizer#IdleRecommendation": { + "type": "structure", + "members": { + "resourceArn": { + "target": "com.amazonaws.computeoptimizer#ResourceArn", + "traits": { + "smithy.api#documentation": "

The ARN of the current idle resource.

" + } + }, + "resourceId": { + "target": "com.amazonaws.computeoptimizer#ResourceId", + "traits": { + "smithy.api#documentation": "

The unique identifier for the resource.

" + } + }, + "resourceType": { + "target": "com.amazonaws.computeoptimizer#IdleRecommendationResourceType", + "traits": { + "smithy.api#documentation": "

The type of resource that is idle.

" + } + }, + "accountId": { + "target": "com.amazonaws.computeoptimizer#AccountId", + "traits": { + "smithy.api#documentation": "

The Amazon Web Services account ID of the idle resource.

" + } + }, + "finding": { + "target": "com.amazonaws.computeoptimizer#IdleFinding", + "traits": { + "smithy.api#documentation": "

The finding classification of an idle resource.

" + } + }, + "findingDescription": { + "target": "com.amazonaws.computeoptimizer#IdleFindingDescription", + "traits": { + "smithy.api#documentation": "

A summary of the findings for the resource.

" + } + }, + "savingsOpportunity": { + "target": "com.amazonaws.computeoptimizer#IdleSavingsOpportunity", + "traits": { + "smithy.api#documentation": "

The savings opportunity for the idle resource.

" + } + }, + "savingsOpportunityAfterDiscounts": { + "target": "com.amazonaws.computeoptimizer#IdleSavingsOpportunityAfterDiscounts", + "traits": { + "smithy.api#documentation": "

The savings opportunity for the idle resource after any applying discounts.

" + } + }, + "utilizationMetrics": { + "target": "com.amazonaws.computeoptimizer#IdleUtilizationMetrics", + "traits": { + "smithy.api#documentation": "

An array of objects that describe the utilization metrics of the idle resource.

" + } + }, + "lookBackPeriodInDays": { + "target": "com.amazonaws.computeoptimizer#LookBackPeriodInDays", + "traits": { + "smithy.api#default": 0, + "smithy.api#documentation": "

The number of days the idle resource utilization metrics were analyzed.

" + } + }, + "lastRefreshTimestamp": { + "target": "com.amazonaws.computeoptimizer#LastRefreshTimestamp", + "traits": { + "smithy.api#documentation": "

The timestamp of when the idle resource recommendation was last generated.

" + } + }, + "tags": { + "target": "com.amazonaws.computeoptimizer#Tags", + "traits": { + "smithy.api#documentation": "

A list of tags assigned to your idle resource recommendations.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes an Idle resource recommendation.

" + } + }, + "com.amazonaws.computeoptimizer#IdleRecommendationError": { + "type": "structure", + "members": { + "identifier": { + "target": "com.amazonaws.computeoptimizer#Identifier", + "traits": { + "smithy.api#documentation": "

The ID of the error.

" + } + }, + "code": { + "target": "com.amazonaws.computeoptimizer#Code", + "traits": { + "smithy.api#documentation": "

The error code.

" + } + }, + "message": { + "target": "com.amazonaws.computeoptimizer#Message", + "traits": { + "smithy.api#documentation": "

The error message.

" + } + }, + "resourceType": { + "target": "com.amazonaws.computeoptimizer#IdleRecommendationResourceType", + "traits": { + "smithy.api#documentation": "

The type of resource associated with the error.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Returns of list of resources that doesn't have idle recommendations.

" + } + }, + "com.amazonaws.computeoptimizer#IdleRecommendationErrors": { + "type": "list", + "member": { + "target": "com.amazonaws.computeoptimizer#IdleRecommendationError" + } + }, + "com.amazonaws.computeoptimizer#IdleRecommendationFilter": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.computeoptimizer#IdleRecommendationFilterName", + "traits": { + "smithy.api#documentation": "

\n The name of the filter.\n

\n

\n Specify Finding to return recommendations with a specific finding classification.\n

\n

You can filter your idle resource recommendations by tag:key \n and tag-key tags.

\n

A tag:key is a key and value combination of a tag assigned to your \n idle resource recommendations. Use the tag key in the filter name and the tag value \n as the filter value. For example, to find all idle resource service recommendations that have \n a tag with the key of Owner and the value of TeamA, \n specify tag:Owner for the filter name and TeamA for the filter value.

\n

A tag-key is the key of a tag assigned to your idle resource recommendations. Use \n this filter to find all of your idle resource recommendations that have a tag with a \n specific key. This doesn’t consider the tag value. For example, you can find \n your idle resource service recommendations with a tag key value of Owner or without any tag \n keys assigned.

" + } + }, + "values": { + "target": "com.amazonaws.computeoptimizer#FilterValues", + "traits": { + "smithy.api#documentation": "

The value of the filter.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes a filter that returns a more specific list of idle resource recommendations.

" + } + }, + "com.amazonaws.computeoptimizer#IdleRecommendationFilterName": { + "type": "enum", + "members": { + "FINDING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Finding" + } + }, + "RESOURCE_TYPE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ResourceType" + } + } + } + }, + "com.amazonaws.computeoptimizer#IdleRecommendationFilters": { + "type": "list", + "member": { + "target": "com.amazonaws.computeoptimizer#IdleRecommendationFilter" + } + }, + "com.amazonaws.computeoptimizer#IdleRecommendationResourceType": { + "type": "enum", + "members": { + "EC2_INSTANCE": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "

The ID of the Amazon Web Services account for which to return recommendation\n summaries.

\n

If your account is the management account of an organization, use this parameter to\n specify the member account for which you want to return recommendation summaries.

\n

Only one account ID can be specified per request.

" + "smithy.api#enumValue": "EC2Instance" } }, - "nextToken": { - "target": "com.amazonaws.computeoptimizer#NextToken", + "AUTO_SCALING_GROUP": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "

The token to advance to the next page of recommendation summaries.

" + "smithy.api#enumValue": "AutoScalingGroup" } }, - "maxResults": { - "target": "com.amazonaws.computeoptimizer#MaxResults", + "EBS_VOLUME": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "

The maximum number of recommendation summaries to return with a single request.

\n

To retrieve the remaining results, make another request with the returned\n nextToken value.

" + "smithy.api#enumValue": "EBSVolume" + } + }, + "ECS_SERVICE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ECSService" + } + }, + "RDS_DB_INSTANCE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "RDSDBInstance" } } - }, - "traits": { - "smithy.api#input": {} } }, - "com.amazonaws.computeoptimizer#GetRecommendationSummariesResponse": { + "com.amazonaws.computeoptimizer#IdleRecommendations": { + "type": "list", + "member": { + "target": "com.amazonaws.computeoptimizer#IdleRecommendation" + } + }, + "com.amazonaws.computeoptimizer#IdleSavingsOpportunity": { "type": "structure", "members": { - "nextToken": { - "target": "com.amazonaws.computeoptimizer#NextToken", + "savingsOpportunityPercentage": { + "target": "com.amazonaws.computeoptimizer#SavingsOpportunityPercentage", "traits": { - "smithy.api#documentation": "

The token to use to advance to the next page of recommendation summaries.

\n

This value is null when there are no more pages of recommendation summaries to\n return.

" + "smithy.api#default": 0, + "smithy.api#documentation": "

The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer's idle resource recommendations.

" } }, - "recommendationSummaries": { - "target": "com.amazonaws.computeoptimizer#RecommendationSummaries", + "estimatedMonthlySavings": { + "target": "com.amazonaws.computeoptimizer#IdleEstimatedMonthlySavings", "traits": { - "smithy.api#documentation": "

An array of objects that summarize a recommendation.

" + "smithy.api#documentation": "

The estimated monthly savings possible by adopting Compute Optimizer's idle resource recommendations.

" } } }, "traits": { - "smithy.api#output": {} + "smithy.api#documentation": "

Describes the savings opportunity for idle resource recommendations.

" } }, - "com.amazonaws.computeoptimizer#Gpu": { + "com.amazonaws.computeoptimizer#IdleSavingsOpportunityAfterDiscounts": { "type": "structure", "members": { - "gpuCount": { - "target": "com.amazonaws.computeoptimizer#GpuCount", + "savingsOpportunityPercentage": { + "target": "com.amazonaws.computeoptimizer#SavingsOpportunityPercentage", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

\n The number of GPUs for the instance type.\n

" + "smithy.api#documentation": "

The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer's idle resource recommendations. This includes any applicable discounts.

" } }, - "gpuMemorySizeInMiB": { - "target": "com.amazonaws.computeoptimizer#GpuMemorySizeInMiB", + "estimatedMonthlySavings": { + "target": "com.amazonaws.computeoptimizer#IdleEstimatedMonthlySavings", "traits": { - "smithy.api#default": 0, - "smithy.api#documentation": "

\n The total size of the memory for the GPU accelerators for the instance type, in MiB.\n

" + "smithy.api#documentation": "

The estimated monthly savings possible by adopting Compute Optimizer's idle resource recommendations. This includes any applicable discounts.

" } } }, "traits": { - "smithy.api#documentation": "

\n Describes the GPU accelerators for the instance type.\n

" + "smithy.api#documentation": "

Describes the savings opportunity for idle resource recommendations after applying discounts.

\n

Savings opportunity represents the estimated monthly savings after applying discounts. You can achieve this by implementing a given Compute Optimizer recommendation.

" } }, - "com.amazonaws.computeoptimizer#GpuCount": { - "type": "integer", - "traits": { - "smithy.api#default": 0 + "com.amazonaws.computeoptimizer#IdleSummaries": { + "type": "list", + "member": { + "target": "com.amazonaws.computeoptimizer#IdleSummary" } }, - "com.amazonaws.computeoptimizer#GpuInfo": { + "com.amazonaws.computeoptimizer#IdleSummary": { "type": "structure", "members": { - "gpus": { - "target": "com.amazonaws.computeoptimizer#Gpus", + "name": { + "target": "com.amazonaws.computeoptimizer#IdleFinding", "traits": { - "smithy.api#documentation": "

\n Describes the GPU accelerators for the instance type.\n

" + "smithy.api#documentation": "

The name of the finding group for the idle resources.

" + } + }, + "value": { + "target": "com.amazonaws.computeoptimizer#SummaryValue", + "traits": { + "smithy.api#default": 0, + "smithy.api#documentation": "

The count of idle resources in the finding group.

" } } }, "traits": { - "smithy.api#documentation": "

\n Describes the GPU accelerator settings for the instance type.\n

" - } - }, - "com.amazonaws.computeoptimizer#GpuMemorySizeInMiB": { - "type": "integer", - "traits": { - "smithy.api#default": 0 - } - }, - "com.amazonaws.computeoptimizer#Gpus": { - "type": "list", - "member": { - "target": "com.amazonaws.computeoptimizer#Gpu" - } - }, - "com.amazonaws.computeoptimizer#High": { - "type": "long", - "traits": { - "smithy.api#default": 0 + "smithy.api#documentation": "

Describes the findings summary of the idle resources.

" } }, - "com.amazonaws.computeoptimizer#Identifier": { - "type": "string" - }, - "com.amazonaws.computeoptimizer#Idle": { - "type": "enum", + "com.amazonaws.computeoptimizer#IdleUtilizationMetric": { + "type": "structure", "members": { - "TRUE": { - "target": "smithy.api#Unit", + "name": { + "target": "com.amazonaws.computeoptimizer#IdleMetricName", "traits": { - "smithy.api#enumValue": "True" + "smithy.api#documentation": "

The name of the utilization metric.

" } }, - "FALSE": { - "target": "smithy.api#Unit", + "statistic": { + "target": "com.amazonaws.computeoptimizer#MetricStatistic", "traits": { - "smithy.api#enumValue": "False" + "smithy.api#documentation": "

\n The statistic of the utilization metric.\n

\n

The Compute Optimizer API, Command Line Interface (CLI), and SDKs\n return utilization metrics using only the Maximum statistic, which is the\n highest value observed during the specified period.

\n

The Compute Optimizer console displays graphs for some utilization metrics using the\n Average statistic, which is the value of Sum /\n SampleCount during the specified period. For more information, see\n Viewing resource\n recommendations in the Compute Optimizer User\n Guide. You can also get averaged utilization metric data for your resources\n using Amazon CloudWatch. For more information, see the Amazon CloudWatch\n User Guide.

" + } + }, + "value": { + "target": "com.amazonaws.computeoptimizer#MetricValue", + "traits": { + "smithy.api#default": 0, + "smithy.api#documentation": "

The value of the utilization metric.

" } } + }, + "traits": { + "smithy.api#documentation": "

Describes the utilization metric of an idle resource.

" + } + }, + "com.amazonaws.computeoptimizer#IdleUtilizationMetrics": { + "type": "list", + "member": { + "target": "com.amazonaws.computeoptimizer#IdleUtilizationMetric" } }, "com.amazonaws.computeoptimizer#IncludeMemberAccounts": { @@ -9133,6 +9978,43 @@ "smithy.api#httpError": 403 } }, + "com.amazonaws.computeoptimizer#Order": { + "type": "enum", + "members": { + "ASC": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Asc" + } + }, + "DESC": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Desc" + } + } + } + }, + "com.amazonaws.computeoptimizer#OrderBy": { + "type": "structure", + "members": { + "dimension": { + "target": "com.amazonaws.computeoptimizer#Dimension", + "traits": { + "smithy.api#documentation": "

The dimension values to sort the recommendations.

" + } + }, + "order": { + "target": "com.amazonaws.computeoptimizer#Order", + "traits": { + "smithy.api#documentation": "

The order to sort the recommendations.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes how the recommendations are ordered.

" + } + }, "com.amazonaws.computeoptimizer#PerformanceRisk": { "type": "double", "traits": { @@ -9286,6 +10168,9 @@ "target": "com.amazonaws.computeoptimizer#UtilizationMetric" } }, + "com.amazonaws.computeoptimizer#PromotionTier": { + "type": "integer" + }, "com.amazonaws.computeoptimizer#PutRecommendationPreferences": { "type": "operation", "input": { @@ -9394,6 +10279,35 @@ "smithy.api#output": {} } }, + "com.amazonaws.computeoptimizer#RDSCurrentInstancePerformanceRisk": { + "type": "enum", + "members": { + "VERY_LOW": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "VeryLow" + } + }, + "LOW": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Low" + } + }, + "MEDIUM": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Medium" + } + }, + "HIGH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "High" + } + } + } + }, "com.amazonaws.computeoptimizer#RDSDBInstanceRecommendationOption": { "type": "structure", "members": { @@ -9505,6 +10419,54 @@ "traits": { "smithy.api#enumValue": "DatabaseConnections" } + }, + "STORAGE_NETWORK_RECEIVE_THROUGHPUT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "StorageNetworkReceiveThroughput" + } + }, + "STORAGE_NETWORK_TRANSMIT_THROUGHPUT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "StorageNetworkTransmitThroughput" + } + }, + "AURORA_MEMORY_HEALTH_STATE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AuroraMemoryHealthState" + } + }, + "AURORA_MEMORY_NUM_DECLINED_SQL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AuroraMemoryNumDeclinedSql" + } + }, + "AURORA_MEMORY_NUM_KILL_CONN_TOTAL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AuroraMemoryNumKillConnTotal" + } + }, + "AURORA_MEMORY_NUM_KILL_QUERY_TOTAL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AuroraMemoryNumKillQueryTotal" + } + }, + "READ_IOPS_EPHEMERAL_STORAGE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ReadIOPSEphemeralStorage" + } + }, + "WRITE_IOPS_EPHEMERAL_STORAGE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "WriteIOPSEphemeralStorage" + } } } }, @@ -9564,6 +10526,12 @@ "smithy.api#documentation": "

\n The database engine version.\n

" } }, + "promotionTier": { + "target": "com.amazonaws.computeoptimizer#PromotionTier", + "traits": { + "smithy.api#documentation": "

The promotion tier for the Aurora instance.

" + } + }, "currentDBInstanceClass": { "target": "com.amazonaws.computeoptimizer#CurrentDBInstanceClass", "traits": { @@ -9576,6 +10544,12 @@ "smithy.api#documentation": "

\n The configuration of the current RDS storage.\n

" } }, + "dbClusterIdentifier": { + "target": "com.amazonaws.computeoptimizer#DBClusterIdentifier", + "traits": { + "smithy.api#documentation": "

The identifier for DB cluster.

" + } + }, "idle": { "target": "com.amazonaws.computeoptimizer#Idle", "traits": { @@ -9600,6 +10574,12 @@ "smithy.api#documentation": "

\n The reason for the finding classification of an Amazon RDS instance.\n

" } }, + "currentInstancePerformanceRisk": { + "target": "com.amazonaws.computeoptimizer#RDSCurrentInstancePerformanceRisk", + "traits": { + "smithy.api#documentation": "

The performance risk for the current DB instance.

" + } + }, "storageFindingReasonCodes": { "target": "com.amazonaws.computeoptimizer#RDSStorageFindingReasonCodes", "traits": { @@ -9952,6 +10932,12 @@ "smithy.api#enumValue": "EBSIOPSOverprovisioned" } }, + "EBS_IOPS_UNDER_PROVISIONED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "EBSIOPSUnderprovisioned" + } + }, "EBS_THROUGHPUT_OVER_PROVISIONED": { "target": "smithy.api#Unit", "traits": { @@ -9987,6 +10973,30 @@ "traits": { "smithy.api#enumValue": "NewEngineVersionAvailable" } + }, + "DB_CLUSTER_WRITER_UNDER_PROVISIONED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DBClusterWriterUnderprovisioned" + } + }, + "MEMORY_UNDER_PROVISIONED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "MemoryUnderprovisioned" + } + }, + "INSTANCE_STORAGE_READ_IOPS_UNDER_PROVISIONED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "InstanceStorageReadIOPSUnderprovisioned" + } + }, + "INSTANCE_STORAGE_WRITE_IOPS_UNDER_PROVISIONED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "InstanceStorageWriteIOPSUnderprovisioned" + } } } }, @@ -10481,6 +11491,12 @@ "smithy.api#documentation": "

An array of objects that describe a recommendation summary.

" } }, + "idleSummaries": { + "target": "com.amazonaws.computeoptimizer#IdleSummaries", + "traits": { + "smithy.api#documentation": "

\n Describes the findings summary of the idle resources.\n

" + } + }, "recommendationResourceType": { "target": "com.amazonaws.computeoptimizer#RecommendationSourceType", "traits": { @@ -10499,6 +11515,12 @@ "smithy.api#documentation": "

An object that describes the savings opportunity for a given resource type. Savings\n opportunity includes the estimated monthly savings amount and percentage.

" } }, + "idleSavingsOpportunity": { + "target": "com.amazonaws.computeoptimizer#SavingsOpportunity" + }, + "aggregatedSavingsOpportunity": { + "target": "com.amazonaws.computeoptimizer#SavingsOpportunity" + }, "currentPerformanceRiskRatings": { "target": "com.amazonaws.computeoptimizer#CurrentPerformanceRiskRatings", "traits": { @@ -10564,6 +11586,9 @@ "target": "com.amazonaws.computeoptimizer#ResourceArn" } }, + "com.amazonaws.computeoptimizer#ResourceId": { + "type": "string" + }, "com.amazonaws.computeoptimizer#ResourceNotFoundException": { "type": "structure", "members": { @@ -10627,6 +11652,12 @@ "traits": { "smithy.api#enumValue": "RdsDBInstance" } + }, + "IDLE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Idle" + } } } }, @@ -11153,7 +12184,7 @@ "volumeType": { "target": "com.amazonaws.computeoptimizer#VolumeType", "traits": { - "smithy.api#documentation": "

The volume type.

\n

This can be gp2 for General Purpose SSD, io1 or\n io2 for Provisioned IOPS SSD, st1 for Throughput Optimized\n HDD, sc1 for Cold HDD, or standard for Magnetic\n volumes.

" + "smithy.api#documentation": "

The volume type.

\n

The volume types can be the following:

\n " } }, "volumeSize": { diff --git a/codegen/sdk-codegen/aws-models/connect.json b/codegen/sdk-codegen/aws-models/connect.json index d43b6a499e5..976b9fd8376 100644 --- a/codegen/sdk-codegen/aws-models/connect.json +++ b/codegen/sdk-codegen/aws-models/connect.json @@ -944,6 +944,9 @@ { "target": "com.amazonaws.connect#CreateContactFlowModule" }, + { + "target": "com.amazonaws.connect#CreateContactFlowVersion" + }, { "target": "com.amazonaws.connect#CreateEvaluationForm" }, @@ -1256,6 +1259,9 @@ { "target": "com.amazonaws.connect#ListContactFlows" }, + { + "target": "com.amazonaws.connect#ListContactFlowVersions" + }, { "target": "com.amazonaws.connect#ListContactReferences" }, @@ -3573,7 +3579,7 @@ } ], "traits": { - "smithy.api#documentation": "

Associates an agent with a traffic distribution group. This API can be called only in the Region where the traffic distribution group is\n created.

", + "smithy.api#documentation": "

Associates an agent with a traffic distribution group. This API can be called only in the\n Region where the traffic distribution group is created.

", "smithy.api#http": { "method": "PUT", "uri": "/traffic-distribution-group/{TrafficDistributionGroupId}/user", @@ -5646,6 +5652,43 @@ "traits": { "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource. For example, { \"Tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

" } + }, + "IsDefault": { + "target": "com.amazonaws.connect#Boolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

Amazon Connect includes a set of default flows that have already been published. It uses\n them to power your contact center.

" + } + }, + "FlowContentSha256": { + "target": "com.amazonaws.connect#FlowContentSha256", + "traits": { + "smithy.api#documentation": "

Indicates the checksum value of the flow content.

" + } + }, + "Version": { + "target": "com.amazonaws.connect#ResourceVersion", + "traits": { + "smithy.api#documentation": "

The identifier of the flow version.

" + } + }, + "VersionDescription": { + "target": "com.amazonaws.connect#ContactFlowDescription", + "traits": { + "smithy.api#documentation": "

The description of the flow version.

" + } + }, + "LastModifiedTime": { + "target": "com.amazonaws.connect#Timestamp", + "traits": { + "smithy.api#documentation": "

The time at which the contact flow was last modified.

" + } + }, + "LastModifiedRegion": { + "target": "com.amazonaws.connect#RegionName", + "traits": { + "smithy.api#documentation": "

The region in which the contact flow was last modified

" + } } }, "traits": { @@ -6119,6 +6162,38 @@ } } }, + "com.amazonaws.connect#ContactFlowVersionSummary": { + "type": "structure", + "members": { + "Arn": { + "target": "com.amazonaws.connect#ARN", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the view version.

" + } + }, + "VersionDescription": { + "target": "com.amazonaws.connect#ContactFlowDescription", + "traits": { + "smithy.api#documentation": "

The description of the flow version.

" + } + }, + "Version": { + "target": "com.amazonaws.connect#ResourceVersion", + "traits": { + "smithy.api#documentation": "

The identifier of the flow version.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A summary of a contact flow version's metadata.

" + } + }, + "com.amazonaws.connect#ContactFlowVersionSummaryList": { + "type": "list", + "member": { + "target": "com.amazonaws.connect#ContactFlowVersionSummary" + } + }, "com.amazonaws.connect#ContactId": { "type": "string", "traits": { @@ -6906,6 +6981,120 @@ "traits": { "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the flow.

" } + }, + "FlowContentSha256": { + "target": "com.amazonaws.connect#FlowContentSha256", + "traits": { + "smithy.api#documentation": "

Indicates the checksum value of the flow content.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.connect#CreateContactFlowVersion": { + "type": "operation", + "input": { + "target": "com.amazonaws.connect#CreateContactFlowVersionRequest" + }, + "output": { + "target": "com.amazonaws.connect#CreateContactFlowVersionResponse" + }, + "errors": [ + { + "target": "com.amazonaws.connect#AccessDeniedException" + }, + { + "target": "com.amazonaws.connect#InternalServiceException" + }, + { + "target": "com.amazonaws.connect#InvalidParameterException" + }, + { + "target": "com.amazonaws.connect#InvalidRequestException" + }, + { + "target": "com.amazonaws.connect#LimitExceededException" + }, + { + "target": "com.amazonaws.connect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.connect#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Publishes a new version of the flow provided. Versions are immutable and monotonically\n increasing. If a version of the same flow content already exists, no new version is created and\n instead the existing version number is returned. If the FlowContentSha256 provided\n is different from the FlowContentSha256 of the $LATEST published flow\n content, then an error is returned. This API only supports creating versions for flows of type\n Campaign.

", + "smithy.api#http": { + "method": "PUT", + "uri": "/contact-flows/{InstanceId}/{ContactFlowId}/version", + "code": 200 + } + } + }, + "com.amazonaws.connect#CreateContactFlowVersionRequest": { + "type": "structure", + "members": { + "InstanceId": { + "target": "com.amazonaws.connect#InstanceId", + "traits": { + "smithy.api#documentation": "

The identifier of the Amazon Connect instance.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "Description": { + "target": "com.amazonaws.connect#ContactFlowDescription", + "traits": { + "smithy.api#documentation": "

The description of the flow version.

" + } + }, + "ContactFlowId": { + "target": "com.amazonaws.connect#ARN", + "traits": { + "smithy.api#documentation": "

The identifier of the flow.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "FlowContentSha256": { + "target": "com.amazonaws.connect#FlowContentSha256", + "traits": { + "smithy.api#documentation": "

Indicates the checksum value of the flow content.

" + } + }, + "LastModifiedTime": { + "target": "com.amazonaws.connect#Timestamp", + "traits": { + "smithy.api#documentation": "

The Amazon Web Services Region where this resource was last modified.

" + } + }, + "LastModifiedRegion": { + "target": "com.amazonaws.connect#RegionName", + "traits": { + "smithy.api#documentation": "

The Amazon Web Services Region where this resource was last modified.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.connect#CreateContactFlowVersionResponse": { + "type": "structure", + "members": { + "ContactFlowArn": { + "target": "com.amazonaws.connect#ARN", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the flow.

" + } + }, + "Version": { + "target": "com.amazonaws.connect#ResourceVersion", + "traits": { + "smithy.api#documentation": "

The identifier of the flow version.

" + } } }, "traits": { @@ -13822,7 +14011,7 @@ } ], "traits": { - "smithy.api#documentation": "

Disassociates an agent from a traffic distribution group. This API can be called only in the Region where the traffic distribution group is\n created.

", + "smithy.api#documentation": "

Disassociates an agent from a traffic distribution group. This API can be called only in the\n Region where the traffic distribution group is created.

", "smithy.api#http": { "method": "DELETE", "uri": "/traffic-distribution-group/{TrafficDistributionGroupId}/user", @@ -16104,6 +16293,16 @@ "target": "com.amazonaws.connect#FlowAssociationSummary" } }, + "com.amazonaws.connect#FlowContentSha256": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^[a-zA-Z0-9]{64}$" + } + }, "com.amazonaws.connect#FunctionArn": { "type": "string", "traits": { @@ -16933,20 +17132,20 @@ "Filters": { "target": "com.amazonaws.connect#FiltersV2List", "traits": { - "smithy.api#documentation": "

The filters to apply to returned metrics. You can filter on the following resources:

\n \n

At least one filter must be passed from queues, routing profiles, agents, or user hierarchy\n groups.

\n

For metrics for outbound campaigns analytics, you can also use campaigns to satisfy at least\n one filter requirement.

\n

To filter by phone number, see Create a historical\n metrics report in the Amazon Connect Administrator\n Guide.

\n

Note the following limits:

\n ", + "smithy.api#documentation": "

The filters to apply to returned metrics. You can filter on the following resources:

\n \n

At least one filter must be passed from queues, routing profiles, agents, or user hierarchy\n groups.

\n

For metrics for outbound campaigns analytics, you can also use campaigns to satisfy at least\n one filter requirement.

\n

To filter by phone number, see Create a historical\n metrics report in the Amazon Connect Administrator\n Guide.

\n

Note the following limits:

\n ", "smithy.api#required": {} } }, "Groupings": { "target": "com.amazonaws.connect#GroupingsV2", "traits": { - "smithy.api#documentation": "

The grouping applied to the metrics that are returned. For example, when results are grouped\n by queue, the metrics returned are grouped by queue. The values that are returned apply to the\n metrics for each queue. They are not aggregated for all queues.

\n

If no grouping is specified, a summary of all metrics is returned.

\n

Valid grouping keys: AGENT | AGENT_HIERARCHY_LEVEL_ONE |\n AGENT_HIERARCHY_LEVEL_TWO | AGENT_HIERARCHY_LEVEL_THREE |\n AGENT_HIERARCHY_LEVEL_FOUR | AGENT_HIERARCHY_LEVEL_FIVE |\n ANSWERING_MACHINE_DETECTION_STATUS | CAMPAIGN |\n CASE_TEMPLATE_ARN | CASE_STATUS | CHANNEL |\n contact/segmentAttributes/connect:Subtype | DISCONNECT_REASON |\n FLOWS_RESOURCE_ID | FLOWS_MODULE_RESOURCE_ID | FLOW_TYPE\n | FLOWS_OUTCOME_TYPE | INITIATION_METHOD |\n Q_CONNECT_ENABLED | QUEUE | RESOURCE_PUBLISHED_TIMESTAMP\n | ROUTING_PROFILE | ROUTING_STEP_EXPRESSION\n

" + "smithy.api#documentation": "

The grouping applied to the metrics that are returned. For example, when results are grouped\n by queue, the metrics returned are grouped by queue. The values that are returned apply to the\n metrics for each queue. They are not aggregated for all queues.

\n

If no grouping is specified, a summary of all metrics is returned.

\n

Valid grouping keys: AGENT | AGENT_HIERARCHY_LEVEL_ONE |\n AGENT_HIERARCHY_LEVEL_TWO | AGENT_HIERARCHY_LEVEL_THREE |\n AGENT_HIERARCHY_LEVEL_FOUR | AGENT_HIERARCHY_LEVEL_FIVE |\n ANSWERING_MACHINE_DETECTION_STATUS | CAMPAIGN |\n CAMPAIGN_DELIVERY_EVENT_TYPE | CASE_TEMPLATE_ARN |\n CASE_STATUS | CHANNEL |\n contact/segmentAttributes/connect:Subtype | DISCONNECT_REASON |\n FLOWS_RESOURCE_ID | FLOWS_MODULE_RESOURCE_ID | FLOW_TYPE\n | FLOWS_OUTCOME_TYPE | INITIATION_METHOD |\n Q_CONNECT_ENABLED | QUEUE | RESOURCE_PUBLISHED_TIMESTAMP\n | ROUTING_PROFILE | ROUTING_STEP_EXPRESSION\n

" } }, "Metrics": { "target": "com.amazonaws.connect#MetricsV2", "traits": { - "smithy.api#documentation": "

The metrics to retrieve. Specify the name, groupings, and filters for each metric. The\n following historical metrics are available. For a description of each metric, see Historical metrics definitions in the Amazon Connect Administrator\n Guide.

\n
\n
ABANDONMENT_RATE
\n
\n

Unit: Percent

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Abandonment rate\n

\n
\n
AGENT_ADHERENT_TIME
\n
\n

This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available.

\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

\n

UI name: Adherent time\n

\n
\n
AGENT_ANSWER_RATE
\n
\n

Unit: Percent

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

\n

UI name: Agent answer rate\n

\n
\n
AGENT_NON_ADHERENT_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

\n

UI name: Non-adherent time\n

\n
\n
AGENT_NON_RESPONSE
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

\n

UI name: Agent\n non-response\n

\n
\n
AGENT_NON_RESPONSE_WITHOUT_CUSTOMER_ABANDONS
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

\n

Data for this metric is available starting from October 1, 2023 0:00:00 GMT.

\n

UI name: Agent non-response without customer abandons\n

\n
\n
AGENT_OCCUPANCY
\n
\n

Unit: Percentage

\n

Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy

\n

UI name: Occupancy\n

\n
\n
AGENT_SCHEDULE_ADHERENCE
\n
\n

This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available.

\n

Unit: Percent

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

\n

UI name: Adherence\n

\n
\n
AGENT_SCHEDULED_TIME
\n
\n

This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available.

\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

\n

UI name: Scheduled time\n

\n
\n
AVG_ABANDON_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average queue abandon time\n

\n
\n
AVG_ACTIVE_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect

\n

UI name: Average active time\n

\n
\n
AVG_AFTER_CONTACT_WORK_TIME
\n
\n

Unit: Seconds

\n

Valid metric filter key: INITIATION_METHOD\n

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average after contact work time\n

\n \n

Feature is a valid filter but not a valid grouping.

\n
\n
\n
AVG_AGENT_CONNECTING_TIME
\n
\n

Unit: Seconds

\n

Valid metric filter key: INITIATION_METHOD. For now, this metric only\n supports the following as INITIATION_METHOD: INBOUND |\n OUTBOUND | CALLBACK | API\n

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

\n

UI name: Average agent API connecting time\n

\n \n

The Negate key in metric-level filters is not applicable for this\n metric.

\n
\n
\n
AVG_AGENT_PAUSE_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect

\n

UI name: Average agent pause time\n

\n
\n
AVG_CASE_RELATED_CONTACTS
\n
\n

Unit: Count

\n

Required filter key: CASE_TEMPLATE_ARN

\n

Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

\n

UI name: Average contacts per case\n

\n
\n
AVG_CASE_RESOLUTION_TIME
\n
\n

Unit: Seconds

\n

Required filter key: CASE_TEMPLATE_ARN

\n

Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

\n

UI name: Average case resolution time\n

\n
\n
AVG_CONTACT_DURATION
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average contact duration\n

\n \n

Feature is a valid filter but not a valid grouping.

\n
\n
\n
AVG_CONVERSATION_DURATION
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average conversation duration\n

\n
\n
AVG_DIALS_PER_MINUTE
\n
\n

This metric is available only for contacts analyzed by outbound campaigns\n analytics.

\n

Unit: Count

\n

Valid groupings and filters: Campaign, Agent, Queue, Routing Profile

\n

UI name: Average dials per minute\n

\n
\n
AVG_FLOW_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module\n resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows\n resource ID, Initiation method, Resource published timestamp

\n

UI name: Average flow time\n

\n
\n
AVG_GREETING_TIME_AGENT
\n
\n

This metric is available only for contacts analyzed by Contact Lens conversational\n analytics.

\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average agent greeting time\n

\n
\n
AVG_HANDLE_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature,\n contact/segmentAttributes/connect:Subtype, RoutingStepExpression

\n

UI name: Average handle time\n

\n \n

Feature is a valid filter but not a valid grouping.

\n
\n
\n
AVG_HOLD_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average customer hold time\n

\n \n

Feature is a valid filter but not a valid grouping.

\n
\n
\n
AVG_HOLD_TIME_ALL_CONTACTS
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average customer hold time all contacts\n

\n
\n
AVG_HOLDS
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average holds\n

\n \n

Feature is a valid filter but not a valid grouping.

\n
\n
\n
AVG_INTERACTION_AND_HOLD_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average agent interaction and customer hold time\n

\n
\n
AVG_INTERACTION_TIME
\n
\n

Unit: Seconds

\n

Valid metric filter key: INITIATION_METHOD\n

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Feature,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average agent interaction time\n

\n \n

Feature is a valid filter but not a valid grouping.

\n
\n
\n
AVG_INTERRUPTIONS_AGENT
\n
\n

This metric is available only for contacts analyzed by Contact Lens conversational\n analytics.

\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average agent interruptions\n

\n
\n
AVG_INTERRUPTION_TIME_AGENT
\n
\n

This metric is available only for contacts analyzed by Contact Lens conversational\n analytics.

\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average agent interruption time\n

\n
\n
AVG_NON_TALK_TIME
\n
\n

This metric is available only for contacts analyzed by Contact Lens conversational\n analytics.

\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average non-talk time\n

\n
\n
AVG_QUEUE_ANSWER_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Feature,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average queue answer time\n

\n \n

Feature is a valid filter but not a valid grouping.

\n
\n
\n
AVG_RESOLUTION_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype,\n Q in Connect

\n

UI name: Average resolution time\n

\n
\n
AVG_TALK_TIME
\n
\n

This metric is available only for contacts analyzed by Contact Lens conversational\n analytics.

\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average talk time\n

\n
\n
AVG_TALK_TIME_AGENT
\n
\n

This metric is available only for contacts analyzed by Contact Lens conversational\n analytics.

\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average agent talk time\n

\n
\n
AVG_TALK_TIME_CUSTOMER
\n
\n

This metric is available only for contacts analyzed by Contact Lens conversational\n analytics.

\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average customer talk time\n

\n
\n
AVG_WAIT_TIME_AFTER_CUSTOMER_CONNECTION
\n
\n

This metric is available only for contacts analyzed by outbound campaigns\n analytics.

\n

Unit: Seconds

\n

Valid groupings and filters: Campaign

\n

UI name: Average wait time after customer connection\n

\n
\n
CAMPAIGN_CONTACTS_ABANDONED_AFTER_X
\n
\n

This metric is available only for contacts analyzed by outbound campaigns\n analytics.

\n

Unit: Count

\n

Valid groupings and filters: Campaign, Agent

\n

Threshold: For ThresholdValue, enter any whole number from 1 to 604800\n (inclusive), in seconds. For Comparison, you must enter GT (for\n Greater than).

\n

UI name: Campaign contacts abandoned after X\n

\n
\n
CAMPAIGN_CONTACTS_ABANDONED_AFTER_X_RATE
\n
\n

This metric is available only for contacts analyzed by outbound campaigns\n analytics.

\n

Unit: Percent

\n

Valid groupings and filters: Campaign, Agent

\n

Threshold: For ThresholdValue, enter any whole number from 1 to 604800\n (inclusive), in seconds. For Comparison, you must enter GT (for\n Greater than).

\n

UI name: Campaign contacts abandoned after X rate\n

\n
\n
CASES_CREATED
\n
\n

Unit: Count

\n

Required filter key: CASE_TEMPLATE_ARN

\n

Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

\n

UI name: Cases created\n

\n
\n
CONTACTS_CREATED
\n
\n

Unit: Count

\n

Valid metric filter key: INITIATION_METHOD\n

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Feature,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Contacts created\n

\n \n

Feature is a valid filter but not a valid grouping.

\n
\n
\n
CONTACTS_HANDLED
\n
\n

Unit: Count

\n

Valid metric filter key: INITIATION_METHOD,\n DISCONNECT_REASON\n

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature,\n contact/segmentAttributes/connect:Subtype, RoutingStepExpression, Q in Connect

\n

UI name: API contacts handled\n

\n \n

Feature is a valid filter but not a valid grouping.

\n
\n
\n
CONTACTS_HANDLED_BY_CONNECTED_TO_AGENT
\n
\n

Unit: Count

\n

Valid metric filter key: INITIATION_METHOD\n

\n

Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Contacts handled (connected to agent timestamp)\n

\n
\n
CONTACTS_HOLD_ABANDONS
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Contacts hold disconnect\n

\n
\n
CONTACTS_ON_HOLD_AGENT_DISCONNECT
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect

\n

UI name: Contacts hold agent disconnect\n

\n
\n
CONTACTS_ON_HOLD_CUSTOMER_DISCONNECT
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect

\n

UI name: Contacts hold customer disconnect\n

\n
\n
CONTACTS_PUT_ON_HOLD
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect

\n

UI name: Contacts put on hold\n

\n
\n
CONTACTS_TRANSFERRED_OUT_EXTERNAL
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect

\n

UI name: Contacts transferred out external\n

\n
\n
CONTACTS_TRANSFERRED_OUT_INTERNAL
\n
\n

Unit: Percent

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect

\n

UI name: Contacts transferred out internal\n

\n
\n
CONTACTS_QUEUED
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Contacts queued\n

\n
\n
CONTACTS_QUEUED_BY_ENQUEUE
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype

\n

UI name: Contacts queued (enqueue timestamp)\n

\n
\n
CONTACTS_REMOVED_FROM_QUEUE_IN_X
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Q in Connect

\n

Threshold: For ThresholdValue, enter any whole number from 1 to 604800\n (inclusive), in seconds. For Comparison, you can use LT (for \"Less\n than\") or LTE (for \"Less than equal\").

\n

UI name: Contacts removed from queue in X seconds\n

\n
\n
CONTACTS_RESOLVED_IN_X
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype,\n Q in Connect

\n

Threshold: For ThresholdValue, enter any whole number from 1 to 604800\n (inclusive), in seconds. For Comparison, you can use LT (for \"Less\n than\") or LTE (for \"Less than equal\").

\n

UI name: Contacts resolved in X\n

\n
\n
CONTACTS_TRANSFERRED_OUT
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Contacts transferred out\n

\n \n

Feature is a valid filter but not a valid grouping.

\n
\n
\n
CONTACTS_TRANSFERRED_OUT_BY_AGENT
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Contacts transferred out by agent\n

\n
\n
CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Contacts transferred out queue\n

\n
\n
CURRENT_CASES
\n
\n

Unit: Count

\n

Required filter key: CASE_TEMPLATE_ARN

\n

Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

\n

UI name: Current cases\n

\n
\n
DELIVERY_ATTEMPTS
\n
\n

This metric is available only for contacts analyzed by outbound campaigns\n analytics.

\n

Unit: Count

\n

Valid metric filter key: ANSWERING_MACHINE_DETECTION_STATUS,\n DISCONNECT_REASON\n

\n

Valid groupings and filters: Campaign, Agent, Queue, Routing Profile, Answering Machine Detection Status,\n Disconnect Reason

\n

UI name: Delivery attempts\n

\n
\n
DELIVERY_ATTEMPT_DISPOSITION_RATE
\n
\n

This metric is available only for contacts analyzed by outbound campaigns analytics, and\n with the answering machine detection enabled.

\n

Unit: Percent

\n

Valid metric filter key: ANSWERING_MACHINE_DETECTION_STATUS,\n DISCONNECT_REASON\n

\n

Valid groupings and filters: Campaign, Agent, Answering Machine Detection Status, Disconnect Reason

\n \n

Answering Machine Detection Status and Disconnect Reason are valid filters but not valid\n groupings.

\n
\n

UI name: Delivery attempt disposition rate\n

\n
\n
FLOWS_OUTCOME
\n
\n

Unit: Count

\n

Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module\n resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows\n resource ID, Initiation method, Resource published timestamp

\n

UI name: Flows outcome\n

\n
\n
FLOWS_STARTED
\n
\n

Unit: Count

\n

Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module\n resource ID, Flows resource ID, Initiation method, Resource published timestamp

\n

UI name: Flows started\n

\n
\n
HUMAN_ANSWERED_CALLS
\n
\n

This metric is available only for contacts analyzed by outbound campaigns analytics, and\n with the answering machine detection enabled.

\n

Unit: Count

\n

Valid groupings and filters: Campaign, Agent

\n

UI name: Human answered\n

\n
\n
MAX_FLOW_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module\n resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows\n resource ID, Initiation method, Resource published timestamp

\n

UI name: Maximum flow time\n

\n
\n
MAX_QUEUED_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Maximum queued time\n

\n
\n
MIN_FLOW_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module\n resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows\n resource ID, Initiation method, Resource published timestamp

\n

UI name: Minimum flow time\n

\n
\n
PERCENT_CASES_FIRST_CONTACT_RESOLVED
\n
\n

Unit: Percent

\n

Required filter key: CASE_TEMPLATE_ARN

\n

Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

\n

UI name: Cases resolved on first contact\n

\n
\n
PERCENT_CONTACTS_STEP_EXPIRED
\n
\n

Unit: Percent

\n

Valid groupings and filters: Queue, RoutingStepExpression

\n

UI name: This metric is available in Real-time Metrics UI but not on the Historical\n Metrics UI.

\n
\n
PERCENT_CONTACTS_STEP_JOINED
\n
\n

Unit: Percent

\n

Valid groupings and filters: Queue, RoutingStepExpression

\n

UI name: This metric is available in Real-time Metrics UI but not on the Historical\n Metrics UI.

\n
\n
PERCENT_FLOWS_OUTCOME
\n
\n

Unit: Percent

\n

Valid metric filter key: FLOWS_OUTCOME_TYPE\n

\n

Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module\n resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows\n resource ID, Initiation method, Resource published timestamp

\n

UI name: Flows outcome percentage.

\n \n

The FLOWS_OUTCOME_TYPE is not a valid grouping.

\n
\n
\n
PERCENT_NON_TALK_TIME
\n
\n

This metric is available only for contacts analyzed by Contact Lens conversational\n analytics.

\n

Unit: Percentage

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Non-talk\n time percent\n

\n
\n
PERCENT_TALK_TIME
\n
\n

This metric is available only for contacts analyzed by Contact Lens conversational\n analytics.

\n

Unit: Percentage

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Talk time\n percent\n

\n
\n
PERCENT_TALK_TIME_AGENT
\n
\n

This metric is available only for contacts analyzed by Contact Lens conversational\n analytics.

\n

Unit: Percentage

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Agent\n talk time percent\n

\n
\n
PERCENT_TALK_TIME_CUSTOMER
\n
\n

This metric is available only for contacts analyzed by Contact Lens conversational\n analytics.

\n

Unit: Percentage

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Customer talk time percent\n

\n
\n
REOPENED_CASE_ACTIONS
\n
\n

Unit: Count

\n

Required filter key: CASE_TEMPLATE_ARN

\n

Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

\n

UI name: Cases reopened\n

\n
\n
RESOLVED_CASE_ACTIONS
\n
\n

Unit: Count

\n

Required filter key: CASE_TEMPLATE_ARN

\n

Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

\n

UI name: Cases resolved\n

\n
\n
SERVICE_LEVEL
\n
\n

You can include up to 20 SERVICE_LEVEL metrics in a request.

\n

Unit: Percent

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Q in Connect

\n

Threshold: For ThresholdValue, enter any whole number from 1 to 604800\n (inclusive), in seconds. For Comparison, you can use LT (for \"Less\n than\") or LTE (for \"Less than equal\").

\n

UI name: Service level X\n

\n
\n
STEP_CONTACTS_QUEUED
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, RoutingStepExpression

\n

UI name: This metric is available in Real-time Metrics UI but not on the Historical\n Metrics UI.

\n
\n
SUM_AFTER_CONTACT_WORK_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect

\n

UI name: After\n contact work time\n

\n
\n
SUM_CONNECTING_TIME_AGENT
\n
\n

Unit: Seconds

\n

Valid metric filter key: INITIATION_METHOD. This metric only supports the\n following filter keys as INITIATION_METHOD: INBOUND |\n OUTBOUND | CALLBACK | API\n

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

\n

UI name: Agent API connecting time\n

\n \n

The Negate key in metric-level filters is not applicable for this\n metric.

\n
\n
\n
CONTACTS_ABANDONED
\n
\n

Unit: Count

\n

Metric filter:

\n \n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, RoutingStepExpression, Q in Connect

\n

UI name: Contact abandoned\n

\n
\n
SUM_CONTACTS_ABANDONED_IN_X
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype,\n Q in Connect

\n

Threshold: For ThresholdValue, enter any whole number from 1 to 604800\n (inclusive), in seconds. For Comparison, you can use LT (for \"Less\n than\") or LTE (for \"Less than equal\").

\n

UI name: Contacts abandoned in X seconds\n

\n
\n
SUM_CONTACTS_ANSWERED_IN_X
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype,\n Q in Connect

\n

Threshold: For ThresholdValue, enter any whole number from 1 to 604800\n (inclusive), in seconds. For Comparison, you can use LT (for \"Less\n than\") or LTE (for \"Less than equal\").

\n

UI name: Contacts answered in X seconds\n

\n
\n
SUM_CONTACT_FLOW_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect

\n

UI name: Contact flow time\n

\n
\n
SUM_CONTACT_TIME_AGENT
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy

\n

UI name: Agent on contact time\n

\n
\n
SUM_CONTACTS_DISCONNECTED
\n
\n

Valid metric filter key: DISCONNECT_REASON\n

\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Contact disconnected\n

\n
\n
SUM_ERROR_STATUS_TIME_AGENT
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy

\n

UI name: Error status time\n

\n
\n
SUM_HANDLE_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect

\n

UI name: Contact handle time\n

\n
\n
SUM_HOLD_TIME
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect

\n

UI name: Customer hold time\n

\n
\n
SUM_IDLE_TIME_AGENT
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy

\n

UI name: Agent idle time\n

\n
\n
SUM_INTERACTION_AND_HOLD_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect

\n

UI name: Agent interaction and hold time\n

\n
\n
SUM_INTERACTION_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

\n

UI name: Agent interaction time\n

\n
\n
SUM_NON_PRODUCTIVE_TIME_AGENT
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy

\n

UI name: Non-Productive Time\n

\n
\n
SUM_ONLINE_TIME_AGENT
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy

\n

UI name: Online time\n

\n
\n
SUM_RETRY_CALLBACK_ATTEMPTS
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype,\n Q in Connect

\n

UI name: Callback attempts\n

\n
\n
", + "smithy.api#documentation": "

The metrics to retrieve. Specify the name, groupings, and filters for each metric. The\n following historical metrics are available. For a description of each metric, see Historical metrics definitions in the Amazon Connect Administrator\n Guide.

\n
\n
ABANDONMENT_RATE
\n
\n

Unit: Percent

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Abandonment rate\n

\n
\n
AGENT_ADHERENT_TIME
\n
\n

This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available.

\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

\n

UI name: Adherent time\n

\n
\n
AGENT_ANSWER_RATE
\n
\n

Unit: Percent

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

\n

UI name: Agent answer rate\n

\n
\n
AGENT_NON_ADHERENT_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

\n

UI name: Non-adherent time\n

\n
\n
AGENT_NON_RESPONSE
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

\n

UI name: Agent\n non-response\n

\n
\n
AGENT_NON_RESPONSE_WITHOUT_CUSTOMER_ABANDONS
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

\n

Data for this metric is available starting from October 1, 2023 0:00:00 GMT.

\n

UI name: Agent non-response without customer abandons\n

\n
\n
AGENT_OCCUPANCY
\n
\n

Unit: Percentage

\n

Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy

\n

UI name: Occupancy\n

\n
\n
AGENT_SCHEDULE_ADHERENCE
\n
\n

This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available.

\n

Unit: Percent

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

\n

UI name: Adherence\n

\n
\n
AGENT_SCHEDULED_TIME
\n
\n

This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available.

\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

\n

UI name: Scheduled time\n

\n
\n
AVG_ABANDON_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average queue abandon time\n

\n
\n
AVG_ACTIVE_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect

\n

UI name: Average active time\n

\n
\n
AVG_AFTER_CONTACT_WORK_TIME
\n
\n

Unit: Seconds

\n

Valid metric filter key: INITIATION_METHOD\n

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average after contact work time\n

\n \n

Feature is a valid filter but not a valid grouping.

\n
\n
\n
AVG_AGENT_CONNECTING_TIME
\n
\n

Unit: Seconds

\n

Valid metric filter key: INITIATION_METHOD. For now, this metric only\n supports the following as INITIATION_METHOD: INBOUND |\n OUTBOUND | CALLBACK | API\n

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

\n

UI name: Average agent API connecting time\n

\n \n

The Negate key in metric-level filters is not applicable for this\n metric.

\n
\n
\n
AVG_AGENT_PAUSE_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect

\n

UI name: Average agent pause time\n

\n
\n
AVG_CASE_RELATED_CONTACTS
\n
\n

Unit: Count

\n

Required filter key: CASE_TEMPLATE_ARN

\n

Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

\n

UI name: Average contacts per case\n

\n
\n
AVG_CASE_RESOLUTION_TIME
\n
\n

Unit: Seconds

\n

Required filter key: CASE_TEMPLATE_ARN

\n

Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

\n

UI name: Average case resolution time\n

\n
\n
AVG_CONTACT_DURATION
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average contact duration\n

\n \n

Feature is a valid filter but not a valid grouping.

\n
\n
\n
AVG_CONVERSATION_DURATION
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average conversation duration\n

\n
\n
AVG_DIALS_PER_MINUTE
\n
\n

This metric is available only for outbound campaigns that use the agent assisted voice\n and automated voice delivery modes.

\n

Unit: Count

\n

Valid groupings and filters: Agent, Campaign, Queue, Routing Profile

\n

UI name: Average dials per minute\n

\n
\n
AVG_FLOW_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module\n resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows\n resource ID, Initiation method, Resource published timestamp

\n

UI name: Average flow time\n

\n
\n
AVG_GREETING_TIME_AGENT
\n
\n

This metric is available only for contacts analyzed by Contact Lens conversational\n analytics.

\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average agent greeting time\n

\n
\n
AVG_HANDLE_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature,\n contact/segmentAttributes/connect:Subtype, RoutingStepExpression

\n

UI name: Average handle time\n

\n \n

Feature is a valid filter but not a valid grouping.

\n
\n
\n
AVG_HOLD_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average customer hold time\n

\n \n

Feature is a valid filter but not a valid grouping.

\n
\n
\n
AVG_HOLD_TIME_ALL_CONTACTS
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average customer hold time all contacts\n

\n
\n
AVG_HOLDS
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average holds\n

\n \n

Feature is a valid filter but not a valid grouping.

\n
\n
\n
AVG_INTERACTION_AND_HOLD_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average agent interaction and customer hold time\n

\n
\n
AVG_INTERACTION_TIME
\n
\n

Unit: Seconds

\n

Valid metric filter key: INITIATION_METHOD\n

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Feature,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average agent interaction time\n

\n \n

Feature is a valid filter but not a valid grouping.

\n
\n
\n
AVG_INTERRUPTIONS_AGENT
\n
\n

This metric is available only for contacts analyzed by Contact Lens conversational\n analytics.

\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average agent interruptions\n

\n
\n
AVG_INTERRUPTION_TIME_AGENT
\n
\n

This metric is available only for contacts analyzed by Contact Lens conversational\n analytics.

\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average agent interruption time\n

\n
\n
AVG_NON_TALK_TIME
\n
\n

This metric is available only for contacts analyzed by Contact Lens conversational\n analytics.

\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average non-talk time\n

\n
\n
AVG_QUEUE_ANSWER_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Feature,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average queue answer time\n

\n \n

Feature is a valid filter but not a valid grouping.

\n
\n
\n
AVG_RESOLUTION_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype,\n Q in Connect

\n

UI name: Average resolution time\n

\n
\n
AVG_TALK_TIME
\n
\n

This metric is available only for contacts analyzed by Contact Lens conversational\n analytics.

\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average talk time\n

\n
\n
AVG_TALK_TIME_AGENT
\n
\n

This metric is available only for contacts analyzed by Contact Lens conversational\n analytics.

\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average agent talk time\n

\n
\n
AVG_TALK_TIME_CUSTOMER
\n
\n

This metric is available only for contacts analyzed by Contact Lens conversational\n analytics.

\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Average customer talk time\n

\n
\n
AVG_WAIT_TIME_AFTER_CUSTOMER_CONNECTION
\n
\n

This metric is available only for outbound campaigns that use the agent assisted voice\n and automated voice delivery modes.

\n

Unit: Seconds

\n

Valid groupings and filters: Campaign

\n

UI name: Average wait time after customer connection\n

\n
\n
CAMPAIGN_CONTACTS_ABANDONED_AFTER_X
\n
\n

This metric is available only for outbound campaigns using the agent assisted voice and\n automated voice delivery modes.

\n

Unit: Count

\n

Valid groupings and filters: Agent, Campaign

\n

Threshold: For ThresholdValue, enter any whole number from 1 to 604800\n (inclusive), in seconds. For Comparison, you must enter GT (for\n Greater than).

\n

UI name: Campaign contacts abandoned after X\n

\n
\n
CAMPAIGN_CONTACTS_ABANDONED_AFTER_X_RATE
\n
\n

This metric is available only for outbound campaigns using the agent assisted voice and\n automated voice delivery modes.

\n

Unit: Percent

\n

Valid groupings and filters: Agent, Campaign

\n

Threshold: For ThresholdValue, enter any whole number from 1 to 604800\n (inclusive), in seconds. For Comparison, you must enter GT (for\n Greater than).

\n

UI name: Campaign contacts abandoned after X rate\n

\n
\n
CAMPAIGN_INTERACTIONS
\n
\n

This metric is available only for outbound campaigns using the email delivery mode.

\n

Unit: Count

\n

Valid metric filter key: CAMPAIGN_INTERACTION_EVENT_TYPE

\n

Valid groupings and filters: Campaign

\n

UI name: Campaign interactions\n

\n
\n
CAMPAIGN_SEND_ATTEMPTS
\n
\n

This metric is available only for outbound campaigns.

\n

Unit: Count

\n

Valid groupings and filters: Campaign, Channel, contact/segmentAttributes/connect:Subtype

\n

UI name: Campaign send attempts\n

\n
\n
CASES_CREATED
\n
\n

Unit: Count

\n

Required filter key: CASE_TEMPLATE_ARN

\n

Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

\n

UI name: Cases created\n

\n
\n
CONTACTS_CREATED
\n
\n

Unit: Count

\n

Valid metric filter key: INITIATION_METHOD\n

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Feature,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Contacts created\n

\n \n

Feature is a valid filter but not a valid grouping.

\n
\n
\n
CONTACTS_HANDLED
\n
\n

Unit: Count

\n

Valid metric filter key: INITIATION_METHOD,\n DISCONNECT_REASON\n

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature,\n contact/segmentAttributes/connect:Subtype, RoutingStepExpression, Q in Connect

\n

UI name: API contacts handled\n

\n \n

Feature is a valid filter but not a valid grouping.

\n
\n
\n
CONTACTS_HANDLED_BY_CONNECTED_TO_AGENT
\n
\n

Unit: Count

\n

Valid metric filter key: INITIATION_METHOD\n

\n

Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Contacts handled (connected to agent timestamp)\n

\n
\n
CONTACTS_HOLD_ABANDONS
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Contacts hold disconnect\n

\n
\n
CONTACTS_ON_HOLD_AGENT_DISCONNECT
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect

\n

UI name: Contacts hold agent disconnect\n

\n
\n
CONTACTS_ON_HOLD_CUSTOMER_DISCONNECT
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect

\n

UI name: Contacts hold customer disconnect\n

\n
\n
CONTACTS_PUT_ON_HOLD
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect

\n

UI name: Contacts put on hold\n

\n
\n
CONTACTS_TRANSFERRED_OUT_EXTERNAL
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect

\n

UI name: Contacts transferred out external\n

\n
\n
CONTACTS_TRANSFERRED_OUT_INTERNAL
\n
\n

Unit: Percent

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect

\n

UI name: Contacts transferred out internal\n

\n
\n
CONTACTS_QUEUED
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Contacts queued\n

\n
\n
CONTACTS_QUEUED_BY_ENQUEUE
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype

\n

UI name: Contacts queued (enqueue timestamp)\n

\n
\n
CONTACTS_REMOVED_FROM_QUEUE_IN_X
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Q in Connect

\n

Threshold: For ThresholdValue, enter any whole number from 1 to 604800\n (inclusive), in seconds. For Comparison, you can use LT (for \"Less\n than\") or LTE (for \"Less than equal\").

\n

UI name: Contacts removed from queue in X seconds\n

\n
\n
CONTACTS_RESOLVED_IN_X
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype,\n Q in Connect

\n

Threshold: For ThresholdValue, enter any whole number from 1 to 604800\n (inclusive), in seconds. For Comparison, you can use LT (for \"Less\n than\") or LTE (for \"Less than equal\").

\n

UI name: Contacts resolved in X\n

\n
\n
CONTACTS_TRANSFERRED_OUT
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Contacts transferred out\n

\n \n

Feature is a valid filter but not a valid grouping.

\n
\n
\n
CONTACTS_TRANSFERRED_OUT_BY_AGENT
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Contacts transferred out by agent\n

\n
\n
CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Contacts transferred out queue\n

\n
\n
CURRENT_CASES
\n
\n

Unit: Count

\n

Required filter key: CASE_TEMPLATE_ARN

\n

Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

\n

UI name: Current cases\n

\n
\n
DELIVERY_ATTEMPTS
\n
\n

This metric is available only for outbound campaigns.

\n

Unit: Count

\n

Valid metric filter key: ANSWERING_MACHINE_DETECTION_STATUS,\n CAMPAIGN_DELIVERY_EVENT_TYPE, DISCONNECT_REASON\n

\n

Valid groupings and filters: Agent, Answering Machine Detection Status, Campaign, Campaign Delivery\n EventType, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Queue,\n Routing Profile

\n

UI name: Delivery attempts\n

\n \n

Campaign Delivery EventType filter and grouping are only available for SMS and Email\n campaign delivery modes. Agent, Queue, Routing Profile, Answering Machine Detection Status\n and Disconnect Reason are only available for agent assisted voice and automated voice\n delivery modes.

\n
\n
\n
DELIVERY_ATTEMPT_DISPOSITION_RATE
\n
\n

This metric is available only for outbound campaigns. Dispositions for the agent assisted\n voice and automated voice delivery modes are only available with answering machine detection\n enabled.

\n

Unit: Percent

\n

Valid metric filter key: ANSWERING_MACHINE_DETECTION_STATUS,\n CAMPAIGN_DELIVERY_EVENT_TYPE, DISCONNECT_REASON\n

\n

Valid groupings and filters: Agent, Answering Machine Detection Status, Campaign, Channel,\n contact/segmentAttributes/connect:Subtype, Disconnect Reason, Queue, Routing Profile

\n

UI name: Delivery attempt disposition rate\n

\n \n

Campaign Delivery Event Type filter and grouping are only available for SMS and Email\n campaign delivery modes. Agent, Queue, Routing Profile, Answering Machine Detection Status\n and Disconnect Reason are only available for agent assisted voice and automated voice\n delivery modes.

\n
\n
\n
FLOWS_OUTCOME
\n
\n

Unit: Count

\n

Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module\n resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows\n resource ID, Initiation method, Resource published timestamp

\n

UI name: Flows outcome\n

\n
\n
FLOWS_STARTED
\n
\n

Unit: Count

\n

Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module\n resource ID, Flows resource ID, Initiation method, Resource published timestamp

\n

UI name: Flows started\n

\n
\n
HUMAN_ANSWERED_CALLS
\n
\n

This metric is available only for outbound campaigns. Dispositions for the agent assisted\n voice and automated voice delivery modes are only available with answering machine detection\n enabled.

\n

Unit: Count

\n

Valid groupings and filters: Agent, Campaign

\n

UI name: Human answered\n

\n
\n
MAX_FLOW_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module\n resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows\n resource ID, Initiation method, Resource published timestamp

\n

UI name: Maximum flow time\n

\n
\n
MAX_QUEUED_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Maximum queued time\n

\n
\n
MIN_FLOW_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module\n resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows\n resource ID, Initiation method, Resource published timestamp

\n

UI name: Minimum flow time\n

\n
\n
PERCENT_CASES_FIRST_CONTACT_RESOLVED
\n
\n

Unit: Percent

\n

Required filter key: CASE_TEMPLATE_ARN

\n

Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

\n

UI name: Cases resolved on first contact\n

\n
\n
PERCENT_CONTACTS_STEP_EXPIRED
\n
\n

Unit: Percent

\n

Valid groupings and filters: Queue, RoutingStepExpression

\n

UI name: This metric is available in Real-time Metrics UI but not on the Historical\n Metrics UI.

\n
\n
PERCENT_CONTACTS_STEP_JOINED
\n
\n

Unit: Percent

\n

Valid groupings and filters: Queue, RoutingStepExpression

\n

UI name: This metric is available in Real-time Metrics UI but not on the Historical\n Metrics UI.

\n
\n
PERCENT_FLOWS_OUTCOME
\n
\n

Unit: Percent

\n

Valid metric filter key: FLOWS_OUTCOME_TYPE\n

\n

Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module\n resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows\n resource ID, Initiation method, Resource published timestamp

\n

UI name: Flows outcome percentage.

\n \n

The FLOWS_OUTCOME_TYPE is not a valid grouping.

\n
\n
\n
PERCENT_NON_TALK_TIME
\n
\n

This metric is available only for contacts analyzed by Contact Lens conversational\n analytics.

\n

Unit: Percentage

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Non-talk\n time percent\n

\n
\n
PERCENT_TALK_TIME
\n
\n

This metric is available only for contacts analyzed by Contact Lens conversational\n analytics.

\n

Unit: Percentage

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Talk time\n percent\n

\n
\n
PERCENT_TALK_TIME_AGENT
\n
\n

This metric is available only for contacts analyzed by Contact Lens conversational\n analytics.

\n

Unit: Percentage

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Agent\n talk time percent\n

\n
\n
PERCENT_TALK_TIME_CUSTOMER
\n
\n

This metric is available only for contacts analyzed by Contact Lens conversational\n analytics.

\n

Unit: Percentage

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Customer talk time percent\n

\n
\n
REOPENED_CASE_ACTIONS
\n
\n

Unit: Count

\n

Required filter key: CASE_TEMPLATE_ARN

\n

Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

\n

UI name: Cases reopened\n

\n
\n
RESOLVED_CASE_ACTIONS
\n
\n

Unit: Count

\n

Required filter key: CASE_TEMPLATE_ARN

\n

Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS

\n

UI name: Cases resolved\n

\n
\n
SERVICE_LEVEL
\n
\n

You can include up to 20 SERVICE_LEVEL metrics in a request.

\n

Unit: Percent

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Q in Connect

\n

Threshold: For ThresholdValue, enter any whole number from 1 to 604800\n (inclusive), in seconds. For Comparison, you can use LT (for \"Less\n than\") or LTE (for \"Less than equal\").

\n

UI name: Service level X\n

\n
\n
STEP_CONTACTS_QUEUED
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, RoutingStepExpression

\n

UI name: This metric is available in Real-time Metrics UI but not on the Historical\n Metrics UI.

\n
\n
SUM_AFTER_CONTACT_WORK_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect

\n

UI name: After\n contact work time\n

\n
\n
SUM_CONNECTING_TIME_AGENT
\n
\n

Unit: Seconds

\n

Valid metric filter key: INITIATION_METHOD. This metric only supports the\n following filter keys as INITIATION_METHOD: INBOUND |\n OUTBOUND | CALLBACK | API\n

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

\n

UI name: Agent API connecting time\n

\n \n

The Negate key in metric-level filters is not applicable for this\n metric.

\n
\n
\n
CONTACTS_ABANDONED
\n
\n

Unit: Count

\n

Metric filter:

\n \n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, RoutingStepExpression, Q in Connect

\n

UI name: Contact abandoned\n

\n
\n
SUM_CONTACTS_ABANDONED_IN_X
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype,\n Q in Connect

\n

Threshold: For ThresholdValue, enter any whole number from 1 to 604800\n (inclusive), in seconds. For Comparison, you can use LT (for \"Less\n than\") or LTE (for \"Less than equal\").

\n

UI name: Contacts abandoned in X seconds\n

\n
\n
SUM_CONTACTS_ANSWERED_IN_X
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype,\n Q in Connect

\n

Threshold: For ThresholdValue, enter any whole number from 1 to 604800\n (inclusive), in seconds. For Comparison, you can use LT (for \"Less\n than\") or LTE (for \"Less than equal\").

\n

UI name: Contacts answered in X seconds\n

\n
\n
SUM_CONTACT_FLOW_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect

\n

UI name: Contact flow time\n

\n
\n
SUM_CONTACT_TIME_AGENT
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy

\n

UI name: Agent on contact time\n

\n
\n
SUM_CONTACTS_DISCONNECTED
\n
\n

Valid metric filter key: DISCONNECT_REASON\n

\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy,\n contact/segmentAttributes/connect:Subtype, Q in Connect

\n

UI name: Contact disconnected\n

\n
\n
SUM_ERROR_STATUS_TIME_AGENT
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy

\n

UI name: Error status time\n

\n
\n
SUM_HANDLE_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect

\n

UI name: Contact handle time\n

\n
\n
SUM_HOLD_TIME
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect

\n

UI name: Customer hold time\n

\n
\n
SUM_IDLE_TIME_AGENT
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy

\n

UI name: Agent idle time\n

\n
\n
SUM_INTERACTION_AND_HOLD_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect

\n

UI name: Agent interaction and hold time\n

\n
\n
SUM_INTERACTION_TIME
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

\n

UI name: Agent interaction time\n

\n
\n
SUM_NON_PRODUCTIVE_TIME_AGENT
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy

\n

UI name: Non-Productive Time\n

\n
\n
SUM_ONLINE_TIME_AGENT
\n
\n

Unit: Seconds

\n

Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy

\n

UI name: Online time\n

\n
\n
SUM_RETRY_CALLBACK_ATTEMPTS
\n
\n

Unit: Count

\n

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype,\n Q in Connect

\n

UI name: Callback attempts\n

\n
\n
", "smithy.api#required": {} } }, @@ -19082,6 +19281,12 @@ "smithy.api#enumValue": "WISDOM_QUICK_RESPONSES" } }, + "Q_MESSAGE_TEMPLATES": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Q_MESSAGE_TEMPLATES" + } + }, "CASES_DOMAIN": { "target": "smithy.api#Unit", "traits": { @@ -20159,6 +20364,107 @@ "smithy.api#output": {} } }, + "com.amazonaws.connect#ListContactFlowVersions": { + "type": "operation", + "input": { + "target": "com.amazonaws.connect#ListContactFlowVersionsRequest" + }, + "output": { + "target": "com.amazonaws.connect#ListContactFlowVersionsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.connect#AccessDeniedException" + }, + { + "target": "com.amazonaws.connect#InternalServiceException" + }, + { + "target": "com.amazonaws.connect#InvalidParameterException" + }, + { + "target": "com.amazonaws.connect#InvalidRequestException" + }, + { + "target": "com.amazonaws.connect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.connect#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns all the available versions for the specified Amazon Connect instance and flow\n identifier.

", + "smithy.api#http": { + "method": "GET", + "uri": "/contact-flows/{InstanceId}/{ContactFlowId}/versions", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "ContactFlowVersionSummaryList", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.connect#ListContactFlowVersionsRequest": { + "type": "structure", + "members": { + "InstanceId": { + "target": "com.amazonaws.connect#InstanceId", + "traits": { + "smithy.api#documentation": "

The identifier of the Amazon Connect instance.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "ContactFlowId": { + "target": "com.amazonaws.connect#ARN", + "traits": { + "smithy.api#documentation": "

The identifier of the flow.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "NextToken": { + "target": "com.amazonaws.connect#NextToken", + "traits": { + "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

", + "smithy.api#httpQuery": "nextToken" + } + }, + "MaxResults": { + "target": "com.amazonaws.connect#MaxResult1000", + "traits": { + "smithy.api#documentation": "

The maximum number of results to return per page. The default MaxResult size is 100.

", + "smithy.api#httpQuery": "maxResults" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.connect#ListContactFlowVersionsResponse": { + "type": "structure", + "members": { + "ContactFlowVersionSummaryList": { + "target": "com.amazonaws.connect#ContactFlowVersionSummaryList", + "traits": { + "smithy.api#documentation": "

A list of flow version summaries.

" + } + }, + "NextToken": { + "target": "com.amazonaws.connect#NextToken", + "traits": { + "smithy.api#documentation": "

If there are additional results, this is the token for the next set of results.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.connect#ListContactFlows": { "type": "operation", "input": { @@ -24207,14 +24513,14 @@ "MetricFilterValues": { "target": "com.amazonaws.connect#MetricFilterValueList", "traits": { - "smithy.api#documentation": "

The values to use for filtering data. Values for metric-level filters can be either a fixed\n set of values or a customized list, depending on the use case.

\n

For valid values of metric-level filters INITIATION_METHOD,\n DISCONNECT_REASON, and ANSWERING_MACHINE_DETECTION_STATUS, see ContactTraceRecord in the Amazon Connect Administrator Guide.

\n

For valid values of the metric-level filter FLOWS_OUTCOME_TYPE, see the description\n for the Flow outcome metric in the Amazon Connect Administrator\n Guide.

" + "smithy.api#documentation": "

The values to use for filtering data. Values for metric-level filters can be either a fixed\n set of values or a customized list, depending on the use case.

\n

For valid values of metric-level filters INITIATION_METHOD,\n DISCONNECT_REASON, and ANSWERING_MACHINE_DETECTION_STATUS, see ContactTraceRecord in the Amazon Connect Administrator Guide.

\n

For valid values of the metric-level filter FLOWS_OUTCOME_TYPE, see the\n description for the Flow outcome metric in the Amazon Connect Administrator\n Guide.

" } }, "Negate": { "target": "com.amazonaws.connect#Boolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

If set to true, the API response contains results that filter out the results matched\n by the metric-level filters condition. By default, Negate is set to false.

" + "smithy.api#documentation": "

If set to true, the API response contains results that filter out the results\n matched by the metric-level filters condition. By default, Negate is set to\n false.

" } } }, @@ -24875,12 +25181,12 @@ "ScreenShare": { "target": "com.amazonaws.connect#ScreenShareCapability", "traits": { - "smithy.api#documentation": "

The screen sharing capability that is enabled for the participant. SEND indicates the participant can share their screen.

" + "smithy.api#documentation": "

The screen sharing capability that is enabled for the participant. SEND\n indicates the participant can share their screen.

" } } }, "traits": { - "smithy.api#documentation": "

The configuration for the allowed video and screen sharing capabilities for participants present over the\n call. For more information, see Set up in-app, web,\n video calling, and screen sharing capabilities in the Amazon Connect Administrator Guide.

" + "smithy.api#documentation": "

The configuration for the allowed video and screen sharing capabilities for participants\n present over the call. For more information, see Set up in-app, web, video calling, and screen\n sharing capabilities in the Amazon Connect Administrator Guide.

" } }, "com.amazonaws.connect#ParticipantDetails": { @@ -29519,6 +29825,14 @@ "target": "com.amazonaws.connect#String" } }, + "com.amazonaws.connect#ResourceVersion": { + "type": "long", + "traits": { + "smithy.api#range": { + "min": 1 + } + } + }, "com.amazonaws.connect#ResumeContact": { "type": "operation", "input": { @@ -34006,7 +34320,7 @@ } ], "traits": { - "smithy.api#documentation": "

Starts screen sharing for a contact. For more information about screen sharing, see Set up in-app, web,\n video calling, and screen sharing capabilities in the Amazon Connect Administrator Guide.

", + "smithy.api#documentation": "

Starts screen sharing for a contact. For more information about screen sharing, see Set up in-app, web,\n video calling, and screen sharing capabilities in the Amazon Connect Administrator\n Guide.

", "smithy.api#http": { "method": "PUT", "uri": "/contact/screen-sharing", @@ -40511,7 +40825,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains information about the identity of a user.

\n \n

For Amazon Connect instances that are created with the EXISTING_DIRECTORY\n identity management type, FirstName, LastName, and Email\n cannot be updated from within Amazon Connect because they are managed by the\n directory.

\n
\n \n

The FirstName and LastName length constraints below apply only to\n instances using SAML for identity management. If you are using Amazon Connect for identity\n management, the length constraints are 1-255 for FirstName, and 1-256 for\n LastName.

\n
" + "smithy.api#documentation": "

Contains information about the identity of a user.

\n \n

For Amazon Connect instances that are created with the EXISTING_DIRECTORY\n identity management type, FirstName, LastName, and Email\n cannot be updated from within Amazon Connect because they are managed by the\n directory.

\n
\n \n

The FirstName and LastName length constraints below apply only to\n instances using SAML for identity management. If you are using Amazon Connect for identity\n management, the length constraints are 1-255 for FirstName, and 1-256 for\n LastName.

\n
" } }, "com.amazonaws.connect#UserIdentityInfoLite": { diff --git a/codegen/sdk-codegen/aws-models/controltower.json b/codegen/sdk-codegen/aws-models/controltower.json index 5a003e8f678..8c105ccec20 100644 --- a/codegen/sdk-codegen/aws-models/controltower.json +++ b/codegen/sdk-codegen/aws-models/controltower.json @@ -2013,6 +2013,12 @@ "smithy.api#required": {} } }, + "parentIdentifier": { + "target": "com.amazonaws.controltower#Arn", + "traits": { + "smithy.api#documentation": "

An ARN that represents the parent EnabledBaseline at the Organizational Unit (OU) level, from which the child EnabledBaseline inherits its configuration. The value is returned by GetEnabledBaseline.

" + } + }, "statusSummary": { "target": "com.amazonaws.controltower#EnablementStatusSummary", "traits": { @@ -2044,6 +2050,12 @@ "traits": { "smithy.api#documentation": "

Identifiers for the Baseline objects returned as part of the filter operation.

" } + }, + "parentIdentifiers": { + "target": "com.amazonaws.controltower#EnabledBaselineParentIdentifiers", + "traits": { + "smithy.api#documentation": "

An optional filter that sets up a list of parentIdentifiers to filter the results of the ListEnabledBaseline output.

" + } } }, "traits": { @@ -2109,6 +2121,18 @@ "target": "com.amazonaws.controltower#EnabledBaselineParameter" } }, + "com.amazonaws.controltower#EnabledBaselineParentIdentifiers": { + "type": "list", + "member": { + "target": "com.amazonaws.controltower#Arn" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 5 + } + } + }, "com.amazonaws.controltower#EnabledBaselineResource": { "type": "resource", "identifiers": { @@ -2172,6 +2196,12 @@ "smithy.api#required": {} } }, + "parentIdentifier": { + "target": "com.amazonaws.controltower#Arn", + "traits": { + "smithy.api#documentation": "

An ARN that represents an object returned by ListEnabledBaseline, to describe an enabled baseline.

" + } + }, "statusSummary": { "target": "com.amazonaws.controltower#EnablementStatusSummary", "traits": { @@ -3548,6 +3578,13 @@ "traits": { "smithy.api#documentation": "

The maximum number of results to be shown.

" } + }, + "includeChildren": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

A value that can be set to include the child enabled baselines in responses. The default value is false.

" + } } }, "traits": { diff --git a/codegen/sdk-codegen/aws-models/cost-optimization-hub.json b/codegen/sdk-codegen/aws-models/cost-optimization-hub.json index 52e9b667e54..f09916e0fbb 100644 --- a/codegen/sdk-codegen/aws-models/cost-optimization-hub.json +++ b/codegen/sdk-codegen/aws-models/cost-optimization-hub.json @@ -111,6 +111,15 @@ "traits": { "smithy.api#enumValue": "MigrateToGraviton" } + }, + "DELETE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Delete", + "smithy.api#tags": [ + "idle" + ] + } } } }, @@ -2353,10 +2362,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains the details of an Amazon RDS DB instance.

", - "smithy.api#tags": [ - "rds" - ] + "smithy.api#documentation": "

Contains the details of an Amazon RDS DB instance.

" } }, "com.amazonaws.costoptimizationhub#RdsDbInstanceConfiguration": { @@ -2387,10 +2393,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains the details of an Amazon RDS DB instance storage.

", - "smithy.api#tags": [ - "rds" - ] + "smithy.api#documentation": "

Contains the details of an Amazon RDS DB instance storage.

" } }, "com.amazonaws.costoptimizationhub#RdsDbInstanceStorageConfiguration": { @@ -3019,19 +3022,13 @@ "rdsDbInstance": { "target": "com.amazonaws.costoptimizationhub#RdsDbInstance", "traits": { - "smithy.api#documentation": "

The DB instance recommendation details.

", - "smithy.api#tags": [ - "rds" - ] + "smithy.api#documentation": "

The DB instance recommendation details.

" } }, "rdsDbInstanceStorage": { "target": "com.amazonaws.costoptimizationhub#RdsDbInstanceStorage", "traits": { - "smithy.api#documentation": "

The DB instance storage recommendation details.

", - "smithy.api#tags": [ - "rds" - ] + "smithy.api#documentation": "

The DB instance storage recommendation details.

" } } }, @@ -3190,19 +3187,13 @@ "RDS_DB_INSTANCE_STORAGE": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "RdsDbInstanceStorage", - "smithy.api#tags": [ - "rds" - ] + "smithy.api#enumValue": "RdsDbInstanceStorage" } }, "RDS_DB_INSTANCE": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "RdsDbInstance", - "smithy.api#tags": [ - "rds" - ] + "smithy.api#enumValue": "RdsDbInstance" } } } diff --git a/codegen/sdk-codegen/aws-models/customer-profiles.json b/codegen/sdk-codegen/aws-models/customer-profiles.json index 3c6672f0a15..048841474e8 100644 --- a/codegen/sdk-codegen/aws-models/customer-profiles.json +++ b/codegen/sdk-codegen/aws-models/customer-profiles.json @@ -224,6 +224,56 @@ "smithy.api#sensitive": {} } }, + "com.amazonaws.customerprofiles#AddressDimension": { + "type": "structure", + "members": { + "City": { + "target": "com.amazonaws.customerprofiles#ProfileDimension", + "traits": { + "smithy.api#documentation": "

The city belonging to the address.

", + "smithy.api#jsonName": "City" + } + }, + "Country": { + "target": "com.amazonaws.customerprofiles#ProfileDimension", + "traits": { + "smithy.api#documentation": "

The country belonging to the address.

", + "smithy.api#jsonName": "Country" + } + }, + "County": { + "target": "com.amazonaws.customerprofiles#ProfileDimension", + "traits": { + "smithy.api#documentation": "

The county belonging to the address.

", + "smithy.api#jsonName": "County" + } + }, + "PostalCode": { + "target": "com.amazonaws.customerprofiles#ProfileDimension", + "traits": { + "smithy.api#documentation": "

The postal code belonging to the address.

", + "smithy.api#jsonName": "PostalCode" + } + }, + "Province": { + "target": "com.amazonaws.customerprofiles#ProfileDimension", + "traits": { + "smithy.api#documentation": "

The province belonging to the address.

", + "smithy.api#jsonName": "Province" + } + }, + "State": { + "target": "com.amazonaws.customerprofiles#ProfileDimension", + "traits": { + "smithy.api#documentation": "

The state belonging to the address.

", + "smithy.api#jsonName": "State" + } + } + }, + "traits": { + "smithy.api#documentation": "

Object that segments on Customer Profile's address object.

" + } + }, "com.amazonaws.customerprofiles#AddressList": { "type": "list", "member": { @@ -404,6 +454,125 @@ "smithy.api#sensitive": {} } }, + "com.amazonaws.customerprofiles#AttributeDimension": { + "type": "structure", + "members": { + "DimensionType": { + "target": "com.amazonaws.customerprofiles#AttributeDimensionType", + "traits": { + "smithy.api#documentation": "

The action to segment with.

", + "smithy.api#jsonName": "DimensionType", + "smithy.api#required": {} + } + }, + "Values": { + "target": "com.amazonaws.customerprofiles#Values", + "traits": { + "smithy.api#documentation": "

The values to apply the DimensionType on.

", + "smithy.api#jsonName": "Values", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Object that segments on various Customer Profile's fields.

" + } + }, + "com.amazonaws.customerprofiles#AttributeDimensionType": { + "type": "enum", + "members": { + "INCLUSIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INCLUSIVE" + } + }, + "EXCLUSIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "EXCLUSIVE" + } + }, + "CONTAINS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CONTAINS" + } + }, + "BEGINS_WITH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "BEGINS_WITH" + } + }, + "ENDS_WITH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENDS_WITH" + } + }, + "BEFORE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "BEFORE" + } + }, + "AFTER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AFTER" + } + }, + "BETWEEN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "BETWEEN" + } + }, + "NOT_BETWEEN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NOT_BETWEEN" + } + }, + "ON": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ON" + } + }, + "GREATER_THAN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "GREATER_THAN" + } + }, + "LESS_THAN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LESS_THAN" + } + }, + "GREATER_THAN_OR_EQUAL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "GREATER_THAN_OR_EQUAL" + } + }, + "LESS_THAN_OR_EQUAL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LESS_THAN_OR_EQUAL" + } + }, + "EQUAL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "EQUAL" + } + } + } + }, "com.amazonaws.customerprofiles#AttributeItem": { "type": "structure", "members": { @@ -431,6 +600,15 @@ } } }, + "com.amazonaws.customerprofiles#AttributeMap": { + "type": "map", + "key": { + "target": "com.amazonaws.customerprofiles#attributeName" + }, + "value": { + "target": "com.amazonaws.customerprofiles#FilterAttributeDimension" + } + }, "com.amazonaws.customerprofiles#AttributeMatchingModel": { "type": "enum", "members": { @@ -490,6 +668,26 @@ "smithy.api#documentation": "

Configuration information about the AttributeTypesSelector where the\n rule-based identity resolution uses to match profiles. You can choose how profiles are\n compared across attribute types and which attribute to use for matching from each type.\n There are three attribute types you can configure:

\n \n

You can either choose ONE_TO_ONE or MANY_TO_MANY as the\n AttributeMatchingModel. When choosing MANY_TO_MANY, the system\n can match attribute across the sub-types of an attribute type. For example, if the value of\n the Email field of Profile A and the value of BusinessEmail field\n of Profile B matches, the two profiles are matched on the Email type. When choosing\n ONE_TO_ONE the system can only match if the sub-types are exact matches.\n For example, only when the value of the Email field of Profile A and the value\n of the Email field of Profile B matches, the two profiles are matched on the\n Email type.

" } }, + "com.amazonaws.customerprofiles#AttributeValueItem": { + "type": "structure", + "members": { + "Value": { + "target": "com.amazonaws.customerprofiles#string1To255", + "traits": { + "smithy.api#documentation": "

An individual value belonging to the given attribute.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

List containing the values for the given attribute.

" + } + }, + "com.amazonaws.customerprofiles#AttributeValueItemList": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#AttributeValueItem" + } + }, "com.amazonaws.customerprofiles#Attributes": { "type": "map", "key": { @@ -570,182 +768,157 @@ "smithy.api#documentation": "

Batch defines the boundaries for ingestion for each step in\n APPFLOW_INTEGRATION workflow. APPFLOW_INTEGRATION workflow\n splits ingestion based on these boundaries.

" } }, - "com.amazonaws.customerprofiles#Batches": { - "type": "list", - "member": { - "target": "com.amazonaws.customerprofiles#Batch" - } - }, - "com.amazonaws.customerprofiles#BucketName": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 3, - "max": 63 + "com.amazonaws.customerprofiles#BatchGetCalculatedAttributeForProfile": { + "type": "operation", + "input": { + "target": "com.amazonaws.customerprofiles#BatchGetCalculatedAttributeForProfileRequest" + }, + "output": { + "target": "com.amazonaws.customerprofiles#BatchGetCalculatedAttributeForProfileResponse" + }, + "errors": [ + { + "target": "com.amazonaws.customerprofiles#AccessDeniedException" }, - "smithy.api#pattern": "^\\S+$" + { + "target": "com.amazonaws.customerprofiles#BadRequestException" + }, + { + "target": "com.amazonaws.customerprofiles#InternalServerException" + }, + { + "target": "com.amazonaws.customerprofiles#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.customerprofiles#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Fetch the possible attribute values given the attribute name.

", + "smithy.api#http": { + "method": "POST", + "uri": "/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}/batch-get-for-profiles", + "code": 200 + } } }, - "com.amazonaws.customerprofiles#BucketPrefix": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 512 + "com.amazonaws.customerprofiles#BatchGetCalculatedAttributeForProfileError": { + "type": "structure", + "members": { + "Code": { + "target": "com.amazonaws.customerprofiles#string1To255", + "traits": { + "smithy.api#documentation": "

Status code for why a specific profile and calculated attribute failed.

", + "smithy.api#required": {} + } }, - "smithy.api#pattern": ".*" + "Message": { + "target": "com.amazonaws.customerprofiles#string1To1000", + "traits": { + "smithy.api#documentation": "

Message describing why a specific profile and calculated attribute failed.

", + "smithy.api#required": {} + } + }, + "ProfileId": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

The profile id that failed.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Error object describing why a specific profile and calculated attribute failed.

" } }, - "com.amazonaws.customerprofiles#CalculatedAttributeDefinitionsList": { + "com.amazonaws.customerprofiles#BatchGetCalculatedAttributeForProfileErrorList": { "type": "list", "member": { - "target": "com.amazonaws.customerprofiles#ListCalculatedAttributeDefinitionItem" - }, - "traits": { - "smithy.api#sensitive": {} + "target": "com.amazonaws.customerprofiles#BatchGetCalculatedAttributeForProfileError" } }, - "com.amazonaws.customerprofiles#CalculatedAttributesForProfileList": { + "com.amazonaws.customerprofiles#BatchGetCalculatedAttributeForProfileIdList": { "type": "list", "member": { - "target": "com.amazonaws.customerprofiles#ListCalculatedAttributeForProfileItem" + "target": "com.amazonaws.customerprofiles#uuid" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + } } }, - "com.amazonaws.customerprofiles#Conditions": { + "com.amazonaws.customerprofiles#BatchGetCalculatedAttributeForProfileRequest": { "type": "structure", "members": { - "Range": { - "target": "com.amazonaws.customerprofiles#Range", + "CalculatedAttributeName": { + "target": "com.amazonaws.customerprofiles#typeName", "traits": { - "smithy.api#documentation": "

The relative time period over which data is included in the aggregation.

" + "smithy.api#documentation": "

The unique name of the calculated attribute.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } }, - "ObjectCount": { - "target": "com.amazonaws.customerprofiles#ObjectCount", + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", "traits": { - "smithy.api#documentation": "

The number of profile objects used for the calculated attribute.

" + "smithy.api#documentation": "

The unique name of the domain.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } }, - "Threshold": { - "target": "com.amazonaws.customerprofiles#Threshold", + "ProfileIds": { + "target": "com.amazonaws.customerprofiles#BatchGetCalculatedAttributeForProfileIdList", "traits": { - "smithy.api#documentation": "

The threshold for the calculated attribute.

" + "smithy.api#documentation": "

List of unique identifiers for customer profiles to retrieve.

", + "smithy.api#required": {} + } + }, + "ConditionOverrides": { + "target": "com.amazonaws.customerprofiles#ConditionOverrides", + "traits": { + "smithy.api#documentation": "

Overrides the condition block within the original calculated attribute definition.

" } } }, "traits": { - "smithy.api#documentation": "

The conditions including range, object count, and threshold for the calculated\n attribute.

", - "smithy.api#sensitive": {} + "smithy.api#input": {} } }, - "com.amazonaws.customerprofiles#ConflictResolution": { + "com.amazonaws.customerprofiles#BatchGetCalculatedAttributeForProfileResponse": { "type": "structure", "members": { - "ConflictResolvingModel": { - "target": "com.amazonaws.customerprofiles#ConflictResolvingModel", + "Errors": { + "target": "com.amazonaws.customerprofiles#BatchGetCalculatedAttributeForProfileErrorList", "traits": { - "smithy.api#documentation": "

How the auto-merging process should resolve conflicts between different profiles.

\n ", - "smithy.api#required": {} + "smithy.api#documentation": "

List of errors for calculated attribute values that could not be retrieved.

" } }, - "SourceName": { - "target": "com.amazonaws.customerprofiles#string1To255", + "CalculatedAttributeValues": { + "target": "com.amazonaws.customerprofiles#CalculatedAttributeValueList", "traits": { - "smithy.api#documentation": "

The ObjectType name that is used to resolve profile merging conflicts when\n choosing SOURCE as the ConflictResolvingModel.

" + "smithy.api#documentation": "

List of calculated attribute values retrieved.

" } - } - }, - "traits": { - "smithy.api#documentation": "

How the auto-merging process should resolve conflicts between different profiles.

" - } - }, - "com.amazonaws.customerprofiles#ConflictResolvingModel": { - "type": "enum", - "members": { - "RECENCY": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "RECENCY" - } - }, - "SOURCE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "SOURCE" - } - } - } - }, - "com.amazonaws.customerprofiles#ConnectorOperator": { - "type": "structure", - "members": { - "Marketo": { - "target": "com.amazonaws.customerprofiles#MarketoConnectorOperator", - "traits": { - "smithy.api#documentation": "

The operation to be performed on the provided Marketo source fields.

" - } - }, - "S3": { - "target": "com.amazonaws.customerprofiles#S3ConnectorOperator", - "traits": { - "smithy.api#documentation": "

The operation to be performed on the provided Amazon S3 source fields.

" - } - }, - "Salesforce": { - "target": "com.amazonaws.customerprofiles#SalesforceConnectorOperator", - "traits": { - "smithy.api#documentation": "

The operation to be performed on the provided Salesforce source fields.

" - } - }, - "ServiceNow": { - "target": "com.amazonaws.customerprofiles#ServiceNowConnectorOperator", - "traits": { - "smithy.api#documentation": "

The operation to be performed on the provided ServiceNow source fields.

" - } - }, - "Zendesk": { - "target": "com.amazonaws.customerprofiles#ZendeskConnectorOperator", - "traits": { - "smithy.api#documentation": "

The operation to be performed on the provided Zendesk source fields.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

The operation to be performed on the provided source fields.

" - } - }, - "com.amazonaws.customerprofiles#ConnectorProfileName": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 256 }, - "smithy.api#pattern": "^[\\w/!@#+=.-]+$" - } - }, - "com.amazonaws.customerprofiles#Consolidation": { - "type": "structure", - "members": { - "MatchingAttributesList": { - "target": "com.amazonaws.customerprofiles#MatchingAttributesList", + "ConditionOverrides": { + "target": "com.amazonaws.customerprofiles#ConditionOverrides", "traits": { - "smithy.api#documentation": "

A list of matching criteria.

", - "smithy.api#required": {} + "smithy.api#documentation": "

Overrides the condition block within the original calculated attribute definition.

" } } }, "traits": { - "smithy.api#documentation": "

The matching criteria to be used during the auto-merging process.

" + "smithy.api#output": {} } }, - "com.amazonaws.customerprofiles#CreateCalculatedAttributeDefinition": { + "com.amazonaws.customerprofiles#BatchGetProfile": { "type": "operation", "input": { - "target": "com.amazonaws.customerprofiles#CreateCalculatedAttributeDefinitionRequest" + "target": "com.amazonaws.customerprofiles#BatchGetProfileRequest" }, "output": { - "target": "com.amazonaws.customerprofiles#CreateCalculatedAttributeDefinitionResponse" + "target": "com.amazonaws.customerprofiles#BatchGetProfileResponse" }, "errors": [ { @@ -765,15 +938,62 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new calculated attribute definition. After creation, new object data ingested\n into Customer Profiles will be included in the calculated attribute, which can be retrieved\n for a profile using the GetCalculatedAttributeForProfile API. Defining a calculated attribute makes it\n available for all profiles within a domain. Each calculated attribute can only reference\n one ObjectType and at most, two fields from that\n ObjectType.

", + "smithy.api#documentation": "

Get a batch of profiles.

", "smithy.api#http": { "method": "POST", - "uri": "/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}", + "uri": "/domains/{DomainName}/batch-get-profiles", "code": 200 } } }, - "com.amazonaws.customerprofiles#CreateCalculatedAttributeDefinitionRequest": { + "com.amazonaws.customerprofiles#BatchGetProfileError": { + "type": "structure", + "members": { + "Code": { + "target": "com.amazonaws.customerprofiles#string1To255", + "traits": { + "smithy.api#documentation": "

Status code for why a specific profile failed.

", + "smithy.api#required": {} + } + }, + "Message": { + "target": "com.amazonaws.customerprofiles#string1To1000", + "traits": { + "smithy.api#documentation": "

Message describing why a specific profile failed.

", + "smithy.api#required": {} + } + }, + "ProfileId": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

The profile id that failed.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Error object describing why a specific profile failed.

" + } + }, + "com.amazonaws.customerprofiles#BatchGetProfileErrorList": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#BatchGetProfileError" + } + }, + "com.amazonaws.customerprofiles#BatchGetProfileIdList": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#uuid" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 20 + } + } + }, + "com.amazonaws.customerprofiles#BatchGetProfileRequest": { "type": "structure", "members": { "DomainName": { @@ -784,58 +1004,105 @@ "smithy.api#required": {} } }, - "CalculatedAttributeName": { - "target": "com.amazonaws.customerprofiles#typeName", + "ProfileIds": { + "target": "com.amazonaws.customerprofiles#BatchGetProfileIdList", "traits": { - "smithy.api#documentation": "

The unique name of the calculated attribute.

", - "smithy.api#httpLabel": {}, + "smithy.api#documentation": "

List of unique identifiers for customer profiles to retrieve.

", "smithy.api#required": {} } - }, - "DisplayName": { - "target": "com.amazonaws.customerprofiles#displayName", + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.customerprofiles#BatchGetProfileResponse": { + "type": "structure", + "members": { + "Errors": { + "target": "com.amazonaws.customerprofiles#BatchGetProfileErrorList", "traits": { - "smithy.api#documentation": "

The display name of the calculated attribute.

" + "smithy.api#documentation": "

For information about the errors that are common to all actions, see Common Errors.

" } }, - "Description": { - "target": "com.amazonaws.customerprofiles#sensitiveText", + "Profiles": { + "target": "com.amazonaws.customerprofiles#ProfileList", "traits": { - "smithy.api#documentation": "

The description of the calculated attribute.

" + "smithy.api#documentation": "

Array of Profile Objects.

" } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.customerprofiles#Batches": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#Batch" + } + }, + "com.amazonaws.customerprofiles#BucketName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 3, + "max": 63 }, - "AttributeDetails": { - "target": "com.amazonaws.customerprofiles#AttributeDetails", - "traits": { - "smithy.api#documentation": "

Mathematical expression and a list of attribute items specified in that\n expression.

", - "smithy.api#required": {} - } + "smithy.api#pattern": "^\\S+$" + } + }, + "com.amazonaws.customerprofiles#BucketPrefix": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 512 }, - "Conditions": { - "target": "com.amazonaws.customerprofiles#Conditions", + "smithy.api#pattern": ".*" + } + }, + "com.amazonaws.customerprofiles#CalculatedAttributeDefinitionsList": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#ListCalculatedAttributeDefinitionItem" + }, + "traits": { + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.customerprofiles#CalculatedAttributeDimension": { + "type": "structure", + "members": { + "DimensionType": { + "target": "com.amazonaws.customerprofiles#AttributeDimensionType", "traits": { - "smithy.api#documentation": "

The conditions including range, object count, and threshold for the calculated\n attribute.

" + "smithy.api#documentation": "

The action to segment with.

", + "smithy.api#jsonName": "DimensionType", + "smithy.api#required": {} } }, - "Statistic": { - "target": "com.amazonaws.customerprofiles#Statistic", + "Values": { + "target": "com.amazonaws.customerprofiles#Values", "traits": { - "smithy.api#documentation": "

The aggregation operation to perform for the calculated attribute.

", + "smithy.api#documentation": "

The values to apply the DimensionType with.

", + "smithy.api#jsonName": "Values", "smithy.api#required": {} } }, - "Tags": { - "target": "com.amazonaws.customerprofiles#TagMap", + "ConditionOverrides": { + "target": "com.amazonaws.customerprofiles#ConditionOverrides", "traits": { - "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" + "smithy.api#documentation": "

Applies the given condition over the initial Calculated Attribute's definition.

", + "smithy.api#jsonName": "ConditionOverrides" } } }, "traits": { - "smithy.api#input": {} + "smithy.api#documentation": "

Object that segments on Customer Profile's Calculated Attributes.

" } }, - "com.amazonaws.customerprofiles#CreateCalculatedAttributeDefinitionResponse": { + "com.amazonaws.customerprofiles#CalculatedAttributeValue": { "type": "structure", "members": { "CalculatedAttributeName": { @@ -850,213 +1117,200 @@ "smithy.api#documentation": "

The display name of the calculated attribute.

" } }, - "Description": { - "target": "com.amazonaws.customerprofiles#sensitiveText", - "traits": { - "smithy.api#documentation": "

The description of the calculated attribute.

" - } - }, - "AttributeDetails": { - "target": "com.amazonaws.customerprofiles#AttributeDetails", - "traits": { - "smithy.api#documentation": "

Mathematical expression and a list of attribute items specified in that\n expression.

" - } - }, - "Conditions": { - "target": "com.amazonaws.customerprofiles#Conditions", - "traits": { - "smithy.api#documentation": "

The conditions including range, object count, and threshold for the calculated\n attribute.

" - } - }, - "Statistic": { - "target": "com.amazonaws.customerprofiles#Statistic", - "traits": { - "smithy.api#documentation": "

The aggregation operation to perform for the calculated attribute.

" - } - }, - "CreatedAt": { - "target": "com.amazonaws.customerprofiles#timestamp", + "IsDataPartial": { + "target": "com.amazonaws.customerprofiles#string1To255", "traits": { - "smithy.api#documentation": "

The timestamp of when the calculated attribute definition was created.

" + "smithy.api#documentation": "

Indicates whether the calculated attribute's value is based on partial data. If the data is partial, it is set to true.

" } }, - "LastUpdatedAt": { - "target": "com.amazonaws.customerprofiles#timestamp", + "ProfileId": { + "target": "com.amazonaws.customerprofiles#uuid", "traits": { - "smithy.api#documentation": "

The timestamp of when the calculated attribute definition was most recently\n edited.

" + "smithy.api#documentation": "

The profile id belonging to this calculated attribute value.

" } }, - "Tags": { - "target": "com.amazonaws.customerprofiles#TagMap", + "Value": { + "target": "com.amazonaws.customerprofiles#string1To255", "traits": { - "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" + "smithy.api#documentation": "

The value of the calculated attribute.

" } } }, "traits": { - "smithy.api#output": {} + "smithy.api#documentation": "

The object containing the values of a single calculated attribute value.

" } }, - "com.amazonaws.customerprofiles#CreateDomain": { - "type": "operation", - "input": { - "target": "com.amazonaws.customerprofiles#CreateDomainRequest" - }, - "output": { - "target": "com.amazonaws.customerprofiles#CreateDomainResponse" - }, - "errors": [ - { - "target": "com.amazonaws.customerprofiles#AccessDeniedException" - }, - { - "target": "com.amazonaws.customerprofiles#BadRequestException" - }, - { - "target": "com.amazonaws.customerprofiles#InternalServerException" - }, - { - "target": "com.amazonaws.customerprofiles#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.customerprofiles#ThrottlingException" - } - ], - "traits": { - "smithy.api#documentation": "

Creates a domain, which is a container for all customer data, such as customer profile\n attributes, object types, profile keys, and encryption keys. You can create multiple\n domains, and each domain can have multiple third-party integrations.

\n

Each Amazon Connect instance can be associated with only one domain. Multiple\n Amazon Connect instances can be associated with one domain.

\n

Use this API or UpdateDomain to\n enable identity\n resolution: set Matching to true.

\n

To prevent cross-service impersonation when you call this API, see Cross-service confused deputy prevention for sample policies that you should\n apply.

\n \n

It is not possible to associate a Customer Profiles domain with an Amazon Connect Instance directly from\n the API. If you would like to create a domain and associate a Customer Profiles domain, use the Amazon Connect\n admin website. For more information, see Enable Customer Profiles.

\n

Each Amazon Connect instance can be associated with only one domain. Multiple Amazon Connect instances\n can be associated with one domain.

\n
", - "smithy.api#http": { - "method": "POST", - "uri": "/domains/{DomainName}", - "code": 200 - } + "com.amazonaws.customerprofiles#CalculatedAttributeValueList": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#CalculatedAttributeValue" } }, - "com.amazonaws.customerprofiles#CreateDomainRequest": { + "com.amazonaws.customerprofiles#CalculatedAttributesForProfileList": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#ListCalculatedAttributeForProfileItem" + } + }, + "com.amazonaws.customerprofiles#CalculatedCustomAttributes": { + "type": "map", + "key": { + "target": "com.amazonaws.customerprofiles#typeName" + }, + "value": { + "target": "com.amazonaws.customerprofiles#CalculatedAttributeDimension" + } + }, + "com.amazonaws.customerprofiles#ConditionOverrides": { "type": "structure", "members": { - "DomainName": { - "target": "com.amazonaws.customerprofiles#name", - "traits": { - "smithy.api#documentation": "

The unique name of the domain.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "DefaultExpirationDays": { - "target": "com.amazonaws.customerprofiles#expirationDaysInteger", + "Range": { + "target": "com.amazonaws.customerprofiles#RangeOverride", "traits": { - "smithy.api#documentation": "

The default number of days until the data within the domain expires.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The relative time period over which data is included in the aggregation for this override.

" } - }, - "DefaultEncryptionKey": { - "target": "com.amazonaws.customerprofiles#encryptionKey", + } + }, + "traits": { + "smithy.api#documentation": "

An object to override the original condition block of a calculated attribute.

", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.customerprofiles#Conditions": { + "type": "structure", + "members": { + "Range": { + "target": "com.amazonaws.customerprofiles#Range", "traits": { - "smithy.api#documentation": "

The default encryption key, which is an AWS managed key, is used when no specific type\n of encryption key is specified. It is used to encrypt all data before it is placed in\n permanent or semi-permanent storage.

" + "smithy.api#documentation": "

The relative time period over which data is included in the aggregation.

" } }, - "DeadLetterQueueUrl": { - "target": "com.amazonaws.customerprofiles#sqsQueueUrl", + "ObjectCount": { + "target": "com.amazonaws.customerprofiles#ObjectCount", "traits": { - "smithy.api#documentation": "

The URL of the SQS dead letter queue, which is used for reporting errors associated with\n ingesting data from third party applications. You must set up a policy on the\n DeadLetterQueue for the SendMessage operation to enable Amazon Connect Customer Profiles to send\n messages to the DeadLetterQueue.

" + "smithy.api#documentation": "

The number of profile objects used for the calculated attribute.

" } }, - "Matching": { - "target": "com.amazonaws.customerprofiles#MatchingRequest", + "Threshold": { + "target": "com.amazonaws.customerprofiles#Threshold", "traits": { - "smithy.api#documentation": "

The process of matching duplicate profiles. If Matching = true, Amazon Connect Customer Profiles starts a weekly\nbatch process called Identity Resolution Job. If you do not specify a date and time for Identity Resolution Job to run, by default it runs every \nSaturday at 12AM UTC to detect duplicate profiles in your domains.

\n

After the Identity Resolution Job completes, use the \nGetMatches\nAPI to return and review the results. Or, if you have configured ExportingConfig in the MatchingRequest, you can download the results from\nS3.

" + "smithy.api#documentation": "

The threshold for the calculated attribute.

" } - }, - "RuleBasedMatching": { - "target": "com.amazonaws.customerprofiles#RuleBasedMatchingRequest", + } + }, + "traits": { + "smithy.api#documentation": "

The conditions including range, object count, and threshold for the calculated\n attribute.

", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.customerprofiles#ConflictResolution": { + "type": "structure", + "members": { + "ConflictResolvingModel": { + "target": "com.amazonaws.customerprofiles#ConflictResolvingModel", "traits": { - "smithy.api#documentation": "

The process of matching duplicate profiles using the Rule-Based matching. If\n RuleBasedMatching = true, Amazon Connect Customer Profiles will start\n to match and merge your profiles according to your configuration in the\n RuleBasedMatchingRequest. You can use the ListRuleBasedMatches\n and GetSimilarProfiles API to return and review the results. Also, if you have\n configured ExportingConfig in the RuleBasedMatchingRequest, you\n can download the results from S3.

" + "smithy.api#documentation": "

How the auto-merging process should resolve conflicts between different profiles.

\n ", + "smithy.api#required": {} } }, - "Tags": { - "target": "com.amazonaws.customerprofiles#TagMap", + "SourceName": { + "target": "com.amazonaws.customerprofiles#string1To255", "traits": { - "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" + "smithy.api#documentation": "

The ObjectType name that is used to resolve profile merging conflicts when\n choosing SOURCE as the ConflictResolvingModel.

" } } }, "traits": { - "smithy.api#input": {} + "smithy.api#documentation": "

How the auto-merging process should resolve conflicts between different profiles.

" } }, - "com.amazonaws.customerprofiles#CreateDomainResponse": { - "type": "structure", + "com.amazonaws.customerprofiles#ConflictResolvingModel": { + "type": "enum", "members": { - "DomainName": { - "target": "com.amazonaws.customerprofiles#name", + "RECENCY": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "

The unique name of the domain.

", - "smithy.api#required": {} + "smithy.api#enumValue": "RECENCY" } }, - "DefaultExpirationDays": { - "target": "com.amazonaws.customerprofiles#expirationDaysInteger", + "SOURCE": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "

The default number of days until the data within the domain expires.

", - "smithy.api#required": {} + "smithy.api#enumValue": "SOURCE" } - }, - "DefaultEncryptionKey": { - "target": "com.amazonaws.customerprofiles#encryptionKey", + } + } + }, + "com.amazonaws.customerprofiles#ConnectorOperator": { + "type": "structure", + "members": { + "Marketo": { + "target": "com.amazonaws.customerprofiles#MarketoConnectorOperator", "traits": { - "smithy.api#documentation": "

The default encryption key, which is an AWS managed key, is used when no specific type\n of encryption key is specified. It is used to encrypt all data before it is placed in\n permanent or semi-permanent storage.

" + "smithy.api#documentation": "

The operation to be performed on the provided Marketo source fields.

" } }, - "DeadLetterQueueUrl": { - "target": "com.amazonaws.customerprofiles#sqsQueueUrl", + "S3": { + "target": "com.amazonaws.customerprofiles#S3ConnectorOperator", "traits": { - "smithy.api#documentation": "

The URL of the SQS dead letter queue, which is used for reporting errors associated with\n ingesting data from third party applications.

" + "smithy.api#documentation": "

The operation to be performed on the provided Amazon S3 source fields.

" } }, - "Matching": { - "target": "com.amazonaws.customerprofiles#MatchingResponse", + "Salesforce": { + "target": "com.amazonaws.customerprofiles#SalesforceConnectorOperator", "traits": { - "smithy.api#documentation": "

The process of matching duplicate profiles. If Matching = true, Amazon Connect Customer Profiles starts a weekly\nbatch process called Identity Resolution Job. If you do not specify a date and time for Identity Resolution Job to run, by default it runs every \nSaturday at 12AM UTC to detect duplicate profiles in your domains.

\n

After the Identity Resolution Job completes, use the \nGetMatches\nAPI to return and review the results. Or, if you have configured ExportingConfig in the MatchingRequest, you can download the results from\nS3.

" + "smithy.api#documentation": "

The operation to be performed on the provided Salesforce source fields.

" } }, - "RuleBasedMatching": { - "target": "com.amazonaws.customerprofiles#RuleBasedMatchingResponse", + "ServiceNow": { + "target": "com.amazonaws.customerprofiles#ServiceNowConnectorOperator", "traits": { - "smithy.api#documentation": "

The process of matching duplicate profiles using the Rule-Based matching. If\n RuleBasedMatching = true, Amazon Connect Customer Profiles will start\n to match and merge your profiles according to your configuration in the\n RuleBasedMatchingRequest. You can use the ListRuleBasedMatches\n and GetSimilarProfiles API to return and review the results. Also, if you have\n configured ExportingConfig in the RuleBasedMatchingRequest, you\n can download the results from S3.

" + "smithy.api#documentation": "

The operation to be performed on the provided ServiceNow source fields.

" } }, - "CreatedAt": { - "target": "com.amazonaws.customerprofiles#timestamp", + "Zendesk": { + "target": "com.amazonaws.customerprofiles#ZendeskConnectorOperator", "traits": { - "smithy.api#documentation": "

The timestamp of when the domain was created.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The operation to be performed on the provided Zendesk source fields.

" } + } + }, + "traits": { + "smithy.api#documentation": "

The operation to be performed on the provided source fields.

" + } + }, + "com.amazonaws.customerprofiles#ConnectorProfileName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 256 }, - "LastUpdatedAt": { - "target": "com.amazonaws.customerprofiles#timestamp", + "smithy.api#pattern": "^[\\w/!@#+=.-]+$" + } + }, + "com.amazonaws.customerprofiles#Consolidation": { + "type": "structure", + "members": { + "MatchingAttributesList": { + "target": "com.amazonaws.customerprofiles#MatchingAttributesList", "traits": { - "smithy.api#documentation": "

The timestamp of when the domain was most recently edited.

", + "smithy.api#documentation": "

A list of matching criteria.

", "smithy.api#required": {} } - }, - "Tags": { - "target": "com.amazonaws.customerprofiles#TagMap", - "traits": { - "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" - } } }, "traits": { - "smithy.api#output": {} + "smithy.api#documentation": "

The matching criteria to be used during the auto-merging process.

" } }, - "com.amazonaws.customerprofiles#CreateEventStream": { + "com.amazonaws.customerprofiles#CreateCalculatedAttributeDefinition": { "type": "operation", "input": { - "target": "com.amazonaws.customerprofiles#CreateEventStreamRequest" + "target": "com.amazonaws.customerprofiles#CreateCalculatedAttributeDefinitionRequest" }, "output": { - "target": "com.amazonaws.customerprofiles#CreateEventStreamResponse" + "target": "com.amazonaws.customerprofiles#CreateCalculatedAttributeDefinitionResponse" }, "errors": [ { @@ -1076,15 +1330,15 @@ } ], "traits": { - "smithy.api#documentation": "

Creates an event stream, which is a subscription to real-time events, such as when\n profiles are created and updated through Amazon Connect Customer Profiles.

\n

Each event stream can be associated with only one Kinesis Data Stream destination in the\n same region and Amazon Web Services account as the customer profiles domain

", + "smithy.api#documentation": "

Creates a new calculated attribute definition. After creation, new object data ingested\n into Customer Profiles will be included in the calculated attribute, which can be retrieved\n for a profile using the GetCalculatedAttributeForProfile API. Defining a calculated attribute makes it\n available for all profiles within a domain. Each calculated attribute can only reference\n one ObjectType and at most, two fields from that\n ObjectType.

", "smithy.api#http": { "method": "POST", - "uri": "/domains/{DomainName}/event-streams/{EventStreamName}", + "uri": "/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}", "code": 200 } } }, - "com.amazonaws.customerprofiles#CreateEventStreamRequest": { + "com.amazonaws.customerprofiles#CreateCalculatedAttributeDefinitionRequest": { "type": "structure", "members": { "DomainName": { @@ -1095,39 +1349,49 @@ "smithy.api#required": {} } }, - "Uri": { - "target": "com.amazonaws.customerprofiles#string1To255", + "CalculatedAttributeName": { + "target": "com.amazonaws.customerprofiles#typeName", "traits": { - "smithy.api#documentation": "

The StreamARN of the destination to deliver profile events to. For example,\n arn:aws:kinesis:region:account-id:stream/stream-name

", + "smithy.api#documentation": "

The unique name of the calculated attribute.

", + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "EventStreamName": { - "target": "com.amazonaws.customerprofiles#name", + "DisplayName": { + "target": "com.amazonaws.customerprofiles#displayName", "traits": { - "smithy.api#documentation": "

The name of the event stream.

", - "smithy.api#httpLabel": {}, + "smithy.api#documentation": "

The display name of the calculated attribute.

" + } + }, + "Description": { + "target": "com.amazonaws.customerprofiles#sensitiveText", + "traits": { + "smithy.api#documentation": "

The description of the calculated attribute.

" + } + }, + "AttributeDetails": { + "target": "com.amazonaws.customerprofiles#AttributeDetails", + "traits": { + "smithy.api#documentation": "

Mathematical expression and a list of attribute items specified in that\n expression.

", "smithy.api#required": {} } }, - "Tags": { - "target": "com.amazonaws.customerprofiles#TagMap", + "Conditions": { + "target": "com.amazonaws.customerprofiles#Conditions", "traits": { - "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" + "smithy.api#documentation": "

The conditions including range, object count, and threshold for the calculated\n attribute.

" } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.customerprofiles#CreateEventStreamResponse": { - "type": "structure", - "members": { - "EventStreamArn": { - "target": "com.amazonaws.customerprofiles#string1To255", + }, + "Filter": { + "target": "com.amazonaws.customerprofiles#Filter", "traits": { - "smithy.api#documentation": "

A unique identifier for the event stream.

", + "smithy.api#documentation": "

Defines how to filter incoming objects to include part of the Calculated Attribute.

" + } + }, + "Statistic": { + "target": "com.amazonaws.customerprofiles#Statistic", + "traits": { + "smithy.api#documentation": "

The aggregation operation to perform for the calculated attribute.

", "smithy.api#required": {} } }, @@ -1139,16 +1403,84 @@ } }, "traits": { - "smithy.api#output": {} + "smithy.api#input": {} } }, - "com.amazonaws.customerprofiles#CreateIntegrationWorkflow": { + "com.amazonaws.customerprofiles#CreateCalculatedAttributeDefinitionResponse": { + "type": "structure", + "members": { + "CalculatedAttributeName": { + "target": "com.amazonaws.customerprofiles#typeName", + "traits": { + "smithy.api#documentation": "

The unique name of the calculated attribute.

" + } + }, + "DisplayName": { + "target": "com.amazonaws.customerprofiles#displayName", + "traits": { + "smithy.api#documentation": "

The display name of the calculated attribute.

" + } + }, + "Description": { + "target": "com.amazonaws.customerprofiles#sensitiveText", + "traits": { + "smithy.api#documentation": "

The description of the calculated attribute.

" + } + }, + "AttributeDetails": { + "target": "com.amazonaws.customerprofiles#AttributeDetails", + "traits": { + "smithy.api#documentation": "

Mathematical expression and a list of attribute items specified in that\n expression.

" + } + }, + "Conditions": { + "target": "com.amazonaws.customerprofiles#Conditions", + "traits": { + "smithy.api#documentation": "

The conditions including range, object count, and threshold for the calculated\n attribute.

" + } + }, + "Filter": { + "target": "com.amazonaws.customerprofiles#Filter", + "traits": { + "smithy.api#documentation": "

The filter that was used as part of the request.

" + } + }, + "Statistic": { + "target": "com.amazonaws.customerprofiles#Statistic", + "traits": { + "smithy.api#documentation": "

The aggregation operation to perform for the calculated attribute.

" + } + }, + "CreatedAt": { + "target": "com.amazonaws.customerprofiles#timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp of when the calculated attribute definition was created.

" + } + }, + "LastUpdatedAt": { + "target": "com.amazonaws.customerprofiles#timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp of when the calculated attribute definition was most recently\n edited.

" + } + }, + "Tags": { + "target": "com.amazonaws.customerprofiles#TagMap", + "traits": { + "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.customerprofiles#CreateDomain": { "type": "operation", "input": { - "target": "com.amazonaws.customerprofiles#CreateIntegrationWorkflowRequest" + "target": "com.amazonaws.customerprofiles#CreateDomainRequest" }, "output": { - "target": "com.amazonaws.customerprofiles#CreateIntegrationWorkflowResponse" + "target": "com.amazonaws.customerprofiles#CreateDomainResponse" }, "errors": [ { @@ -1168,15 +1500,15 @@ } ], "traits": { - "smithy.api#documentation": "

Creates an integration workflow. An integration workflow is an async process which\n ingests historic data and sets up an integration for ongoing updates. The supported Amazon AppFlow sources are Salesforce, ServiceNow, and Marketo.

", + "smithy.api#documentation": "

Creates a domain, which is a container for all customer data, such as customer profile\n attributes, object types, profile keys, and encryption keys. You can create multiple\n domains, and each domain can have multiple third-party integrations.

\n

Each Amazon Connect instance can be associated with only one domain. Multiple\n Amazon Connect instances can be associated with one domain.

\n

Use this API or UpdateDomain to\n enable identity\n resolution: set Matching to true.

\n

To prevent cross-service impersonation when you call this API, see Cross-service confused deputy prevention for sample policies that you should\n apply.

\n \n

It is not possible to associate a Customer Profiles domain with an Amazon Connect Instance directly from\n the API. If you would like to create a domain and associate a Customer Profiles domain, use the Amazon Connect\n admin website. For more information, see Enable Customer Profiles.

\n

Each Amazon Connect instance can be associated with only one domain. Multiple Amazon Connect instances\n can be associated with one domain.

\n
", "smithy.api#http": { "method": "POST", - "uri": "/domains/{DomainName}/workflows/integrations", + "uri": "/domains/{DomainName}", "code": 200 } } }, - "com.amazonaws.customerprofiles#CreateIntegrationWorkflowRequest": { + "com.amazonaws.customerprofiles#CreateDomainRequest": { "type": "structure", "members": { "DomainName": { @@ -1187,32 +1519,35 @@ "smithy.api#required": {} } }, - "WorkflowType": { - "target": "com.amazonaws.customerprofiles#WorkflowType", + "DefaultExpirationDays": { + "target": "com.amazonaws.customerprofiles#expirationDaysInteger", "traits": { - "smithy.api#documentation": "

The type of workflow. The only supported value is APPFLOW_INTEGRATION.

", + "smithy.api#documentation": "

The default number of days until the data within the domain expires.

", "smithy.api#required": {} } }, - "IntegrationConfig": { - "target": "com.amazonaws.customerprofiles#IntegrationConfig", + "DefaultEncryptionKey": { + "target": "com.amazonaws.customerprofiles#encryptionKey", "traits": { - "smithy.api#documentation": "

Configuration data for integration workflow.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The default encryption key, which is an AWS managed key, is used when no specific type\n of encryption key is specified. It is used to encrypt all data before it is placed in\n permanent or semi-permanent storage.

" } }, - "ObjectTypeName": { - "target": "com.amazonaws.customerprofiles#typeName", + "DeadLetterQueueUrl": { + "target": "com.amazonaws.customerprofiles#sqsQueueUrl", "traits": { - "smithy.api#documentation": "

The name of the profile object type.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The URL of the SQS dead letter queue, which is used for reporting errors associated with\n ingesting data from third party applications. You must set up a policy on the\n DeadLetterQueue for the SendMessage operation to enable Amazon Connect Customer Profiles to send\n messages to the DeadLetterQueue.

" } }, - "RoleArn": { - "target": "com.amazonaws.customerprofiles#RoleArn", + "Matching": { + "target": "com.amazonaws.customerprofiles#MatchingRequest", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role. Customer Profiles assumes this role to create resources on your behalf as part of workflow execution.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The process of matching duplicate profiles. If Matching = true, Amazon Connect Customer Profiles starts a weekly\nbatch process called Identity Resolution Job. If you do not specify a date and time for Identity Resolution Job to run, by default it runs every \nSaturday at 12AM UTC to detect duplicate profiles in your domains.

\n

After the Identity Resolution Job completes, use the \nGetMatches\nAPI to return and review the results. Or, if you have configured ExportingConfig in the MatchingRequest, you can download the results from\nS3.

" + } + }, + "RuleBasedMatching": { + "target": "com.amazonaws.customerprofiles#RuleBasedMatchingRequest", + "traits": { + "smithy.api#documentation": "

The process of matching duplicate profiles using the Rule-Based matching. If\n RuleBasedMatching = true, Amazon Connect Customer Profiles will start\n to match and merge your profiles according to your configuration in the\n RuleBasedMatchingRequest. You can use the ListRuleBasedMatches\n and GetSimilarProfiles API to return and review the results. Also, if you have\n configured ExportingConfig in the RuleBasedMatchingRequest, you\n can download the results from S3.

" } }, "Tags": { @@ -1226,35 +1561,79 @@ "smithy.api#input": {} } }, - "com.amazonaws.customerprofiles#CreateIntegrationWorkflowResponse": { + "com.amazonaws.customerprofiles#CreateDomainResponse": { "type": "structure", "members": { - "WorkflowId": { - "target": "com.amazonaws.customerprofiles#uuid", + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", "traits": { - "smithy.api#documentation": "

Unique identifier for the workflow.

", + "smithy.api#documentation": "

The unique name of the domain.

", "smithy.api#required": {} } }, - "Message": { - "target": "com.amazonaws.customerprofiles#string1To255", + "DefaultExpirationDays": { + "target": "com.amazonaws.customerprofiles#expirationDaysInteger", "traits": { - "smithy.api#documentation": "

A message indicating create request was received.

", + "smithy.api#documentation": "

The default number of days until the data within the domain expires.

", + "smithy.api#required": {} + } + }, + "DefaultEncryptionKey": { + "target": "com.amazonaws.customerprofiles#encryptionKey", + "traits": { + "smithy.api#documentation": "

The default encryption key, which is an AWS managed key, is used when no specific type\n of encryption key is specified. It is used to encrypt all data before it is placed in\n permanent or semi-permanent storage.

" + } + }, + "DeadLetterQueueUrl": { + "target": "com.amazonaws.customerprofiles#sqsQueueUrl", + "traits": { + "smithy.api#documentation": "

The URL of the SQS dead letter queue, which is used for reporting errors associated with\n ingesting data from third party applications.

" + } + }, + "Matching": { + "target": "com.amazonaws.customerprofiles#MatchingResponse", + "traits": { + "smithy.api#documentation": "

The process of matching duplicate profiles. If Matching = true, Amazon Connect Customer Profiles starts a weekly\nbatch process called Identity Resolution Job. If you do not specify a date and time for Identity Resolution Job to run, by default it runs every \nSaturday at 12AM UTC to detect duplicate profiles in your domains.

\n

After the Identity Resolution Job completes, use the \nGetMatches\nAPI to return and review the results. Or, if you have configured ExportingConfig in the MatchingRequest, you can download the results from\nS3.

" + } + }, + "RuleBasedMatching": { + "target": "com.amazonaws.customerprofiles#RuleBasedMatchingResponse", + "traits": { + "smithy.api#documentation": "

The process of matching duplicate profiles using the Rule-Based matching. If\n RuleBasedMatching = true, Amazon Connect Customer Profiles will start\n to match and merge your profiles according to your configuration in the\n RuleBasedMatchingRequest. You can use the ListRuleBasedMatches\n and GetSimilarProfiles API to return and review the results. Also, if you have\n configured ExportingConfig in the RuleBasedMatchingRequest, you\n can download the results from S3.

" + } + }, + "CreatedAt": { + "target": "com.amazonaws.customerprofiles#timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp of when the domain was created.

", + "smithy.api#required": {} + } + }, + "LastUpdatedAt": { + "target": "com.amazonaws.customerprofiles#timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp of when the domain was most recently edited.

", "smithy.api#required": {} } + }, + "Tags": { + "target": "com.amazonaws.customerprofiles#TagMap", + "traits": { + "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" + } } }, "traits": { "smithy.api#output": {} } }, - "com.amazonaws.customerprofiles#CreateProfile": { + "com.amazonaws.customerprofiles#CreateEventStream": { "type": "operation", "input": { - "target": "com.amazonaws.customerprofiles#CreateProfileRequest" + "target": "com.amazonaws.customerprofiles#CreateEventStreamRequest" }, "output": { - "target": "com.amazonaws.customerprofiles#CreateProfileResponse" + "target": "com.amazonaws.customerprofiles#CreateEventStreamResponse" }, "errors": [ { @@ -1274,15 +1653,15 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a standard profile.

\n

A standard profile represents the following attributes for a customer profile in a\n domain.

", + "smithy.api#documentation": "

Creates an event stream, which is a subscription to real-time events, such as when\n profiles are created and updated through Amazon Connect Customer Profiles.

\n

Each event stream can be associated with only one Kinesis Data Stream destination in the\n same region and Amazon Web Services account as the customer profiles domain

", "smithy.api#http": { "method": "POST", - "uri": "/domains/{DomainName}/profiles", + "uri": "/domains/{DomainName}/event-streams/{EventStreamName}", "code": 200 } } }, - "com.amazonaws.customerprofiles#CreateProfileRequest": { + "com.amazonaws.customerprofiles#CreateEventStreamRequest": { "type": "structure", "members": { "DomainName": { @@ -1293,50 +1672,248 @@ "smithy.api#required": {} } }, - "AccountNumber": { - "target": "com.amazonaws.customerprofiles#sensitiveString1To255", + "Uri": { + "target": "com.amazonaws.customerprofiles#string1To255", "traits": { - "smithy.api#documentation": "

An account number that you have given to the customer.

" + "smithy.api#documentation": "

The StreamARN of the destination to deliver profile events to. For example,\n arn:aws:kinesis:region:account-id:stream/stream-name

", + "smithy.api#required": {} } }, - "AdditionalInformation": { - "target": "com.amazonaws.customerprofiles#sensitiveString1To1000", + "EventStreamName": { + "target": "com.amazonaws.customerprofiles#name", "traits": { - "smithy.api#documentation": "

Any additional information relevant to the customer’s profile.

" + "smithy.api#documentation": "

The name of the event stream.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } }, - "PartyType": { - "target": "com.amazonaws.customerprofiles#PartyType", + "Tags": { + "target": "com.amazonaws.customerprofiles#TagMap", "traits": { - "smithy.api#documentation": "

The type of profile used to describe the customer.

" + "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" } - }, - "BusinessName": { - "target": "com.amazonaws.customerprofiles#sensitiveString1To255", + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.customerprofiles#CreateEventStreamResponse": { + "type": "structure", + "members": { + "EventStreamArn": { + "target": "com.amazonaws.customerprofiles#string1To255", "traits": { - "smithy.api#documentation": "

The name of the customer’s business.

" + "smithy.api#documentation": "

A unique identifier for the event stream.

", + "smithy.api#required": {} } }, - "FirstName": { - "target": "com.amazonaws.customerprofiles#sensitiveString1To255", + "Tags": { + "target": "com.amazonaws.customerprofiles#TagMap", "traits": { - "smithy.api#documentation": "

The customer’s first name.

" + "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.customerprofiles#CreateIntegrationWorkflow": { + "type": "operation", + "input": { + "target": "com.amazonaws.customerprofiles#CreateIntegrationWorkflowRequest" + }, + "output": { + "target": "com.amazonaws.customerprofiles#CreateIntegrationWorkflowResponse" + }, + "errors": [ + { + "target": "com.amazonaws.customerprofiles#AccessDeniedException" }, - "MiddleName": { - "target": "com.amazonaws.customerprofiles#sensitiveString1To255", - "traits": { - "smithy.api#documentation": "

The customer’s middle name.

" - } + { + "target": "com.amazonaws.customerprofiles#BadRequestException" }, - "LastName": { - "target": "com.amazonaws.customerprofiles#sensitiveString1To255", - "traits": { - "smithy.api#documentation": "

The customer’s last name.

" - } + { + "target": "com.amazonaws.customerprofiles#InternalServerException" }, - "BirthDate": { - "target": "com.amazonaws.customerprofiles#sensitiveString1To255", + { + "target": "com.amazonaws.customerprofiles#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.customerprofiles#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates an integration workflow. An integration workflow is an async process which\n ingests historic data and sets up an integration for ongoing updates. The supported Amazon AppFlow sources are Salesforce, ServiceNow, and Marketo.

", + "smithy.api#http": { + "method": "POST", + "uri": "/domains/{DomainName}/workflows/integrations", + "code": 200 + } + } + }, + "com.amazonaws.customerprofiles#CreateIntegrationWorkflowRequest": { + "type": "structure", + "members": { + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

The unique name of the domain.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "WorkflowType": { + "target": "com.amazonaws.customerprofiles#WorkflowType", + "traits": { + "smithy.api#documentation": "

The type of workflow. The only supported value is APPFLOW_INTEGRATION.

", + "smithy.api#required": {} + } + }, + "IntegrationConfig": { + "target": "com.amazonaws.customerprofiles#IntegrationConfig", + "traits": { + "smithy.api#documentation": "

Configuration data for integration workflow.

", + "smithy.api#required": {} + } + }, + "ObjectTypeName": { + "target": "com.amazonaws.customerprofiles#typeName", + "traits": { + "smithy.api#documentation": "

The name of the profile object type.

", + "smithy.api#required": {} + } + }, + "RoleArn": { + "target": "com.amazonaws.customerprofiles#RoleArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role. Customer Profiles assumes this role to create resources on your behalf as part of workflow execution.

", + "smithy.api#required": {} + } + }, + "Tags": { + "target": "com.amazonaws.customerprofiles#TagMap", + "traits": { + "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.customerprofiles#CreateIntegrationWorkflowResponse": { + "type": "structure", + "members": { + "WorkflowId": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

Unique identifier for the workflow.

", + "smithy.api#required": {} + } + }, + "Message": { + "target": "com.amazonaws.customerprofiles#string1To255", + "traits": { + "smithy.api#documentation": "

A message indicating create request was received.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.customerprofiles#CreateProfile": { + "type": "operation", + "input": { + "target": "com.amazonaws.customerprofiles#CreateProfileRequest" + }, + "output": { + "target": "com.amazonaws.customerprofiles#CreateProfileResponse" + }, + "errors": [ + { + "target": "com.amazonaws.customerprofiles#AccessDeniedException" + }, + { + "target": "com.amazonaws.customerprofiles#BadRequestException" + }, + { + "target": "com.amazonaws.customerprofiles#InternalServerException" + }, + { + "target": "com.amazonaws.customerprofiles#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.customerprofiles#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a standard profile.

\n

A standard profile represents the following attributes for a customer profile in a\n domain.

", + "smithy.api#http": { + "method": "POST", + "uri": "/domains/{DomainName}/profiles", + "code": 200 + } + } + }, + "com.amazonaws.customerprofiles#CreateProfileRequest": { + "type": "structure", + "members": { + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

The unique name of the domain.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "AccountNumber": { + "target": "com.amazonaws.customerprofiles#sensitiveString1To255", + "traits": { + "smithy.api#documentation": "

An account number that you have given to the customer.

" + } + }, + "AdditionalInformation": { + "target": "com.amazonaws.customerprofiles#sensitiveString1To1000", + "traits": { + "smithy.api#documentation": "

Any additional information relevant to the customer’s profile.

" + } + }, + "PartyType": { + "target": "com.amazonaws.customerprofiles#PartyType", + "traits": { + "smithy.api#documentation": "

The type of profile used to describe the customer.

" + } + }, + "BusinessName": { + "target": "com.amazonaws.customerprofiles#sensitiveString1To255", + "traits": { + "smithy.api#documentation": "

The name of the customer’s business.

" + } + }, + "FirstName": { + "target": "com.amazonaws.customerprofiles#sensitiveString1To255", + "traits": { + "smithy.api#documentation": "

The customer’s first name.

" + } + }, + "MiddleName": { + "target": "com.amazonaws.customerprofiles#sensitiveString1To255", + "traits": { + "smithy.api#documentation": "

The customer’s middle name.

" + } + }, + "LastName": { + "target": "com.amazonaws.customerprofiles#sensitiveString1To255", + "traits": { + "smithy.api#documentation": "

The customer’s last name.

" + } + }, + "BirthDate": { + "target": "com.amazonaws.customerprofiles#sensitiveString1To255", "traits": { "smithy.api#documentation": "

The customer’s birth date.

" } @@ -1451,177 +2028,544 @@ "smithy.api#output": {} } }, - "com.amazonaws.customerprofiles#CustomerProfiles_20200815": { - "type": "service", - "version": "2020-08-15", - "operations": [ - { - "target": "com.amazonaws.customerprofiles#AddProfileKey" - }, - { - "target": "com.amazonaws.customerprofiles#CreateCalculatedAttributeDefinition" - }, - { - "target": "com.amazonaws.customerprofiles#CreateDomain" - }, - { - "target": "com.amazonaws.customerprofiles#CreateEventStream" - }, + "com.amazonaws.customerprofiles#CreateSegmentDefinition": { + "type": "operation", + "input": { + "target": "com.amazonaws.customerprofiles#CreateSegmentDefinitionRequest" + }, + "output": { + "target": "com.amazonaws.customerprofiles#CreateSegmentDefinitionResponse" + }, + "errors": [ { - "target": "com.amazonaws.customerprofiles#CreateIntegrationWorkflow" + "target": "com.amazonaws.customerprofiles#AccessDeniedException" }, { - "target": "com.amazonaws.customerprofiles#CreateProfile" + "target": "com.amazonaws.customerprofiles#BadRequestException" }, { - "target": "com.amazonaws.customerprofiles#DeleteCalculatedAttributeDefinition" + "target": "com.amazonaws.customerprofiles#InternalServerException" }, { - "target": "com.amazonaws.customerprofiles#DeleteDomain" + "target": "com.amazonaws.customerprofiles#ResourceNotFoundException" }, { - "target": "com.amazonaws.customerprofiles#DeleteEventStream" + "target": "com.amazonaws.customerprofiles#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a segment definition associated to the given domain.

", + "smithy.api#http": { + "method": "POST", + "uri": "/domains/{DomainName}/segment-definitions/{SegmentDefinitionName}", + "code": 200 }, - { - "target": "com.amazonaws.customerprofiles#DeleteIntegration" + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.customerprofiles#CreateSegmentDefinitionRequest": { + "type": "structure", + "members": { + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

The unique name of the domain.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } }, - { - "target": "com.amazonaws.customerprofiles#DeleteProfile" + "SegmentDefinitionName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

The unique name of the segment definition.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } }, - { - "target": "com.amazonaws.customerprofiles#DeleteProfileKey" + "DisplayName": { + "target": "com.amazonaws.customerprofiles#string1To255", + "traits": { + "smithy.api#documentation": "

The display name of the segment definition.

", + "smithy.api#required": {} + } }, - { - "target": "com.amazonaws.customerprofiles#DeleteProfileObject" + "Description": { + "target": "com.amazonaws.customerprofiles#sensitiveText", + "traits": { + "smithy.api#documentation": "

The description of the segment definition.

" + } }, - { - "target": "com.amazonaws.customerprofiles#DeleteProfileObjectType" + "SegmentGroups": { + "target": "com.amazonaws.customerprofiles#SegmentGroup", + "traits": { + "smithy.api#documentation": "

Specifies the base segments and dimensions for a segment definition along with their respective relationship.

", + "smithy.api#required": {} + } }, - { - "target": "com.amazonaws.customerprofiles#DeleteWorkflow" + "Tags": { + "target": "com.amazonaws.customerprofiles#TagMap", + "traits": { + "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.customerprofiles#CreateSegmentDefinitionResponse": { + "type": "structure", + "members": { + "SegmentDefinitionName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

The name of the segment definition.

", + "smithy.api#jsonName": "SegmentDefinitionName", + "smithy.api#required": {} + } }, - { - "target": "com.amazonaws.customerprofiles#DetectProfileObjectType" + "DisplayName": { + "target": "com.amazonaws.customerprofiles#string1To255", + "traits": { + "smithy.api#documentation": "

The display name of the segment definition.

", + "smithy.api#jsonName": "DisplayName" + } + }, + "Description": { + "target": "com.amazonaws.customerprofiles#sensitiveText", + "traits": { + "smithy.api#documentation": "

The description of the segment definition.

", + "smithy.api#jsonName": "Description" + } + }, + "CreatedAt": { + "target": "com.amazonaws.customerprofiles#timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp of when the segment definition was created.

", + "smithy.api#jsonName": "CreatedAt" + } + }, + "SegmentDefinitionArn": { + "target": "com.amazonaws.customerprofiles#SegmentDefinitionArn", + "traits": { + "smithy.api#documentation": "

The arn of the segment definition.

", + "smithy.api#jsonName": "SegmentDefinitionArn" + } }, + "Tags": { + "target": "com.amazonaws.customerprofiles#TagMap", + "traits": { + "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

", + "smithy.api#jsonName": "Tags" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.customerprofiles#CreateSegmentEstimate": { + "type": "operation", + "input": { + "target": "com.amazonaws.customerprofiles#CreateSegmentEstimateRequest" + }, + "output": { + "target": "com.amazonaws.customerprofiles#CreateSegmentEstimateResponse" + }, + "errors": [ { - "target": "com.amazonaws.customerprofiles#GetAutoMergingPreview" + "target": "com.amazonaws.customerprofiles#AccessDeniedException" }, { - "target": "com.amazonaws.customerprofiles#GetCalculatedAttributeDefinition" + "target": "com.amazonaws.customerprofiles#BadRequestException" }, { - "target": "com.amazonaws.customerprofiles#GetCalculatedAttributeForProfile" + "target": "com.amazonaws.customerprofiles#InternalServerException" }, { - "target": "com.amazonaws.customerprofiles#GetDomain" + "target": "com.amazonaws.customerprofiles#ResourceNotFoundException" }, { - "target": "com.amazonaws.customerprofiles#GetEventStream" + "target": "com.amazonaws.customerprofiles#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a segment estimate query.

", + "smithy.api#http": { + "method": "POST", + "uri": "/domains/{DomainName}/segment-estimates", + "code": 200 + } + } + }, + "com.amazonaws.customerprofiles#CreateSegmentEstimateRequest": { + "type": "structure", + "members": { + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

The unique name of the domain.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "SegmentQuery": { + "target": "com.amazonaws.customerprofiles#SegmentGroupStructure", + "traits": { + "smithy.api#documentation": "

The segment query for calculating a segment estimate.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.customerprofiles#CreateSegmentEstimateResponse": { + "type": "structure", + "members": { + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

The unique name of the domain.

" + } + }, + "EstimateId": { + "target": "com.amazonaws.customerprofiles#string1To255", + "traits": { + "smithy.api#documentation": "

A unique identifier for the resource. The value can be passed to GetSegmentEstimate to retrieve the result of segment estimate status.

" + } }, + "StatusCode": { + "target": "com.amazonaws.customerprofiles#StatusCode", + "traits": { + "smithy.api#default": 0, + "smithy.api#documentation": "

The status code for the response.

", + "smithy.api#httpResponseCode": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.customerprofiles#CreateSegmentSnapshot": { + "type": "operation", + "input": { + "target": "com.amazonaws.customerprofiles#CreateSegmentSnapshotRequest" + }, + "output": { + "target": "com.amazonaws.customerprofiles#CreateSegmentSnapshotResponse" + }, + "errors": [ { - "target": "com.amazonaws.customerprofiles#GetIdentityResolutionJob" + "target": "com.amazonaws.customerprofiles#AccessDeniedException" }, { - "target": "com.amazonaws.customerprofiles#GetIntegration" + "target": "com.amazonaws.customerprofiles#BadRequestException" }, { - "target": "com.amazonaws.customerprofiles#GetMatches" + "target": "com.amazonaws.customerprofiles#InternalServerException" }, { - "target": "com.amazonaws.customerprofiles#GetProfileObjectType" + "target": "com.amazonaws.customerprofiles#ResourceNotFoundException" }, { - "target": "com.amazonaws.customerprofiles#GetProfileObjectTypeTemplate" + "target": "com.amazonaws.customerprofiles#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Triggers a job to export a segment to a specified destination.

", + "smithy.api#http": { + "method": "POST", + "uri": "/domains/{DomainName}/segments/{SegmentDefinitionName}/snapshots", + "code": 200 + } + } + }, + "com.amazonaws.customerprofiles#CreateSegmentSnapshotRequest": { + "type": "structure", + "members": { + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

The unique name of the domain.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "SegmentDefinitionName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

The name of the segment definition used in this snapshot request.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "DataFormat": { + "target": "com.amazonaws.customerprofiles#DataFormat", + "traits": { + "smithy.api#documentation": "

The format in which the segment will be exported.

", + "smithy.api#required": {} + } + }, + "EncryptionKey": { + "target": "com.amazonaws.customerprofiles#encryptionKey", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the KMS key used to encrypt the exported segment.

" + } }, + "RoleArn": { + "target": "com.amazonaws.customerprofiles#RoleArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role that allows Customer Profiles service principal to assume the role for conducting KMS and S3 operations.

" + } + }, + "DestinationUri": { + "target": "com.amazonaws.customerprofiles#string1To255", + "traits": { + "smithy.api#documentation": "

The destination to which the segment will be exported. This field must be provided if the request is not submitted from the Amazon Connect Admin Website.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.customerprofiles#CreateSegmentSnapshotResponse": { + "type": "structure", + "members": { + "SnapshotId": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

The unique identifier of the segment snapshot.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.customerprofiles#CustomAttributes": { + "type": "map", + "key": { + "target": "com.amazonaws.customerprofiles#typeName" + }, + "value": { + "target": "com.amazonaws.customerprofiles#AttributeDimension" + } + }, + "com.amazonaws.customerprofiles#CustomerProfiles_20200815": { + "type": "service", + "version": "2020-08-15", + "operations": [ { - "target": "com.amazonaws.customerprofiles#GetSimilarProfiles" + "target": "com.amazonaws.customerprofiles#AddProfileKey" }, { - "target": "com.amazonaws.customerprofiles#GetWorkflow" + "target": "com.amazonaws.customerprofiles#BatchGetCalculatedAttributeForProfile" }, { - "target": "com.amazonaws.customerprofiles#GetWorkflowSteps" + "target": "com.amazonaws.customerprofiles#BatchGetProfile" }, { - "target": "com.amazonaws.customerprofiles#ListAccountIntegrations" + "target": "com.amazonaws.customerprofiles#CreateCalculatedAttributeDefinition" }, { - "target": "com.amazonaws.customerprofiles#ListCalculatedAttributeDefinitions" + "target": "com.amazonaws.customerprofiles#CreateDomain" }, { - "target": "com.amazonaws.customerprofiles#ListCalculatedAttributesForProfile" + "target": "com.amazonaws.customerprofiles#CreateEventStream" }, { - "target": "com.amazonaws.customerprofiles#ListDomains" + "target": "com.amazonaws.customerprofiles#CreateIntegrationWorkflow" }, { - "target": "com.amazonaws.customerprofiles#ListEventStreams" + "target": "com.amazonaws.customerprofiles#CreateProfile" }, { - "target": "com.amazonaws.customerprofiles#ListIdentityResolutionJobs" + "target": "com.amazonaws.customerprofiles#CreateSegmentDefinition" }, { - "target": "com.amazonaws.customerprofiles#ListIntegrations" + "target": "com.amazonaws.customerprofiles#CreateSegmentEstimate" }, { - "target": "com.amazonaws.customerprofiles#ListProfileObjects" + "target": "com.amazonaws.customerprofiles#CreateSegmentSnapshot" }, { - "target": "com.amazonaws.customerprofiles#ListProfileObjectTypes" + "target": "com.amazonaws.customerprofiles#DeleteCalculatedAttributeDefinition" }, { - "target": "com.amazonaws.customerprofiles#ListProfileObjectTypeTemplates" + "target": "com.amazonaws.customerprofiles#DeleteDomain" }, { - "target": "com.amazonaws.customerprofiles#ListRuleBasedMatches" + "target": "com.amazonaws.customerprofiles#DeleteEventStream" }, { - "target": "com.amazonaws.customerprofiles#ListTagsForResource" + "target": "com.amazonaws.customerprofiles#DeleteIntegration" }, { - "target": "com.amazonaws.customerprofiles#ListWorkflows" + "target": "com.amazonaws.customerprofiles#DeleteProfile" }, { - "target": "com.amazonaws.customerprofiles#MergeProfiles" + "target": "com.amazonaws.customerprofiles#DeleteProfileKey" }, { - "target": "com.amazonaws.customerprofiles#PutIntegration" + "target": "com.amazonaws.customerprofiles#DeleteProfileObject" }, { - "target": "com.amazonaws.customerprofiles#PutProfileObject" + "target": "com.amazonaws.customerprofiles#DeleteProfileObjectType" }, { - "target": "com.amazonaws.customerprofiles#PutProfileObjectType" + "target": "com.amazonaws.customerprofiles#DeleteSegmentDefinition" }, { - "target": "com.amazonaws.customerprofiles#SearchProfiles" + "target": "com.amazonaws.customerprofiles#DeleteWorkflow" }, { - "target": "com.amazonaws.customerprofiles#TagResource" + "target": "com.amazonaws.customerprofiles#DetectProfileObjectType" }, { - "target": "com.amazonaws.customerprofiles#UntagResource" + "target": "com.amazonaws.customerprofiles#GetAutoMergingPreview" }, { - "target": "com.amazonaws.customerprofiles#UpdateCalculatedAttributeDefinition" + "target": "com.amazonaws.customerprofiles#GetCalculatedAttributeDefinition" }, { - "target": "com.amazonaws.customerprofiles#UpdateDomain" + "target": "com.amazonaws.customerprofiles#GetCalculatedAttributeForProfile" }, { - "target": "com.amazonaws.customerprofiles#UpdateProfile" - } - ], - "traits": { - "aws.api#service": { - "sdkId": "Customer Profiles", - "arnNamespace": "profile", - "cloudFormationName": "CustomerProfiles", - "cloudTrailEventSource": "profile.amazonaws.com", - "endpointPrefix": "profile" + "target": "com.amazonaws.customerprofiles#GetDomain" }, - "aws.auth#sigv4": { - "name": "profile" + { + "target": "com.amazonaws.customerprofiles#GetEventStream" + }, + { + "target": "com.amazonaws.customerprofiles#GetIdentityResolutionJob" + }, + { + "target": "com.amazonaws.customerprofiles#GetIntegration" + }, + { + "target": "com.amazonaws.customerprofiles#GetMatches" + }, + { + "target": "com.amazonaws.customerprofiles#GetProfileObjectType" + }, + { + "target": "com.amazonaws.customerprofiles#GetProfileObjectTypeTemplate" + }, + { + "target": "com.amazonaws.customerprofiles#GetSegmentDefinition" + }, + { + "target": "com.amazonaws.customerprofiles#GetSegmentEstimate" + }, + { + "target": "com.amazonaws.customerprofiles#GetSegmentMembership" + }, + { + "target": "com.amazonaws.customerprofiles#GetSegmentSnapshot" + }, + { + "target": "com.amazonaws.customerprofiles#GetSimilarProfiles" + }, + { + "target": "com.amazonaws.customerprofiles#GetWorkflow" + }, + { + "target": "com.amazonaws.customerprofiles#GetWorkflowSteps" + }, + { + "target": "com.amazonaws.customerprofiles#ListAccountIntegrations" + }, + { + "target": "com.amazonaws.customerprofiles#ListCalculatedAttributeDefinitions" + }, + { + "target": "com.amazonaws.customerprofiles#ListCalculatedAttributesForProfile" + }, + { + "target": "com.amazonaws.customerprofiles#ListDomains" + }, + { + "target": "com.amazonaws.customerprofiles#ListEventStreams" + }, + { + "target": "com.amazonaws.customerprofiles#ListIdentityResolutionJobs" + }, + { + "target": "com.amazonaws.customerprofiles#ListIntegrations" + }, + { + "target": "com.amazonaws.customerprofiles#ListObjectTypeAttributes" + }, + { + "target": "com.amazonaws.customerprofiles#ListProfileAttributeValues" + }, + { + "target": "com.amazonaws.customerprofiles#ListProfileObjects" + }, + { + "target": "com.amazonaws.customerprofiles#ListProfileObjectTypes" + }, + { + "target": "com.amazonaws.customerprofiles#ListProfileObjectTypeTemplates" + }, + { + "target": "com.amazonaws.customerprofiles#ListRuleBasedMatches" + }, + { + "target": "com.amazonaws.customerprofiles#ListSegmentDefinitions" + }, + { + "target": "com.amazonaws.customerprofiles#ListTagsForResource" + }, + { + "target": "com.amazonaws.customerprofiles#ListWorkflows" + }, + { + "target": "com.amazonaws.customerprofiles#MergeProfiles" + }, + { + "target": "com.amazonaws.customerprofiles#PutIntegration" + }, + { + "target": "com.amazonaws.customerprofiles#PutProfileObject" + }, + { + "target": "com.amazonaws.customerprofiles#PutProfileObjectType" + }, + { + "target": "com.amazonaws.customerprofiles#SearchProfiles" + }, + { + "target": "com.amazonaws.customerprofiles#TagResource" + }, + { + "target": "com.amazonaws.customerprofiles#UntagResource" + }, + { + "target": "com.amazonaws.customerprofiles#UpdateCalculatedAttributeDefinition" + }, + { + "target": "com.amazonaws.customerprofiles#UpdateDomain" + }, + { + "target": "com.amazonaws.customerprofiles#UpdateProfile" + } + ], + "traits": { + "aws.api#service": { + "sdkId": "Customer Profiles", + "arnNamespace": "profile", + "cloudFormationName": "CustomerProfiles", + "cloudTrailEventSource": "profile.amazonaws.com", + "endpointPrefix": "profile" + }, + "aws.auth#sigv4": { + "name": "profile" }, "aws.protocols#restJson1": {}, "smithy.api#documentation": "Amazon Connect Customer Profiles\n \n

Amazon Connect Customer Profiles is a unified customer profile for your contact\n center that has pre-built connectors powered by AppFlow that make it easy to combine\n customer information from third party applications, such as Salesforce (CRM), ServiceNow\n (ITSM), and your enterprise resource planning (ERP), with contact history from your Amazon Connect contact center.

\n

For more information about the Amazon Connect Customer Profiles feature, see Use Customer\n Profiles in the Amazon Connect Administrator's Guide.

", @@ -2373,6 +3317,29 @@ } } }, + "com.amazonaws.customerprofiles#DataFormat": { + "type": "enum", + "members": { + "CSV": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CSV" + } + }, + "JSONL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "JSONL" + } + }, + "ORC": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ORC" + } + } + } + }, "com.amazonaws.customerprofiles#DataPullMode": { "type": "enum", "members": { @@ -2393,6 +3360,77 @@ "com.amazonaws.customerprofiles#Date": { "type": "timestamp" }, + "com.amazonaws.customerprofiles#DateDimension": { + "type": "structure", + "members": { + "DimensionType": { + "target": "com.amazonaws.customerprofiles#DateDimensionType", + "traits": { + "smithy.api#documentation": "

The action to segment with.

", + "smithy.api#jsonName": "DimensionType", + "smithy.api#required": {} + } + }, + "Values": { + "target": "com.amazonaws.customerprofiles#DateValues", + "traits": { + "smithy.api#documentation": "

The values to apply the DimensionType on.

", + "smithy.api#jsonName": "Values", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Object that segments on various Customer Profile's date fields.

" + } + }, + "com.amazonaws.customerprofiles#DateDimensionType": { + "type": "enum", + "members": { + "BEFORE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "BEFORE" + } + }, + "AFTER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AFTER" + } + }, + "BETWEEN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "BETWEEN" + } + }, + "NOT_BETWEEN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NOT_BETWEEN" + } + }, + "ON": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ON" + } + } + } + }, + "com.amazonaws.customerprofiles#DateValues": { + "type": "list", + "member": { + "target": "smithy.api#String" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 50 + } + } + }, "com.amazonaws.customerprofiles#DatetimeTypeFieldName": { "type": "string", "traits": { @@ -2915,815 +3953,1631 @@ "DomainName": { "target": "com.amazonaws.customerprofiles#name", "traits": { - "smithy.api#documentation": "

The unique name of the domain.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#documentation": "

The unique name of the domain.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "ObjectTypeName": { + "target": "com.amazonaws.customerprofiles#typeName", + "traits": { + "smithy.api#documentation": "

The name of the profile object type.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.customerprofiles#DeleteProfileObjectTypeResponse": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.customerprofiles#message", + "traits": { + "smithy.api#documentation": "

A message that indicates the delete request is done.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.customerprofiles#DeleteProfileRequest": { + "type": "structure", + "members": { + "ProfileId": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

The unique identifier of a customer profile.

", + "smithy.api#required": {} + } + }, + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

The unique name of the domain.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.customerprofiles#DeleteProfileResponse": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.customerprofiles#message", + "traits": { + "smithy.api#documentation": "

A message that indicates the delete request is done.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.customerprofiles#DeleteSegmentDefinition": { + "type": "operation", + "input": { + "target": "com.amazonaws.customerprofiles#DeleteSegmentDefinitionRequest" + }, + "output": { + "target": "com.amazonaws.customerprofiles#DeleteSegmentDefinitionResponse" + }, + "errors": [ + { + "target": "com.amazonaws.customerprofiles#AccessDeniedException" + }, + { + "target": "com.amazonaws.customerprofiles#BadRequestException" + }, + { + "target": "com.amazonaws.customerprofiles#InternalServerException" + }, + { + "target": "com.amazonaws.customerprofiles#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.customerprofiles#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes a segment definition from the domain.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/domains/{DomainName}/segment-definitions/{SegmentDefinitionName}", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.customerprofiles#DeleteSegmentDefinitionRequest": { + "type": "structure", + "members": { + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

The unique name of the domain.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "SegmentDefinitionName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

The unique name of the segment definition.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.customerprofiles#DeleteSegmentDefinitionResponse": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.customerprofiles#string1To1000", + "traits": { + "smithy.api#documentation": "

A message that indicates the delete request is done.

", + "smithy.api#jsonName": "Message" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.customerprofiles#DeleteWorkflow": { + "type": "operation", + "input": { + "target": "com.amazonaws.customerprofiles#DeleteWorkflowRequest" + }, + "output": { + "target": "com.amazonaws.customerprofiles#DeleteWorkflowResponse" + }, + "errors": [ + { + "target": "com.amazonaws.customerprofiles#AccessDeniedException" + }, + { + "target": "com.amazonaws.customerprofiles#BadRequestException" + }, + { + "target": "com.amazonaws.customerprofiles#InternalServerException" + }, + { + "target": "com.amazonaws.customerprofiles#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.customerprofiles#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes the specified workflow and all its corresponding resources. This is an async\n process.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/domains/{DomainName}/workflows/{WorkflowId}", + "code": 200 + } + } + }, + "com.amazonaws.customerprofiles#DeleteWorkflowRequest": { + "type": "structure", + "members": { + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

The unique name of the domain.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "WorkflowId": { + "target": "com.amazonaws.customerprofiles#string1To255", + "traits": { + "smithy.api#documentation": "

Unique identifier for the workflow.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.customerprofiles#DeleteWorkflowResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.customerprofiles#DestinationField": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 256 + }, + "smithy.api#pattern": ".*" + } + }, + "com.amazonaws.customerprofiles#DestinationSummary": { + "type": "structure", + "members": { + "Uri": { + "target": "com.amazonaws.customerprofiles#string1To255", + "traits": { + "smithy.api#documentation": "

The StreamARN of the destination to deliver profile events to. For example,\n arn:aws:kinesis:region:account-id:stream/stream-name.

", + "smithy.api#required": {} + } + }, + "Status": { + "target": "com.amazonaws.customerprofiles#EventStreamDestinationStatus", + "traits": { + "smithy.api#documentation": "

The status of enabling the Kinesis stream as a destination for export.

", + "smithy.api#required": {} + } + }, + "UnhealthySince": { + "target": "com.amazonaws.customerprofiles#timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp when the status last changed to UNHEALHY.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Summary information about the Kinesis data stream

" + } + }, + "com.amazonaws.customerprofiles#DetectProfileObjectType": { + "type": "operation", + "input": { + "target": "com.amazonaws.customerprofiles#DetectProfileObjectTypeRequest" + }, + "output": { + "target": "com.amazonaws.customerprofiles#DetectProfileObjectTypeResponse" + }, + "errors": [ + { + "target": "com.amazonaws.customerprofiles#AccessDeniedException" + }, + { + "target": "com.amazonaws.customerprofiles#BadRequestException" + }, + { + "target": "com.amazonaws.customerprofiles#InternalServerException" + }, + { + "target": "com.amazonaws.customerprofiles#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.customerprofiles#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

The process of detecting profile object type mapping by using given objects.

", + "smithy.api#http": { + "method": "POST", + "uri": "/domains/{DomainName}/detect/object-types", + "code": 200 + } + } + }, + "com.amazonaws.customerprofiles#DetectProfileObjectTypeRequest": { + "type": "structure", + "members": { + "Objects": { + "target": "com.amazonaws.customerprofiles#Objects", + "traits": { + "smithy.api#documentation": "

A string that is serialized from a JSON object.

", + "smithy.api#required": {} + } + }, + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

The unique name of the domain.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.customerprofiles#DetectProfileObjectTypeResponse": { + "type": "structure", + "members": { + "DetectedProfileObjectTypes": { + "target": "com.amazonaws.customerprofiles#DetectedProfileObjectTypes", + "traits": { + "smithy.api#documentation": "

Detected ProfileObjectType mappings from given objects. A maximum of one\n mapping is supported.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.customerprofiles#DetectedProfileObjectType": { + "type": "structure", + "members": { + "SourceLastUpdatedTimestampFormat": { + "target": "com.amazonaws.customerprofiles#string1To255", + "traits": { + "smithy.api#documentation": "

The format of sourceLastUpdatedTimestamp that was detected in\n fields.

" + } + }, + "Fields": { + "target": "com.amazonaws.customerprofiles#FieldMap", + "traits": { + "smithy.api#documentation": "

A map of the name and the ObjectType field.

" + } + }, + "Keys": { + "target": "com.amazonaws.customerprofiles#KeyMap", + "traits": { + "smithy.api#documentation": "

A list of unique keys that can be used to map data to a profile.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains ProfileObjectType mapping information from the model.

" + } + }, + "com.amazonaws.customerprofiles#DetectedProfileObjectTypes": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#DetectedProfileObjectType" + } + }, + "com.amazonaws.customerprofiles#Dimension": { + "type": "union", + "members": { + "ProfileAttributes": { + "target": "com.amazonaws.customerprofiles#ProfileAttributes", + "traits": { + "smithy.api#documentation": "

Object that holds the profile attributes to segment on.

", + "smithy.api#jsonName": "ProfileAttributes" + } + }, + "CalculatedAttributes": { + "target": "com.amazonaws.customerprofiles#CalculatedCustomAttributes", + "traits": { + "smithy.api#documentation": "

Object that holds the calculated attributes to segment on.

", + "smithy.api#jsonName": "CalculatedAttributes" + } + } + }, + "traits": { + "smithy.api#documentation": "

Object that holds what profile and calculated attributes to segment on.

" + } + }, + "com.amazonaws.customerprofiles#DimensionList": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#Dimension" + } + }, + "com.amazonaws.customerprofiles#DomainList": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#ListDomainItem" + } + }, + "com.amazonaws.customerprofiles#DomainStats": { + "type": "structure", + "members": { + "ProfileCount": { + "target": "com.amazonaws.customerprofiles#long", + "traits": { + "smithy.api#default": 0, + "smithy.api#documentation": "

The total number of profiles currently in the domain.

" + } + }, + "MeteringProfileCount": { + "target": "com.amazonaws.customerprofiles#long", + "traits": { + "smithy.api#default": 0, + "smithy.api#documentation": "

The number of profiles that you are currently paying for in the domain. If you have more\n than 100 objects associated with a single profile, that profile counts as two profiles. If\n you have more than 200 objects, that profile counts as three, and so on.

" + } + }, + "ObjectCount": { + "target": "com.amazonaws.customerprofiles#long", + "traits": { + "smithy.api#default": 0, + "smithy.api#documentation": "

The total number of objects in domain.

" + } + }, + "TotalSize": { + "target": "com.amazonaws.customerprofiles#long", + "traits": { + "smithy.api#default": 0, + "smithy.api#documentation": "

The total size, in bytes, of all objects in the domain.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Usage-specific statistics about the domain.

" + } + }, + "com.amazonaws.customerprofiles#Double": { + "type": "double" + }, + "com.amazonaws.customerprofiles#Double0To1": { + "type": "double", + "traits": { + "smithy.api#range": { + "min": 0.0, + "max": 1.0 + } + } + }, + "com.amazonaws.customerprofiles#EmailList": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#string1To255" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 3 + } + } + }, + "com.amazonaws.customerprofiles#End": { + "type": "integer", + "traits": { + "smithy.api#default": 0, + "smithy.api#range": { + "min": 0, + "max": 366 + } + } + }, + "com.amazonaws.customerprofiles#EstimateStatus": { + "type": "enum", + "members": { + "RUNNING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "RUNNING" + } + }, + "SUCCEEDED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SUCCEEDED" + } + }, + "FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FAILED" + } + } + } + }, + "com.amazonaws.customerprofiles#EventStreamDestinationDetails": { + "type": "structure", + "members": { + "Uri": { + "target": "com.amazonaws.customerprofiles#string1To255", + "traits": { + "smithy.api#documentation": "

The StreamARN of the destination to deliver profile events to. For example,\n arn:aws:kinesis:region:account-id:stream/stream-name.

", + "smithy.api#required": {} + } + }, + "Status": { + "target": "com.amazonaws.customerprofiles#EventStreamDestinationStatus", + "traits": { + "smithy.api#documentation": "

The status of enabling the Kinesis stream as a destination for export.

", + "smithy.api#required": {} + } + }, + "UnhealthySince": { + "target": "com.amazonaws.customerprofiles#timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp when the status last changed to UNHEALHY.

" + } + }, + "Message": { + "target": "com.amazonaws.customerprofiles#string1To1000", + "traits": { + "smithy.api#documentation": "

The human-readable string that corresponds to the error or success while enabling the\n streaming destination.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Details of the destination being used for the EventStream.

" + } + }, + "com.amazonaws.customerprofiles#EventStreamDestinationStatus": { + "type": "enum", + "members": { + "HEALTHY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "HEALTHY" + } + }, + "UNHEALTHY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UNHEALTHY" + } + } + } + }, + "com.amazonaws.customerprofiles#EventStreamState": { + "type": "enum", + "members": { + "RUNNING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "RUNNING" + } + }, + "STOPPED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "STOPPED" + } + } + } + }, + "com.amazonaws.customerprofiles#EventStreamSummary": { + "type": "structure", + "members": { + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

The unique name of the domain.

", + "smithy.api#required": {} + } + }, + "EventStreamName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

The name of the event stream.

", + "smithy.api#required": {} + } + }, + "EventStreamArn": { + "target": "com.amazonaws.customerprofiles#string1To255", + "traits": { + "smithy.api#documentation": "

A unique identifier for the event stream.

", + "smithy.api#required": {} + } + }, + "State": { + "target": "com.amazonaws.customerprofiles#EventStreamState", + "traits": { + "smithy.api#documentation": "

The operational state of destination stream for export.

", + "smithy.api#required": {} + } + }, + "StoppedSince": { + "target": "com.amazonaws.customerprofiles#timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp when the State changed to STOPPED.

" + } + }, + "DestinationSummary": { + "target": "com.amazonaws.customerprofiles#DestinationSummary", + "traits": { + "smithy.api#documentation": "

Summary information about the Kinesis data stream.

" + } + }, + "Tags": { + "target": "com.amazonaws.customerprofiles#TagMap", + "traits": { + "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

An instance of EventStream in a list of EventStreams.

" + } + }, + "com.amazonaws.customerprofiles#EventStreamSummaryList": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#EventStreamSummary" + } + }, + "com.amazonaws.customerprofiles#ExportingConfig": { + "type": "structure", + "members": { + "S3Exporting": { + "target": "com.amazonaws.customerprofiles#S3ExportingConfig", + "traits": { + "smithy.api#documentation": "

The S3 location where Identity Resolution Jobs write result files.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Configuration information about the S3 bucket where Identity Resolution Jobs writes result files.

\n \n

You need to give Customer Profiles service principal write permission to your S3 bucket.\n Otherwise, you'll get an exception in the API response. For an example policy, see\n Amazon Connect Customer Profiles cross-service confused deputy prevention.

\n
" + } + }, + "com.amazonaws.customerprofiles#ExportingLocation": { + "type": "structure", + "members": { + "S3Exporting": { + "target": "com.amazonaws.customerprofiles#S3ExportingLocation", + "traits": { + "smithy.api#documentation": "

Information about the S3 location where Identity Resolution Jobs write result files.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The S3 location where Identity Resolution Jobs write result files.

" + } + }, + "com.amazonaws.customerprofiles#ExtraLengthValueProfileDimension": { + "type": "structure", + "members": { + "DimensionType": { + "target": "com.amazonaws.customerprofiles#StringDimensionType", + "traits": { + "smithy.api#documentation": "

The action to segment with.

", + "smithy.api#jsonName": "DimensionType", + "smithy.api#required": {} + } + }, + "Values": { + "target": "com.amazonaws.customerprofiles#ExtraLengthValues", + "traits": { + "smithy.api#documentation": "

The values to apply the DimensionType on.

", + "smithy.api#jsonName": "Values", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Object that segments on various Customer profile's fields that are larger than normal.

" + } + }, + "com.amazonaws.customerprofiles#ExtraLengthValues": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#string1To1000" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 50 + } + } + }, + "com.amazonaws.customerprofiles#Failures": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#ProfileQueryFailures" + } + }, + "com.amazonaws.customerprofiles#FieldContentType": { + "type": "enum", + "members": { + "STRING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "STRING" + } + }, + "NUMBER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NUMBER" + } + }, + "PHONE_NUMBER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PHONE_NUMBER" + } + }, + "EMAIL_ADDRESS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "EMAIL_ADDRESS" + } + }, + "NAME": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NAME" + } + } + } + }, + "com.amazonaws.customerprofiles#FieldMap": { + "type": "map", + "key": { + "target": "com.amazonaws.customerprofiles#name" + }, + "value": { + "target": "com.amazonaws.customerprofiles#ObjectTypeField" + }, + "traits": { + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.customerprofiles#FieldNameList": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#name" + } + }, + "com.amazonaws.customerprofiles#FieldSourceProfileIds": { + "type": "structure", + "members": { + "AccountNumber": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

A unique identifier for the account number field to be merged.

" + } + }, + "AdditionalInformation": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

A unique identifier for the additional information field to be merged.

" + } + }, + "PartyType": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

A unique identifier for the party type field to be merged.

" + } + }, + "BusinessName": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

A unique identifier for the business name field to be merged.

" + } + }, + "FirstName": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

A unique identifier for the first name field to be merged.

" + } + }, + "MiddleName": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

A unique identifier for the middle name field to be merged.

" + } + }, + "LastName": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

A unique identifier for the last name field to be merged.

" + } + }, + "BirthDate": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

A unique identifier for the birthdate field to be merged.

" + } + }, + "Gender": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

A unique identifier for the gender field to be merged.

" + } + }, + "PhoneNumber": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

A unique identifier for the phone number field to be merged.

" + } + }, + "MobilePhoneNumber": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

A unique identifier for the mobile phone number field to be merged.

" + } + }, + "HomePhoneNumber": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

A unique identifier for the home phone number field to be merged.

" + } + }, + "BusinessPhoneNumber": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

A unique identifier for the business phone number field to be merged.

" + } + }, + "EmailAddress": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

A unique identifier for the email address field to be merged.

" + } + }, + "PersonalEmailAddress": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

A unique identifier for the personal email address field to be merged.

" + } + }, + "BusinessEmailAddress": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

A unique identifier for the party type field to be merged.

" + } + }, + "Address": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

A unique identifier for the party type field to be merged.

" + } + }, + "ShippingAddress": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

A unique identifier for the shipping address field to be merged.

" + } + }, + "MailingAddress": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

A unique identifier for the mailing address field to be merged.

" + } + }, + "BillingAddress": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

A unique identifier for the billing type field to be merged.

" } }, - "ObjectTypeName": { - "target": "com.amazonaws.customerprofiles#typeName", + "Attributes": { + "target": "com.amazonaws.customerprofiles#AttributeSourceIdMap", "traits": { - "smithy.api#documentation": "

The name of the profile object type.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#documentation": "

A unique identifier for the attributes field to be merged.

" } } }, "traits": { - "smithy.api#input": {} + "smithy.api#documentation": "

A duplicate customer profile that is to be merged into a main profile.

" } }, - "com.amazonaws.customerprofiles#DeleteProfileObjectTypeResponse": { + "com.amazonaws.customerprofiles#Filter": { "type": "structure", "members": { - "Message": { - "target": "com.amazonaws.customerprofiles#message", + "Include": { + "target": "com.amazonaws.customerprofiles#Include", "traits": { - "smithy.api#documentation": "

A message that indicates the delete request is done.

", + "smithy.api#documentation": "

Define whether to include or exclude objects for Calculated Attributed calculation that fit the filter groups criteria.

", + "smithy.api#required": {} + } + }, + "Groups": { + "target": "com.amazonaws.customerprofiles#GroupList", + "traits": { + "smithy.api#documentation": "

Holds the list of Filter groups within the Filter definition.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#output": {} + "smithy.api#documentation": "

Defines how to filter the objects coming in for calculated attributes.

" } }, - "com.amazonaws.customerprofiles#DeleteProfileRequest": { + "com.amazonaws.customerprofiles#FilterAttributeDimension": { "type": "structure", "members": { - "ProfileId": { - "target": "com.amazonaws.customerprofiles#uuid", + "DimensionType": { + "target": "com.amazonaws.customerprofiles#FilterDimensionType", "traits": { - "smithy.api#documentation": "

The unique identifier of a customer profile.

", + "smithy.api#documentation": "

The action to filter with.

", "smithy.api#required": {} } }, - "DomainName": { - "target": "com.amazonaws.customerprofiles#name", + "Values": { + "target": "com.amazonaws.customerprofiles#ValueList", "traits": { - "smithy.api#documentation": "

The unique name of the domain.

", - "smithy.api#httpLabel": {}, + "smithy.api#documentation": "

The values to apply the DimensionType on.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#input": {} + "smithy.api#documentation": "

Object that defines how to filter the incoming objects for the calculated attribute.

" } }, - "com.amazonaws.customerprofiles#DeleteProfileResponse": { + "com.amazonaws.customerprofiles#FilterDimension": { "type": "structure", "members": { - "Message": { - "target": "com.amazonaws.customerprofiles#message", + "Attributes": { + "target": "com.amazonaws.customerprofiles#AttributeMap", "traits": { - "smithy.api#documentation": "

A message that indicates the delete request is done.

" + "smithy.api#documentation": "

Is the attribute within the FilterDimension map

", + "smithy.api#required": {} } } }, "traits": { - "smithy.api#output": {} + "smithy.api#documentation": "

Contains the map of attribute names to attribute dimensions.

" } }, - "com.amazonaws.customerprofiles#DeleteWorkflow": { - "type": "operation", - "input": { - "target": "com.amazonaws.customerprofiles#DeleteWorkflowRequest" - }, - "output": { - "target": "com.amazonaws.customerprofiles#DeleteWorkflowResponse" + "com.amazonaws.customerprofiles#FilterDimensionList": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#FilterDimension" }, - "errors": [ - { - "target": "com.amazonaws.customerprofiles#AccessDeniedException" - }, - { - "target": "com.amazonaws.customerprofiles#BadRequestException" - }, - { - "target": "com.amazonaws.customerprofiles#InternalServerException" - }, - { - "target": "com.amazonaws.customerprofiles#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.customerprofiles#ThrottlingException" - } - ], "traits": { - "smithy.api#documentation": "

Deletes the specified workflow and all its corresponding resources. This is an async\n process.

", - "smithy.api#http": { - "method": "DELETE", - "uri": "/domains/{DomainName}/workflows/{WorkflowId}", - "code": 200 + "smithy.api#length": { + "min": 1, + "max": 10 } } }, - "com.amazonaws.customerprofiles#DeleteWorkflowRequest": { - "type": "structure", + "com.amazonaws.customerprofiles#FilterDimensionType": { + "type": "enum", "members": { - "DomainName": { - "target": "com.amazonaws.customerprofiles#name", + "INCLUSIVE": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "

The unique name of the domain.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#enumValue": "INCLUSIVE" } }, - "WorkflowId": { - "target": "com.amazonaws.customerprofiles#string1To255", + "EXCLUSIVE": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "

Unique identifier for the workflow.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#enumValue": "EXCLUSIVE" } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.customerprofiles#DeleteWorkflowResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.customerprofiles#DestinationField": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 256 }, - "smithy.api#pattern": ".*" - } - }, - "com.amazonaws.customerprofiles#DestinationSummary": { - "type": "structure", - "members": { - "Uri": { - "target": "com.amazonaws.customerprofiles#string1To255", + "CONTAINS": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "

The StreamARN of the destination to deliver profile events to. For example,\n arn:aws:kinesis:region:account-id:stream/stream-name.

", - "smithy.api#required": {} + "smithy.api#enumValue": "CONTAINS" } }, - "Status": { - "target": "com.amazonaws.customerprofiles#EventStreamDestinationStatus", + "BEGINS_WITH": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "

The status of enabling the Kinesis stream as a destination for export.

", - "smithy.api#required": {} + "smithy.api#enumValue": "BEGINS_WITH" } }, - "UnhealthySince": { - "target": "com.amazonaws.customerprofiles#timestamp", + "ENDS_WITH": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "

The timestamp when the status last changed to UNHEALHY.

" + "smithy.api#enumValue": "ENDS_WITH" } - } - }, - "traits": { - "smithy.api#documentation": "

Summary information about the Kinesis data stream

" - } - }, - "com.amazonaws.customerprofiles#DetectProfileObjectType": { - "type": "operation", - "input": { - "target": "com.amazonaws.customerprofiles#DetectProfileObjectTypeRequest" - }, - "output": { - "target": "com.amazonaws.customerprofiles#DetectProfileObjectTypeResponse" - }, - "errors": [ - { - "target": "com.amazonaws.customerprofiles#AccessDeniedException" - }, - { - "target": "com.amazonaws.customerprofiles#BadRequestException" - }, - { - "target": "com.amazonaws.customerprofiles#InternalServerException" - }, - { - "target": "com.amazonaws.customerprofiles#ResourceNotFoundException" }, - { - "target": "com.amazonaws.customerprofiles#ThrottlingException" - } - ], - "traits": { - "smithy.api#documentation": "

The process of detecting profile object type mapping by using given objects.

", - "smithy.api#http": { - "method": "POST", - "uri": "/domains/{DomainName}/detect/object-types", - "code": 200 - } - } - }, - "com.amazonaws.customerprofiles#DetectProfileObjectTypeRequest": { - "type": "structure", - "members": { - "Objects": { - "target": "com.amazonaws.customerprofiles#Objects", + "BEFORE": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "

A string that is serialized from a JSON object.

", - "smithy.api#required": {} + "smithy.api#enumValue": "BEFORE" } }, - "DomainName": { - "target": "com.amazonaws.customerprofiles#name", + "AFTER": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "

The unique name of the domain.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#enumValue": "AFTER" } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.customerprofiles#DetectProfileObjectTypeResponse": { - "type": "structure", - "members": { - "DetectedProfileObjectTypes": { - "target": "com.amazonaws.customerprofiles#DetectedProfileObjectTypes", + }, + "BETWEEN": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "

Detected ProfileObjectType mappings from given objects. A maximum of one\n mapping is supported.

" + "smithy.api#enumValue": "BETWEEN" } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.customerprofiles#DetectedProfileObjectType": { - "type": "structure", - "members": { - "SourceLastUpdatedTimestampFormat": { - "target": "com.amazonaws.customerprofiles#string1To255", + }, + "NOT_BETWEEN": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "

The format of sourceLastUpdatedTimestamp that was detected in\n fields.

" + "smithy.api#enumValue": "NOT_BETWEEN" } }, - "Fields": { - "target": "com.amazonaws.customerprofiles#FieldMap", + "ON": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "

A map of the name and the ObjectType field.

" + "smithy.api#enumValue": "ON" } }, - "Keys": { - "target": "com.amazonaws.customerprofiles#KeyMap", + "GREATER_THAN": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "

A list of unique keys that can be used to map data to a profile.

" + "smithy.api#enumValue": "GREATER_THAN" } - } - }, - "traits": { - "smithy.api#documentation": "

Contains ProfileObjectType mapping information from the model.

" - } - }, - "com.amazonaws.customerprofiles#DetectedProfileObjectTypes": { - "type": "list", - "member": { - "target": "com.amazonaws.customerprofiles#DetectedProfileObjectType" - } - }, - "com.amazonaws.customerprofiles#DomainList": { - "type": "list", - "member": { - "target": "com.amazonaws.customerprofiles#ListDomainItem" - } - }, - "com.amazonaws.customerprofiles#DomainStats": { - "type": "structure", - "members": { - "ProfileCount": { - "target": "com.amazonaws.customerprofiles#long", - "traits": { - "smithy.api#default": 0, - "smithy.api#documentation": "

The total number of profiles currently in the domain.

" + }, + "LESS_THAN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LESS_THAN" } }, - "MeteringProfileCount": { - "target": "com.amazonaws.customerprofiles#long", + "GREATER_THAN_OR_EQUAL": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#default": 0, - "smithy.api#documentation": "

The number of profiles that you are currently paying for in the domain. If you have more\n than 100 objects associated with a single profile, that profile counts as two profiles. If\n you have more than 200 objects, that profile counts as three, and so on.

" + "smithy.api#enumValue": "GREATER_THAN_OR_EQUAL" } }, - "ObjectCount": { - "target": "com.amazonaws.customerprofiles#long", + "LESS_THAN_OR_EQUAL": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#default": 0, - "smithy.api#documentation": "

The total number of objects in domain.

" + "smithy.api#enumValue": "LESS_THAN_OR_EQUAL" } }, - "TotalSize": { - "target": "com.amazonaws.customerprofiles#long", + "EQUAL": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#default": 0, - "smithy.api#documentation": "

The total size, in bytes, of all objects in the domain.

" + "smithy.api#enumValue": "EQUAL" } } - }, - "traits": { - "smithy.api#documentation": "

Usage-specific statistics about the domain.

" } }, - "com.amazonaws.customerprofiles#Double": { - "type": "double" - }, - "com.amazonaws.customerprofiles#Double0To1": { - "type": "double", - "traits": { - "smithy.api#range": { - "min": 0.0, - "max": 1.0 + "com.amazonaws.customerprofiles#FilterGroup": { + "type": "structure", + "members": { + "Type": { + "target": "com.amazonaws.customerprofiles#Type", + "traits": { + "smithy.api#documentation": "

The type of logical relationship between the dimensions of the Filter group.

", + "smithy.api#required": {} + } + }, + "Dimensions": { + "target": "com.amazonaws.customerprofiles#FilterDimensionList", + "traits": { + "smithy.api#documentation": "

Object that holds the attributes to filter on.

", + "smithy.api#required": {} + } } - } - }, - "com.amazonaws.customerprofiles#EmailList": { - "type": "list", - "member": { - "target": "com.amazonaws.customerprofiles#string1To255" }, "traits": { - "smithy.api#length": { - "min": 1, - "max": 3 - } + "smithy.api#documentation": "

Object that holds the dimensions to filter on.

" } }, - "com.amazonaws.customerprofiles#EventStreamDestinationDetails": { + "com.amazonaws.customerprofiles#FlowDefinition": { "type": "structure", "members": { - "Uri": { - "target": "com.amazonaws.customerprofiles#string1To255", + "Description": { + "target": "com.amazonaws.customerprofiles#FlowDescription", "traits": { - "smithy.api#documentation": "

The StreamARN of the destination to deliver profile events to. For example,\n arn:aws:kinesis:region:account-id:stream/stream-name.

", + "smithy.api#documentation": "

A description of the flow you want to create.

" + } + }, + "FlowName": { + "target": "com.amazonaws.customerprofiles#FlowName", + "traits": { + "smithy.api#documentation": "

The specified name of the flow. Use underscores (_) or hyphens (-) only. Spaces are not\n allowed.

", "smithy.api#required": {} } }, - "Status": { - "target": "com.amazonaws.customerprofiles#EventStreamDestinationStatus", + "KmsArn": { + "target": "com.amazonaws.customerprofiles#KmsArn", "traits": { - "smithy.api#documentation": "

The status of enabling the Kinesis stream as a destination for export.

", + "smithy.api#documentation": "

The Amazon Resource Name of the AWS Key Management Service (KMS) key you provide for encryption.

", "smithy.api#required": {} } }, - "UnhealthySince": { - "target": "com.amazonaws.customerprofiles#timestamp", + "SourceFlowConfig": { + "target": "com.amazonaws.customerprofiles#SourceFlowConfig", "traits": { - "smithy.api#documentation": "

The timestamp when the status last changed to UNHEALHY.

" + "smithy.api#documentation": "

The configuration that controls how Customer Profiles retrieves data from the\n source.

", + "smithy.api#required": {} } }, - "Message": { - "target": "com.amazonaws.customerprofiles#string1To1000", + "Tasks": { + "target": "com.amazonaws.customerprofiles#Tasks", "traits": { - "smithy.api#documentation": "

The human-readable string that corresponds to the error or success while enabling the\n streaming destination.

" + "smithy.api#documentation": "

A list of tasks that Customer Profiles performs while transferring the data in the flow\n run.

", + "smithy.api#required": {} + } + }, + "TriggerConfig": { + "target": "com.amazonaws.customerprofiles#TriggerConfig", + "traits": { + "smithy.api#documentation": "

The trigger settings that determine how and when the flow runs.

", + "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

Details of the destination being used for the EventStream.

" + "smithy.api#documentation": "

The configurations that control how Customer Profiles retrieves data from the source,\n Amazon AppFlow. Customer Profiles uses this information to create an AppFlow flow on behalf of\n customers.

", + "smithy.api#sensitive": {} } }, - "com.amazonaws.customerprofiles#EventStreamDestinationStatus": { - "type": "enum", + "com.amazonaws.customerprofiles#FlowDescription": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 2048 + }, + "smithy.api#pattern": "^[\\w!@#\\-.?,\\s]*$" + } + }, + "com.amazonaws.customerprofiles#FlowName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 256 + }, + "smithy.api#pattern": "^[a-zA-Z0-9][\\w!@#.-]+$" + } + }, + "com.amazonaws.customerprofiles#FoundByKeyValue": { + "type": "structure", "members": { - "HEALTHY": { - "target": "smithy.api#Unit", + "KeyName": { + "target": "com.amazonaws.customerprofiles#name", "traits": { - "smithy.api#enumValue": "HEALTHY" + "smithy.api#documentation": "

A searchable identifier of a customer profile.

" } }, - "UNHEALTHY": { - "target": "smithy.api#Unit", + "Values": { + "target": "com.amazonaws.customerprofiles#requestValueList", "traits": { - "smithy.api#enumValue": "UNHEALTHY" + "smithy.api#documentation": "

A list of key values.

" } } + }, + "traits": { + "smithy.api#documentation": "

A data type pair that consists of a KeyName and Values list\n that were used to find a profile returned in response to a SearchProfiles request.\n

" } }, - "com.amazonaws.customerprofiles#EventStreamState": { + "com.amazonaws.customerprofiles#Gender": { "type": "enum", "members": { - "RUNNING": { + "MALE": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "RUNNING" + "smithy.api#enumValue": "MALE" } }, - "STOPPED": { + "FEMALE": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "STOPPED" + "smithy.api#enumValue": "FEMALE" + } + }, + "UNSPECIFIED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UNSPECIFIED" } } + }, + "traits": { + "smithy.api#deprecated": {}, + "smithy.api#sensitive": {} } }, - "com.amazonaws.customerprofiles#EventStreamSummary": { + "com.amazonaws.customerprofiles#GetAutoMergingPreview": { + "type": "operation", + "input": { + "target": "com.amazonaws.customerprofiles#GetAutoMergingPreviewRequest" + }, + "output": { + "target": "com.amazonaws.customerprofiles#GetAutoMergingPreviewResponse" + }, + "errors": [ + { + "target": "com.amazonaws.customerprofiles#AccessDeniedException" + }, + { + "target": "com.amazonaws.customerprofiles#BadRequestException" + }, + { + "target": "com.amazonaws.customerprofiles#InternalServerException" + }, + { + "target": "com.amazonaws.customerprofiles#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.customerprofiles#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Tests the auto-merging settings of your Identity Resolution Job without merging your data. It randomly\n selects a sample of matching groups from the existing matching results, and applies the\n automerging settings that you provided. You can then view the number of profiles in the\n sample, the number of matches, and the number of profiles identified to be merged. This\n enables you to evaluate the accuracy of the attributes in your matching list.

\n

You can't view which profiles are matched and would be merged.

\n \n

We strongly recommend you use this API to do a dry run of the automerging process\n before running the Identity Resolution Job. Include at least two matching\n attributes. If your matching list includes too few attributes (such as only\n FirstName or only LastName), there may be a large number of\n matches. This increases the chances of erroneous merges.

\n
", + "smithy.api#http": { + "method": "POST", + "uri": "/domains/{DomainName}/identity-resolution-jobs/auto-merging-preview", + "code": 200 + } + } + }, + "com.amazonaws.customerprofiles#GetAutoMergingPreviewRequest": { "type": "structure", "members": { "DomainName": { "target": "com.amazonaws.customerprofiles#name", "traits": { "smithy.api#documentation": "

The unique name of the domain.

", + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "EventStreamName": { - "target": "com.amazonaws.customerprofiles#name", - "traits": { - "smithy.api#documentation": "

The name of the event stream.

", - "smithy.api#required": {} - } - }, - "EventStreamArn": { - "target": "com.amazonaws.customerprofiles#string1To255", + "Consolidation": { + "target": "com.amazonaws.customerprofiles#Consolidation", "traits": { - "smithy.api#documentation": "

A unique identifier for the event stream.

", + "smithy.api#documentation": "

A list of matching attributes that represent matching criteria.

", "smithy.api#required": {} } }, - "State": { - "target": "com.amazonaws.customerprofiles#EventStreamState", + "ConflictResolution": { + "target": "com.amazonaws.customerprofiles#ConflictResolution", "traits": { - "smithy.api#documentation": "

The operational state of destination stream for export.

", + "smithy.api#documentation": "

How the auto-merging process should resolve conflicts between different profiles.

", "smithy.api#required": {} } }, - "StoppedSince": { - "target": "com.amazonaws.customerprofiles#timestamp", - "traits": { - "smithy.api#documentation": "

The timestamp when the State changed to STOPPED.

" - } - }, - "DestinationSummary": { - "target": "com.amazonaws.customerprofiles#DestinationSummary", - "traits": { - "smithy.api#documentation": "

Summary information about the Kinesis data stream.

" - } - }, - "Tags": { - "target": "com.amazonaws.customerprofiles#TagMap", - "traits": { - "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

An instance of EventStream in a list of EventStreams.

" - } - }, - "com.amazonaws.customerprofiles#EventStreamSummaryList": { - "type": "list", - "member": { - "target": "com.amazonaws.customerprofiles#EventStreamSummary" - } - }, - "com.amazonaws.customerprofiles#ExportingConfig": { - "type": "structure", - "members": { - "S3Exporting": { - "target": "com.amazonaws.customerprofiles#S3ExportingConfig", - "traits": { - "smithy.api#documentation": "

The S3 location where Identity Resolution Jobs write result files.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Configuration information about the S3 bucket where Identity Resolution Jobs writes result files.

\n \n

You need to give Customer Profiles service principal write permission to your S3 bucket.\n Otherwise, you'll get an exception in the API response. For an example policy, see\n Amazon Connect Customer Profiles cross-service confused deputy prevention.

\n
" - } - }, - "com.amazonaws.customerprofiles#ExportingLocation": { - "type": "structure", - "members": { - "S3Exporting": { - "target": "com.amazonaws.customerprofiles#S3ExportingLocation", + "MinAllowedConfidenceScoreForMerging": { + "target": "com.amazonaws.customerprofiles#Double0To1", "traits": { - "smithy.api#documentation": "

Information about the S3 location where Identity Resolution Jobs write result files.

" + "smithy.api#documentation": "

Minimum confidence score required for profiles within a matching group to be merged\n during the auto-merge process.

" } } }, "traits": { - "smithy.api#documentation": "

The S3 location where Identity Resolution Jobs write result files.

" + "smithy.api#input": {} } }, - "com.amazonaws.customerprofiles#FieldContentType": { - "type": "enum", + "com.amazonaws.customerprofiles#GetAutoMergingPreviewResponse": { + "type": "structure", "members": { - "STRING": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "STRING" - } - }, - "NUMBER": { - "target": "smithy.api#Unit", + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", "traits": { - "smithy.api#enumValue": "NUMBER" + "smithy.api#documentation": "

The unique name of the domain.

", + "smithy.api#required": {} } }, - "PHONE_NUMBER": { - "target": "smithy.api#Unit", + "NumberOfMatchesInSample": { + "target": "com.amazonaws.customerprofiles#long", "traits": { - "smithy.api#enumValue": "PHONE_NUMBER" + "smithy.api#default": 0, + "smithy.api#documentation": "

The number of match groups in the domain that have been reviewed in this preview dry\n run.

" } }, - "EMAIL_ADDRESS": { - "target": "smithy.api#Unit", + "NumberOfProfilesInSample": { + "target": "com.amazonaws.customerprofiles#long", "traits": { - "smithy.api#enumValue": "EMAIL_ADDRESS" + "smithy.api#default": 0, + "smithy.api#documentation": "

The number of profiles found in this preview dry run.

" } }, - "NAME": { - "target": "smithy.api#Unit", + "NumberOfProfilesWillBeMerged": { + "target": "com.amazonaws.customerprofiles#long", "traits": { - "smithy.api#enumValue": "NAME" + "smithy.api#default": 0, + "smithy.api#documentation": "

The number of profiles that would be merged if this wasn't a preview dry run.

" } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.customerprofiles#FieldMap": { - "type": "map", - "key": { - "target": "com.amazonaws.customerprofiles#name" + "com.amazonaws.customerprofiles#GetCalculatedAttributeDefinition": { + "type": "operation", + "input": { + "target": "com.amazonaws.customerprofiles#GetCalculatedAttributeDefinitionRequest" }, - "value": { - "target": "com.amazonaws.customerprofiles#ObjectTypeField" + "output": { + "target": "com.amazonaws.customerprofiles#GetCalculatedAttributeDefinitionResponse" }, + "errors": [ + { + "target": "com.amazonaws.customerprofiles#AccessDeniedException" + }, + { + "target": "com.amazonaws.customerprofiles#BadRequestException" + }, + { + "target": "com.amazonaws.customerprofiles#InternalServerException" + }, + { + "target": "com.amazonaws.customerprofiles#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.customerprofiles#ThrottlingException" + } + ], "traits": { - "smithy.api#sensitive": {} - } - }, - "com.amazonaws.customerprofiles#FieldNameList": { - "type": "list", - "member": { - "target": "com.amazonaws.customerprofiles#name" + "smithy.api#documentation": "

Provides more information on a calculated attribute definition for Customer\n Profiles.

", + "smithy.api#http": { + "method": "GET", + "uri": "/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}", + "code": 200 + } } }, - "com.amazonaws.customerprofiles#FieldSourceProfileIds": { + "com.amazonaws.customerprofiles#GetCalculatedAttributeDefinitionRequest": { "type": "structure", "members": { - "AccountNumber": { - "target": "com.amazonaws.customerprofiles#uuid", + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", "traits": { - "smithy.api#documentation": "

A unique identifier for the account number field to be merged.

" + "smithy.api#documentation": "

The unique name of the domain.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } }, - "AdditionalInformation": { - "target": "com.amazonaws.customerprofiles#uuid", + "CalculatedAttributeName": { + "target": "com.amazonaws.customerprofiles#typeName", "traits": { - "smithy.api#documentation": "

A unique identifier for the additional information field to be merged.

" + "smithy.api#documentation": "

The unique name of the calculated attribute.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } - }, - "PartyType": { - "target": "com.amazonaws.customerprofiles#uuid", + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.customerprofiles#GetCalculatedAttributeDefinitionResponse": { + "type": "structure", + "members": { + "CalculatedAttributeName": { + "target": "com.amazonaws.customerprofiles#typeName", "traits": { - "smithy.api#documentation": "

A unique identifier for the party type field to be merged.

" + "smithy.api#documentation": "

The unique name of the calculated attribute.

" } }, - "BusinessName": { - "target": "com.amazonaws.customerprofiles#uuid", + "DisplayName": { + "target": "com.amazonaws.customerprofiles#displayName", "traits": { - "smithy.api#documentation": "

A unique identifier for the business name field to be merged.

" + "smithy.api#documentation": "

The display name of the calculated attribute.

" } }, - "FirstName": { - "target": "com.amazonaws.customerprofiles#uuid", + "Description": { + "target": "com.amazonaws.customerprofiles#sensitiveText", "traits": { - "smithy.api#documentation": "

A unique identifier for the first name field to be merged.

" + "smithy.api#documentation": "

The description of the calculated attribute.

" } }, - "MiddleName": { - "target": "com.amazonaws.customerprofiles#uuid", + "CreatedAt": { + "target": "com.amazonaws.customerprofiles#timestamp", "traits": { - "smithy.api#documentation": "

A unique identifier for the middle name field to be merged.

" + "smithy.api#documentation": "

The timestamp of when the calculated attribute definition was created.

" } }, - "LastName": { - "target": "com.amazonaws.customerprofiles#uuid", + "LastUpdatedAt": { + "target": "com.amazonaws.customerprofiles#timestamp", "traits": { - "smithy.api#documentation": "

A unique identifier for the last name field to be merged.

" + "smithy.api#documentation": "

The timestamp of when the calculated attribute definition was most recently\n edited.

" } }, - "BirthDate": { - "target": "com.amazonaws.customerprofiles#uuid", + "Statistic": { + "target": "com.amazonaws.customerprofiles#Statistic", "traits": { - "smithy.api#documentation": "

A unique identifier for the birthdate field to be merged.

" + "smithy.api#documentation": "

The aggregation operation to perform for the calculated attribute.

" } }, - "Gender": { - "target": "com.amazonaws.customerprofiles#uuid", + "Filter": { + "target": "com.amazonaws.customerprofiles#Filter", "traits": { - "smithy.api#documentation": "

A unique identifier for the gender field to be merged.

" + "smithy.api#documentation": "

The filter assigned to this calculated attribute definition.

" } }, - "PhoneNumber": { - "target": "com.amazonaws.customerprofiles#uuid", + "Conditions": { + "target": "com.amazonaws.customerprofiles#Conditions", "traits": { - "smithy.api#documentation": "

A unique identifier for the phone number field to be merged.

" + "smithy.api#documentation": "

The conditions including range, object count, and threshold for the calculated\n attribute.

" } }, - "MobilePhoneNumber": { - "target": "com.amazonaws.customerprofiles#uuid", + "AttributeDetails": { + "target": "com.amazonaws.customerprofiles#AttributeDetails", "traits": { - "smithy.api#documentation": "

A unique identifier for the mobile phone number field to be merged.

" + "smithy.api#documentation": "

Mathematical expression and a list of attribute items specified in that\n expression.

" } }, - "HomePhoneNumber": { - "target": "com.amazonaws.customerprofiles#uuid", + "Tags": { + "target": "com.amazonaws.customerprofiles#TagMap", "traits": { - "smithy.api#documentation": "

A unique identifier for the home phone number field to be merged.

" + "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.customerprofiles#GetCalculatedAttributeForProfile": { + "type": "operation", + "input": { + "target": "com.amazonaws.customerprofiles#GetCalculatedAttributeForProfileRequest" + }, + "output": { + "target": "com.amazonaws.customerprofiles#GetCalculatedAttributeForProfileResponse" + }, + "errors": [ + { + "target": "com.amazonaws.customerprofiles#AccessDeniedException" }, - "BusinessPhoneNumber": { - "target": "com.amazonaws.customerprofiles#uuid", - "traits": { - "smithy.api#documentation": "

A unique identifier for the business phone number field to be merged.

" - } + { + "target": "com.amazonaws.customerprofiles#BadRequestException" }, - "EmailAddress": { - "target": "com.amazonaws.customerprofiles#uuid", - "traits": { - "smithy.api#documentation": "

A unique identifier for the email address field to be merged.

" - } + { + "target": "com.amazonaws.customerprofiles#InternalServerException" }, - "PersonalEmailAddress": { - "target": "com.amazonaws.customerprofiles#uuid", + { + "target": "com.amazonaws.customerprofiles#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.customerprofiles#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Retrieve a calculated attribute for a customer profile.

", + "smithy.api#http": { + "method": "GET", + "uri": "/domains/{DomainName}/profile/{ProfileId}/calculated-attributes/{CalculatedAttributeName}", + "code": 200 + } + } + }, + "com.amazonaws.customerprofiles#GetCalculatedAttributeForProfileRequest": { + "type": "structure", + "members": { + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", "traits": { - "smithy.api#documentation": "

A unique identifier for the personal email address field to be merged.

" + "smithy.api#documentation": "

The unique name of the domain.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } }, - "BusinessEmailAddress": { + "ProfileId": { "target": "com.amazonaws.customerprofiles#uuid", "traits": { - "smithy.api#documentation": "

A unique identifier for the party type field to be merged.

" + "smithy.api#documentation": "

The unique identifier of a customer profile.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } }, - "Address": { - "target": "com.amazonaws.customerprofiles#uuid", + "CalculatedAttributeName": { + "target": "com.amazonaws.customerprofiles#typeName", "traits": { - "smithy.api#documentation": "

A unique identifier for the party type field to be merged.

" + "smithy.api#documentation": "

The unique name of the calculated attribute.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } - }, - "ShippingAddress": { - "target": "com.amazonaws.customerprofiles#uuid", + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.customerprofiles#GetCalculatedAttributeForProfileResponse": { + "type": "structure", + "members": { + "CalculatedAttributeName": { + "target": "com.amazonaws.customerprofiles#typeName", "traits": { - "smithy.api#documentation": "

A unique identifier for the shipping address field to be merged.

" + "smithy.api#documentation": "

The unique name of the calculated attribute.

" } }, - "MailingAddress": { - "target": "com.amazonaws.customerprofiles#uuid", + "DisplayName": { + "target": "com.amazonaws.customerprofiles#displayName", "traits": { - "smithy.api#documentation": "

A unique identifier for the mailing address field to be merged.

" + "smithy.api#documentation": "

The display name of the calculated attribute.

" } }, - "BillingAddress": { - "target": "com.amazonaws.customerprofiles#uuid", + "IsDataPartial": { + "target": "com.amazonaws.customerprofiles#string1To255", "traits": { - "smithy.api#documentation": "

A unique identifier for the billing type field to be merged.

" + "smithy.api#documentation": "

Indicates whether the calculated attribute’s value is based on partial data. If data is\n partial, it is set to true.

" } }, - "Attributes": { - "target": "com.amazonaws.customerprofiles#AttributeSourceIdMap", + "Value": { + "target": "com.amazonaws.customerprofiles#string1To255", "traits": { - "smithy.api#documentation": "

A unique identifier for the attributes field to be merged.

" + "smithy.api#documentation": "

The value of the calculated attribute.

" } } }, "traits": { - "smithy.api#documentation": "

A duplicate customer profile that is to be merged into a main profile.

" + "smithy.api#output": {} } }, - "com.amazonaws.customerprofiles#FlowDefinition": { + "com.amazonaws.customerprofiles#GetDomain": { + "type": "operation", + "input": { + "target": "com.amazonaws.customerprofiles#GetDomainRequest" + }, + "output": { + "target": "com.amazonaws.customerprofiles#GetDomainResponse" + }, + "errors": [ + { + "target": "com.amazonaws.customerprofiles#AccessDeniedException" + }, + { + "target": "com.amazonaws.customerprofiles#BadRequestException" + }, + { + "target": "com.amazonaws.customerprofiles#InternalServerException" + }, + { + "target": "com.amazonaws.customerprofiles#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.customerprofiles#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns information about a specific domain.

", + "smithy.api#http": { + "method": "GET", + "uri": "/domains/{DomainName}", + "code": 200 + } + } + }, + "com.amazonaws.customerprofiles#GetDomainRequest": { "type": "structure", "members": { - "Description": { - "target": "com.amazonaws.customerprofiles#FlowDescription", + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", "traits": { - "smithy.api#documentation": "

A description of the flow you want to create.

" + "smithy.api#documentation": "

The unique name of the domain.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } - }, - "FlowName": { - "target": "com.amazonaws.customerprofiles#FlowName", + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.customerprofiles#GetDomainResponse": { + "type": "structure", + "members": { + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", "traits": { - "smithy.api#documentation": "

The specified name of the flow. Use underscores (_) or hyphens (-) only. Spaces are not\n allowed.

", + "smithy.api#documentation": "

The unique name of the domain.

", "smithy.api#required": {} } }, - "KmsArn": { - "target": "com.amazonaws.customerprofiles#KmsArn", + "DefaultExpirationDays": { + "target": "com.amazonaws.customerprofiles#expirationDaysInteger", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name of the AWS Key Management Service (KMS) key you provide for encryption.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The default number of days until the data within the domain expires.

" } }, - "SourceFlowConfig": { - "target": "com.amazonaws.customerprofiles#SourceFlowConfig", + "DefaultEncryptionKey": { + "target": "com.amazonaws.customerprofiles#encryptionKey", "traits": { - "smithy.api#documentation": "

The configuration that controls how Customer Profiles retrieves data from the\n source.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The default encryption key, which is an AWS managed key, is used when no specific type\n of encryption key is specified. It is used to encrypt all data before it is placed in\n permanent or semi-permanent storage.

" } }, - "Tasks": { - "target": "com.amazonaws.customerprofiles#Tasks", + "DeadLetterQueueUrl": { + "target": "com.amazonaws.customerprofiles#sqsQueueUrl", "traits": { - "smithy.api#documentation": "

A list of tasks that Customer Profiles performs while transferring the data in the flow\n run.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The URL of the SQS dead letter queue, which is used for reporting errors associated with\n ingesting data from third party applications.

" } }, - "TriggerConfig": { - "target": "com.amazonaws.customerprofiles#TriggerConfig", + "Stats": { + "target": "com.amazonaws.customerprofiles#DomainStats", "traits": { - "smithy.api#documentation": "

The trigger settings that determine how and when the flow runs.

", - "smithy.api#required": {} + "smithy.api#documentation": "

Usage-specific statistics about the domain.

" } - } - }, - "traits": { - "smithy.api#documentation": "

The configurations that control how Customer Profiles retrieves data from the source,\n Amazon AppFlow. Customer Profiles uses this information to create an AppFlow flow on behalf of\n customers.

", - "smithy.api#sensitive": {} - } - }, - "com.amazonaws.customerprofiles#FlowDescription": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 2048 - }, - "smithy.api#pattern": "^[\\w!@#\\-.?,\\s]*$" - } - }, - "com.amazonaws.customerprofiles#FlowName": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 256 }, - "smithy.api#pattern": "^[a-zA-Z0-9][\\w!@#.-]+$" - } - }, - "com.amazonaws.customerprofiles#FoundByKeyValue": { - "type": "structure", - "members": { - "KeyName": { - "target": "com.amazonaws.customerprofiles#name", + "Matching": { + "target": "com.amazonaws.customerprofiles#MatchingResponse", "traits": { - "smithy.api#documentation": "

A searchable identifier of a customer profile.

" + "smithy.api#documentation": "

The process of matching duplicate profiles. If Matching = true, Amazon Connect Customer Profiles starts a weekly\nbatch process called Identity Resolution Job. If you do not specify a date and time for Identity Resolution Job to run, by default it runs every \nSaturday at 12AM UTC to detect duplicate profiles in your domains.

\n

After the Identity Resolution Job completes, use the \nGetMatches\nAPI to return and review the results. Or, if you have configured ExportingConfig in the MatchingRequest, you can download the results from\nS3.

" } }, - "Values": { - "target": "com.amazonaws.customerprofiles#requestValueList", + "RuleBasedMatching": { + "target": "com.amazonaws.customerprofiles#RuleBasedMatchingResponse", "traits": { - "smithy.api#documentation": "

A list of key values.

" + "smithy.api#documentation": "

The process of matching duplicate profiles using the Rule-Based matching. If\n RuleBasedMatching = true, Amazon Connect Customer Profiles will start\n to match and merge your profiles according to your configuration in the\n RuleBasedMatchingRequest. You can use the ListRuleBasedMatches\n and GetSimilarProfiles API to return and review the results. Also, if you have\n configured ExportingConfig in the RuleBasedMatchingRequest, you\n can download the results from S3.

" } - } - }, - "traits": { - "smithy.api#documentation": "

A data type pair that consists of a KeyName and Values list\n that were used to find a profile returned in response to a SearchProfiles request.\n

" - } - }, - "com.amazonaws.customerprofiles#Gender": { - "type": "enum", - "members": { - "MALE": { - "target": "smithy.api#Unit", + }, + "CreatedAt": { + "target": "com.amazonaws.customerprofiles#timestamp", "traits": { - "smithy.api#enumValue": "MALE" + "smithy.api#documentation": "

The timestamp of when the domain was created.

", + "smithy.api#required": {} } }, - "FEMALE": { - "target": "smithy.api#Unit", + "LastUpdatedAt": { + "target": "com.amazonaws.customerprofiles#timestamp", "traits": { - "smithy.api#enumValue": "FEMALE" + "smithy.api#documentation": "

The timestamp of when the domain was most recently edited.

", + "smithy.api#required": {} } }, - "UNSPECIFIED": { - "target": "smithy.api#Unit", + "Tags": { + "target": "com.amazonaws.customerprofiles#TagMap", "traits": { - "smithy.api#enumValue": "UNSPECIFIED" + "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" } } }, "traits": { - "smithy.api#deprecated": {}, - "smithy.api#sensitive": {} + "smithy.api#output": {} } }, - "com.amazonaws.customerprofiles#GetAutoMergingPreview": { + "com.amazonaws.customerprofiles#GetEventStream": { "type": "operation", "input": { - "target": "com.amazonaws.customerprofiles#GetAutoMergingPreviewRequest" + "target": "com.amazonaws.customerprofiles#GetEventStreamRequest" }, "output": { - "target": "com.amazonaws.customerprofiles#GetAutoMergingPreviewResponse" + "target": "com.amazonaws.customerprofiles#GetEventStreamResponse" }, "errors": [ { @@ -3743,15 +5597,15 @@ } ], "traits": { - "smithy.api#documentation": "

Tests the auto-merging settings of your Identity Resolution Job without merging your data. It randomly\n selects a sample of matching groups from the existing matching results, and applies the\n automerging settings that you provided. You can then view the number of profiles in the\n sample, the number of matches, and the number of profiles identified to be merged. This\n enables you to evaluate the accuracy of the attributes in your matching list.

\n

You can't view which profiles are matched and would be merged.

\n \n

We strongly recommend you use this API to do a dry run of the automerging process\n before running the Identity Resolution Job. Include at least two matching\n attributes. If your matching list includes too few attributes (such as only\n FirstName or only LastName), there may be a large number of\n matches. This increases the chances of erroneous merges.

\n
", + "smithy.api#documentation": "

Returns information about the specified event stream in a specific domain.

", "smithy.api#http": { - "method": "POST", - "uri": "/domains/{DomainName}/identity-resolution-jobs/auto-merging-preview", + "method": "GET", + "uri": "/domains/{DomainName}/event-streams/{EventStreamName}", "code": 200 } } }, - "com.amazonaws.customerprofiles#GetAutoMergingPreviewRequest": { + "com.amazonaws.customerprofiles#GetEventStreamRequest": { "type": "structure", "members": { "DomainName": { @@ -3762,32 +5616,20 @@ "smithy.api#required": {} } }, - "Consolidation": { - "target": "com.amazonaws.customerprofiles#Consolidation", - "traits": { - "smithy.api#documentation": "

A list of matching attributes that represent matching criteria.

", - "smithy.api#required": {} - } - }, - "ConflictResolution": { - "target": "com.amazonaws.customerprofiles#ConflictResolution", + "EventStreamName": { + "target": "com.amazonaws.customerprofiles#name", "traits": { - "smithy.api#documentation": "

How the auto-merging process should resolve conflicts between different profiles.

", + "smithy.api#documentation": "

The name of the event stream provided during create operations.

", + "smithy.api#httpLabel": {}, "smithy.api#required": {} } - }, - "MinAllowedConfidenceScoreForMerging": { - "target": "com.amazonaws.customerprofiles#Double0To1", - "traits": { - "smithy.api#documentation": "

Minimum confidence score required for profiles within a matching group to be merged\n during the auto-merge process.

" - } } }, "traits": { "smithy.api#input": {} } }, - "com.amazonaws.customerprofiles#GetAutoMergingPreviewResponse": { + "com.amazonaws.customerprofiles#GetEventStreamResponse": { "type": "structure", "members": { "DomainName": { @@ -3797,25 +5639,44 @@ "smithy.api#required": {} } }, - "NumberOfMatchesInSample": { - "target": "com.amazonaws.customerprofiles#long", + "EventStreamArn": { + "target": "com.amazonaws.customerprofiles#string1To255", "traits": { - "smithy.api#default": 0, - "smithy.api#documentation": "

The number of match groups in the domain that have been reviewed in this preview dry\n run.

" + "smithy.api#documentation": "

A unique identifier for the event stream.

", + "smithy.api#required": {} } }, - "NumberOfProfilesInSample": { - "target": "com.amazonaws.customerprofiles#long", + "CreatedAt": { + "target": "com.amazonaws.customerprofiles#timestamp", "traits": { - "smithy.api#default": 0, - "smithy.api#documentation": "

The number of profiles found in this preview dry run.

" + "smithy.api#documentation": "

The timestamp of when the export was created.

", + "smithy.api#required": {} + } + }, + "State": { + "target": "com.amazonaws.customerprofiles#EventStreamState", + "traits": { + "smithy.api#documentation": "

The operational state of destination stream for export.

", + "smithy.api#required": {} + } + }, + "StoppedSince": { + "target": "com.amazonaws.customerprofiles#timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp when the State changed to STOPPED.

" + } + }, + "DestinationDetails": { + "target": "com.amazonaws.customerprofiles#EventStreamDestinationDetails", + "traits": { + "smithy.api#documentation": "

Details regarding the Kinesis stream.

", + "smithy.api#required": {} } }, - "NumberOfProfilesWillBeMerged": { - "target": "com.amazonaws.customerprofiles#long", + "Tags": { + "target": "com.amazonaws.customerprofiles#TagMap", "traits": { - "smithy.api#default": 0, - "smithy.api#documentation": "

The number of profiles that would be merged if this wasn't a preview dry run.

" + "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" } } }, @@ -3823,13 +5684,13 @@ "smithy.api#output": {} } }, - "com.amazonaws.customerprofiles#GetCalculatedAttributeDefinition": { + "com.amazonaws.customerprofiles#GetIdentityResolutionJob": { "type": "operation", "input": { - "target": "com.amazonaws.customerprofiles#GetCalculatedAttributeDefinitionRequest" + "target": "com.amazonaws.customerprofiles#GetIdentityResolutionJobRequest" }, "output": { - "target": "com.amazonaws.customerprofiles#GetCalculatedAttributeDefinitionResponse" + "target": "com.amazonaws.customerprofiles#GetIdentityResolutionJobResponse" }, "errors": [ { @@ -3849,15 +5710,15 @@ } ], "traits": { - "smithy.api#documentation": "

Provides more information on a calculated attribute definition for Customer\n Profiles.

", + "smithy.api#documentation": "

Returns information about an Identity Resolution Job in a specific domain.

\n

Identity Resolution Jobs are set up using the Amazon Connect admin console. For more information, see Use\n Identity Resolution to consolidate similar profiles.

", "smithy.api#http": { "method": "GET", - "uri": "/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}", + "uri": "/domains/{DomainName}/identity-resolution-jobs/{JobId}", "code": 200 } } }, - "com.amazonaws.customerprofiles#GetCalculatedAttributeDefinitionRequest": { + "com.amazonaws.customerprofiles#GetIdentityResolutionJobRequest": { "type": "structure", "members": { "DomainName": { @@ -3868,10 +5729,10 @@ "smithy.api#required": {} } }, - "CalculatedAttributeName": { - "target": "com.amazonaws.customerprofiles#typeName", + "JobId": { + "target": "com.amazonaws.customerprofiles#uuid", "traits": { - "smithy.api#documentation": "

The unique name of the calculated attribute.

", + "smithy.api#documentation": "

The unique identifier of the Identity Resolution Job.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3881,61 +5742,73 @@ "smithy.api#input": {} } }, - "com.amazonaws.customerprofiles#GetCalculatedAttributeDefinitionResponse": { + "com.amazonaws.customerprofiles#GetIdentityResolutionJobResponse": { "type": "structure", "members": { - "CalculatedAttributeName": { - "target": "com.amazonaws.customerprofiles#typeName", + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", "traits": { - "smithy.api#documentation": "

The unique name of the calculated attribute.

" + "smithy.api#documentation": "

The unique name of the domain.

" } }, - "DisplayName": { - "target": "com.amazonaws.customerprofiles#displayName", + "JobId": { + "target": "com.amazonaws.customerprofiles#uuid", "traits": { - "smithy.api#documentation": "

The display name of the calculated attribute.

" + "smithy.api#documentation": "

The unique identifier of the Identity Resolution Job.

" } }, - "Description": { - "target": "com.amazonaws.customerprofiles#sensitiveText", + "Status": { + "target": "com.amazonaws.customerprofiles#IdentityResolutionJobStatus", "traits": { - "smithy.api#documentation": "

The description of the calculated attribute.

" + "smithy.api#documentation": "

The status of the Identity Resolution Job.

\n " } }, - "CreatedAt": { + "Message": { + "target": "com.amazonaws.customerprofiles#stringTo2048", + "traits": { + "smithy.api#documentation": "

The error messages that are generated when the Identity Resolution Job runs.

" + } + }, + "JobStartTime": { "target": "com.amazonaws.customerprofiles#timestamp", "traits": { - "smithy.api#documentation": "

The timestamp of when the calculated attribute definition was created.

" + "smithy.api#documentation": "

The timestamp of when the Identity Resolution Job was started or will be started.

" + } + }, + "JobEndTime": { + "target": "com.amazonaws.customerprofiles#timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp of when the Identity Resolution Job was completed.

" } }, "LastUpdatedAt": { "target": "com.amazonaws.customerprofiles#timestamp", "traits": { - "smithy.api#documentation": "

The timestamp of when the calculated attribute definition was most recently\n edited.

" + "smithy.api#documentation": "

The timestamp of when the Identity Resolution Job was most recently edited.

" } }, - "Statistic": { - "target": "com.amazonaws.customerprofiles#Statistic", + "JobExpirationTime": { + "target": "com.amazonaws.customerprofiles#timestamp", "traits": { - "smithy.api#documentation": "

The aggregation operation to perform for the calculated attribute.

" + "smithy.api#documentation": "

The timestamp of when the Identity Resolution Job will expire.

" } }, - "Conditions": { - "target": "com.amazonaws.customerprofiles#Conditions", + "AutoMerging": { + "target": "com.amazonaws.customerprofiles#AutoMerging", "traits": { - "smithy.api#documentation": "

The conditions including range, object count, and threshold for the calculated\n attribute.

" + "smithy.api#documentation": "

Configuration settings for how to perform the auto-merging of profiles.

" } }, - "AttributeDetails": { - "target": "com.amazonaws.customerprofiles#AttributeDetails", + "ExportingLocation": { + "target": "com.amazonaws.customerprofiles#ExportingLocation", "traits": { - "smithy.api#documentation": "

Mathematical expression and a list of attribute items specified in that\n expression.

" + "smithy.api#documentation": "

The S3 location where the Identity Resolution Job writes result files.

" } }, - "Tags": { - "target": "com.amazonaws.customerprofiles#TagMap", + "JobStats": { + "target": "com.amazonaws.customerprofiles#JobStats", "traits": { - "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" + "smithy.api#documentation": "

Statistics about the Identity Resolution Job.

" } } }, @@ -3943,13 +5816,13 @@ "smithy.api#output": {} } }, - "com.amazonaws.customerprofiles#GetCalculatedAttributeForProfile": { + "com.amazonaws.customerprofiles#GetIntegration": { "type": "operation", "input": { - "target": "com.amazonaws.customerprofiles#GetCalculatedAttributeForProfileRequest" + "target": "com.amazonaws.customerprofiles#GetIntegrationRequest" }, "output": { - "target": "com.amazonaws.customerprofiles#GetCalculatedAttributeForProfileResponse" + "target": "com.amazonaws.customerprofiles#GetIntegrationResponse" }, "errors": [ { @@ -3969,15 +5842,15 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieve a calculated attribute for a customer profile.

", + "smithy.api#documentation": "

Returns an integration for a domain.

", "smithy.api#http": { - "method": "GET", - "uri": "/domains/{DomainName}/profile/{ProfileId}/calculated-attributes/{CalculatedAttributeName}", + "method": "POST", + "uri": "/domains/{DomainName}/integrations", "code": 200 } } }, - "com.amazonaws.customerprofiles#GetCalculatedAttributeForProfileRequest": { + "com.amazonaws.customerprofiles#GetIntegrationRequest": { "type": "structure", "members": { "DomainName": { @@ -3988,19 +5861,10 @@ "smithy.api#required": {} } }, - "ProfileId": { - "target": "com.amazonaws.customerprofiles#uuid", - "traits": { - "smithy.api#documentation": "

The unique identifier of a customer profile.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "CalculatedAttributeName": { - "target": "com.amazonaws.customerprofiles#typeName", + "Uri": { + "target": "com.amazonaws.customerprofiles#string1To255", "traits": { - "smithy.api#documentation": "

The unique name of the calculated attribute.

", - "smithy.api#httpLabel": {}, + "smithy.api#documentation": "

The URI of the S3 bucket or any other type of data source.

", "smithy.api#required": {} } } @@ -4009,31 +5873,71 @@ "smithy.api#input": {} } }, - "com.amazonaws.customerprofiles#GetCalculatedAttributeForProfileResponse": { + "com.amazonaws.customerprofiles#GetIntegrationResponse": { "type": "structure", "members": { - "CalculatedAttributeName": { + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

The unique name of the domain.

", + "smithy.api#required": {} + } + }, + "Uri": { + "target": "com.amazonaws.customerprofiles#string1To255", + "traits": { + "smithy.api#documentation": "

The URI of the S3 bucket or any other type of data source.

", + "smithy.api#required": {} + } + }, + "ObjectTypeName": { "target": "com.amazonaws.customerprofiles#typeName", "traits": { - "smithy.api#documentation": "

The unique name of the calculated attribute.

" + "smithy.api#documentation": "

The name of the profile object type.

" } }, - "DisplayName": { - "target": "com.amazonaws.customerprofiles#displayName", + "CreatedAt": { + "target": "com.amazonaws.customerprofiles#timestamp", "traits": { - "smithy.api#documentation": "

The display name of the calculated attribute.

" + "smithy.api#documentation": "

The timestamp of when the domain was created.

", + "smithy.api#required": {} } }, - "IsDataPartial": { - "target": "com.amazonaws.customerprofiles#string1To255", + "LastUpdatedAt": { + "target": "com.amazonaws.customerprofiles#timestamp", "traits": { - "smithy.api#documentation": "

Indicates whether the calculated attribute’s value is based on partial data. If data is\n partial, it is set to true.

" + "smithy.api#documentation": "

The timestamp of when the domain was most recently edited.

", + "smithy.api#required": {} } }, - "Value": { + "Tags": { + "target": "com.amazonaws.customerprofiles#TagMap", + "traits": { + "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" + } + }, + "ObjectTypeNames": { + "target": "com.amazonaws.customerprofiles#ObjectTypeNames", + "traits": { + "smithy.api#documentation": "

A map in which each key is an event type from an external application such as Segment or Shopify, and each value is an ObjectTypeName (template) used to ingest the event.\nIt supports the following event types: SegmentIdentify, ShopifyCreateCustomers, ShopifyUpdateCustomers, ShopifyCreateDraftOrders, \nShopifyUpdateDraftOrders, ShopifyCreateOrders, and ShopifyUpdatedOrders.

" + } + }, + "WorkflowId": { "target": "com.amazonaws.customerprofiles#string1To255", "traits": { - "smithy.api#documentation": "

The value of the calculated attribute.

" + "smithy.api#documentation": "

Unique identifier for the workflow.

" + } + }, + "IsUnstructured": { + "target": "com.amazonaws.customerprofiles#optionalBoolean", + "traits": { + "smithy.api#documentation": "

Boolean that shows if the Flow that's associated with the Integration is created in\n Amazon Appflow, or with ObjectTypeName equals _unstructured via API/CLI in\n flowDefinition.

" + } + }, + "RoleArn": { + "target": "com.amazonaws.customerprofiles#RoleArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role. The Integration uses this role to make\n Customer Profiles requests on your behalf.

" } } }, @@ -4041,13 +5945,13 @@ "smithy.api#output": {} } }, - "com.amazonaws.customerprofiles#GetDomain": { + "com.amazonaws.customerprofiles#GetMatches": { "type": "operation", "input": { - "target": "com.amazonaws.customerprofiles#GetDomainRequest" + "target": "com.amazonaws.customerprofiles#GetMatchesRequest" }, "output": { - "target": "com.amazonaws.customerprofiles#GetDomainResponse" + "target": "com.amazonaws.customerprofiles#GetMatchesResponse" }, "errors": [ { @@ -4067,17 +5971,31 @@ } ], "traits": { - "smithy.api#documentation": "

Returns information about a specific domain.

", + "smithy.api#documentation": "

Before calling this API, use CreateDomain or\n UpdateDomain to\n enable identity resolution: set Matching to true.

\n

GetMatches returns potentially matching profiles, based on the results of the latest run\n of a machine learning process.

\n \n

The process of matching duplicate profiles. If Matching = true, Amazon Connect Customer Profiles starts a weekly\nbatch process called Identity Resolution Job. If you do not specify a date and time for Identity Resolution Job to run, by default it runs every \nSaturday at 12AM UTC to detect duplicate profiles in your domains.

\n

After the Identity Resolution Job completes, use the \nGetMatches\nAPI to return and review the results. Or, if you have configured ExportingConfig in the MatchingRequest, you can download the results from\nS3.

\n
\n

Amazon Connect uses the following profile attributes to identify matches:

\n \n

For example, two or more profiles—with spelling mistakes such as John Doe and Jhn Doe, or different casing\n email addresses such as JOHN_DOE@ANYCOMPANY.COM and\n johndoe@anycompany.com, or different phone number\n formats such as 555-010-0000 and +1-555-010-0000—can be detected as belonging to the same customer John Doe and merged into a unified profile.

", "smithy.api#http": { "method": "GET", - "uri": "/domains/{DomainName}", + "uri": "/domains/{DomainName}/matches", "code": 200 } } }, - "com.amazonaws.customerprofiles#GetDomainRequest": { + "com.amazonaws.customerprofiles#GetMatchesRequest": { "type": "structure", "members": { + "NextToken": { + "target": "com.amazonaws.customerprofiles#token", + "traits": { + "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

", + "smithy.api#httpQuery": "next-token" + } + }, + "MaxResults": { + "target": "com.amazonaws.customerprofiles#maxSize100", + "traits": { + "smithy.api#documentation": "

The maximum number of results to return per page.

", + "smithy.api#httpQuery": "max-results" + } + }, "DomainName": { "target": "com.amazonaws.customerprofiles#name", "traits": { @@ -4091,70 +6009,31 @@ "smithy.api#input": {} } }, - "com.amazonaws.customerprofiles#GetDomainResponse": { + "com.amazonaws.customerprofiles#GetMatchesResponse": { "type": "structure", "members": { - "DomainName": { - "target": "com.amazonaws.customerprofiles#name", - "traits": { - "smithy.api#documentation": "

The unique name of the domain.

", - "smithy.api#required": {} - } - }, - "DefaultExpirationDays": { - "target": "com.amazonaws.customerprofiles#expirationDaysInteger", - "traits": { - "smithy.api#documentation": "

The default number of days until the data within the domain expires.

" - } - }, - "DefaultEncryptionKey": { - "target": "com.amazonaws.customerprofiles#encryptionKey", - "traits": { - "smithy.api#documentation": "

The default encryption key, which is an AWS managed key, is used when no specific type\n of encryption key is specified. It is used to encrypt all data before it is placed in\n permanent or semi-permanent storage.

" - } - }, - "DeadLetterQueueUrl": { - "target": "com.amazonaws.customerprofiles#sqsQueueUrl", - "traits": { - "smithy.api#documentation": "

The URL of the SQS dead letter queue, which is used for reporting errors associated with\n ingesting data from third party applications.

" - } - }, - "Stats": { - "target": "com.amazonaws.customerprofiles#DomainStats", - "traits": { - "smithy.api#documentation": "

Usage-specific statistics about the domain.

" - } - }, - "Matching": { - "target": "com.amazonaws.customerprofiles#MatchingResponse", - "traits": { - "smithy.api#documentation": "

The process of matching duplicate profiles. If Matching = true, Amazon Connect Customer Profiles starts a weekly\nbatch process called Identity Resolution Job. If you do not specify a date and time for Identity Resolution Job to run, by default it runs every \nSaturday at 12AM UTC to detect duplicate profiles in your domains.

\n

After the Identity Resolution Job completes, use the \nGetMatches\nAPI to return and review the results. Or, if you have configured ExportingConfig in the MatchingRequest, you can download the results from\nS3.

" - } - }, - "RuleBasedMatching": { - "target": "com.amazonaws.customerprofiles#RuleBasedMatchingResponse", + "NextToken": { + "target": "com.amazonaws.customerprofiles#token", "traits": { - "smithy.api#documentation": "

The process of matching duplicate profiles using the Rule-Based matching. If\n RuleBasedMatching = true, Amazon Connect Customer Profiles will start\n to match and merge your profiles according to your configuration in the\n RuleBasedMatchingRequest. You can use the ListRuleBasedMatches\n and GetSimilarProfiles API to return and review the results. Also, if you have\n configured ExportingConfig in the RuleBasedMatchingRequest, you\n can download the results from S3.

" + "smithy.api#documentation": "

If there are additional results, this is the token for the next set of results.

" } }, - "CreatedAt": { + "MatchGenerationDate": { "target": "com.amazonaws.customerprofiles#timestamp", "traits": { - "smithy.api#documentation": "

The timestamp of when the domain was created.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The timestamp this version of Match Result generated.

" } }, - "LastUpdatedAt": { - "target": "com.amazonaws.customerprofiles#timestamp", + "PotentialMatches": { + "target": "com.amazonaws.customerprofiles#matchesNumber", "traits": { - "smithy.api#documentation": "

The timestamp of when the domain was most recently edited.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The number of potential matches found.

" } }, - "Tags": { - "target": "com.amazonaws.customerprofiles#TagMap", + "Matches": { + "target": "com.amazonaws.customerprofiles#MatchesList", "traits": { - "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" + "smithy.api#documentation": "

The list of matched profiles for this instance.

" } } }, @@ -4162,13 +6041,13 @@ "smithy.api#output": {} } }, - "com.amazonaws.customerprofiles#GetEventStream": { + "com.amazonaws.customerprofiles#GetProfileObjectType": { "type": "operation", "input": { - "target": "com.amazonaws.customerprofiles#GetEventStreamRequest" + "target": "com.amazonaws.customerprofiles#GetProfileObjectTypeRequest" }, "output": { - "target": "com.amazonaws.customerprofiles#GetEventStreamResponse" + "target": "com.amazonaws.customerprofiles#GetProfileObjectTypeResponse" }, "errors": [ { @@ -4188,15 +6067,15 @@ } ], "traits": { - "smithy.api#documentation": "

Returns information about the specified event stream in a specific domain.

", + "smithy.api#documentation": "

Returns the object types for a specific domain.

", "smithy.api#http": { "method": "GET", - "uri": "/domains/{DomainName}/event-streams/{EventStreamName}", + "uri": "/domains/{DomainName}/object-types/{ObjectTypeName}", "code": 200 } } }, - "com.amazonaws.customerprofiles#GetEventStreamRequest": { + "com.amazonaws.customerprofiles#GetProfileObjectTypeRequest": { "type": "structure", "members": { "DomainName": { @@ -4207,10 +6086,10 @@ "smithy.api#required": {} } }, - "EventStreamName": { - "target": "com.amazonaws.customerprofiles#name", + "ObjectTypeName": { + "target": "com.amazonaws.customerprofiles#typeName", "traits": { - "smithy.api#documentation": "

The name of the event stream provided during create operations.

", + "smithy.api#documentation": "

The name of the profile object type.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4220,48 +6099,88 @@ "smithy.api#input": {} } }, - "com.amazonaws.customerprofiles#GetEventStreamResponse": { + "com.amazonaws.customerprofiles#GetProfileObjectTypeResponse": { "type": "structure", "members": { - "DomainName": { - "target": "com.amazonaws.customerprofiles#name", + "ObjectTypeName": { + "target": "com.amazonaws.customerprofiles#typeName", "traits": { - "smithy.api#documentation": "

The unique name of the domain.

", + "smithy.api#documentation": "

The name of the profile object type.

", "smithy.api#required": {} } }, - "EventStreamArn": { - "target": "com.amazonaws.customerprofiles#string1To255", + "Description": { + "target": "com.amazonaws.customerprofiles#sensitiveText", "traits": { - "smithy.api#documentation": "

A unique identifier for the event stream.

", + "smithy.api#documentation": "

The description of the profile object type.

", "smithy.api#required": {} } }, - "CreatedAt": { - "target": "com.amazonaws.customerprofiles#timestamp", + "TemplateId": { + "target": "com.amazonaws.customerprofiles#name", "traits": { - "smithy.api#documentation": "

The timestamp of when the export was created.

", - "smithy.api#required": {} + "smithy.api#documentation": "

A unique identifier for the object template.

" } }, - "State": { - "target": "com.amazonaws.customerprofiles#EventStreamState", + "ExpirationDays": { + "target": "com.amazonaws.customerprofiles#expirationDaysInteger", "traits": { - "smithy.api#documentation": "

The operational state of destination stream for export.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The number of days until the data in the object expires.

" } }, - "StoppedSince": { + "EncryptionKey": { + "target": "com.amazonaws.customerprofiles#encryptionKey", + "traits": { + "smithy.api#documentation": "

The customer-provided key to encrypt the profile object that will be created in this\n profile object type.

" + } + }, + "AllowProfileCreation": { + "target": "com.amazonaws.customerprofiles#boolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

Indicates whether a profile should be created when data is received if one doesn’t exist\n for an object of this type. The default is FALSE. If the AllowProfileCreation\n flag is set to FALSE, then the service tries to fetch a standard profile and\n associate this object with the profile. If it is set to TRUE, and if no match\n is found, then the service creates a new standard profile.

" + } + }, + "SourceLastUpdatedTimestampFormat": { + "target": "com.amazonaws.customerprofiles#string1To255", + "traits": { + "smithy.api#documentation": "

The format of your sourceLastUpdatedTimestamp that was previously set\n up.

" + } + }, + "MaxAvailableProfileObjectCount": { + "target": "com.amazonaws.customerprofiles#minSize0", + "traits": { + "smithy.api#documentation": "

The amount of provisioned profile object max count available.

" + } + }, + "MaxProfileObjectCount": { + "target": "com.amazonaws.customerprofiles#minSize1", + "traits": { + "smithy.api#documentation": "

The amount of profile object max count assigned to the object type.

" + } + }, + "Fields": { + "target": "com.amazonaws.customerprofiles#FieldMap", + "traits": { + "smithy.api#documentation": "

A map of the name and ObjectType field.

" + } + }, + "Keys": { + "target": "com.amazonaws.customerprofiles#KeyMap", + "traits": { + "smithy.api#documentation": "

A list of unique keys that can be used to map data to the profile.

" + } + }, + "CreatedAt": { "target": "com.amazonaws.customerprofiles#timestamp", "traits": { - "smithy.api#documentation": "

The timestamp when the State changed to STOPPED.

" + "smithy.api#documentation": "

The timestamp of when the domain was created.

" } }, - "DestinationDetails": { - "target": "com.amazonaws.customerprofiles#EventStreamDestinationDetails", + "LastUpdatedAt": { + "target": "com.amazonaws.customerprofiles#timestamp", "traits": { - "smithy.api#documentation": "

Details regarding the Kinesis stream.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The timestamp of when the domain was most recently edited.

" } }, "Tags": { @@ -4275,13 +6194,13 @@ "smithy.api#output": {} } }, - "com.amazonaws.customerprofiles#GetIdentityResolutionJob": { + "com.amazonaws.customerprofiles#GetProfileObjectTypeTemplate": { "type": "operation", "input": { - "target": "com.amazonaws.customerprofiles#GetIdentityResolutionJobRequest" + "target": "com.amazonaws.customerprofiles#GetProfileObjectTypeTemplateRequest" }, "output": { - "target": "com.amazonaws.customerprofiles#GetIdentityResolutionJobResponse" + "target": "com.amazonaws.customerprofiles#GetProfileObjectTypeTemplateResponse" }, "errors": [ { @@ -4301,29 +6220,21 @@ } ], "traits": { - "smithy.api#documentation": "

Returns information about an Identity Resolution Job in a specific domain.

\n

Identity Resolution Jobs are set up using the Amazon Connect admin console. For more information, see Use\n Identity Resolution to consolidate similar profiles.

", + "smithy.api#documentation": "

Returns the template information for a specific object type.

\n

A template is a predefined ProfileObjectType, such as “Salesforce-Account” or\n “Salesforce-Contact.” When a user sends a ProfileObject, using the PutProfileObject API,\n with an ObjectTypeName that matches one of the TemplateIds, it uses the mappings from the\n template.

", "smithy.api#http": { "method": "GET", - "uri": "/domains/{DomainName}/identity-resolution-jobs/{JobId}", + "uri": "/templates/{TemplateId}", "code": 200 } } }, - "com.amazonaws.customerprofiles#GetIdentityResolutionJobRequest": { + "com.amazonaws.customerprofiles#GetProfileObjectTypeTemplateRequest": { "type": "structure", "members": { - "DomainName": { + "TemplateId": { "target": "com.amazonaws.customerprofiles#name", "traits": { - "smithy.api#documentation": "

The unique name of the domain.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "JobId": { - "target": "com.amazonaws.customerprofiles#uuid", - "traits": { - "smithy.api#documentation": "

The unique identifier of the Identity Resolution Job.

", + "smithy.api#documentation": "

A unique identifier for the object template.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4333,73 +6244,50 @@ "smithy.api#input": {} } }, - "com.amazonaws.customerprofiles#GetIdentityResolutionJobResponse": { + "com.amazonaws.customerprofiles#GetProfileObjectTypeTemplateResponse": { "type": "structure", "members": { - "DomainName": { + "TemplateId": { "target": "com.amazonaws.customerprofiles#name", "traits": { - "smithy.api#documentation": "

The unique name of the domain.

" - } - }, - "JobId": { - "target": "com.amazonaws.customerprofiles#uuid", - "traits": { - "smithy.api#documentation": "

The unique identifier of the Identity Resolution Job.

" - } - }, - "Status": { - "target": "com.amazonaws.customerprofiles#IdentityResolutionJobStatus", - "traits": { - "smithy.api#documentation": "

The status of the Identity Resolution Job.

\n " - } - }, - "Message": { - "target": "com.amazonaws.customerprofiles#stringTo2048", - "traits": { - "smithy.api#documentation": "

The error messages that are generated when the Identity Resolution Job runs.

" - } - }, - "JobStartTime": { - "target": "com.amazonaws.customerprofiles#timestamp", - "traits": { - "smithy.api#documentation": "

The timestamp of when the Identity Resolution Job was started or will be started.

" + "smithy.api#documentation": "

A unique identifier for the object template.

" } }, - "JobEndTime": { - "target": "com.amazonaws.customerprofiles#timestamp", + "SourceName": { + "target": "com.amazonaws.customerprofiles#name", "traits": { - "smithy.api#documentation": "

The timestamp of when the Identity Resolution Job was completed.

" + "smithy.api#documentation": "

The name of the source of the object template.

" } }, - "LastUpdatedAt": { - "target": "com.amazonaws.customerprofiles#timestamp", + "SourceObject": { + "target": "com.amazonaws.customerprofiles#name", "traits": { - "smithy.api#documentation": "

The timestamp of when the Identity Resolution Job was most recently edited.

" + "smithy.api#documentation": "

The source of the object template.

" } }, - "JobExpirationTime": { - "target": "com.amazonaws.customerprofiles#timestamp", + "AllowProfileCreation": { + "target": "com.amazonaws.customerprofiles#boolean", "traits": { - "smithy.api#documentation": "

The timestamp of when the Identity Resolution Job will expire.

" + "smithy.api#default": false, + "smithy.api#documentation": "

Indicates whether a profile should be created when data is received if one doesn’t exist\n for an object of this type. The default is FALSE. If the AllowProfileCreation\n flag is set to FALSE, then the service tries to fetch a standard profile and\n associate this object with the profile. If it is set to TRUE, and if no match\n is found, then the service creates a new standard profile.

" } }, - "AutoMerging": { - "target": "com.amazonaws.customerprofiles#AutoMerging", + "SourceLastUpdatedTimestampFormat": { + "target": "com.amazonaws.customerprofiles#string1To255", "traits": { - "smithy.api#documentation": "

Configuration settings for how to perform the auto-merging of profiles.

" + "smithy.api#documentation": "

The format of your sourceLastUpdatedTimestamp that was previously set\n up.

" } }, - "ExportingLocation": { - "target": "com.amazonaws.customerprofiles#ExportingLocation", + "Fields": { + "target": "com.amazonaws.customerprofiles#FieldMap", "traits": { - "smithy.api#documentation": "

The S3 location where the Identity Resolution Job writes result files.

" + "smithy.api#documentation": "

A map of the name and ObjectType field.

" } }, - "JobStats": { - "target": "com.amazonaws.customerprofiles#JobStats", + "Keys": { + "target": "com.amazonaws.customerprofiles#KeyMap", "traits": { - "smithy.api#documentation": "

Statistics about the Identity Resolution Job.

" + "smithy.api#documentation": "

A list of unique keys that can be used to map data to the profile.

" } } }, @@ -4407,13 +6295,13 @@ "smithy.api#output": {} } }, - "com.amazonaws.customerprofiles#GetIntegration": { + "com.amazonaws.customerprofiles#GetSegmentDefinition": { "type": "operation", "input": { - "target": "com.amazonaws.customerprofiles#GetIntegrationRequest" + "target": "com.amazonaws.customerprofiles#GetSegmentDefinitionRequest" }, "output": { - "target": "com.amazonaws.customerprofiles#GetIntegrationResponse" + "target": "com.amazonaws.customerprofiles#GetSegmentDefinitionResponse" }, "errors": [ { @@ -4433,15 +6321,15 @@ } ], "traits": { - "smithy.api#documentation": "

Returns an integration for a domain.

", + "smithy.api#documentation": "

Gets a segment definition from the domain.

", "smithy.api#http": { - "method": "POST", - "uri": "/domains/{DomainName}/integrations", + "method": "GET", + "uri": "/domains/{DomainName}/segment-definitions/{SegmentDefinitionName}", "code": 200 } } }, - "com.amazonaws.customerprofiles#GetIntegrationRequest": { + "com.amazonaws.customerprofiles#GetSegmentDefinitionRequest": { "type": "structure", "members": { "DomainName": { @@ -4452,10 +6340,11 @@ "smithy.api#required": {} } }, - "Uri": { - "target": "com.amazonaws.customerprofiles#string1To255", + "SegmentDefinitionName": { + "target": "com.amazonaws.customerprofiles#name", "traits": { - "smithy.api#documentation": "

The URI of the S3 bucket or any other type of data source.

", + "smithy.api#documentation": "

The unique name of the segment definition.

", + "smithy.api#httpLabel": {}, "smithy.api#required": {} } } @@ -4464,71 +6353,57 @@ "smithy.api#input": {} } }, - "com.amazonaws.customerprofiles#GetIntegrationResponse": { + "com.amazonaws.customerprofiles#GetSegmentDefinitionResponse": { "type": "structure", "members": { - "DomainName": { + "SegmentDefinitionName": { "target": "com.amazonaws.customerprofiles#name", "traits": { - "smithy.api#documentation": "

The unique name of the domain.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The name of the segment definition.

", + "smithy.api#jsonName": "SegmentDefinitionName" } }, - "Uri": { + "DisplayName": { "target": "com.amazonaws.customerprofiles#string1To255", "traits": { - "smithy.api#documentation": "

The URI of the S3 bucket or any other type of data source.

", - "smithy.api#required": {} - } - }, - "ObjectTypeName": { - "target": "com.amazonaws.customerprofiles#typeName", - "traits": { - "smithy.api#documentation": "

The name of the profile object type.

" - } - }, - "CreatedAt": { - "target": "com.amazonaws.customerprofiles#timestamp", - "traits": { - "smithy.api#documentation": "

The timestamp of when the domain was created.

", - "smithy.api#required": {} - } - }, - "LastUpdatedAt": { - "target": "com.amazonaws.customerprofiles#timestamp", - "traits": { - "smithy.api#documentation": "

The timestamp of when the domain was most recently edited.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The display name of the segment definition.

", + "smithy.api#jsonName": "DisplayName" } }, - "Tags": { - "target": "com.amazonaws.customerprofiles#TagMap", + "Description": { + "target": "com.amazonaws.customerprofiles#sensitiveText", "traits": { - "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" + "smithy.api#documentation": "

The description of the segment definition.

", + "smithy.api#jsonName": "Description" } }, - "ObjectTypeNames": { - "target": "com.amazonaws.customerprofiles#ObjectTypeNames", + "SegmentGroups": { + "target": "com.amazonaws.customerprofiles#SegmentGroup", "traits": { - "smithy.api#documentation": "

A map in which each key is an event type from an external application such as Segment or Shopify, and each value is an ObjectTypeName (template) used to ingest the event.\nIt supports the following event types: SegmentIdentify, ShopifyCreateCustomers, ShopifyUpdateCustomers, ShopifyCreateDraftOrders, \nShopifyUpdateDraftOrders, ShopifyCreateOrders, and ShopifyUpdatedOrders.

" + "smithy.api#documentation": "

The segment criteria associated with this definition.

", + "smithy.api#jsonName": "SegmentGroups" } }, - "WorkflowId": { - "target": "com.amazonaws.customerprofiles#string1To255", + "SegmentDefinitionArn": { + "target": "com.amazonaws.customerprofiles#SegmentDefinitionArn", "traits": { - "smithy.api#documentation": "

Unique identifier for the workflow.

" + "smithy.api#documentation": "

The arn of the segment definition.

", + "smithy.api#jsonName": "SegmentDefinitionArn", + "smithy.api#required": {} } }, - "IsUnstructured": { - "target": "com.amazonaws.customerprofiles#optionalBoolean", + "CreatedAt": { + "target": "com.amazonaws.customerprofiles#timestamp", "traits": { - "smithy.api#documentation": "

Boolean that shows if the Flow that's associated with the Integration is created in\n Amazon Appflow, or with ObjectTypeName equals _unstructured via API/CLI in\n flowDefinition.

" + "smithy.api#documentation": "

The timestamp of when the segment definition was created.

", + "smithy.api#jsonName": "CreatedAt" } }, - "RoleArn": { - "target": "com.amazonaws.customerprofiles#RoleArn", + "Tags": { + "target": "com.amazonaws.customerprofiles#TagMap", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role. The Integration uses this role to make\n Customer Profiles requests on your behalf.

" + "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

", + "smithy.api#jsonName": "Tags" } } }, @@ -4536,13 +6411,13 @@ "smithy.api#output": {} } }, - "com.amazonaws.customerprofiles#GetMatches": { + "com.amazonaws.customerprofiles#GetSegmentEstimate": { "type": "operation", "input": { - "target": "com.amazonaws.customerprofiles#GetMatchesRequest" + "target": "com.amazonaws.customerprofiles#GetSegmentEstimateRequest" }, "output": { - "target": "com.amazonaws.customerprofiles#GetMatchesResponse" + "target": "com.amazonaws.customerprofiles#GetSegmentEstimateResponse" }, "errors": [ { @@ -4562,31 +6437,17 @@ } ], "traits": { - "smithy.api#documentation": "

Before calling this API, use CreateDomain or\n UpdateDomain to\n enable identity resolution: set Matching to true.

\n

GetMatches returns potentially matching profiles, based on the results of the latest run\n of a machine learning process.

\n \n

The process of matching duplicate profiles. If Matching = true, Amazon Connect Customer Profiles starts a weekly\nbatch process called Identity Resolution Job. If you do not specify a date and time for Identity Resolution Job to run, by default it runs every \nSaturday at 12AM UTC to detect duplicate profiles in your domains.

\n

After the Identity Resolution Job completes, use the \nGetMatches\nAPI to return and review the results. Or, if you have configured ExportingConfig in the MatchingRequest, you can download the results from\nS3.

\n
\n

Amazon Connect uses the following profile attributes to identify matches:

\n \n

For example, two or more profiles—with spelling mistakes such as John Doe and Jhn Doe, or different casing\n email addresses such as JOHN_DOE@ANYCOMPANY.COM and\n johndoe@anycompany.com, or different phone number\n formats such as 555-010-0000 and +1-555-010-0000—can be detected as belonging to the same customer John Doe and merged into a unified profile.

", + "smithy.api#documentation": "

Gets the result of a segment estimate query.

", "smithy.api#http": { "method": "GET", - "uri": "/domains/{DomainName}/matches", + "uri": "/domains/{DomainName}/segment-estimates/{EstimateId}", "code": 200 } } }, - "com.amazonaws.customerprofiles#GetMatchesRequest": { + "com.amazonaws.customerprofiles#GetSegmentEstimateRequest": { "type": "structure", "members": { - "NextToken": { - "target": "com.amazonaws.customerprofiles#token", - "traits": { - "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

", - "smithy.api#httpQuery": "next-token" - } - }, - "MaxResults": { - "target": "com.amazonaws.customerprofiles#maxSize100", - "traits": { - "smithy.api#documentation": "

The maximum number of results to return per page.

", - "smithy.api#httpQuery": "max-results" - } - }, "DomainName": { "target": "com.amazonaws.customerprofiles#name", "traits": { @@ -4594,37 +6455,59 @@ "smithy.api#httpLabel": {}, "smithy.api#required": {} } + }, + "EstimateId": { + "target": "com.amazonaws.customerprofiles#string1To255", + "traits": { + "smithy.api#documentation": "

The query Id passed by a previous CreateSegmentEstimate operation.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } } }, "traits": { "smithy.api#input": {} } }, - "com.amazonaws.customerprofiles#GetMatchesResponse": { + "com.amazonaws.customerprofiles#GetSegmentEstimateResponse": { "type": "structure", "members": { - "NextToken": { - "target": "com.amazonaws.customerprofiles#token", + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", "traits": { - "smithy.api#documentation": "

If there are additional results, this is the token for the next set of results.

" + "smithy.api#documentation": "

The unique name of the domain.

" } }, - "MatchGenerationDate": { - "target": "com.amazonaws.customerprofiles#timestamp", + "EstimateId": { + "target": "com.amazonaws.customerprofiles#string1To255", "traits": { - "smithy.api#documentation": "

The timestamp this version of Match Result generated.

" + "smithy.api#documentation": "

The QueryId which is the same as the value passed in QueryId.

" } }, - "PotentialMatches": { - "target": "com.amazonaws.customerprofiles#matchesNumber", + "Status": { + "target": "com.amazonaws.customerprofiles#EstimateStatus", "traits": { - "smithy.api#documentation": "

The number of potential matches found.

" + "smithy.api#documentation": "

The current status of the query.

" } }, - "Matches": { - "target": "com.amazonaws.customerprofiles#MatchesList", + "Estimate": { + "target": "com.amazonaws.customerprofiles#string1To255", "traits": { - "smithy.api#documentation": "

The list of matched profiles for this instance.

" + "smithy.api#documentation": "

The estimated number of profiles contained in the segment.

" + } + }, + "Message": { + "target": "com.amazonaws.customerprofiles#string1To255", + "traits": { + "smithy.api#documentation": "

The error message if there is any error.

" + } + }, + "StatusCode": { + "target": "com.amazonaws.customerprofiles#StatusCode", + "traits": { + "smithy.api#default": 0, + "smithy.api#documentation": "

The status code of the segment estimate.

", + "smithy.api#httpResponseCode": {} } } }, @@ -4632,13 +6515,13 @@ "smithy.api#output": {} } }, - "com.amazonaws.customerprofiles#GetProfileObjectType": { + "com.amazonaws.customerprofiles#GetSegmentMembership": { "type": "operation", "input": { - "target": "com.amazonaws.customerprofiles#GetProfileObjectTypeRequest" + "target": "com.amazonaws.customerprofiles#GetSegmentMembershipRequest" }, "output": { - "target": "com.amazonaws.customerprofiles#GetProfileObjectTypeResponse" + "target": "com.amazonaws.customerprofiles#GetSegmentMembershipResponse" }, "errors": [ { @@ -4658,15 +6541,19 @@ } ], "traits": { - "smithy.api#documentation": "

Returns the object types for a specific domain.

", + "smithy.api#documentation": "

Determines if the given profiles are within a segment.

", "smithy.api#http": { - "method": "GET", - "uri": "/domains/{DomainName}/object-types/{ObjectTypeName}", + "method": "POST", + "uri": "/domains/{DomainName}/segments/{SegmentDefinitionName}/membership", "code": 200 - } + }, + "smithy.api#idempotent": {} } }, - "com.amazonaws.customerprofiles#GetProfileObjectTypeRequest": { + "com.amazonaws.customerprofiles#GetSegmentMembershipMessage": { + "type": "string" + }, + "com.amazonaws.customerprofiles#GetSegmentMembershipRequest": { "type": "structure", "members": { "DomainName": { @@ -4677,107 +6564,49 @@ "smithy.api#required": {} } }, - "ObjectTypeName": { - "target": "com.amazonaws.customerprofiles#typeName", + "SegmentDefinitionName": { + "target": "com.amazonaws.customerprofiles#name", "traits": { - "smithy.api#documentation": "

The name of the profile object type.

", + "smithy.api#documentation": "

The Id of the wanted segment. Needs to be a valid, and existing segment Id.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } + }, + "ProfileIds": { + "target": "com.amazonaws.customerprofiles#ProfileIds", + "traits": { + "smithy.api#documentation": "

The list of profile IDs to query for.

", + "smithy.api#jsonName": "ProfileIds", + "smithy.api#required": {} + } } }, "traits": { "smithy.api#input": {} } }, - "com.amazonaws.customerprofiles#GetProfileObjectTypeResponse": { + "com.amazonaws.customerprofiles#GetSegmentMembershipResponse": { "type": "structure", "members": { - "ObjectTypeName": { - "target": "com.amazonaws.customerprofiles#typeName", - "traits": { - "smithy.api#documentation": "

The name of the profile object type.

", - "smithy.api#required": {} - } - }, - "Description": { - "target": "com.amazonaws.customerprofiles#sensitiveText", - "traits": { - "smithy.api#documentation": "

The description of the profile object type.

", - "smithy.api#required": {} - } - }, - "TemplateId": { + "SegmentDefinitionName": { "target": "com.amazonaws.customerprofiles#name", "traits": { - "smithy.api#documentation": "

A unique identifier for the object template.

" - } - }, - "ExpirationDays": { - "target": "com.amazonaws.customerprofiles#expirationDaysInteger", - "traits": { - "smithy.api#documentation": "

The number of days until the data in the object expires.

" - } - }, - "EncryptionKey": { - "target": "com.amazonaws.customerprofiles#encryptionKey", - "traits": { - "smithy.api#documentation": "

The customer-provided key to encrypt the profile object that will be created in this\n profile object type.

" - } - }, - "AllowProfileCreation": { - "target": "com.amazonaws.customerprofiles#boolean", - "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

Indicates whether a profile should be created when data is received if one doesn’t exist\n for an object of this type. The default is FALSE. If the AllowProfileCreation\n flag is set to FALSE, then the service tries to fetch a standard profile and\n associate this object with the profile. If it is set to TRUE, and if no match\n is found, then the service creates a new standard profile.

" - } - }, - "SourceLastUpdatedTimestampFormat": { - "target": "com.amazonaws.customerprofiles#string1To255", - "traits": { - "smithy.api#documentation": "

The format of your sourceLastUpdatedTimestamp that was previously set\n up.

" - } - }, - "MaxAvailableProfileObjectCount": { - "target": "com.amazonaws.customerprofiles#minSize0", - "traits": { - "smithy.api#documentation": "

The amount of provisioned profile object max count available.

" - } - }, - "MaxProfileObjectCount": { - "target": "com.amazonaws.customerprofiles#minSize1", - "traits": { - "smithy.api#documentation": "

The amount of profile object max count assigned to the object type.

" - } - }, - "Fields": { - "target": "com.amazonaws.customerprofiles#FieldMap", - "traits": { - "smithy.api#documentation": "

A map of the name and ObjectType field.

" - } - }, - "Keys": { - "target": "com.amazonaws.customerprofiles#KeyMap", - "traits": { - "smithy.api#documentation": "

A list of unique keys that can be used to map data to the profile.

" - } - }, - "CreatedAt": { - "target": "com.amazonaws.customerprofiles#timestamp", - "traits": { - "smithy.api#documentation": "

The timestamp of when the domain was created.

" + "smithy.api#documentation": "

The unique name of the segment definition.

", + "smithy.api#jsonName": "SegmentDefinitionName" } }, - "LastUpdatedAt": { - "target": "com.amazonaws.customerprofiles#timestamp", + "Profiles": { + "target": "com.amazonaws.customerprofiles#Profiles", "traits": { - "smithy.api#documentation": "

The timestamp of when the domain was most recently edited.

" + "smithy.api#documentation": "

An array of maps where each contains a response per profile requested.

", + "smithy.api#jsonName": "Profiles" } }, - "Tags": { - "target": "com.amazonaws.customerprofiles#TagMap", + "Failures": { + "target": "com.amazonaws.customerprofiles#Failures", "traits": { - "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" + "smithy.api#documentation": "

An array of maps where each contains a response per profile failed for the request.

", + "smithy.api#jsonName": "Failures" } } }, @@ -4785,13 +6614,16 @@ "smithy.api#output": {} } }, - "com.amazonaws.customerprofiles#GetProfileObjectTypeTemplate": { + "com.amazonaws.customerprofiles#GetSegmentMembershipStatus": { + "type": "integer" + }, + "com.amazonaws.customerprofiles#GetSegmentSnapshot": { "type": "operation", "input": { - "target": "com.amazonaws.customerprofiles#GetProfileObjectTypeTemplateRequest" + "target": "com.amazonaws.customerprofiles#GetSegmentSnapshotRequest" }, "output": { - "target": "com.amazonaws.customerprofiles#GetProfileObjectTypeTemplateResponse" + "target": "com.amazonaws.customerprofiles#GetSegmentSnapshotResponse" }, "errors": [ { @@ -4811,21 +6643,37 @@ } ], "traits": { - "smithy.api#documentation": "

Returns the template information for a specific object type.

\n

A template is a predefined ProfileObjectType, such as “Salesforce-Account” or\n “Salesforce-Contact.” When a user sends a ProfileObject, using the PutProfileObject API,\n with an ObjectTypeName that matches one of the TemplateIds, it uses the mappings from the\n template.

", + "smithy.api#documentation": "

Retrieve the latest status of a segment snapshot.

", "smithy.api#http": { "method": "GET", - "uri": "/templates/{TemplateId}", + "uri": "/domains/{DomainName}/segments/{SegmentDefinitionName}/snapshots/{SnapshotId}", "code": 200 } } }, - "com.amazonaws.customerprofiles#GetProfileObjectTypeTemplateRequest": { + "com.amazonaws.customerprofiles#GetSegmentSnapshotRequest": { "type": "structure", "members": { - "TemplateId": { + "DomainName": { "target": "com.amazonaws.customerprofiles#name", "traits": { - "smithy.api#documentation": "

A unique identifier for the object template.

", + "smithy.api#documentation": "

The unique identifier of the domain.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "SegmentDefinitionName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

The unique name of the segment definition.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "SnapshotId": { + "target": "com.amazonaws.customerprofiles#uuid", + "traits": { + "smithy.api#documentation": "

The unique identifier of the segment snapshot.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -4835,50 +6683,52 @@ "smithy.api#input": {} } }, - "com.amazonaws.customerprofiles#GetProfileObjectTypeTemplateResponse": { + "com.amazonaws.customerprofiles#GetSegmentSnapshotResponse": { "type": "structure", "members": { - "TemplateId": { - "target": "com.amazonaws.customerprofiles#name", + "SnapshotId": { + "target": "com.amazonaws.customerprofiles#uuid", "traits": { - "smithy.api#documentation": "

A unique identifier for the object template.

" + "smithy.api#documentation": "

The unique identifier of the segment snapshot.

", + "smithy.api#required": {} } }, - "SourceName": { - "target": "com.amazonaws.customerprofiles#name", + "Status": { + "target": "com.amazonaws.customerprofiles#SegmentSnapshotStatus", "traits": { - "smithy.api#documentation": "

The name of the source of the object template.

" + "smithy.api#documentation": "

The status of the asynchronous job for exporting the segment snapshot.

", + "smithy.api#required": {} } }, - "SourceObject": { - "target": "com.amazonaws.customerprofiles#name", + "StatusMessage": { + "target": "com.amazonaws.customerprofiles#string1To1000", "traits": { - "smithy.api#documentation": "

The source of the object template.

" + "smithy.api#documentation": "

The status message of the asynchronous job for exporting the segment snapshot.

" } }, - "AllowProfileCreation": { - "target": "com.amazonaws.customerprofiles#boolean", + "DataFormat": { + "target": "com.amazonaws.customerprofiles#DataFormat", "traits": { - "smithy.api#default": false, - "smithy.api#documentation": "

Indicates whether a profile should be created when data is received if one doesn’t exist\n for an object of this type. The default is FALSE. If the AllowProfileCreation\n flag is set to FALSE, then the service tries to fetch a standard profile and\n associate this object with the profile. If it is set to TRUE, and if no match\n is found, then the service creates a new standard profile.

" + "smithy.api#documentation": "

The format in which the segment will be exported.

", + "smithy.api#required": {} } }, - "SourceLastUpdatedTimestampFormat": { - "target": "com.amazonaws.customerprofiles#string1To255", + "EncryptionKey": { + "target": "com.amazonaws.customerprofiles#encryptionKey", "traits": { - "smithy.api#documentation": "

The format of your sourceLastUpdatedTimestamp that was previously set\n up.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the KMS key used to encrypt the exported segment.

" } }, - "Fields": { - "target": "com.amazonaws.customerprofiles#FieldMap", + "RoleArn": { + "target": "com.amazonaws.customerprofiles#RoleArn", "traits": { - "smithy.api#documentation": "

A map of the name and ObjectType field.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role that allows Customer Profiles service principal to assume the role for conducting KMS and S3 operations.

" } }, - "Keys": { - "target": "com.amazonaws.customerprofiles#KeyMap", + "DestinationUri": { + "target": "com.amazonaws.customerprofiles#string1To255", "traits": { - "smithy.api#documentation": "

A list of unique keys that can be used to map data to the profile.

" + "smithy.api#documentation": "

The destination to which the segment will be exported. This field must be provided if the request is not submitted from the Amazon Connect Admin Website.

" } } }, @@ -4917,6 +6767,12 @@ "method": "POST", "uri": "/domains/{DomainName}/matches", "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "ProfileIds", + "pageSize": "MaxResults" } } }, @@ -5233,6 +7089,56 @@ "smithy.api#output": {} } }, + "com.amazonaws.customerprofiles#Group": { + "type": "structure", + "members": { + "Dimensions": { + "target": "com.amazonaws.customerprofiles#DimensionList", + "traits": { + "smithy.api#documentation": "

Defines the attributes to segment on.

", + "smithy.api#jsonName": "Dimensions" + } + }, + "SourceSegments": { + "target": "com.amazonaws.customerprofiles#SourceSegmentList", + "traits": { + "smithy.api#documentation": "

Defines the starting source of data.

", + "smithy.api#jsonName": "SourceSegments" + } + }, + "SourceType": { + "target": "com.amazonaws.customerprofiles#IncludeOptions", + "traits": { + "smithy.api#default": "ALL", + "smithy.api#documentation": "

Defines how to interact with the source data.

", + "smithy.api#jsonName": "SourceType" + } + }, + "Type": { + "target": "com.amazonaws.customerprofiles#IncludeOptions", + "traits": { + "smithy.api#default": "ALL", + "smithy.api#documentation": "

Defines how to interact with the profiles found in the current filtering.

", + "smithy.api#jsonName": "Type" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains dimensions that determine what to segment on.

" + } + }, + "com.amazonaws.customerprofiles#GroupList": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#FilterGroup" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2 + } + } + }, "com.amazonaws.customerprofiles#IdentityResolutionJob": { "type": "structure", "members": { @@ -5342,6 +7248,52 @@ "target": "com.amazonaws.customerprofiles#IdentityResolutionJob" } }, + "com.amazonaws.customerprofiles#Include": { + "type": "enum", + "members": { + "ALL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ALL" + } + }, + "ANY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ANY" + } + }, + "NONE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NONE" + } + } + } + }, + "com.amazonaws.customerprofiles#IncludeOptions": { + "type": "enum", + "members": { + "ALL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ALL" + } + }, + "ANY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ANY" + } + }, + "NONE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NONE" + } + } + } + }, "com.amazonaws.customerprofiles#IncrementalPullConfig": { "type": "structure", "members": { @@ -6309,6 +8261,166 @@ "smithy.api#output": {} } }, + "com.amazonaws.customerprofiles#ListObjectTypeAttributeItem": { + "type": "structure", + "members": { + "AttributeName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

Name of the attribute.

", + "smithy.api#required": {} + } + }, + "LastUpdatedAt": { + "target": "com.amazonaws.customerprofiles#timestamp", + "traits": { + "smithy.api#documentation": "

When the attribute was last updated.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Item that contains the attribute and when it was last updated.

" + } + }, + "com.amazonaws.customerprofiles#ListObjectTypeAttributes": { + "type": "operation", + "input": { + "target": "com.amazonaws.customerprofiles#ListObjectTypeAttributesRequest" + }, + "output": { + "target": "com.amazonaws.customerprofiles#ListObjectTypeAttributesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.customerprofiles#AccessDeniedException" + }, + { + "target": "com.amazonaws.customerprofiles#BadRequestException" + }, + { + "target": "com.amazonaws.customerprofiles#InternalServerException" + }, + { + "target": "com.amazonaws.customerprofiles#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.customerprofiles#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Fetch the possible attribute values given the attribute name.

", + "smithy.api#http": { + "method": "GET", + "uri": "/domains/{DomainName}/object-types/{ObjectTypeName}/attributes", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "Items", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.customerprofiles#ListObjectTypeAttributesList": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#ListObjectTypeAttributeItem" + } + }, + "com.amazonaws.customerprofiles#ListObjectTypeAttributesRequest": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.customerprofiles#token", + "traits": { + "smithy.api#documentation": "

The pagination token from the previous call.

", + "smithy.api#httpQuery": "next-token" + } + }, + "MaxResults": { + "target": "com.amazonaws.customerprofiles#maxSize100", + "traits": { + "smithy.api#documentation": "

The maximum number of objects returned per page.

", + "smithy.api#httpQuery": "max-results" + } + }, + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

The unique identifier of the domain.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "ObjectTypeName": { + "target": "com.amazonaws.customerprofiles#typeName", + "traits": { + "smithy.api#documentation": "

The name of the profile object type.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.customerprofiles#ListObjectTypeAttributesResponse": { + "type": "structure", + "members": { + "Items": { + "target": "com.amazonaws.customerprofiles#ListObjectTypeAttributesList", + "traits": { + "smithy.api#documentation": "

The items returned as part of the response.

" + } + }, + "NextToken": { + "target": "com.amazonaws.customerprofiles#token", + "traits": { + "smithy.api#documentation": "

The pagination token from the previous call.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.customerprofiles#ListProfileAttributeValues": { + "type": "operation", + "input": { + "target": "com.amazonaws.customerprofiles#ProfileAttributeValuesRequest" + }, + "output": { + "target": "com.amazonaws.customerprofiles#ProfileAttributeValuesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.customerprofiles#AccessDeniedException" + }, + { + "target": "com.amazonaws.customerprofiles#BadRequestException" + }, + { + "target": "com.amazonaws.customerprofiles#InternalServerException" + }, + { + "target": "com.amazonaws.customerprofiles#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.customerprofiles#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Fetch the possible attribute values given the attribute name.

", + "smithy.api#http": { + "method": "GET", + "uri": "/domains/{DomainName}/profile-attributes/{AttributeName}/values", + "code": 200 + } + } + }, "com.amazonaws.customerprofiles#ListProfileObjectTypeItem": { "type": "structure", "members": { @@ -6660,16 +8772,106 @@ "com.amazonaws.customerprofiles#ListProfileObjectsResponse": { "type": "structure", "members": { - "Items": { - "target": "com.amazonaws.customerprofiles#ProfileObjectList", + "Items": { + "target": "com.amazonaws.customerprofiles#ProfileObjectList", + "traits": { + "smithy.api#documentation": "

The list of ListProfileObject instances.

" + } + }, + "NextToken": { + "target": "com.amazonaws.customerprofiles#token", + "traits": { + "smithy.api#documentation": "

The pagination token from the previous call to ListProfileObjects.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.customerprofiles#ListRuleBasedMatches": { + "type": "operation", + "input": { + "target": "com.amazonaws.customerprofiles#ListRuleBasedMatchesRequest" + }, + "output": { + "target": "com.amazonaws.customerprofiles#ListRuleBasedMatchesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.customerprofiles#AccessDeniedException" + }, + { + "target": "com.amazonaws.customerprofiles#BadRequestException" + }, + { + "target": "com.amazonaws.customerprofiles#InternalServerException" + }, + { + "target": "com.amazonaws.customerprofiles#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.customerprofiles#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns a set of MatchIds that belong to the given domain.

", + "smithy.api#http": { + "method": "GET", + "uri": "/domains/{DomainName}/profiles/ruleBasedMatches", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "MatchIds", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.customerprofiles#ListRuleBasedMatchesRequest": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.customerprofiles#token", + "traits": { + "smithy.api#documentation": "

The pagination token from the previous ListRuleBasedMatches API\n call.

", + "smithy.api#httpQuery": "next-token" + } + }, + "MaxResults": { + "target": "com.amazonaws.customerprofiles#maxSize100", + "traits": { + "smithy.api#documentation": "

The maximum number of MatchIds returned per page.

", + "smithy.api#httpQuery": "max-results" + } + }, + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

The unique name of the domain.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.customerprofiles#ListRuleBasedMatchesResponse": { + "type": "structure", + "members": { + "MatchIds": { + "target": "com.amazonaws.customerprofiles#MatchIdList", "traits": { - "smithy.api#documentation": "

The list of ListProfileObject instances.

" + "smithy.api#documentation": "

The list of MatchIds for the given domain.

" } }, "NextToken": { "target": "com.amazonaws.customerprofiles#token", "traits": { - "smithy.api#documentation": "

The pagination token from the previous call to ListProfileObjects.

" + "smithy.api#documentation": "

The pagination token from the previous ListRuleBasedMatches API\n call.

" } } }, @@ -6677,13 +8879,13 @@ "smithy.api#output": {} } }, - "com.amazonaws.customerprofiles#ListRuleBasedMatches": { + "com.amazonaws.customerprofiles#ListSegmentDefinitions": { "type": "operation", "input": { - "target": "com.amazonaws.customerprofiles#ListRuleBasedMatchesRequest" + "target": "com.amazonaws.customerprofiles#ListSegmentDefinitionsRequest" }, "output": { - "target": "com.amazonaws.customerprofiles#ListRuleBasedMatchesResponse" + "target": "com.amazonaws.customerprofiles#ListSegmentDefinitionsResponse" }, "errors": [ { @@ -6703,37 +8905,43 @@ } ], "traits": { - "smithy.api#documentation": "

Returns a set of MatchIds that belong to the given domain.

", + "smithy.api#documentation": "

Lists all segment definitions under a domain.

", "smithy.api#http": { "method": "GET", - "uri": "/domains/{DomainName}/profiles/ruleBasedMatches", + "uri": "/domains/{DomainName}/segment-definitions", "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "Items", + "pageSize": "MaxResults" } } }, - "com.amazonaws.customerprofiles#ListRuleBasedMatchesRequest": { + "com.amazonaws.customerprofiles#ListSegmentDefinitionsRequest": { "type": "structure", "members": { - "NextToken": { - "target": "com.amazonaws.customerprofiles#token", + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", "traits": { - "smithy.api#documentation": "

The pagination token from the previous ListRuleBasedMatches API\n call.

", - "smithy.api#httpQuery": "next-token" + "smithy.api#documentation": "

The unique identifier of the domain.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } }, "MaxResults": { - "target": "com.amazonaws.customerprofiles#maxSize100", + "target": "com.amazonaws.customerprofiles#MaxSize500", "traits": { - "smithy.api#documentation": "

The maximum number of MatchIds returned per page.

", + "smithy.api#documentation": "

The maximum number of objects returned per page.

", "smithy.api#httpQuery": "max-results" } }, - "DomainName": { - "target": "com.amazonaws.customerprofiles#name", + "NextToken": { + "target": "com.amazonaws.customerprofiles#token", "traits": { - "smithy.api#documentation": "

The unique name of the domain.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#documentation": "

The pagination token from the previous call.

", + "smithy.api#httpQuery": "next-token" } } }, @@ -6741,19 +8949,21 @@ "smithy.api#input": {} } }, - "com.amazonaws.customerprofiles#ListRuleBasedMatchesResponse": { + "com.amazonaws.customerprofiles#ListSegmentDefinitionsResponse": { "type": "structure", "members": { - "MatchIds": { - "target": "com.amazonaws.customerprofiles#MatchIdList", + "NextToken": { + "target": "com.amazonaws.customerprofiles#token", "traits": { - "smithy.api#documentation": "

The list of MatchIds for the given domain.

" + "smithy.api#documentation": "

The pagination token from the previous call.

", + "smithy.api#jsonName": "NextToken" } }, - "NextToken": { - "target": "com.amazonaws.customerprofiles#token", + "Items": { + "target": "com.amazonaws.customerprofiles#SegmentDefinitionsList", "traits": { - "smithy.api#documentation": "

The pagination token from the previous ListRuleBasedMatches API\n call.

" + "smithy.api#documentation": "

List of segment definitions.

", + "smithy.api#jsonName": "Items" } } }, @@ -7294,6 +9504,15 @@ } } }, + "com.amazonaws.customerprofiles#MaxSize500": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1, + "max": 500 + } + } + }, "com.amazonaws.customerprofiles#MergeProfiles": { "type": "operation", "input": { @@ -7805,6 +10024,247 @@ "smithy.api#documentation": "

The standard profile of a customer.

" } }, + "com.amazonaws.customerprofiles#ProfileAttributeValuesRequest": { + "type": "structure", + "members": { + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

The unique identifier of the domain.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "AttributeName": { + "target": "com.amazonaws.customerprofiles#string1To255", + "traits": { + "smithy.api#documentation": "

The attribute name.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.customerprofiles#ProfileAttributeValuesResponse": { + "type": "structure", + "members": { + "DomainName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

The name of the domain.

" + } + }, + "AttributeName": { + "target": "com.amazonaws.customerprofiles#string1To255", + "traits": { + "smithy.api#documentation": "

The attribute name.

" + } + }, + "Items": { + "target": "com.amazonaws.customerprofiles#AttributeValueItemList", + "traits": { + "smithy.api#documentation": "

The items returned as part of the response.

" + } + }, + "StatusCode": { + "target": "com.amazonaws.customerprofiles#StatusCode", + "traits": { + "smithy.api#default": 0, + "smithy.api#documentation": "

The status code for the response.

", + "smithy.api#httpResponseCode": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.customerprofiles#ProfileAttributes": { + "type": "structure", + "members": { + "AccountNumber": { + "target": "com.amazonaws.customerprofiles#ProfileDimension", + "traits": { + "smithy.api#documentation": "

A field to describe values to segment on within account number.

", + "smithy.api#jsonName": "AccountNumber" + } + }, + "AdditionalInformation": { + "target": "com.amazonaws.customerprofiles#ExtraLengthValueProfileDimension", + "traits": { + "smithy.api#documentation": "

A field to describe values to segment on within additional information.

", + "smithy.api#jsonName": "AdditionalInformation" + } + }, + "FirstName": { + "target": "com.amazonaws.customerprofiles#ProfileDimension", + "traits": { + "smithy.api#documentation": "

A field to describe values to segment on within first name.

", + "smithy.api#jsonName": "FirstName" + } + }, + "LastName": { + "target": "com.amazonaws.customerprofiles#ProfileDimension", + "traits": { + "smithy.api#documentation": "

A field to describe values to segment on within last name.

", + "smithy.api#jsonName": "LastName" + } + }, + "MiddleName": { + "target": "com.amazonaws.customerprofiles#ProfileDimension", + "traits": { + "smithy.api#documentation": "

A field to describe values to segment on within middle name.

", + "smithy.api#jsonName": "MiddleName" + } + }, + "GenderString": { + "target": "com.amazonaws.customerprofiles#ProfileDimension", + "traits": { + "smithy.api#documentation": "

A field to describe values to segment on within genderString.

", + "smithy.api#jsonName": "GenderString" + } + }, + "PartyTypeString": { + "target": "com.amazonaws.customerprofiles#ProfileDimension", + "traits": { + "smithy.api#documentation": "

A field to describe values to segment on within partyTypeString.

", + "smithy.api#jsonName": "PartyTypeString" + } + }, + "BirthDate": { + "target": "com.amazonaws.customerprofiles#DateDimension", + "traits": { + "smithy.api#documentation": "

A field to describe values to segment on within birthDate.

", + "smithy.api#jsonName": "BirthDate" + } + }, + "PhoneNumber": { + "target": "com.amazonaws.customerprofiles#ProfileDimension", + "traits": { + "smithy.api#documentation": "

A field to describe values to segment on within phone number.

", + "smithy.api#jsonName": "PhoneNumber" + } + }, + "BusinessName": { + "target": "com.amazonaws.customerprofiles#ProfileDimension", + "traits": { + "smithy.api#documentation": "

A field to describe values to segment on within business name.

", + "smithy.api#jsonName": "BusinessName" + } + }, + "BusinessPhoneNumber": { + "target": "com.amazonaws.customerprofiles#ProfileDimension", + "traits": { + "smithy.api#documentation": "

A field to describe values to segment on within business phone number.

", + "smithy.api#jsonName": "BusinessPhoneNumber" + } + }, + "HomePhoneNumber": { + "target": "com.amazonaws.customerprofiles#ProfileDimension", + "traits": { + "smithy.api#documentation": "

A field to describe values to segment on within home phone number.

", + "smithy.api#jsonName": "HomePhoneNumber" + } + }, + "MobilePhoneNumber": { + "target": "com.amazonaws.customerprofiles#ProfileDimension", + "traits": { + "smithy.api#documentation": "

A field to describe values to segment on within mobile phone number.

", + "smithy.api#jsonName": "MobilePhoneNumber" + } + }, + "EmailAddress": { + "target": "com.amazonaws.customerprofiles#ProfileDimension", + "traits": { + "smithy.api#documentation": "

A field to describe values to segment on within email address.

", + "smithy.api#jsonName": "EmailAddress" + } + }, + "PersonalEmailAddress": { + "target": "com.amazonaws.customerprofiles#ProfileDimension", + "traits": { + "smithy.api#documentation": "

A field to describe values to segment on within personal email address.

", + "smithy.api#jsonName": "PersonalEmailAddress" + } + }, + "BusinessEmailAddress": { + "target": "com.amazonaws.customerprofiles#ProfileDimension", + "traits": { + "smithy.api#documentation": "

A field to describe values to segment on within business email address.

", + "smithy.api#jsonName": "BusinessEmailAddress" + } + }, + "Address": { + "target": "com.amazonaws.customerprofiles#AddressDimension", + "traits": { + "smithy.api#documentation": "

A field to describe values to segment on within address.

", + "smithy.api#jsonName": "Address" + } + }, + "ShippingAddress": { + "target": "com.amazonaws.customerprofiles#AddressDimension", + "traits": { + "smithy.api#documentation": "

A field to describe values to segment on within shipping address.

", + "smithy.api#jsonName": "ShippingAddress" + } + }, + "MailingAddress": { + "target": "com.amazonaws.customerprofiles#AddressDimension", + "traits": { + "smithy.api#documentation": "

A field to describe values to segment on within mailing address.

", + "smithy.api#jsonName": "MailingAddress" + } + }, + "BillingAddress": { + "target": "com.amazonaws.customerprofiles#AddressDimension", + "traits": { + "smithy.api#documentation": "

A field to describe values to segment on within billing address.

", + "smithy.api#jsonName": "BillingAddress" + } + }, + "Attributes": { + "target": "com.amazonaws.customerprofiles#CustomAttributes", + "traits": { + "smithy.api#documentation": "

A field to describe values to segment on within attributes.

", + "smithy.api#jsonName": "Attributes" + } + } + }, + "traits": { + "smithy.api#documentation": "

The object used to segment on attributes within the customer profile.

", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.customerprofiles#ProfileDimension": { + "type": "structure", + "members": { + "DimensionType": { + "target": "com.amazonaws.customerprofiles#StringDimensionType", + "traits": { + "smithy.api#documentation": "

The action to segment on.

", + "smithy.api#jsonName": "DimensionType", + "smithy.api#required": {} + } + }, + "Values": { + "target": "com.amazonaws.customerprofiles#Values", + "traits": { + "smithy.api#documentation": "

The values to apply the DimensionType on.

", + "smithy.api#jsonName": "Values", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Object to hold the dimensions of a profile's fields to segment on.

" + } + }, + "com.amazonaws.customerprofiles#ProfileId": { + "type": "string" + }, "com.amazonaws.customerprofiles#ProfileIdList": { "type": "list", "member": { @@ -7823,6 +10283,18 @@ } } }, + "com.amazonaws.customerprofiles#ProfileIds": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#uuid" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + } + } + }, "com.amazonaws.customerprofiles#ProfileList": { "type": "list", "member": { @@ -7841,13 +10313,80 @@ "target": "com.amazonaws.customerprofiles#ListProfileObjectTypeItem" }, "traits": { - "smithy.api#sensitive": {} + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.customerprofiles#ProfileObjectTypeTemplateList": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#ListProfileObjectTypeTemplateItem" + } + }, + "com.amazonaws.customerprofiles#ProfileQueryFailures": { + "type": "structure", + "members": { + "ProfileId": { + "target": "com.amazonaws.customerprofiles#ProfileId", + "traits": { + "smithy.api#documentation": "

The profile id the failure belongs to.

", + "smithy.api#jsonName": "ProfileId", + "smithy.api#required": {} + } + }, + "Message": { + "target": "com.amazonaws.customerprofiles#GetSegmentMembershipMessage", + "traits": { + "smithy.api#documentation": "

A message describing the failure.

", + "smithy.api#jsonName": "Message", + "smithy.api#required": {} + } + }, + "Status": { + "target": "com.amazonaws.customerprofiles#GetSegmentMembershipStatus", + "traits": { + "smithy.api#documentation": "

The status describing the failure.

", + "smithy.api#jsonName": "Status" + } + } + }, + "traits": { + "smithy.api#documentation": "

Object that holds failures for membership.

" + } + }, + "com.amazonaws.customerprofiles#ProfileQueryResult": { + "type": "structure", + "members": { + "ProfileId": { + "target": "com.amazonaws.customerprofiles#ProfileId", + "traits": { + "smithy.api#documentation": "

The profile id the result belongs to.

", + "smithy.api#jsonName": "ProfileId", + "smithy.api#required": {} + } + }, + "QueryResult": { + "target": "com.amazonaws.customerprofiles#QueryResult", + "traits": { + "smithy.api#documentation": "

Describes whether the profile was absent or present in the segment.

", + "smithy.api#jsonName": "QueryResult", + "smithy.api#required": {} + } + }, + "Profile": { + "target": "com.amazonaws.customerprofiles#Profile", + "traits": { + "smithy.api#jsonName": "Profile" + } + } + }, + "traits": { + "smithy.api#documentation": "

Object that holds the results for membership.

" } }, - "com.amazonaws.customerprofiles#ProfileObjectTypeTemplateList": { + "com.amazonaws.customerprofiles#Profiles": { "type": "list", "member": { - "target": "com.amazonaws.customerprofiles#ListProfileObjectTypeTemplateItem" + "target": "com.amazonaws.customerprofiles#ProfileQueryResult" } }, "com.amazonaws.customerprofiles#Property": { @@ -8311,6 +10850,23 @@ "smithy.api#output": {} } }, + "com.amazonaws.customerprofiles#QueryResult": { + "type": "enum", + "members": { + "PRESENT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PRESENT" + } + }, + "ABSENT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ABSENT" + } + } + } + }, "com.amazonaws.customerprofiles#Range": { "type": "structure", "members": { @@ -8333,6 +10889,47 @@ "smithy.api#documentation": "

The relative time period over which data is included in the aggregation.

" } }, + "com.amazonaws.customerprofiles#RangeOverride": { + "type": "structure", + "members": { + "Start": { + "target": "com.amazonaws.customerprofiles#Start", + "traits": { + "smithy.api#default": 366, + "smithy.api#documentation": "

The start time of when to include objects.

", + "smithy.api#required": {} + } + }, + "End": { + "target": "com.amazonaws.customerprofiles#End", + "traits": { + "smithy.api#default": 0, + "smithy.api#documentation": "

The end time of when to include objects.

" + } + }, + "Unit": { + "target": "com.amazonaws.customerprofiles#RangeUnit", + "traits": { + "smithy.api#documentation": "

The unit for start and end.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Overrides the original range on a calculated attribute definition.

" + } + }, + "com.amazonaws.customerprofiles#RangeUnit": { + "type": "enum", + "members": { + "DAYS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DAYS" + } + } + } + }, "com.amazonaws.customerprofiles#ResourceNotFoundException": { "type": "structure", "members": { @@ -9012,6 +11609,144 @@ "smithy.api#output": {} } }, + "com.amazonaws.customerprofiles#SegmentDefinitionArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 255 + } + } + }, + "com.amazonaws.customerprofiles#SegmentDefinitionItem": { + "type": "structure", + "members": { + "SegmentDefinitionName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

Name of the segment definition.

", + "smithy.api#jsonName": "SegmentDefinitionName" + } + }, + "DisplayName": { + "target": "com.amazonaws.customerprofiles#string1To255", + "traits": { + "smithy.api#documentation": "

Display name of the segment definition.

", + "smithy.api#jsonName": "DisplayName" + } + }, + "Description": { + "target": "com.amazonaws.customerprofiles#sensitiveText", + "traits": { + "smithy.api#documentation": "

The description of the segment definition.

", + "smithy.api#jsonName": "Description" + } + }, + "SegmentDefinitionArn": { + "target": "com.amazonaws.customerprofiles#SegmentDefinitionArn", + "traits": { + "smithy.api#documentation": "

The arn of the segment definition.

", + "smithy.api#jsonName": "SegmentDefinitionArn" + } + }, + "CreatedAt": { + "target": "com.amazonaws.customerprofiles#timestamp", + "traits": { + "smithy.api#documentation": "

When the segment definition was created.

", + "smithy.api#jsonName": "CreatedAt" + } + }, + "Tags": { + "target": "com.amazonaws.customerprofiles#TagMap", + "traits": { + "smithy.api#documentation": "

The tags belonging to the segment definition.

", + "smithy.api#jsonName": "Tags" + } + } + }, + "traits": { + "smithy.api#documentation": "

Object holding the segment definition fields.

" + } + }, + "com.amazonaws.customerprofiles#SegmentDefinitionsList": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#SegmentDefinitionItem" + } + }, + "com.amazonaws.customerprofiles#SegmentGroup": { + "type": "structure", + "members": { + "Groups": { + "target": "com.amazonaws.customerprofiles#SegmentGroupList", + "traits": { + "smithy.api#documentation": "

Holds the list of groups within the segment definition.

", + "smithy.api#jsonName": "Groups" + } + }, + "Include": { + "target": "com.amazonaws.customerprofiles#IncludeOptions", + "traits": { + "smithy.api#default": "ALL", + "smithy.api#documentation": "

Defines whether to include or exclude the profiles that fit the segment criteria.

", + "smithy.api#jsonName": "Include" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains all groups of the segment definition.

", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.customerprofiles#SegmentGroupList": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#Group" + } + }, + "com.amazonaws.customerprofiles#SegmentGroupStructure": { + "type": "structure", + "members": { + "Groups": { + "target": "com.amazonaws.customerprofiles#SegmentGroupList", + "traits": { + "smithy.api#documentation": "

Holds the list of groups within the segment definition.

" + } + }, + "Include": { + "target": "com.amazonaws.customerprofiles#IncludeOptions", + "traits": { + "smithy.api#documentation": "

Define whether to include or exclude the profiles that fit the segment criteria.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains all groups of the segment definition.

" + } + }, + "com.amazonaws.customerprofiles#SegmentSnapshotStatus": { + "type": "enum", + "members": { + "COMPLETED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "COMPLETED" + } + }, + "IN_PROGRESS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "IN_PROGRESS" + } + }, + "FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FAILED" + } + } + } + }, "com.amazonaws.customerprofiles#ServiceNowConnectorOperator": { "type": "enum", "members": { @@ -9271,6 +12006,27 @@ "smithy.api#documentation": "

Contains information about the configuration of the source connector used in the\n flow.

" } }, + "com.amazonaws.customerprofiles#SourceSegment": { + "type": "structure", + "members": { + "SegmentDefinitionName": { + "target": "com.amazonaws.customerprofiles#name", + "traits": { + "smithy.api#documentation": "

The unique name of the segment definition.

", + "smithy.api#jsonName": "SegmentDefinitionName" + } + } + }, + "traits": { + "smithy.api#documentation": "

The source segments to build off of.

" + } + }, + "com.amazonaws.customerprofiles#SourceSegmentList": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#SourceSegment" + } + }, "com.amazonaws.customerprofiles#StandardIdentifier": { "type": "enum", "members": { @@ -9292,6 +12048,18 @@ "smithy.api#enumValue": "CASE" } }, + "ORDER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ORDER" + } + }, + "COMMUNICATION_RECORD": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "COMMUNICATION_RECORD" + } + }, "UNIQUE": { "target": "smithy.api#Unit", "traits": { @@ -9315,12 +12083,6 @@ "traits": { "smithy.api#enumValue": "NEW_ONLY" } - }, - "ORDER": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "ORDER" - } } } }, @@ -9330,6 +12092,15 @@ "target": "com.amazonaws.customerprofiles#StandardIdentifier" } }, + "com.amazonaws.customerprofiles#Start": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1, + "max": 366 + } + } + }, "com.amazonaws.customerprofiles#Statistic": { "type": "enum", "members": { @@ -9433,6 +12204,47 @@ } } }, + "com.amazonaws.customerprofiles#StatusCode": { + "type": "integer", + "traits": { + "smithy.api#default": 0 + } + }, + "com.amazonaws.customerprofiles#StringDimensionType": { + "type": "enum", + "members": { + "INCLUSIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INCLUSIVE" + } + }, + "EXCLUSIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "EXCLUSIVE" + } + }, + "CONTAINS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CONTAINS" + } + }, + "BEGINS_WITH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "BEGINS_WITH" + } + }, + "ENDS_WITH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENDS_WITH" + } + } + } + }, "com.amazonaws.customerprofiles#TagArn": { "type": "string", "traits": { @@ -9752,6 +12564,29 @@ } } }, + "com.amazonaws.customerprofiles#Type": { + "type": "enum", + "members": { + "ALL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ALL" + } + }, + "ANY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ANY" + } + }, + "NONE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NONE" + } + } + } + }, "com.amazonaws.customerprofiles#Unit": { "type": "enum", "members": { @@ -10411,6 +13246,30 @@ } } }, + "com.amazonaws.customerprofiles#ValueList": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#string1To255" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + } + } + }, + "com.amazonaws.customerprofiles#Values": { + "type": "list", + "member": { + "target": "com.amazonaws.customerprofiles#string1To255" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 50 + } + } + }, "com.amazonaws.customerprofiles#WorkflowAttributes": { "type": "structure", "members": { diff --git a/codegen/sdk-codegen/aws-models/datazone.json b/codegen/sdk-codegen/aws-models/datazone.json index 19708345746..601dac0d441 100644 --- a/codegen/sdk-codegen/aws-models/datazone.json +++ b/codegen/sdk-codegen/aws-models/datazone.json @@ -354,6 +354,18 @@ "traits": { "smithy.api#documentation": "

Specifies the reason for accepting the subscription request.

" } + }, + "existingSubscriptionId": { + "target": "com.amazonaws.datazone#SubscriptionId", + "traits": { + "smithy.api#documentation": "

The ID of the existing subscription.

" + } + }, + "metadataForms": { + "target": "com.amazonaws.datazone#MetadataForms", + "traits": { + "smithy.api#documentation": "

The metadata form in the subscription request.

" + } } }, "traits": { @@ -1395,6 +1407,12 @@ "smithy.api#pattern": "^(?!\\.)[\\w\\.]*\\w$" } }, + "com.amazonaws.datazone#AssetTypeIdentifiers": { + "type": "list", + "member": { + "target": "com.amazonaws.datazone#AssetTypeIdentifier" + } + }, "com.amazonaws.datazone#AssetTypeItem": { "type": "structure", "members": { @@ -1480,6 +1498,27 @@ "smithy.api#documentation": "

The details of the asset type.

" } }, + "com.amazonaws.datazone#AssetTypesForRule": { + "type": "structure", + "members": { + "selectionMode": { + "target": "com.amazonaws.datazone#RuleScopeSelectionMode", + "traits": { + "smithy.api#documentation": "

The selection mode for the rule.

", + "smithy.api#required": {} + } + }, + "specificAssetTypes": { + "target": "com.amazonaws.datazone#RuleAssetTypeList", + "traits": { + "smithy.api#documentation": "

The specific asset types that are included in the rule.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The asset type for the rule details.

" + } + }, "com.amazonaws.datazone#AssociateEnvironmentRole": { "type": "operation", "input": { @@ -5367,6 +5406,194 @@ "smithy.api#documentation": "

The details of the policy grant.

" } }, + "com.amazonaws.datazone#CreateRule": { + "type": "operation", + "input": { + "target": "com.amazonaws.datazone#CreateRuleInput" + }, + "output": { + "target": "com.amazonaws.datazone#CreateRuleOutput" + }, + "errors": [ + { + "target": "com.amazonaws.datazone#AccessDeniedException" + }, + { + "target": "com.amazonaws.datazone#ConflictException" + }, + { + "target": "com.amazonaws.datazone#InternalServerException" + }, + { + "target": "com.amazonaws.datazone#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.datazone#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.datazone#ThrottlingException" + }, + { + "target": "com.amazonaws.datazone#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a rule in Amazon DataZone. A rule is a formal agreement that enforces specific\n requirements across user workflows (e.g., publishing assets to the catalog, requesting\n subscriptions, creating projects) within the Amazon DataZone data portal. These rules help\n maintain consistency, ensure compliance, and uphold governance standards in data management\n processes. For instance, a metadata enforcement rule can specify the required information\n for creating a subscription request or publishing a data asset to the catalog, ensuring\n alignment with organizational standards.

", + "smithy.api#http": { + "code": 201, + "method": "POST", + "uri": "/v2/domains/{domainIdentifier}/rules" + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.datazone#CreateRuleInput": { + "type": "structure", + "members": { + "domainIdentifier": { + "target": "com.amazonaws.datazone#DomainId", + "traits": { + "smithy.api#documentation": "

The ID of the domain where the rule is created.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.datazone#RuleName", + "traits": { + "smithy.api#documentation": "

The name of the rule.

", + "smithy.api#required": {} + } + }, + "target": { + "target": "com.amazonaws.datazone#RuleTarget", + "traits": { + "smithy.api#documentation": "

The target of the rule.

", + "smithy.api#required": {} + } + }, + "action": { + "target": "com.amazonaws.datazone#RuleAction", + "traits": { + "smithy.api#documentation": "

The action of the rule.

", + "smithy.api#required": {} + } + }, + "scope": { + "target": "com.amazonaws.datazone#RuleScope", + "traits": { + "smithy.api#documentation": "

The scope of the rule.

", + "smithy.api#required": {} + } + }, + "detail": { + "target": "com.amazonaws.datazone#RuleDetail", + "traits": { + "smithy.api#documentation": "

The detail of the rule.

", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.datazone#Description", + "traits": { + "smithy.api#documentation": "

The description of the rule.

" + } + }, + "clientToken": { + "target": "com.amazonaws.datazone#ClientToken", + "traits": { + "smithy.api#documentation": "

A unique, case-sensitive identifier that is provided to ensure the idempotency of the\n request.

", + "smithy.api#idempotencyToken": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.datazone#CreateRuleOutput": { + "type": "structure", + "members": { + "identifier": { + "target": "com.amazonaws.datazone#RuleId", + "traits": { + "smithy.api#documentation": "

The ID of the rule.

", + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.datazone#RuleName", + "traits": { + "smithy.api#documentation": "

The name of the rule.

", + "smithy.api#required": {} + } + }, + "ruleType": { + "target": "com.amazonaws.datazone#RuleType", + "traits": { + "smithy.api#documentation": "

The type of the rule.

", + "smithy.api#required": {} + } + }, + "target": { + "target": "com.amazonaws.datazone#RuleTarget", + "traits": { + "smithy.api#documentation": "

The target of the rule.

", + "smithy.api#required": {} + } + }, + "action": { + "target": "com.amazonaws.datazone#RuleAction", + "traits": { + "smithy.api#documentation": "

The action of the rule.

", + "smithy.api#required": {} + } + }, + "scope": { + "target": "com.amazonaws.datazone#RuleScope", + "traits": { + "smithy.api#documentation": "

The scope of the rule.

", + "smithy.api#required": {} + } + }, + "detail": { + "target": "com.amazonaws.datazone#RuleDetail", + "traits": { + "smithy.api#documentation": "

The detail of the rule.

", + "smithy.api#required": {} + } + }, + "targetType": { + "target": "com.amazonaws.datazone#RuleTargetType", + "traits": { + "smithy.api#documentation": "

The target type of the rule.

" + } + }, + "description": { + "target": "com.amazonaws.datazone#Description", + "traits": { + "smithy.api#documentation": "

The description of the rule.

" + } + }, + "createdAt": { + "target": "com.amazonaws.datazone#CreatedAt", + "traits": { + "smithy.api#documentation": "

The timestamp at which the rule is created.

", + "smithy.api#required": {} + } + }, + "createdBy": { + "target": "com.amazonaws.datazone#CreatedBy", + "traits": { + "smithy.api#documentation": "

The user who creates the rule.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.datazone#CreateSubscriptionGrant": { "type": "operation", "input": { @@ -5614,6 +5841,12 @@ "smithy.api#documentation": "

A unique, case-sensitive identifier that is provided to ensure the idempotency of the\n request.

", "smithy.api#idempotencyToken": {} } + }, + "metadataForms": { + "target": "com.amazonaws.datazone#MetadataFormInputs", + "traits": { + "smithy.api#documentation": "

The metadata form included in the subscription request.

" + } } }, "traits": { @@ -5711,6 +5944,18 @@ "traits": { "smithy.api#documentation": "

The decision comment of the subscription request.

" } + }, + "existingSubscriptionId": { + "target": "com.amazonaws.datazone#SubscriptionId", + "traits": { + "smithy.api#documentation": "

The ID of the existing subscription.

" + } + }, + "metadataForms": { + "target": "com.amazonaws.datazone#MetadataForms", + "traits": { + "smithy.api#documentation": "

The metadata form included in the subscription request.

" + } } }, "traits": { @@ -7590,6 +7835,9 @@ }, { "target": "com.amazonaws.datazone#MetadataGenerationRun" + }, + { + "target": "com.amazonaws.datazone#Rule" } ], "errors": [ @@ -9376,6 +9624,75 @@ "smithy.api#output": {} } }, + "com.amazonaws.datazone#DeleteRule": { + "type": "operation", + "input": { + "target": "com.amazonaws.datazone#DeleteRuleInput" + }, + "output": { + "target": "com.amazonaws.datazone#DeleteRuleOutput" + }, + "errors": [ + { + "target": "com.amazonaws.datazone#AccessDeniedException" + }, + { + "target": "com.amazonaws.datazone#ConflictException" + }, + { + "target": "com.amazonaws.datazone#InternalServerException" + }, + { + "target": "com.amazonaws.datazone#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.datazone#ThrottlingException" + }, + { + "target": "com.amazonaws.datazone#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes a rule in Amazon DataZone. A rule is a formal agreement that enforces specific\n requirements across user workflows (e.g., publishing assets to the catalog, requesting\n subscriptions, creating projects) within the Amazon DataZone data portal. These rules help\n maintain consistency, ensure compliance, and uphold governance standards in data management\n processes. For instance, a metadata enforcement rule can specify the required information\n for creating a subscription request or publishing a data asset to the catalog, ensuring\n alignment with organizational standards.

", + "smithy.api#http": { + "code": 204, + "method": "DELETE", + "uri": "/v2/domains/{domainIdentifier}/rules/{identifier}" + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.datazone#DeleteRuleInput": { + "type": "structure", + "members": { + "domainIdentifier": { + "target": "com.amazonaws.datazone#DomainId", + "traits": { + "smithy.api#documentation": "

The ID of the domain that where the rule is to be deleted.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "identifier": { + "target": "com.amazonaws.datazone#RuleId", + "traits": { + "smithy.api#documentation": "

The ID of the rule that is to be deleted.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.datazone#DeleteRuleOutput": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.datazone#DeleteSubscriptionGrant": { "type": "operation", "input": { @@ -10434,21 +10751,42 @@ "smithy.api#documentation": "

The summary of the domain unit.

" } }, - "com.amazonaws.datazone#DomainUnitUserProperties": { + "com.amazonaws.datazone#DomainUnitTarget": { "type": "structure", "members": { - "userId": { - "target": "smithy.api#String", + "domainUnitId": { + "target": "com.amazonaws.datazone#DomainUnitId", "traits": { - "smithy.api#documentation": "

The ID of teh domain unit user.

" + "smithy.api#documentation": "

The ID of the domain unit.

", + "smithy.api#required": {} + } + }, + "includeChildDomainUnits": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Specifies whether to apply a rule to the child domain units.

" } } }, "traits": { - "smithy.api#documentation": "

The properties of the domain unit user.

" + "smithy.api#documentation": "

The target for the domain unit.

" } }, - "com.amazonaws.datazone#EdgeDirection": { + "com.amazonaws.datazone#DomainUnitUserProperties": { + "type": "structure", + "members": { + "userId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of teh domain unit user.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The properties of the domain unit user.

" + } + }, + "com.amazonaws.datazone#EdgeDirection": { "type": "enum", "members": { "UPSTREAM": { @@ -11437,7 +11775,7 @@ } }, "typeRevision": { - "target": "com.amazonaws.datazone#Revision", + "target": "com.amazonaws.datazone#RevisionInput", "traits": { "smithy.api#documentation": "

The revision of the metadata form type.

" } @@ -15011,6 +15349,176 @@ "smithy.api#output": {} } }, + "com.amazonaws.datazone#GetRule": { + "type": "operation", + "input": { + "target": "com.amazonaws.datazone#GetRuleInput" + }, + "output": { + "target": "com.amazonaws.datazone#GetRuleOutput" + }, + "errors": [ + { + "target": "com.amazonaws.datazone#AccessDeniedException" + }, + { + "target": "com.amazonaws.datazone#InternalServerException" + }, + { + "target": "com.amazonaws.datazone#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.datazone#ThrottlingException" + }, + { + "target": "com.amazonaws.datazone#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets the details of a rule in Amazon DataZone. A rule is a formal agreement that\n enforces specific requirements across user workflows (e.g., publishing assets to the\n catalog, requesting subscriptions, creating projects) within the Amazon DataZone data\n portal. These rules help maintain consistency, ensure compliance, and uphold governance\n standards in data management processes. For instance, a metadata enforcement rule can\n specify the required information for creating a subscription request or publishing a data\n asset to the catalog, ensuring alignment with organizational standards.

", + "smithy.api#http": { + "code": 200, + "method": "GET", + "uri": "/v2/domains/{domainIdentifier}/rules/{identifier}" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.datazone#GetRuleInput": { + "type": "structure", + "members": { + "domainIdentifier": { + "target": "com.amazonaws.datazone#DomainId", + "traits": { + "smithy.api#documentation": "

The ID of the domain where the GetRule action is to be invoked.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "identifier": { + "target": "com.amazonaws.datazone#RuleId", + "traits": { + "smithy.api#documentation": "

The ID of the rule.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "revision": { + "target": "com.amazonaws.datazone#Revision", + "traits": { + "smithy.api#documentation": "

The revision of the rule.

", + "smithy.api#httpQuery": "revision" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.datazone#GetRuleOutput": { + "type": "structure", + "members": { + "identifier": { + "target": "com.amazonaws.datazone#RuleId", + "traits": { + "smithy.api#documentation": "

The ID of the rule.

", + "smithy.api#required": {} + } + }, + "revision": { + "target": "com.amazonaws.datazone#Revision", + "traits": { + "smithy.api#documentation": "

The revision of the rule.

", + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.datazone#RuleName", + "traits": { + "smithy.api#documentation": "

The name of the rule.

", + "smithy.api#required": {} + } + }, + "ruleType": { + "target": "com.amazonaws.datazone#RuleType", + "traits": { + "smithy.api#documentation": "

The type of the rule.

", + "smithy.api#required": {} + } + }, + "target": { + "target": "com.amazonaws.datazone#RuleTarget", + "traits": { + "smithy.api#documentation": "

The target of the rule.

", + "smithy.api#required": {} + } + }, + "action": { + "target": "com.amazonaws.datazone#RuleAction", + "traits": { + "smithy.api#documentation": "

The action of the rule.

", + "smithy.api#required": {} + } + }, + "scope": { + "target": "com.amazonaws.datazone#RuleScope", + "traits": { + "smithy.api#documentation": "

The scope of the rule.

", + "smithy.api#required": {} + } + }, + "detail": { + "target": "com.amazonaws.datazone#RuleDetail", + "traits": { + "smithy.api#documentation": "

The detail of the rule.

", + "smithy.api#required": {} + } + }, + "targetType": { + "target": "com.amazonaws.datazone#RuleTargetType", + "traits": { + "smithy.api#documentation": "

The target type of the rule.

" + } + }, + "description": { + "target": "com.amazonaws.datazone#Description", + "traits": { + "smithy.api#documentation": "

The description of the rule.

" + } + }, + "createdAt": { + "target": "com.amazonaws.datazone#CreatedAt", + "traits": { + "smithy.api#documentation": "

The timestamp at which the rule was created.

", + "smithy.api#required": {} + } + }, + "updatedAt": { + "target": "com.amazonaws.datazone#UpdatedAt", + "traits": { + "smithy.api#documentation": "

The timestamp at which the rule was last updated.

", + "smithy.api#required": {} + } + }, + "createdBy": { + "target": "com.amazonaws.datazone#CreatedBy", + "traits": { + "smithy.api#documentation": "

The user who created the rule.

", + "smithy.api#required": {} + } + }, + "lastUpdatedBy": { + "target": "com.amazonaws.datazone#UpdatedBy", + "traits": { + "smithy.api#documentation": "

The timestamp at which the rule was last updated.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.datazone#GetSubscription": { "type": "operation", "input": { @@ -15446,6 +15954,18 @@ "traits": { "smithy.api#documentation": "

The decision comment of the subscription request.

" } + }, + "existingSubscriptionId": { + "target": "com.amazonaws.datazone#SubscriptionId", + "traits": { + "smithy.api#documentation": "

The ID of the existing subscription.

" + } + }, + "metadataForms": { + "target": "com.amazonaws.datazone#MetadataForms", + "traits": { + "smithy.api#documentation": "

The metadata forms included in the subscription request.

" + } } }, "traits": { @@ -19217,13 +19737,13 @@ "smithy.api#output": {} } }, - "com.amazonaws.datazone#ListSubscriptionGrants": { + "com.amazonaws.datazone#ListRules": { "type": "operation", "input": { - "target": "com.amazonaws.datazone#ListSubscriptionGrantsInput" + "target": "com.amazonaws.datazone#ListRulesInput" }, "output": { - "target": "com.amazonaws.datazone#ListSubscriptionGrantsOutput" + "target": "com.amazonaws.datazone#ListRulesOutput" }, "errors": [ { @@ -19243,11 +19763,11 @@ } ], "traits": { - "smithy.api#documentation": "

Lists subscription grants.

", + "smithy.api#documentation": "

Lists existing rules. In Amazon DataZone, a rule is a formal agreement that enforces\n specific requirements across user workflows (e.g., publishing assets to the catalog,\n requesting subscriptions, creating projects) within the Amazon DataZone data portal. These\n rules help maintain consistency, ensure compliance, and uphold governance standards in data\n management processes. For instance, a metadata enforcement rule can specify the required\n information for creating a subscription request or publishing a data asset to the catalog,\n ensuring alignment with organizational standards.

", "smithy.api#http": { "code": 200, "method": "GET", - "uri": "/v2/domains/{domainIdentifier}/subscription-grants" + "uri": "/v2/domains/{domainIdentifier}/list-rules/{targetType}/{targetIdentifier}" }, "smithy.api#paginated": { "inputToken": "nextToken", @@ -19258,77 +19778,90 @@ "smithy.api#readonly": {} } }, - "com.amazonaws.datazone#ListSubscriptionGrantsInput": { + "com.amazonaws.datazone#ListRulesInput": { "type": "structure", "members": { "domainIdentifier": { "target": "com.amazonaws.datazone#DomainId", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon DataZone domain.

", + "smithy.api#documentation": "

The ID of the domain in which the rules are to be listed.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "environmentId": { - "target": "com.amazonaws.datazone#EnvironmentId", + "targetType": { + "target": "com.amazonaws.datazone#RuleTargetType", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon DataZone environment.

", - "smithy.api#httpQuery": "environmentId" + "smithy.api#documentation": "

The target type of the rule.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } }, - "subscriptionTargetId": { - "target": "com.amazonaws.datazone#SubscriptionTargetId", + "targetIdentifier": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

The identifier of the subscription target.

", - "smithy.api#httpQuery": "subscriptionTargetId" + "smithy.api#documentation": "

The target ID of the rule.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } }, - "subscribedListingId": { - "target": "com.amazonaws.datazone#ListingId", + "ruleType": { + "target": "com.amazonaws.datazone#RuleType", "traits": { - "smithy.api#documentation": "

The identifier of the subscribed listing.

", - "smithy.api#httpQuery": "subscribedListingId" + "smithy.api#documentation": "

The type of the rule.

", + "smithy.api#httpQuery": "ruleType" } }, - "subscriptionId": { - "target": "com.amazonaws.datazone#SubscriptionId", + "action": { + "target": "com.amazonaws.datazone#RuleAction", "traits": { - "smithy.api#documentation": "

The identifier of the subscription.

", - "smithy.api#httpQuery": "subscriptionId" + "smithy.api#documentation": "

The action of the rule.

", + "smithy.api#httpQuery": "ruleAction" } }, - "owningProjectId": { - "target": "com.amazonaws.datazone#ProjectId", + "projectIds": { + "target": "com.amazonaws.datazone#ProjectIds", "traits": { - "smithy.api#documentation": "

The ID of the owning project of the subscription grants.

", - "smithy.api#httpQuery": "owningProjectId" + "smithy.api#documentation": "

The IDs of projects in which rules are to be listed.

", + "smithy.api#httpQuery": "projectIds" } }, - "sortBy": { - "target": "com.amazonaws.datazone#SortKey", + "assetTypes": { + "target": "com.amazonaws.datazone#AssetTypeIdentifiers", "traits": { - "smithy.api#documentation": "

Specifies the way of sorting the results of this action.

", - "smithy.api#httpQuery": "sortBy" + "smithy.api#documentation": "

The asset types of the rule.

", + "smithy.api#httpQuery": "assetTypes" } }, - "sortOrder": { - "target": "com.amazonaws.datazone#SortOrder", + "dataProduct": { + "target": "smithy.api#Boolean", "traits": { - "smithy.api#documentation": "

Specifies the sort order of this action.

", - "smithy.api#httpQuery": "sortOrder" + "smithy.api#documentation": "

The data product of the rule.

", + "smithy.api#httpQuery": "dataProduct" + } + }, + "includeCascaded": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Specifies whether to include cascading rules in the results.

", + "smithy.api#httpQuery": "includeCascaded" } }, "maxResults": { - "target": "com.amazonaws.datazone#MaxResults", + "target": "smithy.api#Integer", "traits": { - "smithy.api#documentation": "

The maximum number of subscription grants to return in a single call to\n ListSubscriptionGrants. When the number of subscription grants to be listed\n is greater than the value of MaxResults, the response contains a\n NextToken value that you can use in a subsequent call to\n ListSubscriptionGrants to list the next set of subscription grants.

", - "smithy.api#httpQuery": "maxResults" + "smithy.api#documentation": "

The maximum number of rules to return in a single call to ListRules. When\n the number of rules to be listed is greater than the value of MaxResults, the\n response contains a NextToken value that you can use in a subsequent call to\n ListRules to list the next set of rules.

", + "smithy.api#httpQuery": "maxResults", + "smithy.api#range": { + "min": 25, + "max": 50 + } } }, "nextToken": { "target": "com.amazonaws.datazone#PaginationToken", "traits": { - "smithy.api#documentation": "

When the number of subscription grants 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 subscription grants, the\n response includes a pagination token named NextToken. You can specify this\n NextToken value in a subsequent call to ListSubscriptionGrants\n to list the next set of subscription grants.

", + "smithy.api#documentation": "

When the number of rules 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 rules, the response includes a\n pagination token named NextToken. You can specify this NextToken\n value in a subsequent call to ListRules to list the next set of rules.

", "smithy.api#httpQuery": "nextToken" } } @@ -19337,20 +19870,20 @@ "smithy.api#input": {} } }, - "com.amazonaws.datazone#ListSubscriptionGrantsOutput": { + "com.amazonaws.datazone#ListRulesOutput": { "type": "structure", "members": { "items": { - "target": "com.amazonaws.datazone#SubscriptionGrants", + "target": "com.amazonaws.datazone#RuleSummaries", "traits": { - "smithy.api#documentation": "

The results of the ListSubscriptionGrants action.

", + "smithy.api#documentation": "

The results of the ListRules action.

", "smithy.api#required": {} } }, "nextToken": { "target": "com.amazonaws.datazone#PaginationToken", "traits": { - "smithy.api#documentation": "

When the number of subscription grants 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 subscription grants, the\n response includes a pagination token named NextToken. You can specify this\n NextToken value in a subsequent call to ListSubscriptionGrants\n to list the next set of subscription grants.

" + "smithy.api#documentation": "

When the number of rules 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 rules, the response includes a\n pagination token named NextToken. You can specify this NextToken\n value in a subsequent call to ListRules to list the next set of rules.

" } } }, @@ -19358,13 +19891,13 @@ "smithy.api#output": {} } }, - "com.amazonaws.datazone#ListSubscriptionRequests": { + "com.amazonaws.datazone#ListSubscriptionGrants": { "type": "operation", "input": { - "target": "com.amazonaws.datazone#ListSubscriptionRequestsInput" + "target": "com.amazonaws.datazone#ListSubscriptionGrantsInput" }, "output": { - "target": "com.amazonaws.datazone#ListSubscriptionRequestsOutput" + "target": "com.amazonaws.datazone#ListSubscriptionGrantsOutput" }, "errors": [ { @@ -19384,11 +19917,11 @@ } ], "traits": { - "smithy.api#documentation": "

Lists Amazon DataZone subscription requests.

", + "smithy.api#documentation": "

Lists subscription grants.

", "smithy.api#http": { "code": 200, "method": "GET", - "uri": "/v2/domains/{domainIdentifier}/subscription-requests" + "uri": "/v2/domains/{domainIdentifier}/subscription-grants" }, "smithy.api#paginated": { "inputToken": "nextToken", @@ -19399,7 +19932,7 @@ "smithy.api#readonly": {} } }, - "com.amazonaws.datazone#ListSubscriptionRequestsInput": { + "com.amazonaws.datazone#ListSubscriptionGrantsInput": { "type": "structure", "members": { "domainIdentifier": { @@ -19410,11 +19943,18 @@ "smithy.api#required": {} } }, - "status": { - "target": "com.amazonaws.datazone#SubscriptionRequestStatus", + "environmentId": { + "target": "com.amazonaws.datazone#EnvironmentId", "traits": { - "smithy.api#documentation": "

Specifies the status of the subscription requests.

\n \n

This is not a required parameter, but if not specified, by default, Amazon DataZone\n returns only PENDING subscription requests.

\n
", - "smithy.api#httpQuery": "status" + "smithy.api#documentation": "

The identifier of the Amazon DataZone environment.

", + "smithy.api#httpQuery": "environmentId" + } + }, + "subscriptionTargetId": { + "target": "com.amazonaws.datazone#SubscriptionTargetId", + "traits": { + "smithy.api#documentation": "

The identifier of the subscription target.

", + "smithy.api#httpQuery": "subscriptionTargetId" } }, "subscribedListingId": { @@ -19424,24 +19964,158 @@ "smithy.api#httpQuery": "subscribedListingId" } }, - "owningProjectId": { - "target": "com.amazonaws.datazone#ProjectId", + "subscriptionId": { + "target": "com.amazonaws.datazone#SubscriptionId", "traits": { - "smithy.api#documentation": "

The identifier of the project for the subscription requests.

", - "smithy.api#httpQuery": "owningProjectId" + "smithy.api#documentation": "

The identifier of the subscription.

", + "smithy.api#httpQuery": "subscriptionId" } }, - "approverProjectId": { + "owningProjectId": { "target": "com.amazonaws.datazone#ProjectId", "traits": { - "smithy.api#documentation": "

The identifier of the subscription request approver's project.

", - "smithy.api#httpQuery": "approverProjectId" + "smithy.api#documentation": "

The ID of the owning project of the subscription grants.

", + "smithy.api#httpQuery": "owningProjectId" } }, "sortBy": { "target": "com.amazonaws.datazone#SortKey", "traits": { - "smithy.api#documentation": "

Specifies the way to sort the results of this action.

", + "smithy.api#documentation": "

Specifies the way of sorting the results of this action.

", + "smithy.api#httpQuery": "sortBy" + } + }, + "sortOrder": { + "target": "com.amazonaws.datazone#SortOrder", + "traits": { + "smithy.api#documentation": "

Specifies the sort order of this action.

", + "smithy.api#httpQuery": "sortOrder" + } + }, + "maxResults": { + "target": "com.amazonaws.datazone#MaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of subscription grants to return in a single call to\n ListSubscriptionGrants. When the number of subscription grants to be listed\n is greater than the value of MaxResults, the response contains a\n NextToken value that you can use in a subsequent call to\n ListSubscriptionGrants to list the next set of subscription grants.

", + "smithy.api#httpQuery": "maxResults" + } + }, + "nextToken": { + "target": "com.amazonaws.datazone#PaginationToken", + "traits": { + "smithy.api#documentation": "

When the number of subscription grants 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 subscription grants, the\n response includes a pagination token named NextToken. You can specify this\n NextToken value in a subsequent call to ListSubscriptionGrants\n to list the next set of subscription grants.

", + "smithy.api#httpQuery": "nextToken" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.datazone#ListSubscriptionGrantsOutput": { + "type": "structure", + "members": { + "items": { + "target": "com.amazonaws.datazone#SubscriptionGrants", + "traits": { + "smithy.api#documentation": "

The results of the ListSubscriptionGrants action.

", + "smithy.api#required": {} + } + }, + "nextToken": { + "target": "com.amazonaws.datazone#PaginationToken", + "traits": { + "smithy.api#documentation": "

When the number of subscription grants 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 subscription grants, the\n response includes a pagination token named NextToken. You can specify this\n NextToken value in a subsequent call to ListSubscriptionGrants\n to list the next set of subscription grants.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.datazone#ListSubscriptionRequests": { + "type": "operation", + "input": { + "target": "com.amazonaws.datazone#ListSubscriptionRequestsInput" + }, + "output": { + "target": "com.amazonaws.datazone#ListSubscriptionRequestsOutput" + }, + "errors": [ + { + "target": "com.amazonaws.datazone#AccessDeniedException" + }, + { + "target": "com.amazonaws.datazone#InternalServerException" + }, + { + "target": "com.amazonaws.datazone#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.datazone#ThrottlingException" + }, + { + "target": "com.amazonaws.datazone#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Lists Amazon DataZone subscription requests.

", + "smithy.api#http": { + "code": 200, + "method": "GET", + "uri": "/v2/domains/{domainIdentifier}/subscription-requests" + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "items" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.datazone#ListSubscriptionRequestsInput": { + "type": "structure", + "members": { + "domainIdentifier": { + "target": "com.amazonaws.datazone#DomainId", + "traits": { + "smithy.api#documentation": "

The identifier of the Amazon DataZone domain.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "status": { + "target": "com.amazonaws.datazone#SubscriptionRequestStatus", + "traits": { + "smithy.api#documentation": "

Specifies the status of the subscription requests.

\n \n

This is not a required parameter, but if not specified, by default, Amazon DataZone\n returns only PENDING subscription requests.

\n
", + "smithy.api#httpQuery": "status" + } + }, + "subscribedListingId": { + "target": "com.amazonaws.datazone#ListingId", + "traits": { + "smithy.api#documentation": "

The identifier of the subscribed listing.

", + "smithy.api#httpQuery": "subscribedListingId" + } + }, + "owningProjectId": { + "target": "com.amazonaws.datazone#ProjectId", + "traits": { + "smithy.api#documentation": "

The identifier of the project for the subscription requests.

", + "smithy.api#httpQuery": "owningProjectId" + } + }, + "approverProjectId": { + "target": "com.amazonaws.datazone#ProjectId", + "traits": { + "smithy.api#documentation": "

The identifier of the subscription request approver's project.

", + "smithy.api#httpQuery": "approverProjectId" + } + }, + "sortBy": { + "target": "com.amazonaws.datazone#SortKey", + "traits": { + "smithy.api#documentation": "

Specifies the way to sort the results of this action.

", "smithy.api#httpQuery": "sortBy" } }, @@ -20299,6 +20973,88 @@ "smithy.api#sensitive": {} } }, + "com.amazonaws.datazone#MetadataFormEnforcementDetail": { + "type": "structure", + "members": { + "requiredMetadataForms": { + "target": "com.amazonaws.datazone#RequiredMetadataFormList", + "traits": { + "smithy.api#documentation": "

The required metadata forms.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The enforcement details of a metadata form.

" + } + }, + "com.amazonaws.datazone#MetadataFormInputs": { + "type": "list", + "member": { + "target": "com.amazonaws.datazone#FormInput" + } + }, + "com.amazonaws.datazone#MetadataFormReference": { + "type": "structure", + "members": { + "typeIdentifier": { + "target": "com.amazonaws.datazone#FormTypeIdentifier", + "traits": { + "smithy.api#documentation": "

The type ID of the metadata form reference.

", + "smithy.api#required": {} + } + }, + "typeRevision": { + "target": "com.amazonaws.datazone#Revision", + "traits": { + "smithy.api#documentation": "

The type revision of the metadata form reference.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The reference of a metadata form.

" + } + }, + "com.amazonaws.datazone#MetadataFormSummary": { + "type": "structure", + "members": { + "formName": { + "target": "com.amazonaws.datazone#FormName", + "traits": { + "smithy.api#documentation": "

The form name of the metadata form.

" + } + }, + "typeName": { + "target": "com.amazonaws.datazone#FormTypeName", + "traits": { + "smithy.api#documentation": "

The type name of the metadata form.

", + "smithy.api#required": {} + } + }, + "typeRevision": { + "target": "com.amazonaws.datazone#Revision", + "traits": { + "smithy.api#documentation": "

The type revision of the metadata form.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The summary of the metadata form.

" + } + }, + "com.amazonaws.datazone#MetadataForms": { + "type": "list", + "member": { + "target": "com.amazonaws.datazone#FormOutput" + } + }, + "com.amazonaws.datazone#MetadataFormsSummary": { + "type": "list", + "member": { + "target": "com.amazonaws.datazone#MetadataFormSummary" + } + }, "com.amazonaws.datazone#MetadataGenerationRun": { "type": "resource", "identifiers": { @@ -21354,6 +22110,12 @@ "smithy.api#pattern": "^[a-zA-Z0-9_-]{1,36}$" } }, + "com.amazonaws.datazone#ProjectIds": { + "type": "list", + "member": { + "target": "com.amazonaws.datazone#ProjectId" + } + }, "com.amazonaws.datazone#ProjectMember": { "type": "structure", "members": { @@ -21523,6 +22285,27 @@ "smithy.api#documentation": "

The details of a Amazon DataZone project.

" } }, + "com.amazonaws.datazone#ProjectsForRule": { + "type": "structure", + "members": { + "selectionMode": { + "target": "com.amazonaws.datazone#RuleScopeSelectionMode", + "traits": { + "smithy.api#documentation": "

The selection mode of the rule.

", + "smithy.api#required": {} + } + }, + "specificProjects": { + "target": "com.amazonaws.datazone#RuleProjectIdentifierList", + "traits": { + "smithy.api#documentation": "

The specific projects in which the rule is created.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Specifies projects in which the rule is created.

" + } + }, "com.amazonaws.datazone#ProvisioningConfiguration": { "type": "union", "members": { @@ -22285,6 +23068,18 @@ "traits": { "smithy.api#documentation": "

The decision comment of the rejected subscription request.

" } + }, + "existingSubscriptionId": { + "target": "com.amazonaws.datazone#SubscriptionId", + "traits": { + "smithy.api#documentation": "

The ID of the existing subscription.

" + } + }, + "metadataForms": { + "target": "com.amazonaws.datazone#MetadataForms", + "traits": { + "smithy.api#documentation": "

Metadata forms included in the subscription request.

" + } } }, "traits": { @@ -22528,6 +23323,18 @@ "smithy.api#sensitive": {} } }, + "com.amazonaws.datazone#RequiredMetadataFormList": { + "type": "list", + "member": { + "target": "com.amazonaws.datazone#MetadataFormReference" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 5 + } + } + }, "com.amazonaws.datazone#Resource": { "type": "structure", "members": { @@ -22593,6 +23400,16 @@ } } }, + "com.amazonaws.datazone#RevisionInput": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" + } + }, "com.amazonaws.datazone#RevokeSubscription": { "type": "operation", "input": { @@ -22792,95 +23609,379 @@ "smithy.api#documentation": "

Specifies whether the row filter is sensitive.

" } } - }, - "traits": { - "smithy.api#documentation": "

The row filter configuration details.

" + }, + "traits": { + "smithy.api#documentation": "

The row filter configuration details.

" + } + }, + "com.amazonaws.datazone#RowFilterExpression": { + "type": "union", + "members": { + "equalTo": { + "target": "com.amazonaws.datazone#EqualToExpression", + "traits": { + "smithy.api#documentation": "

The 'equal to' clause of the row filter expression.

" + } + }, + "notEqualTo": { + "target": "com.amazonaws.datazone#NotEqualToExpression", + "traits": { + "smithy.api#documentation": "

The 'no equal to' clause of the row filter expression.

" + } + }, + "greaterThan": { + "target": "com.amazonaws.datazone#GreaterThanExpression", + "traits": { + "smithy.api#documentation": "

The 'greater than' clause of the row filter expression.

" + } + }, + "lessThan": { + "target": "com.amazonaws.datazone#LessThanExpression", + "traits": { + "smithy.api#documentation": "

The 'less than' clause of the row filter expression.

" + } + }, + "greaterThanOrEqualTo": { + "target": "com.amazonaws.datazone#GreaterThanOrEqualToExpression", + "traits": { + "smithy.api#documentation": "

The 'greater than or equal to' clause of the filter expression.

" + } + }, + "lessThanOrEqualTo": { + "target": "com.amazonaws.datazone#LessThanOrEqualToExpression", + "traits": { + "smithy.api#documentation": "

The 'less than or equal to' clause of the row filter expression.

" + } + }, + "isNull": { + "target": "com.amazonaws.datazone#IsNullExpression", + "traits": { + "smithy.api#documentation": "

The 'is null' clause of the row filter expression.

" + } + }, + "isNotNull": { + "target": "com.amazonaws.datazone#IsNotNullExpression", + "traits": { + "smithy.api#documentation": "

The 'is not null' clause of the row filter expression.

" + } + }, + "in": { + "target": "com.amazonaws.datazone#InExpression", + "traits": { + "smithy.api#documentation": "

The 'in' clause of the row filter expression.

" + } + }, + "notIn": { + "target": "com.amazonaws.datazone#NotInExpression", + "traits": { + "smithy.api#documentation": "

The 'not in' clause of the row filter expression.

" + } + }, + "like": { + "target": "com.amazonaws.datazone#LikeExpression", + "traits": { + "smithy.api#documentation": "

The 'like' clause of the row filter expression.

" + } + }, + "notLike": { + "target": "com.amazonaws.datazone#NotLikeExpression", + "traits": { + "smithy.api#documentation": "

The 'not like' clause of the row filter expression.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The row filter expression.

" + } + }, + "com.amazonaws.datazone#RowFilterList": { + "type": "list", + "member": { + "target": "com.amazonaws.datazone#RowFilter" + } + }, + "com.amazonaws.datazone#Rule": { + "type": "resource", + "identifiers": { + "identifier": { + "target": "com.amazonaws.datazone#RuleId" + } + }, + "properties": { + "domainIdentifier": { + "target": "com.amazonaws.datazone#DomainId" + }, + "name": { + "target": "com.amazonaws.datazone#RuleName" + }, + "description": { + "target": "com.amazonaws.datazone#Description" + }, + "ruleType": { + "target": "com.amazonaws.datazone#RuleType" + }, + "targetType": { + "target": "com.amazonaws.datazone#RuleTargetType" + }, + "target": { + "target": "com.amazonaws.datazone#RuleTarget" + }, + "action": { + "target": "com.amazonaws.datazone#RuleAction" + }, + "scope": { + "target": "com.amazonaws.datazone#RuleScope" + }, + "detail": { + "target": "com.amazonaws.datazone#RuleDetail" + }, + "revision": { + "target": "com.amazonaws.datazone#Revision" + }, + "createdBy": { + "target": "com.amazonaws.datazone#CreatedBy" + }, + "createdAt": { + "target": "com.amazonaws.datazone#CreatedAt" + }, + "lastUpdatedBy": { + "target": "com.amazonaws.datazone#UpdatedBy" + }, + "updatedAt": { + "target": "com.amazonaws.datazone#UpdatedAt" + } + }, + "create": { + "target": "com.amazonaws.datazone#CreateRule" + }, + "read": { + "target": "com.amazonaws.datazone#GetRule" + }, + "update": { + "target": "com.amazonaws.datazone#UpdateRule" + }, + "delete": { + "target": "com.amazonaws.datazone#DeleteRule" + }, + "list": { + "target": "com.amazonaws.datazone#ListRules" + } + }, + "com.amazonaws.datazone#RuleAction": { + "type": "enum", + "members": { + "CREATE_SUBSCRIPTION_REQUEST": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CREATE_SUBSCRIPTION_REQUEST" + } + } + } + }, + "com.amazonaws.datazone#RuleAssetTypeList": { + "type": "list", + "member": { + "target": "com.amazonaws.datazone#AssetTypeIdentifier" + }, + "traits": { + "smithy.api#length": { + "min": 1 + } + } + }, + "com.amazonaws.datazone#RuleDetail": { + "type": "union", + "members": { + "metadataFormEnforcementDetail": { + "target": "com.amazonaws.datazone#MetadataFormEnforcementDetail", + "traits": { + "smithy.api#documentation": "

The enforcement detail of the metadata form.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The details of a rule.

" + } + }, + "com.amazonaws.datazone#RuleId": { + "type": "string", + "traits": { + "smithy.api#pattern": "^[a-zA-Z0-9_-]{1,36}$" + } + }, + "com.amazonaws.datazone#RuleName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[\\w -]+$", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.datazone#RuleProjectIdentifierList": { + "type": "list", + "member": { + "target": "com.amazonaws.datazone#ProjectId" + }, + "traits": { + "smithy.api#length": { + "min": 1 + } + } + }, + "com.amazonaws.datazone#RuleScope": { + "type": "structure", + "members": { + "assetType": { + "target": "com.amazonaws.datazone#AssetTypesForRule", + "traits": { + "smithy.api#documentation": "

The asset type included in the rule scope.

" + } + }, + "dataProduct": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

The data product included in the rule scope.

" + } + }, + "project": { + "target": "com.amazonaws.datazone#ProjectsForRule", + "traits": { + "smithy.api#documentation": "

The project included in the rule scope.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The scope of a rule.

" + } + }, + "com.amazonaws.datazone#RuleScopeSelectionMode": { + "type": "enum", + "members": { + "ALL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ALL" + } + }, + "SPECIFIC": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SPECIFIC" + } + } } }, - "com.amazonaws.datazone#RowFilterExpression": { - "type": "union", + "com.amazonaws.datazone#RuleSummaries": { + "type": "list", + "member": { + "target": "com.amazonaws.datazone#RuleSummary" + } + }, + "com.amazonaws.datazone#RuleSummary": { + "type": "structure", "members": { - "equalTo": { - "target": "com.amazonaws.datazone#EqualToExpression", - "traits": { - "smithy.api#documentation": "

The 'equal to' clause of the row filter expression.

" - } - }, - "notEqualTo": { - "target": "com.amazonaws.datazone#NotEqualToExpression", + "identifier": { + "target": "com.amazonaws.datazone#RuleId", "traits": { - "smithy.api#documentation": "

The 'no equal to' clause of the row filter expression.

" + "smithy.api#documentation": "

The ID of the rule.

" } }, - "greaterThan": { - "target": "com.amazonaws.datazone#GreaterThanExpression", + "revision": { + "target": "com.amazonaws.datazone#Revision", "traits": { - "smithy.api#documentation": "

The 'greater than' clause of the row filter expression.

" + "smithy.api#documentation": "

The revision of the rule.

" } }, - "lessThan": { - "target": "com.amazonaws.datazone#LessThanExpression", + "ruleType": { + "target": "com.amazonaws.datazone#RuleType", "traits": { - "smithy.api#documentation": "

The 'less than' clause of the row filter expression.

" + "smithy.api#documentation": "

The type of the rule.

" } }, - "greaterThanOrEqualTo": { - "target": "com.amazonaws.datazone#GreaterThanOrEqualToExpression", + "name": { + "target": "com.amazonaws.datazone#RuleName", "traits": { - "smithy.api#documentation": "

The 'greater than or equal to' clause of the filter expression.

" + "smithy.api#documentation": "

The name of the rule.

" } }, - "lessThanOrEqualTo": { - "target": "com.amazonaws.datazone#LessThanOrEqualToExpression", + "targetType": { + "target": "com.amazonaws.datazone#RuleTargetType", "traits": { - "smithy.api#documentation": "

The 'less than or equal to' clause of the row filter expression.

" + "smithy.api#documentation": "

The target type of the rule.

" } }, - "isNull": { - "target": "com.amazonaws.datazone#IsNullExpression", + "target": { + "target": "com.amazonaws.datazone#RuleTarget", "traits": { - "smithy.api#documentation": "

The 'is null' clause of the row filter expression.

" + "smithy.api#documentation": "

The target of the rule.

" } }, - "isNotNull": { - "target": "com.amazonaws.datazone#IsNotNullExpression", + "action": { + "target": "com.amazonaws.datazone#RuleAction", "traits": { - "smithy.api#documentation": "

The 'is not null' clause of the row filter expression.

" + "smithy.api#documentation": "

The action of the rule.

" } }, - "in": { - "target": "com.amazonaws.datazone#InExpression", + "scope": { + "target": "com.amazonaws.datazone#RuleScope", "traits": { - "smithy.api#documentation": "

The 'in' clause of the row filter expression.

" + "smithy.api#documentation": "

The scope of the rule.

" } }, - "notIn": { - "target": "com.amazonaws.datazone#NotInExpression", + "updatedAt": { + "target": "com.amazonaws.datazone#UpdatedAt", "traits": { - "smithy.api#documentation": "

The 'not in' clause of the row filter expression.

" + "smithy.api#documentation": "

The timestamp at which the rule was last updated.

" } }, - "like": { - "target": "com.amazonaws.datazone#LikeExpression", + "lastUpdatedBy": { + "target": "com.amazonaws.datazone#UpdatedBy", "traits": { - "smithy.api#documentation": "

The 'like' clause of the row filter expression.

" + "smithy.api#documentation": "

The timestamp at which the rule was last updated.

" } - }, - "notLike": { - "target": "com.amazonaws.datazone#NotLikeExpression", + } + }, + "traits": { + "smithy.api#documentation": "

The summary of the rule.

" + } + }, + "com.amazonaws.datazone#RuleTarget": { + "type": "union", + "members": { + "domainUnitTarget": { + "target": "com.amazonaws.datazone#DomainUnitTarget", "traits": { - "smithy.api#documentation": "

The 'not like' clause of the row filter expression.

" + "smithy.api#documentation": "

The ID of the domain unit.

" } } }, "traits": { - "smithy.api#documentation": "

The row filter expression.

" + "smithy.api#documentation": "

The target of the rule.

" } }, - "com.amazonaws.datazone#RowFilterList": { - "type": "list", - "member": { - "target": "com.amazonaws.datazone#RowFilter" + "com.amazonaws.datazone#RuleTargetType": { + "type": "enum", + "members": { + "DOMAIN_UNIT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DOMAIN_UNIT" + } + } + } + }, + "com.amazonaws.datazone#RuleType": { + "type": "enum", + "members": { + "METADATA_FORM_ENFORCEMENT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "METADATA_FORM_ENFORCEMENT" + } + } } }, "com.amazonaws.datazone#RunStatisticsForAssets": { @@ -24942,6 +26043,18 @@ "traits": { "smithy.api#documentation": "

The decision comment of the subscription request.

" } + }, + "existingSubscriptionId": { + "target": "com.amazonaws.datazone#SubscriptionId", + "traits": { + "smithy.api#documentation": "

The ID of the existing subscription.

" + } + }, + "metadataFormsSummary": { + "target": "com.amazonaws.datazone#MetadataFormsSummary", + "traits": { + "smithy.api#documentation": "

The summary of the metadata forms.

" + } } }, "traits": { @@ -27959,6 +29072,200 @@ "smithy.api#output": {} } }, + "com.amazonaws.datazone#UpdateRule": { + "type": "operation", + "input": { + "target": "com.amazonaws.datazone#UpdateRuleInput" + }, + "output": { + "target": "com.amazonaws.datazone#UpdateRuleOutput" + }, + "errors": [ + { + "target": "com.amazonaws.datazone#AccessDeniedException" + }, + { + "target": "com.amazonaws.datazone#ConflictException" + }, + { + "target": "com.amazonaws.datazone#InternalServerException" + }, + { + "target": "com.amazonaws.datazone#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.datazone#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.datazone#ThrottlingException" + }, + { + "target": "com.amazonaws.datazone#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Updates a rule. In Amazon DataZone, a rule is a formal agreement that enforces specific\n requirements across user workflows (e.g., publishing assets to the catalog, requesting\n subscriptions, creating projects) within the Amazon DataZone data portal. These rules help\n maintain consistency, ensure compliance, and uphold governance standards in data management\n processes. For instance, a metadata enforcement rule can specify the required information\n for creating a subscription request or publishing a data asset to the catalog, ensuring\n alignment with organizational standards.

", + "smithy.api#http": { + "code": 200, + "method": "PATCH", + "uri": "/v2/domains/{domainIdentifier}/rules/{identifier}" + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.datazone#UpdateRuleInput": { + "type": "structure", + "members": { + "domainIdentifier": { + "target": "com.amazonaws.datazone#DomainId", + "traits": { + "smithy.api#documentation": "

The ID of the domain in which a rule is to be updated.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "identifier": { + "target": "com.amazonaws.datazone#RuleId", + "traits": { + "smithy.api#documentation": "

The ID of the rule that is to be updated

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.datazone#RuleName", + "traits": { + "smithy.api#documentation": "

The name of the rule.

" + } + }, + "description": { + "target": "com.amazonaws.datazone#Description", + "traits": { + "smithy.api#documentation": "

The description of the rule.

" + } + }, + "scope": { + "target": "com.amazonaws.datazone#RuleScope", + "traits": { + "smithy.api#documentation": "

The scrope of the rule.

" + } + }, + "detail": { + "target": "com.amazonaws.datazone#RuleDetail", + "traits": { + "smithy.api#documentation": "

The detail of the rule.

" + } + }, + "includeChildDomainUnits": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Specifies whether to update this rule in the child domain units.

", + "smithy.api#notProperty": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.datazone#UpdateRuleOutput": { + "type": "structure", + "members": { + "identifier": { + "target": "com.amazonaws.datazone#RuleId", + "traits": { + "smithy.api#documentation": "

The ID of the rule.

", + "smithy.api#required": {} + } + }, + "revision": { + "target": "com.amazonaws.datazone#Revision", + "traits": { + "smithy.api#documentation": "

The revision of the rule.

", + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.datazone#RuleName", + "traits": { + "smithy.api#documentation": "

The name of the rule.

", + "smithy.api#required": {} + } + }, + "ruleType": { + "target": "com.amazonaws.datazone#RuleType", + "traits": { + "smithy.api#documentation": "

The type of the rule.

", + "smithy.api#required": {} + } + }, + "target": { + "target": "com.amazonaws.datazone#RuleTarget", + "traits": { + "smithy.api#documentation": "

The target of the rule.

", + "smithy.api#required": {} + } + }, + "action": { + "target": "com.amazonaws.datazone#RuleAction", + "traits": { + "smithy.api#documentation": "

The action of the rule.

", + "smithy.api#required": {} + } + }, + "scope": { + "target": "com.amazonaws.datazone#RuleScope", + "traits": { + "smithy.api#documentation": "

The scope of the rule.

", + "smithy.api#required": {} + } + }, + "detail": { + "target": "com.amazonaws.datazone#RuleDetail", + "traits": { + "smithy.api#documentation": "

The detail of the rule.

", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.datazone#Description", + "traits": { + "smithy.api#documentation": "

The description of the rule.

" + } + }, + "createdAt": { + "target": "com.amazonaws.datazone#CreatedAt", + "traits": { + "smithy.api#documentation": "

The timestamp at which the rule was created.

", + "smithy.api#required": {} + } + }, + "updatedAt": { + "target": "com.amazonaws.datazone#UpdatedAt", + "traits": { + "smithy.api#documentation": "

The timestamp at which the rule was last updated.

", + "smithy.api#required": {} + } + }, + "createdBy": { + "target": "com.amazonaws.datazone#CreatedBy", + "traits": { + "smithy.api#documentation": "

The user who created the rule.

", + "smithy.api#required": {} + } + }, + "lastUpdatedBy": { + "target": "com.amazonaws.datazone#UpdatedBy", + "traits": { + "smithy.api#documentation": "

The timestamp at which the rule was last updated.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.datazone#UpdateSubscriptionGrantStatus": { "type": "operation", "input": { @@ -28293,6 +29600,18 @@ "traits": { "smithy.api#documentation": "

The decision comment of the UpdateSubscriptionRequest action.

" } + }, + "existingSubscriptionId": { + "target": "com.amazonaws.datazone#SubscriptionId", + "traits": { + "smithy.api#documentation": "

The ID of the existing subscription.

" + } + }, + "metadataForms": { + "target": "com.amazonaws.datazone#MetadataForms", + "traits": { + "smithy.api#documentation": "

Metadata forms included in the subscription request.

" + } } }, "traits": { diff --git a/codegen/sdk-codegen/aws-models/ec2.json b/codegen/sdk-codegen/aws-models/ec2.json index 2c2430bf8a9..c8e6718a2e9 100644 --- a/codegen/sdk-codegen/aws-models/ec2.json +++ b/codegen/sdk-codegen/aws-models/ec2.json @@ -2606,6 +2606,9 @@ { "target": "com.amazonaws.ec2#CreateVpc" }, + { + "target": "com.amazonaws.ec2#CreateVpcBlockPublicAccessExclusion" + }, { "target": "com.amazonaws.ec2#CreateVpcEndpoint" }, @@ -2831,6 +2834,9 @@ { "target": "com.amazonaws.ec2#DeleteVpc" }, + { + "target": "com.amazonaws.ec2#DeleteVpcBlockPublicAccessExclusion" + }, { "target": "com.amazonaws.ec2#DeleteVpcEndpointConnectionNotifications" }, @@ -3305,6 +3311,12 @@ { "target": "com.amazonaws.ec2#DescribeVpcAttribute" }, + { + "target": "com.amazonaws.ec2#DescribeVpcBlockPublicAccessExclusions" + }, + { + "target": "com.amazonaws.ec2#DescribeVpcBlockPublicAccessOptions" + }, { "target": "com.amazonaws.ec2#DescribeVpcClassicLink" }, @@ -3863,6 +3875,12 @@ { "target": "com.amazonaws.ec2#ModifyVpcAttribute" }, + { + "target": "com.amazonaws.ec2#ModifyVpcBlockPublicAccessExclusion" + }, + { + "target": "com.amazonaws.ec2#ModifyVpcBlockPublicAccessOptions" + }, { "target": "com.amazonaws.ec2#ModifyVpcEndpoint" }, @@ -9238,6 +9256,36 @@ "com.amazonaws.ec2#BaselineIops": { "type": "integer" }, + "com.amazonaws.ec2#BaselinePerformanceFactors": { + "type": "structure", + "members": { + "Cpu": { + "target": "com.amazonaws.ec2#CpuPerformanceFactor", + "traits": { + "aws.protocols#ec2QueryName": "Cpu", + "smithy.api#documentation": "

The CPU performance to consider, using an instance family as the baseline reference.

", + "smithy.api#xmlName": "cpu" + } + } + }, + "traits": { + "smithy.api#documentation": "

The baseline performance to consider, using an instance family as a baseline reference.\n The instance family establishes the lowest acceptable level of performance. Amazon EC2 uses this\n baseline to guide instance type selection, but there is no guarantee that the selected\n instance types will always exceed the baseline for every application.

\n

Currently, this parameter only supports CPU performance as a baseline performance\n factor. For example, specifying c6i would use the CPU performance of the\n c6i family as the baseline reference.

" + } + }, + "com.amazonaws.ec2#BaselinePerformanceFactorsRequest": { + "type": "structure", + "members": { + "Cpu": { + "target": "com.amazonaws.ec2#CpuPerformanceFactorRequest", + "traits": { + "smithy.api#documentation": "

The CPU performance to consider, using an instance family as the baseline reference.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The baseline performance to consider, using an instance family as a baseline reference.\n The instance family establishes the lowest acceptable level of performance. Amazon EC2 uses this\n baseline to guide instance type selection, but there is no guarantee that the selected\n instance types will always exceed the baseline for every application.

\n

Currently, this parameter only supports CPU performance as a baseline performance\n factor. For example, specifying c6i would use the CPU performance of the\n c6i family as the baseline reference.

" + } + }, "com.amazonaws.ec2#BaselineThroughputInMBps": { "type": "double" }, @@ -9387,6 +9435,45 @@ } } }, + "com.amazonaws.ec2#BlockPublicAccessMode": { + "type": "enum", + "members": { + "off": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "off" + } + }, + "block_bidirectional": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "block-bidirectional" + } + }, + "block_ingress": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "block-ingress" + } + } + } + }, + "com.amazonaws.ec2#BlockPublicAccessStates": { + "type": "structure", + "members": { + "InternetGatewayBlockMode": { + "target": "com.amazonaws.ec2#BlockPublicAccessMode", + "traits": { + "aws.protocols#ec2QueryName": "InternetGatewayBlockMode", + "smithy.api#documentation": "

The mode of VPC BPA.

\n ", + "smithy.api#xmlName": "internetGatewayBlockMode" + } + } + }, + "traits": { + "smithy.api#documentation": "

The state of VPC Block Public Access (BPA).

" + } + }, "com.amazonaws.ec2#Boolean": { "type": "boolean" }, @@ -9466,7 +9553,7 @@ "target": "com.amazonaws.ec2#BundleInstanceResult" }, "traits": { - "smithy.api#documentation": "

Bundles an Amazon instance store-backed Windows instance.

\n

During bundling, only the root device volume (C:\\) is bundled. Data on other instance store volumes is not preserved.

\n \n

This action is not applicable for Linux/Unix instances or Windows instances that are backed by Amazon EBS.

\n
" + "smithy.api#documentation": "

Bundles an Amazon instance store-backed Windows instance.

\n

During bundling, only the root device volume (C:\\) is bundled. Data on other instance\n store volumes is not preserved.

\n \n

This action is not applicable for Linux/Unix instances or Windows instances that are\n backed by Amazon EBS.

\n
" } }, "com.amazonaws.ec2#BundleInstanceRequest": { @@ -9484,7 +9571,7 @@ "target": "com.amazonaws.ec2#Storage", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.

", + "smithy.api#documentation": "

The bucket in which to store the AMI. You can specify a bucket that you already own or a\n new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone\n else, Amazon EC2 returns an error.

", "smithy.api#required": {} } }, @@ -10188,7 +10275,7 @@ "target": "com.amazonaws.ec2#CancelImageLaunchPermissionResult" }, "traits": { - "smithy.api#documentation": "

Removes your Amazon Web Services account from the launch permissions for the specified AMI. For more\n information, see \n Cancel having an AMI shared with your Amazon Web Services account in the \n Amazon EC2 User Guide.

" + "smithy.api#documentation": "

Removes your Amazon Web Services account from the launch permissions for the specified AMI.\n For more information, see Cancel having an AMI shared with\n your Amazon Web Services account in the Amazon EC2 User Guide.

" } }, "com.amazonaws.ec2#CancelImageLaunchPermissionRequest": { @@ -11601,6 +11688,12 @@ "com.amazonaws.ec2#CapacityReservationPreference": { "type": "enum", "members": { + "capacity_reservations_only": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "capacity-reservations-only" + } + }, "open": { "target": "smithy.api#Unit", "traits": { @@ -11630,7 +11723,7 @@ "CapacityReservationPreference": { "target": "com.amazonaws.ec2#CapacityReservationPreference", "traits": { - "smithy.api#documentation": "

Indicates the instance's Capacity Reservation preferences. Possible preferences include:

\n " + "smithy.api#documentation": "

Indicates the instance's Capacity Reservation preferences. Possible preferences include:

\n " } }, "CapacityReservationTarget": { @@ -11641,7 +11734,7 @@ } }, "traits": { - "smithy.api#documentation": "

Describes an instance's Capacity Reservation targeting option. You can specify only one parameter \n\t\t\tat a time. If you specify CapacityReservationPreference and \n\t\t\tCapacityReservationTarget, the request fails.

\n

Use the CapacityReservationPreference parameter to configure the instance\n\t\t\tto run as an On-Demand Instance or to run in any open Capacity Reservation that has\n\t\t\tmatching attributes (instance type, platform, Availability Zone). Use the\n\t\t\tCapacityReservationTarget parameter to explicitly target a specific\n\t\t\t \tCapacity Reservation or a Capacity Reservation group.

" + "smithy.api#documentation": "

Describes an instance's Capacity Reservation targeting option.

\n

Use the CapacityReservationPreference parameter to configure the instance to\n\t\t\trun as an On-Demand Instance, to run in any open Capacity Reservation that\n\t\t\thas matching attributes, or to run only in a Capacity Reservation or Capacity\n\t\t\tReservation group. Use the CapacityReservationTarget parameter to\n\t\t\texplicitly target a specific Capacity Reservation or a Capacity Reservation\n\t\t\tgroup.

\n

You can only specify CapacityReservationPreference and CapacityReservationTarget if the CapacityReservationPreference is capacity-reservations-only.

" } }, "com.amazonaws.ec2#CapacityReservationSpecificationResponse": { @@ -13903,7 +13996,7 @@ "target": "com.amazonaws.ec2#CopyImageResult" }, "traits": { - "smithy.api#documentation": "

Initiates an AMI copy operation. You can copy an AMI from one Region to another, or from a\n Region to an Outpost. You can't copy an AMI from an Outpost to a Region, from one Outpost to\n another, or within the same Outpost. To copy an AMI to another partition, see CreateStoreImageTask.

\n

When you copy an AMI from one Region to another, the destination Region is the \n \tcurrent Region.

\n

When you copy an AMI from a Region to an Outpost, specify the ARN of the Outpost as\n \t the destination. Backing snapshots copied to an Outpost are encrypted by default using \n \t the default encryption key for the Region or the key that you specify. Outposts do not \n \t support unencrypted snapshots.

\n

For information about the prerequisites when copying an AMI, see Copy an AMI in the Amazon EC2 User Guide.

", + "smithy.api#documentation": "

Initiates an AMI copy operation. You can copy an AMI from one Region to another, or from a\n Region to an Outpost. You can't copy an AMI from an Outpost to a Region, from one Outpost to\n another, or within the same Outpost. To copy an AMI to another partition, see CreateStoreImageTask.

\n

When you copy an AMI from one Region to another, the destination Region is the current\n Region.

\n

When you copy an AMI from a Region to an Outpost, specify the ARN of the Outpost as the\n destination. Backing snapshots copied to an Outpost are encrypted by default using the default\n encryption key for the Region or the key that you specify. Outposts do not support unencrypted\n snapshots.

\n

For information about the prerequisites when copying an AMI, see Copy an AMI in the\n Amazon EC2 User Guide.

", "smithy.api#examples": [ { "title": "To copy an AMI to another region", @@ -13927,7 +14020,7 @@ "ClientToken": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

Unique, case-sensitive identifier you provide to ensure\n idempotency of the request. For more information, see Ensuring idempotency \n in the Amazon EC2 API Reference.

" + "smithy.api#documentation": "

Unique, case-sensitive identifier you provide to ensure idempotency of the request. For\n more information, see Ensuring idempotency\n in the Amazon EC2 API Reference.

" } }, "Description": { @@ -13940,7 +14033,7 @@ "target": "com.amazonaws.ec2#Boolean", "traits": { "aws.protocols#ec2QueryName": "Encrypted", - "smithy.api#documentation": "

Specifies whether the destination snapshots of the copied image should be encrypted. You\n can encrypt a copy of an unencrypted snapshot, but you cannot create an unencrypted copy of an\n encrypted snapshot. The default KMS key for Amazon EBS is used unless you specify a non-default\n Key Management Service (KMS) KMS key using KmsKeyId. For more information, see Use encryption with \n EBS-backed AMIs in the Amazon EC2 User Guide.

", + "smithy.api#documentation": "

Specifies whether the destination snapshots of the copied image should be encrypted. You\n can encrypt a copy of an unencrypted snapshot, but you cannot create an unencrypted copy of an\n encrypted snapshot. The default KMS key for Amazon EBS is used unless you specify a non-default\n Key Management Service (KMS) KMS key using KmsKeyId. For more information, see Use encryption with\n EBS-backed AMIs in the Amazon EC2 User Guide.

", "smithy.api#xmlName": "encrypted" } }, @@ -13948,7 +14041,7 @@ "target": "com.amazonaws.ec2#KmsKeyId", "traits": { "aws.protocols#ec2QueryName": "KmsKeyId", - "smithy.api#documentation": "

The identifier of the symmetric Key Management Service (KMS) KMS key to use when creating\n \t\tencrypted volumes. If this parameter is not specified, your Amazon Web Services managed KMS key for Amazon EBS is used. \n \t\tIf you specify a KMS key, you must also set the encrypted state to true.

\n

You can specify a KMS key using any of the following:

\n \n

Amazon Web Services authenticates the KMS key asynchronously. Therefore, if you specify an identifier that is not valid,\n the action can appear to complete, but eventually fails.

\n

The specified KMS key must exist in the destination Region.

\n

Amazon EBS does not support asymmetric KMS keys.

", + "smithy.api#documentation": "

The identifier of the symmetric Key Management Service (KMS) KMS key to use when creating encrypted volumes.\n If this parameter is not specified, your Amazon Web Services managed KMS key for Amazon EBS is used. If you\n specify a KMS key, you must also set the encrypted state to true.

\n

You can specify a KMS key using any of the following:

\n \n

Amazon Web Services authenticates the KMS key asynchronously. Therefore, if you specify an identifier\n that is not valid, the action can appear to complete, but eventually fails.

\n

The specified KMS key must exist in the destination Region.

\n

Amazon EBS does not support asymmetric KMS keys.

", "smithy.api#xmlName": "kmsKeyId" } }, @@ -13979,19 +14072,19 @@ "DestinationOutpostArn": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Outpost to which to copy the AMI. Only \n \t\tspecify this parameter when copying an AMI from an Amazon Web Services Region to an Outpost. \n \t\tThe AMI must be in the Region of the destination Outpost. You cannot copy an \n \t\tAMI from an Outpost to a Region, from one Outpost to another, or within the same \n \t\tOutpost.

\n

For more information, see Copy AMIs from an Amazon Web Services\n Region to an Outpost in the Amazon EBS User Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Outpost to which to copy the AMI. Only specify this\n parameter when copying an AMI from an Amazon Web Services Region to an Outpost. The AMI must be in the\n Region of the destination Outpost. You cannot copy an AMI from an Outpost to a Region, from\n one Outpost to another, or within the same Outpost.

\n

For more information, see Copy AMIs from an Amazon Web Services Region\n to an Outpost in the Amazon EBS User Guide.

" } }, "CopyImageTags": { "target": "com.amazonaws.ec2#Boolean", "traits": { - "smithy.api#documentation": "

Indicates whether to include your user-defined AMI tags when copying the AMI.

\n

The following tags will not be copied:

\n \n

Default: Your user-defined AMI tags are not copied.

" + "smithy.api#documentation": "

Indicates whether to include your user-defined AMI tags when copying the AMI.

\n

The following tags will not be copied:

\n \n

Default: Your user-defined AMI tags are not copied.

" } }, "TagSpecifications": { "target": "com.amazonaws.ec2#TagSpecificationList", "traits": { - "smithy.api#documentation": "

The tags to apply to the new AMI and new snapshots. You can tag the AMI, the snapshots, or\n both.

\n \n

If you specify other values for ResourceType, the request fails.

\n

To tag an AMI or snapshot after it has been created, see CreateTags.

", + "smithy.api#documentation": "

The tags to apply to the new AMI and new snapshots. You can tag the AMI, the snapshots, or\n both.

\n \n

If you specify other values for ResourceType, the request fails.

\n

To tag an AMI or snapshot after it has been created, see CreateTags.

", "smithy.api#xmlName": "TagSpecification" } }, @@ -14212,6 +14305,12 @@ "traits": { "smithy.api#enumValue": "amazon-web-services" } + }, + "APPLE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "apple" + } } } }, @@ -14285,6 +14384,37 @@ "smithy.api#documentation": "

The CPU options for the instance. Both the core count and threads per core must be\n specified in the request.

" } }, + "com.amazonaws.ec2#CpuPerformanceFactor": { + "type": "structure", + "members": { + "References": { + "target": "com.amazonaws.ec2#PerformanceFactorReferenceSet", + "traits": { + "aws.protocols#ec2QueryName": "ReferenceSet", + "smithy.api#documentation": "

Specify an instance family to use as the baseline reference for CPU performance. All\n instance types that match your specified attributes will be compared against the CPU\n performance of the referenced instance family, regardless of CPU manufacturer or\n architecture differences.

\n \n

Currently, only one instance family can be specified in the list.

\n
", + "smithy.api#xmlName": "referenceSet" + } + } + }, + "traits": { + "smithy.api#documentation": "

The CPU performance to consider, using an instance family as the baseline reference.

" + } + }, + "com.amazonaws.ec2#CpuPerformanceFactorRequest": { + "type": "structure", + "members": { + "References": { + "target": "com.amazonaws.ec2#PerformanceFactorReferenceSetRequest", + "traits": { + "smithy.api#documentation": "

Specify an instance family to use as the baseline reference for CPU performance. All\n instance types that match your specified attributes will be compared against the CPU\n performance of the referenced instance family, regardless of CPU manufacturer or\n architecture differences.

\n \n

Currently, only one instance family can be specified in the list.

\n
", + "smithy.api#xmlName": "Reference" + } + } + }, + "traits": { + "smithy.api#documentation": "

The CPU performance to consider, using an instance family as the baseline reference.

" + } + }, "com.amazonaws.ec2#CreateCapacityReservation": { "type": "operation", "input": { @@ -15987,7 +16117,7 @@ "target": "com.amazonaws.ec2#CreateImageResult" }, "traits": { - "smithy.api#documentation": "

Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance \n \tthat is either running or stopped.

\n

If you customized your instance with instance store volumes or Amazon EBS volumes in addition to the root device volume, the \n \tnew AMI contains block device mapping information for those volumes. When you launch an instance from this new AMI, \n \tthe instance automatically launches with those additional volumes.

\n

For more information, see Create an Amazon EBS-backed Linux\n AMI in the Amazon Elastic Compute Cloud User Guide.

" + "smithy.api#documentation": "

Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that is either running or\n stopped.

\n

If you customized your instance with instance store volumes or Amazon EBS volumes in addition\n to the root device volume, the new AMI contains block device mapping information for those\n volumes. When you launch an instance from this new AMI, the instance automatically launches\n with those additional volumes.

\n

For more information, see Create an Amazon EBS-backed Linux\n AMI in the Amazon Elastic Compute Cloud User Guide.

" } }, "com.amazonaws.ec2#CreateImageRequest": { @@ -15996,7 +16126,7 @@ "TagSpecifications": { "target": "com.amazonaws.ec2#TagSpecificationList", "traits": { - "smithy.api#documentation": "

The tags to apply to the AMI and snapshots on creation. You can tag the AMI, the\n snapshots, or both.

\n \n

If you specify other values for ResourceType, the request fails.

\n

To tag an AMI or snapshot after it has been created, see CreateTags.

", + "smithy.api#documentation": "

The tags to apply to the AMI and snapshots on creation. You can tag the AMI, the\n snapshots, or both.

\n \n

If you specify other values for ResourceType, the request fails.

\n

To tag an AMI or snapshot after it has been created, see CreateTags.

", "smithy.api#xmlName": "TagSpecification" } }, @@ -16023,7 +16153,7 @@ "traits": { "aws.protocols#ec2QueryName": "Name", "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

A name for the new image.

\n

Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)

", + "smithy.api#documentation": "

A name for the new image.

\n

Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces\n ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or\n underscores(_)

", "smithy.api#required": {}, "smithy.api#xmlName": "name" } @@ -16040,7 +16170,7 @@ "target": "com.amazonaws.ec2#Boolean", "traits": { "aws.protocols#ec2QueryName": "NoReboot", - "smithy.api#documentation": "

Indicates whether or not the instance should be automatically rebooted before creating \n the image. Specify one of the following values:

\n \n

Default: false\n

", + "smithy.api#documentation": "

Indicates whether or not the instance should be automatically rebooted before creating the\n image. Specify one of the following values:

\n \n

Default: false\n

", "smithy.api#xmlName": "noReboot" } }, @@ -16956,6 +17086,12 @@ "smithy.api#required": {} } }, + "Operator": { + "target": "com.amazonaws.ec2#OperatorRequest", + "traits": { + "smithy.api#documentation": "

Reserved for internal use.

" + } + }, "TagSpecifications": { "target": "com.amazonaws.ec2#TagSpecificationList", "traits": { @@ -18187,6 +18323,12 @@ "smithy.api#documentation": "

A connection tracking specification for the network interface.

" } }, + "Operator": { + "target": "com.amazonaws.ec2#OperatorRequest", + "traits": { + "smithy.api#documentation": "

Reserved for internal use.

" + } + }, "SubnetId": { "target": "com.amazonaws.ec2#SubnetId", "traits": { @@ -18603,7 +18745,7 @@ "target": "com.amazonaws.ec2#CreateRestoreImageTaskResult" }, "traits": { - "smithy.api#documentation": "

Starts a task that restores an AMI from an Amazon S3 object that was previously created by using\n CreateStoreImageTask.

\n

To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using Amazon S3 in the\n Amazon EC2 User Guide.

\n

For more information, see Store and restore an AMI using\n \tAmazon S3 in the Amazon EC2 User Guide.

" + "smithy.api#documentation": "

Starts a task that restores an AMI from an Amazon S3 object that was previously created by\n using CreateStoreImageTask.

\n

To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using Amazon S3 in the\n Amazon EC2 User Guide.

\n

For more information, see Store and restore an AMI using\n Amazon S3 in the Amazon EC2 User Guide.

" } }, "com.amazonaws.ec2#CreateRestoreImageTaskRequest": { @@ -18634,7 +18776,7 @@ "TagSpecifications": { "target": "com.amazonaws.ec2#TagSpecificationList", "traits": { - "smithy.api#documentation": "

The tags to apply to the AMI and snapshots on restoration. You can tag the AMI, the\n snapshots, or both.

\n ", + "smithy.api#documentation": "

The tags to apply to the AMI and snapshots on restoration. You can tag the AMI, the\n snapshots, or both.

\n ", "smithy.api#xmlName": "TagSpecification" } }, @@ -19276,7 +19418,7 @@ "target": "com.amazonaws.ec2#CreateStoreImageTaskResult" }, "traits": { - "smithy.api#documentation": "

Stores an AMI as a single object in an Amazon S3 bucket.

\n

To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using Amazon S3 in the\n Amazon EC2 User Guide.

\n

For more information, see Store and restore an AMI using\n \tAmazon S3 in the Amazon EC2 User Guide.

" + "smithy.api#documentation": "

Stores an AMI as a single object in an Amazon S3 bucket.

\n

To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using Amazon S3 in the\n Amazon EC2 User Guide.

\n

For more information, see Store and restore an AMI using\n Amazon S3 in the Amazon EC2 User Guide.

" } }, "com.amazonaws.ec2#CreateStoreImageTaskRequest": { @@ -21592,6 +21734,12 @@ "smithy.api#idempotencyToken": {} } }, + "Operator": { + "target": "com.amazonaws.ec2#OperatorRequest", + "traits": { + "smithy.api#documentation": "

Reserved for internal use.

" + } + }, "DryRun": { "target": "com.amazonaws.ec2#Boolean", "traits": { @@ -21635,6 +21783,75 @@ ] } }, + "com.amazonaws.ec2#CreateVpcBlockPublicAccessExclusion": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#CreateVpcBlockPublicAccessExclusionRequest" + }, + "output": { + "target": "com.amazonaws.ec2#CreateVpcBlockPublicAccessExclusionResult" + }, + "traits": { + "smithy.api#documentation": "

Create a VPC Block Public Access (BPA) exclusion. A VPC BPA exclusion is a mode that can be applied to a single VPC or subnet that exempts it from the account’s BPA mode and will allow bidirectional or egress-only access. You can create BPA exclusions for VPCs and subnets even when BPA is not enabled on the account to ensure that there is no traffic disruption to the exclusions when VPC BPA is turned on. To learn more about VPC BPA, see Block public access to VPCs and subnets in the Amazon VPC User Guide.

" + } + }, + "com.amazonaws.ec2#CreateVpcBlockPublicAccessExclusionRequest": { + "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.

" + } + }, + "SubnetId": { + "target": "com.amazonaws.ec2#SubnetId", + "traits": { + "smithy.api#documentation": "

A subnet ID.

" + } + }, + "VpcId": { + "target": "com.amazonaws.ec2#VpcId", + "traits": { + "smithy.api#documentation": "

A VPC ID.

" + } + }, + "InternetGatewayExclusionMode": { + "target": "com.amazonaws.ec2#InternetGatewayExclusionMode", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "

The exclusion mode for internet gateway traffic.

\n ", + "smithy.api#required": {} + } + }, + "TagSpecifications": { + "target": "com.amazonaws.ec2#TagSpecificationList", + "traits": { + "smithy.api#documentation": "

\n tag - 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.

", + "smithy.api#xmlName": "TagSpecification" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.ec2#CreateVpcBlockPublicAccessExclusionResult": { + "type": "structure", + "members": { + "VpcBlockPublicAccessExclusion": { + "target": "com.amazonaws.ec2#VpcBlockPublicAccessExclusion", + "traits": { + "aws.protocols#ec2QueryName": "VpcBlockPublicAccessExclusion", + "smithy.api#documentation": "

Details about an exclusion.

", + "smithy.api#xmlName": "vpcBlockPublicAccessExclusion" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.ec2#CreateVpcEndpoint": { "type": "operation", "input": { @@ -26661,6 +26878,56 @@ ] } }, + "com.amazonaws.ec2#DeleteVpcBlockPublicAccessExclusion": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#DeleteVpcBlockPublicAccessExclusionRequest" + }, + "output": { + "target": "com.amazonaws.ec2#DeleteVpcBlockPublicAccessExclusionResult" + }, + "traits": { + "smithy.api#documentation": "

Delete a VPC Block Public Access (BPA) exclusion. A VPC BPA exclusion is a mode that can be applied to a single VPC or subnet that exempts it from the account’s BPA mode and will allow bidirectional or egress-only access. You can create BPA exclusions for VPCs and subnets even when BPA is not enabled on the account to ensure that there is no traffic disruption to the exclusions when VPC BPA is turned on. To learn more about VPC BPA, see Block public access to VPCs and subnets in the Amazon VPC User Guide.

" + } + }, + "com.amazonaws.ec2#DeleteVpcBlockPublicAccessExclusionRequest": { + "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.

" + } + }, + "ExclusionId": { + "target": "com.amazonaws.ec2#VpcBlockPublicAccessExclusionId", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "

The ID of the exclusion.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.ec2#DeleteVpcBlockPublicAccessExclusionResult": { + "type": "structure", + "members": { + "VpcBlockPublicAccessExclusion": { + "target": "com.amazonaws.ec2#VpcBlockPublicAccessExclusion", + "traits": { + "aws.protocols#ec2QueryName": "VpcBlockPublicAccessExclusion", + "smithy.api#documentation": "

Details about an exclusion.

", + "smithy.api#xmlName": "vpcBlockPublicAccessExclusion" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.ec2#DeleteVpcEndpointConnectionNotifications": { "type": "operation", "input": { @@ -27251,7 +27518,7 @@ "target": "smithy.api#Unit" }, "traits": { - "smithy.api#documentation": "

Deregisters the specified AMI. After you deregister an AMI, it can't be used to \n launch new instances.

\n

If you deregister an AMI that matches a Recycle Bin retention rule, the AMI is retained\n in the Recycle Bin for the specified retention period. For more information, see Recycle Bin in\n the Amazon EC2 User Guide.

\n

When you deregister an AMI, it doesn't affect any instances that you've already \n launched from the AMI. You'll continue to incur usage costs for those instances until \n you terminate them.

\n

When you deregister an Amazon EBS-backed AMI, it doesn't affect the snapshot that was\n\t\t\tcreated for the root volume of the instance during the AMI creation process. When you\n\t\t\tderegister an instance store-backed AMI, it doesn't affect the files that you uploaded\n\t\t\tto Amazon S3 when you created the AMI.

" + "smithy.api#documentation": "

Deregisters the specified AMI. After you deregister an AMI, it can't be used to launch new\n instances.

\n

If you deregister an AMI that matches a Recycle Bin retention rule, the AMI is retained in\n the Recycle Bin for the specified retention period. For more information, see Recycle Bin in\n the Amazon EC2 User Guide.

\n

When you deregister an AMI, it doesn't affect any instances that you've already launched\n from the AMI. You'll continue to incur usage costs for those instances until you terminate\n them.

\n

When you deregister an Amazon EBS-backed AMI, it doesn't affect the snapshot that was created\n for the root volume of the instance during the AMI creation process. When you deregister an\n instance store-backed AMI, it doesn't affect the files that you uploaded to Amazon S3 when you\n created the AMI.

" } }, "com.amazonaws.ec2#DeregisterImageRequest": { @@ -28101,7 +28368,7 @@ "target": "com.amazonaws.ec2#DescribeBundleTasksResult" }, "traits": { - "smithy.api#documentation": "

Describes the specified bundle tasks or all of your bundle tasks.

\n \n

Completed bundle tasks are listed for only a limited time. If your bundle task is no longer in the list, you can still register an AMI from it. Just use RegisterImage with the Amazon S3 bucket name and image manifest name you provided to the bundle task.

\n
\n \n

The order of the elements in the response, including those within nested\n structures, might vary. Applications should not assume the elements appear in a\n particular order.

\n
", + "smithy.api#documentation": "

Describes the specified bundle tasks or all of your bundle tasks.

\n \n

Completed bundle tasks are listed for only a limited time. If your bundle task is no\n longer in the list, you can still register an AMI from it. Just use\n RegisterImage with the Amazon S3 bucket name and image manifest name you provided\n to the bundle task.

\n
\n \n

The order of the elements in the response, including those within nested structures,\n might vary. Applications should not assume the elements appear in a particular order.

\n
", "smithy.waiters#waitable": { "BundleTaskComplete": { "acceptors": [ @@ -28152,7 +28419,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

The filters.

\n ", + "smithy.api#documentation": "

The filters.

\n ", "smithy.api#xmlName": "Filter" } } @@ -28776,7 +29043,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

The filters.

\n ", + "smithy.api#documentation": "

The filters.

\n ", "smithy.api#xmlName": "Filter" } }, @@ -29710,7 +29977,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

The filters.

\n ", + "smithy.api#documentation": "

The filters.

\n ", "smithy.api#xmlName": "Filter" } } @@ -29801,7 +30068,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

The filters.

\n ", + "smithy.api#documentation": "

The filters.

\n ", "smithy.api#xmlName": "Filter" } } @@ -30175,7 +30442,7 @@ "target": "com.amazonaws.ec2#DescribeFastLaunchImagesSuccessSet", "traits": { "aws.protocols#ec2QueryName": "FastLaunchImageSet", - "smithy.api#documentation": "

A collection of details about the fast-launch enabled Windows images that meet \n\t\t\tthe requested criteria.

", + "smithy.api#documentation": "

A collection of details about the fast-launch enabled Windows images that meet the\n requested criteria.

", "smithy.api#xmlName": "fastLaunchImageSet" } }, @@ -30207,7 +30474,7 @@ "target": "com.amazonaws.ec2#FastLaunchResourceType", "traits": { "aws.protocols#ec2QueryName": "ResourceType", - "smithy.api#documentation": "

The resource type that Amazon EC2 uses for pre-provisioning the Windows AMI. Supported values \n\t\t\tinclude: snapshot.

", + "smithy.api#documentation": "

The resource type that Amazon EC2 uses for pre-provisioning the Windows AMI. Supported values\n include: snapshot.

", "smithy.api#xmlName": "resourceType" } }, @@ -30215,7 +30482,7 @@ "target": "com.amazonaws.ec2#FastLaunchSnapshotConfigurationResponse", "traits": { "aws.protocols#ec2QueryName": "SnapshotConfiguration", - "smithy.api#documentation": "

A group of parameters that are used for pre-provisioning the associated \n\t\t\tWindows AMI using snapshots.

", + "smithy.api#documentation": "

A group of parameters that are used for pre-provisioning the associated Windows AMI using\n snapshots.

", "smithy.api#xmlName": "snapshotConfiguration" } }, @@ -30223,7 +30490,7 @@ "target": "com.amazonaws.ec2#FastLaunchLaunchTemplateSpecificationResponse", "traits": { "aws.protocols#ec2QueryName": "LaunchTemplate", - "smithy.api#documentation": "

The launch template that the Windows fast launch enabled AMI uses when it launches \n\t\t\tWindows instances from pre-provisioned snapshots.

", + "smithy.api#documentation": "

The launch template that the Windows fast launch enabled AMI uses when it launches Windows\n instances from pre-provisioned snapshots.

", "smithy.api#xmlName": "launchTemplate" } }, @@ -30231,7 +30498,7 @@ "target": "com.amazonaws.ec2#Integer", "traits": { "aws.protocols#ec2QueryName": "MaxParallelLaunches", - "smithy.api#documentation": "

The maximum number of instances that Amazon EC2 can launch at the same time to create \n\t\t\tpre-provisioned snapshots for Windows fast launch.

", + "smithy.api#documentation": "

The maximum number of instances that Amazon EC2 can launch at the same time to create\n pre-provisioned snapshots for Windows fast launch.

", "smithy.api#xmlName": "maxParallelLaunches" } }, @@ -30269,7 +30536,7 @@ } }, "traits": { - "smithy.api#documentation": "

Describe details about a Windows image with Windows fast launch enabled that meets the requested \n\t\t\tcriteria. Criteria are defined by the DescribeFastLaunchImages action filters.

" + "smithy.api#documentation": "

Describe details about a Windows image with Windows fast launch enabled that meets the\n requested criteria. Criteria are defined by the DescribeFastLaunchImages action\n filters.

" } }, "com.amazonaws.ec2#DescribeFastLaunchImagesSuccessSet": { @@ -31553,7 +31820,7 @@ "target": "com.amazonaws.ec2#ImageAttribute" }, "traits": { - "smithy.api#documentation": "

Describes the specified attribute of the specified AMI. You can specify only one attribute at a time.

\n \n

The order of the elements in the response, including those within nested\n structures, might vary. Applications should not assume the elements appear in a\n particular order.

\n
", + "smithy.api#documentation": "

Describes the specified attribute of the specified AMI. You can specify only one attribute\n at a time.

\n \n

The order of the elements in the response, including those within nested structures,\n might vary. Applications should not assume the elements appear in a particular order.

\n
", "smithy.api#examples": [ { "title": "To describe the launch permissions for an AMI", @@ -31581,7 +31848,7 @@ "target": "com.amazonaws.ec2#ImageAttributeName", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

The AMI attribute.

\n

\n Note: The blockDeviceMapping attribute is deprecated. \n \t Using this attribute returns the Client.AuthFailure error. To get information about \n \t the block device mappings for an AMI, use the DescribeImages action.

", + "smithy.api#documentation": "

The AMI attribute.

\n

\n Note: The blockDeviceMapping attribute is\n deprecated. Using this attribute returns the Client.AuthFailure error. To get\n information about the block device mappings for an AMI, use the DescribeImages action.

", "smithy.api#required": {} } }, @@ -31616,7 +31883,7 @@ "target": "com.amazonaws.ec2#DescribeImagesResult" }, "traits": { - "smithy.api#documentation": "

Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of the images available to you.

\n

The images available to you include public images, private images that you own, and private images owned by other \n Amazon Web Services accounts for which you have explicit launch permissions.

\n

Recently deregistered images appear in the returned results for a short interval and then\n return empty results. After all instances that reference a deregistered AMI are terminated,\n specifying the ID of the image will eventually return an error indicating that the AMI ID\n cannot be found.

\n \n

We strongly recommend using only paginated requests. Unpaginated requests are\n susceptible to throttling and timeouts.

\n
\n \n

The order of the elements in the response, including those within nested\n structures, might vary. Applications should not assume the elements appear in a\n particular order.

\n
", + "smithy.api#documentation": "

Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of the\n images available to you.

\n

The images available to you include public images, private images that you own, and\n private images owned by other Amazon Web Services accounts for which you have explicit launch\n permissions.

\n

Recently deregistered images appear in the returned results for a short interval and then\n return empty results. After all instances that reference a deregistered AMI are terminated,\n specifying the ID of the image will eventually return an error indicating that the AMI ID\n cannot be found.

\n \n

We strongly recommend using only paginated requests. Unpaginated requests are\n susceptible to throttling and timeouts.

\n
\n \n

The order of the elements in the response, including those within nested structures,\n might vary. Applications should not assume the elements appear in a particular order.

\n
", "smithy.api#examples": [ { "title": "To describe an AMI", @@ -31724,7 +31991,7 @@ "ExecutableUsers": { "target": "com.amazonaws.ec2#ExecutableByStringList", "traits": { - "smithy.api#documentation": "

Scopes the images by users with explicit launch permissions. \n Specify an Amazon Web Services account ID, self (the sender of the request),\n\t\t\t\tor all (public AMIs).

\n ", + "smithy.api#documentation": "

Scopes the images by users with explicit launch permissions. Specify an Amazon Web Services account ID, self (the sender of the request), or all\n (public AMIs).

\n ", "smithy.api#xmlName": "ExecutableBy" } }, @@ -31738,7 +32005,7 @@ "Owners": { "target": "com.amazonaws.ec2#OwnerStringList", "traits": { - "smithy.api#documentation": "

Scopes the results to images with the specified owners. You can specify a combination of \n Amazon Web Services account IDs, self, amazon, aws-backup-vault, and aws-marketplace. \n If you omit this parameter, the results include all images for which you have launch permissions, \n regardless of ownership.

", + "smithy.api#documentation": "

Scopes the results to images with the specified owners. You can specify a combination of\n Amazon Web Services account IDs, self, amazon,\n aws-backup-vault, and aws-marketplace. If you omit this parameter,\n the results include all images for which you have launch permissions, regardless of\n ownership.

", "smithy.api#xmlName": "Owner" } }, @@ -31777,7 +32044,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

The filters.

\n ", + "smithy.api#documentation": "

The filters.

\n ", "smithy.api#xmlName": "Filter" } } @@ -33343,7 +33610,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

The filters.

\n ", + "smithy.api#documentation": "

The filters.

\n ", "smithy.api#xmlName": "Filter" } } @@ -35432,7 +35699,7 @@ "Filter": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

The filters.

\n " + "smithy.api#documentation": "

The filters.

\n " } }, "MaxResults": { @@ -35587,7 +35854,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

The filters.

\n ", + "smithy.api#documentation": "

The filters.

\n ", "smithy.api#xmlName": "Filter" } } @@ -37414,7 +37681,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

The filters.

\n ", + "smithy.api#documentation": "

The filters.

\n ", "smithy.api#xmlName": "Filter" } } @@ -39365,7 +39632,7 @@ "target": "com.amazonaws.ec2#DescribeStoreImageTasksResult" }, "traits": { - "smithy.api#documentation": "

Describes the progress of the AMI store tasks. You can describe the store tasks for\n specified AMIs. If you don't specify the AMIs, you get a paginated list of store tasks from\n the last 31 days.

\n

For each AMI task, the response indicates if the task is InProgress,\n Completed, or Failed. For tasks InProgress, the\n response shows the estimated progress as a percentage.

\n

Tasks are listed in reverse chronological order. Currently, only tasks from the past 31\n days can be viewed.

\n

To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using Amazon S3 in the\n Amazon EC2 User Guide.

\n

For more information, see Store and restore an AMI using\n \tAmazon S3 in the Amazon EC2 User Guide.

", + "smithy.api#documentation": "

Describes the progress of the AMI store tasks. You can describe the store tasks for\n specified AMIs. If you don't specify the AMIs, you get a paginated list of store tasks from\n the last 31 days.

\n

For each AMI task, the response indicates if the task is InProgress,\n Completed, or Failed. For tasks InProgress, the\n response shows the estimated progress as a percentage.

\n

Tasks are listed in reverse chronological order. Currently, only tasks from the past 31\n days can be viewed.

\n

To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using Amazon S3 in the\n Amazon EC2 User Guide.

\n

For more information, see Store and restore an AMI using\n Amazon S3 in the Amazon EC2 User Guide.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -39417,7 +39684,7 @@ "ImageIds": { "target": "com.amazonaws.ec2#ImageIdList", "traits": { - "smithy.api#documentation": "

The AMI IDs for which to show progress. Up to 20 AMI IDs can be included in a request.

", + "smithy.api#documentation": "

The AMI IDs for which to show progress. Up to 20 AMI IDs can be included in a\n request.

", "smithy.api#xmlName": "ImageId" } }, @@ -39564,7 +39831,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

The filters.

\n ", + "smithy.api#documentation": "

The filters.

\n ", "smithy.api#xmlName": "Filter" } }, @@ -42099,6 +42366,133 @@ "smithy.api#output": {} } }, + "com.amazonaws.ec2#DescribeVpcBlockPublicAccessExclusions": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#DescribeVpcBlockPublicAccessExclusionsRequest" + }, + "output": { + "target": "com.amazonaws.ec2#DescribeVpcBlockPublicAccessExclusionsResult" + }, + "traits": { + "smithy.api#documentation": "

Describe VPC Block Public Access (BPA) exclusions. A VPC BPA exclusion is a mode that can be applied to a single VPC or subnet that exempts it from the account’s BPA mode and will allow bidirectional or egress-only access. You can create BPA exclusions for VPCs and subnets even when BPA is not enabled on the account to ensure that there is no traffic disruption to the exclusions when VPC BPA is turned on. To learn more about VPC BPA, see Block public access to VPCs and subnets in the Amazon VPC User Guide.

" + } + }, + "com.amazonaws.ec2#DescribeVpcBlockPublicAccessExclusionsMaxResults": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 5, + "max": 1000 + } + } + }, + "com.amazonaws.ec2#DescribeVpcBlockPublicAccessExclusionsRequest": { + "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.

" + } + }, + "Filters": { + "target": "com.amazonaws.ec2#FilterList", + "traits": { + "smithy.api#documentation": "

Filters for the request:

\n ", + "smithy.api#xmlName": "Filter" + } + }, + "ExclusionIds": { + "target": "com.amazonaws.ec2#VpcBlockPublicAccessExclusionIdList", + "traits": { + "smithy.api#documentation": "

IDs of exclusions.

", + "smithy.api#xmlName": "ExclusionId" + } + }, + "NextToken": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "

The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.

" + } + }, + "MaxResults": { + "target": "com.amazonaws.ec2#DescribeVpcBlockPublicAccessExclusionsMaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of items to return for this request.\n\tTo get the next page of items, make another request with the token returned in the output.\n\tFor more information, see Pagination.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.ec2#DescribeVpcBlockPublicAccessExclusionsResult": { + "type": "structure", + "members": { + "VpcBlockPublicAccessExclusions": { + "target": "com.amazonaws.ec2#VpcBlockPublicAccessExclusionList", + "traits": { + "aws.protocols#ec2QueryName": "VpcBlockPublicAccessExclusionSet", + "smithy.api#documentation": "

Details related to the exclusions.

", + "smithy.api#xmlName": "vpcBlockPublicAccessExclusionSet" + } + }, + "NextToken": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "NextToken", + "smithy.api#documentation": "

The token to include in another request to get the next page of items. This value is null when there are no more items to return.

", + "smithy.api#xmlName": "nextToken" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.ec2#DescribeVpcBlockPublicAccessOptions": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#DescribeVpcBlockPublicAccessOptionsRequest" + }, + "output": { + "target": "com.amazonaws.ec2#DescribeVpcBlockPublicAccessOptionsResult" + }, + "traits": { + "smithy.api#documentation": "

Describe VPC Block Public Access (BPA) options. VPC Block public Access (BPA) enables you to block resources in VPCs and subnets that you own in a Region from reaching or being reached from the internet through internet gateways and egress-only internet gateways. To learn more about VPC BPA, see Block public access to VPCs and subnets in the Amazon VPC User Guide.

" + } + }, + "com.amazonaws.ec2#DescribeVpcBlockPublicAccessOptionsRequest": { + "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.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.ec2#DescribeVpcBlockPublicAccessOptionsResult": { + "type": "structure", + "members": { + "VpcBlockPublicAccessOptions": { + "target": "com.amazonaws.ec2#VpcBlockPublicAccessOptions", + "traits": { + "aws.protocols#ec2QueryName": "VpcBlockPublicAccessOptions", + "smithy.api#documentation": "

Details related to the options.

", + "smithy.api#xmlName": "vpcBlockPublicAccessOptions" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.ec2#DescribeVpcClassicLink": { "type": "operation", "input": { @@ -42223,7 +42617,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

The filters.

\n ", + "smithy.api#documentation": "

The filters.

\n ", "smithy.api#xmlName": "Filter" } } @@ -42838,7 +43232,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

The filters.

\n ", + "smithy.api#documentation": "

The filters.

\n ", "smithy.api#xmlName": "Filter" } } @@ -42970,7 +43364,7 @@ "Filters": { "target": "com.amazonaws.ec2#FilterList", "traits": { - "smithy.api#documentation": "

The filters.

\n ", + "smithy.api#documentation": "

The filters.

\n ", "smithy.api#xmlName": "Filter" } }, @@ -44017,7 +44411,7 @@ "target": "com.amazonaws.ec2#DisableFastLaunchResult" }, "traits": { - "smithy.api#documentation": "

Discontinue Windows fast launch for a Windows AMI, and clean up existing pre-provisioned snapshots. \n\t\t\tAfter you disable Windows fast launch, the AMI uses the standard launch process for each \n\t\t\tnew instance. Amazon EC2 must remove all pre-provisioned snapshots before you can enable Windows fast launch again.

\n \n

You can only change these settings for Windows AMIs that you own or that have been shared with you.

\n
" + "smithy.api#documentation": "

Discontinue Windows fast launch for a Windows AMI, and clean up existing pre-provisioned\n snapshots. After you disable Windows fast launch, the AMI uses the standard launch process for\n each new instance. Amazon EC2 must remove all pre-provisioned snapshots before you can enable\n Windows fast launch again.

\n \n

You can only change these settings for Windows AMIs that you own or that have been\n shared with you.

\n
" } }, "com.amazonaws.ec2#DisableFastLaunchRequest": { @@ -44034,7 +44428,7 @@ "Force": { "target": "com.amazonaws.ec2#Boolean", "traits": { - "smithy.api#documentation": "

Forces the image settings to turn off Windows fast launch for your Windows AMI. This parameter overrides \n\t\t\tany errors that are encountered while cleaning up resources in your account.

" + "smithy.api#documentation": "

Forces the image settings to turn off Windows fast launch for your Windows AMI. This\n parameter overrides any errors that are encountered while cleaning up resources in your\n account.

" } }, "DryRun": { @@ -44063,7 +44457,7 @@ "target": "com.amazonaws.ec2#FastLaunchResourceType", "traits": { "aws.protocols#ec2QueryName": "ResourceType", - "smithy.api#documentation": "

The pre-provisioning resource type that must be cleaned after turning off Windows fast launch \n\t\t\tfor the Windows AMI. Supported values include: snapshot.

", + "smithy.api#documentation": "

The pre-provisioning resource type that must be cleaned after turning off Windows fast\n launch for the Windows AMI. Supported values include: snapshot.

", "smithy.api#xmlName": "resourceType" } }, @@ -44071,7 +44465,7 @@ "target": "com.amazonaws.ec2#FastLaunchSnapshotConfigurationResponse", "traits": { "aws.protocols#ec2QueryName": "SnapshotConfiguration", - "smithy.api#documentation": "

Parameters that were used for Windows fast launch for the Windows AMI before \n\t\t\tWindows fast launch was disabled. This informs the clean-up process.

", + "smithy.api#documentation": "

Parameters that were used for Windows fast launch for the Windows AMI before Windows fast\n launch was disabled. This informs the clean-up process.

", "smithy.api#xmlName": "snapshotConfiguration" } }, @@ -44079,7 +44473,7 @@ "target": "com.amazonaws.ec2#FastLaunchLaunchTemplateSpecificationResponse", "traits": { "aws.protocols#ec2QueryName": "LaunchTemplate", - "smithy.api#documentation": "

The launch template that was used to launch Windows instances from pre-provisioned snapshots.

", + "smithy.api#documentation": "

The launch template that was used to launch Windows instances from pre-provisioned\n snapshots.

", "smithy.api#xmlName": "launchTemplate" } }, @@ -44087,7 +44481,7 @@ "target": "com.amazonaws.ec2#Integer", "traits": { "aws.protocols#ec2QueryName": "MaxParallelLaunches", - "smithy.api#documentation": "

The maximum number of instances that Amazon EC2 can launch at the same time to \n\t\t\tcreate pre-provisioned snapshots for Windows fast launch.

", + "smithy.api#documentation": "

The maximum number of instances that Amazon EC2 can launch at the same time to create\n pre-provisioned snapshots for Windows fast launch.

", "smithy.api#xmlName": "maxParallelLaunches" } }, @@ -44412,7 +44806,7 @@ "target": "com.amazonaws.ec2#DisableImageBlockPublicAccessResult" }, "traits": { - "smithy.api#documentation": "

Disables block public access for AMIs at the account level in the\n specified Amazon Web Services Region. This removes the block public access restriction\n from your account. With the restriction removed, you can publicly share your AMIs in the\n specified Amazon Web Services Region.

\n

The API can take up to 10 minutes to configure this setting. During this time, if you run\n GetImageBlockPublicAccessState, the response will be\n block-new-sharing. When the API has completed the configuration, the response\n will be unblocked.

\n

For more information, see Block public access to your AMIs in\n the Amazon EC2 User Guide.

" + "smithy.api#documentation": "

Disables block public access for AMIs at the account level in the\n specified Amazon Web Services Region. This removes the block public access restriction\n from your account. With the restriction removed, you can publicly share your AMIs in the\n specified Amazon Web Services Region.

\n

The API can take up to 10 minutes to configure this setting. During this time, if you run\n GetImageBlockPublicAccessState, the response will be\n block-new-sharing. When the API has completed the configuration, the response\n will be unblocked.

\n

For more information, see Block\n public access to your AMIs in the Amazon EC2 User Guide.

" } }, "com.amazonaws.ec2#DisableImageBlockPublicAccessRequest": { @@ -46563,6 +46957,14 @@ "smithy.api#documentation": "

The ID of the Amazon Web Services account that owns the volume.

\n

This parameter is returned only for volumes that are attached to \n Fargate tasks.

", "smithy.api#xmlName": "volumeOwnerId" } + }, + "Operator": { + "target": "com.amazonaws.ec2#OperatorResponse", + "traits": { + "aws.protocols#ec2QueryName": "Operator", + "smithy.api#documentation": "

The entity that manages the EBS volume.

", + "smithy.api#xmlName": "operator" + } } }, "traits": { @@ -47650,7 +48052,7 @@ "target": "com.amazonaws.ec2#EnableFastLaunchResult" }, "traits": { - "smithy.api#documentation": "

When you enable Windows fast launch for a Windows AMI, images are pre-provisioned, \n\t\t\tusing snapshots to launch instances up to 65% faster. To create the optimized Windows \n\t\t\timage, Amazon EC2 launches an instance and runs through Sysprep steps, rebooting as required. \n\t\t\tThen it creates a set of reserved snapshots that are used for subsequent launches. The \n\t\t\treserved snapshots are automatically replenished as they are used, depending on your \n\t\t\tsettings for launch frequency.

\n \n

You can only change these settings for Windows AMIs that you own or that have been shared with you.

\n
" + "smithy.api#documentation": "

When you enable Windows fast launch for a Windows AMI, images are pre-provisioned, using\n snapshots to launch instances up to 65% faster. To create the optimized Windows image, Amazon EC2\n launches an instance and runs through Sysprep steps, rebooting as required. Then it creates a\n set of reserved snapshots that are used for subsequent launches. The reserved snapshots are\n automatically replenished as they are used, depending on your settings for launch\n frequency.

\n \n

You can only change these settings for Windows AMIs that you own or that have been\n shared with you.

\n
" } }, "com.amazonaws.ec2#EnableFastLaunchRequest": { @@ -47667,25 +48069,25 @@ "ResourceType": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

The type of resource to use for pre-provisioning the AMI for Windows fast launch. \n\t\t\tSupported values include: snapshot, which is the default value.

" + "smithy.api#documentation": "

The type of resource to use for pre-provisioning the AMI for Windows fast launch.\n Supported values include: snapshot, which is the default value.

" } }, "SnapshotConfiguration": { "target": "com.amazonaws.ec2#FastLaunchSnapshotConfigurationRequest", "traits": { - "smithy.api#documentation": "

Configuration settings for creating and managing the snapshots that are used for \n\t\t\tpre-provisioning the AMI for Windows fast launch. The associated ResourceType \n\t\t\tmust be snapshot.

" + "smithy.api#documentation": "

Configuration settings for creating and managing the snapshots that are used for\n pre-provisioning the AMI for Windows fast launch. The associated ResourceType\n must be snapshot.

" } }, "LaunchTemplate": { "target": "com.amazonaws.ec2#FastLaunchLaunchTemplateSpecificationRequest", "traits": { - "smithy.api#documentation": "

The launch template to use when launching Windows instances from pre-provisioned \n\t\t\tsnapshots. Launch template parameters can include either the name or ID of the launch \n\t\t\ttemplate, but not both.

" + "smithy.api#documentation": "

The launch template to use when launching Windows instances from pre-provisioned\n snapshots. Launch template parameters can include either the name or ID of the launch\n template, but not both.

" } }, "MaxParallelLaunches": { "target": "com.amazonaws.ec2#Integer", "traits": { - "smithy.api#documentation": "

The maximum number of instances that Amazon EC2 can launch at the same time to create \n\t\t\tpre-provisioned snapshots for Windows fast launch. Value must be \n\t\t\t6 or greater.

" + "smithy.api#documentation": "

The maximum number of instances that Amazon EC2 can launch at the same time to create\n pre-provisioned snapshots for Windows fast launch. Value must be 6 or\n greater.

" } }, "DryRun": { @@ -47714,7 +48116,7 @@ "target": "com.amazonaws.ec2#FastLaunchResourceType", "traits": { "aws.protocols#ec2QueryName": "ResourceType", - "smithy.api#documentation": "

The type of resource that was defined for pre-provisioning the AMI for Windows fast launch.

", + "smithy.api#documentation": "

The type of resource that was defined for pre-provisioning the AMI for Windows fast\n launch.

", "smithy.api#xmlName": "resourceType" } }, @@ -47722,7 +48124,7 @@ "target": "com.amazonaws.ec2#FastLaunchSnapshotConfigurationResponse", "traits": { "aws.protocols#ec2QueryName": "SnapshotConfiguration", - "smithy.api#documentation": "

Settings to create and manage the pre-provisioned snapshots that Amazon EC2 uses for faster \n\t\t\tlaunches from the Windows AMI. This property is returned when the associated \n\t\t\tresourceType is snapshot.

", + "smithy.api#documentation": "

Settings to create and manage the pre-provisioned snapshots that Amazon EC2 uses for faster\n launches from the Windows AMI. This property is returned when the associated\n resourceType is snapshot.

", "smithy.api#xmlName": "snapshotConfiguration" } }, @@ -47730,7 +48132,7 @@ "target": "com.amazonaws.ec2#FastLaunchLaunchTemplateSpecificationResponse", "traits": { "aws.protocols#ec2QueryName": "LaunchTemplate", - "smithy.api#documentation": "

The launch template that is used when launching Windows instances from pre-provisioned snapshots.

", + "smithy.api#documentation": "

The launch template that is used when launching Windows instances from pre-provisioned\n snapshots.

", "smithy.api#xmlName": "launchTemplate" } }, @@ -47738,7 +48140,7 @@ "target": "com.amazonaws.ec2#Integer", "traits": { "aws.protocols#ec2QueryName": "MaxParallelLaunches", - "smithy.api#documentation": "

The maximum number of instances that Amazon EC2 can launch at the same time to \n\t\t\tcreate pre-provisioned snapshots for Windows fast launch.

", + "smithy.api#documentation": "

The maximum number of instances that Amazon EC2 can launch at the same time to create\n pre-provisioned snapshots for Windows fast launch.

", "smithy.api#xmlName": "maxParallelLaunches" } }, @@ -48113,7 +48515,7 @@ "target": "com.amazonaws.ec2#EnableImageDeprecationResult" }, "traits": { - "smithy.api#documentation": "

Enables deprecation of the specified AMI at the specified date and time.

\n

For more information, see Deprecate an AMI in the Amazon EC2 User Guide.

" + "smithy.api#documentation": "

Enables deprecation of the specified AMI at the specified date and time.

\n

For more information, see Deprecate an AMI in the\n Amazon EC2 User Guide.

" } }, "com.amazonaws.ec2#EnableImageDeprecationRequest": { @@ -48131,7 +48533,7 @@ "target": "com.amazonaws.ec2#MillisecondDateTime", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

The date and time to deprecate the AMI, in UTC, in the following format:\n YYYY-MM-DDTHH:MM:SSZ.\n If you specify a value for seconds, Amazon EC2 rounds the seconds to the\n nearest minute.

\n

You can’t specify a date in the past. The upper limit for DeprecateAt is 10\n years from now, except for public AMIs, where the upper limit is 2 years from the creation date.

", + "smithy.api#documentation": "

The date and time to deprecate the AMI, in UTC, in the following format:\n YYYY-MM-DDTHH:MM:SSZ.\n If you specify a value for seconds, Amazon EC2 rounds the seconds to the nearest minute.

\n

You can’t specify a date in the past. The upper limit for DeprecateAt is 10\n years from now, except for public AMIs, where the upper limit is 2 years from the creation\n date.

", "smithy.api#required": {} } }, @@ -50155,26 +50557,26 @@ "LaunchTemplateId": { "target": "com.amazonaws.ec2#LaunchTemplateId", "traits": { - "smithy.api#documentation": "

Specify the ID of the launch template that the AMI should use for Windows fast launch.

" + "smithy.api#documentation": "

Specify the ID of the launch template that the AMI should use for Windows fast\n launch.

" } }, "LaunchTemplateName": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

Specify the name of the launch template that the AMI should use for Windows fast launch.

" + "smithy.api#documentation": "

Specify the name of the launch template that the AMI should use for Windows fast\n launch.

" } }, "Version": { "target": "com.amazonaws.ec2#String", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

Specify the version of the launch template that the AMI should use for Windows fast launch.

", + "smithy.api#documentation": "

Specify the version of the launch template that the AMI should use for Windows fast\n launch.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

Request to create a launch template for a Windows fast launch enabled AMI.

\n \n

Note - You can specify either the LaunchTemplateName or the \n\t\t\t\tLaunchTemplateId, but not both.

\n
" + "smithy.api#documentation": "

Request to create a launch template for a Windows fast launch enabled AMI.

\n \n

Note - You can specify either the LaunchTemplateName or the\n LaunchTemplateId, but not both.

\n
" } }, "com.amazonaws.ec2#FastLaunchLaunchTemplateSpecificationResponse": { @@ -50226,12 +50628,12 @@ "TargetResourceCount": { "target": "com.amazonaws.ec2#Integer", "traits": { - "smithy.api#documentation": "

The number of pre-provisioned snapshots to keep on hand for a Windows fast launch \n\t\t\tenabled AMI.

" + "smithy.api#documentation": "

The number of pre-provisioned snapshots to keep on hand for a Windows fast launch enabled\n AMI.

" } } }, "traits": { - "smithy.api#documentation": "

Configuration settings for creating and managing pre-provisioned snapshots for a Windows fast launch \n\t\t\tenabled AMI.

" + "smithy.api#documentation": "

Configuration settings for creating and managing pre-provisioned snapshots for a Windows\n fast launch enabled AMI.

" } }, "com.amazonaws.ec2#FastLaunchSnapshotConfigurationResponse": { @@ -50241,13 +50643,13 @@ "target": "com.amazonaws.ec2#Integer", "traits": { "aws.protocols#ec2QueryName": "TargetResourceCount", - "smithy.api#documentation": "

The number of pre-provisioned snapshots requested to keep on hand for a Windows fast launch \n\t\t\tenabled AMI.

", + "smithy.api#documentation": "

The number of pre-provisioned snapshots requested to keep on hand for a Windows fast\n launch enabled AMI.

", "smithy.api#xmlName": "targetResourceCount" } } }, "traits": { - "smithy.api#documentation": "

Configuration settings for creating and managing pre-provisioned snapshots for a Windows fast launch \n\t\t\tenabled Windows AMI.

" + "smithy.api#documentation": "

Configuration settings for creating and managing pre-provisioned snapshots for a Windows\n fast launch enabled Windows AMI.

" } }, "com.amazonaws.ec2#FastLaunchStateCode": { @@ -57137,7 +57539,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "UsageOperation", - "smithy.api#documentation": "

The operation of the Amazon EC2 instance and the billing code that is associated with the AMI.\n usageOperation corresponds to the lineitem/Operation column on your Amazon Web Services Cost and Usage Report and in the Amazon Web Services Price\n \tList API. You can view these fields on the Instances or \n \tAMIs pages in the Amazon EC2 console, or in the responses that are \n \treturned by the DescribeImages \n \tcommand in the Amazon EC2 API, or the describe-images \n \tcommand in the CLI.

", + "smithy.api#documentation": "

The operation of the Amazon EC2 instance and the billing code that is associated with the AMI.\n usageOperation corresponds to the lineitem/Operation column on your Amazon Web Services Cost and Usage Report and in the Amazon Web Services Price\n List API. You can view these fields on the Instances or AMIs pages in the Amazon EC2 console,\n or in the responses that are returned by the DescribeImages command in\n the Amazon EC2 API, or the describe-images command in the\n CLI.

", "smithy.api#xmlName": "usageOperation" } }, @@ -57177,7 +57579,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "ImageOwnerAlias", - "smithy.api#documentation": "

The owner alias (amazon | aws-backup-vault | aws-marketplace).

", + "smithy.api#documentation": "

The owner alias (amazon | aws-backup-vault |\n aws-marketplace).

", "smithy.api#xmlName": "imageOwnerAlias" } }, @@ -57201,7 +57603,7 @@ "target": "com.amazonaws.ec2#DeviceType", "traits": { "aws.protocols#ec2QueryName": "RootDeviceType", - "smithy.api#documentation": "

The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.

", + "smithy.api#documentation": "

The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance\n store volume.

", "smithy.api#xmlName": "rootDeviceType" } }, @@ -57209,7 +57611,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "SriovNetSupport", - "smithy.api#documentation": "

Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.

", + "smithy.api#documentation": "

Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is\n enabled.

", "smithy.api#xmlName": "sriovNetSupport" } }, @@ -57249,7 +57651,7 @@ "target": "com.amazonaws.ec2#TpmSupportValues", "traits": { "aws.protocols#ec2QueryName": "TpmSupport", - "smithy.api#documentation": "

If the image is configured for NitroTPM support, the value is v2.0. \n For more information, see NitroTPM in the\n Amazon EC2 User Guide.

", + "smithy.api#documentation": "

If the image is configured for NitroTPM support, the value is v2.0. For more\n information, see NitroTPM in the Amazon EC2 User Guide.

", "smithy.api#xmlName": "tpmSupport" } }, @@ -57257,7 +57659,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "DeprecationTime", - "smithy.api#documentation": "

The date and time to deprecate the AMI, in UTC, in the following format: \n YYYY-MM-DDTHH:MM:SSZ.\n If you specified a value for seconds, Amazon EC2 rounds the seconds to the\n nearest minute.

", + "smithy.api#documentation": "

The date and time to deprecate the AMI, in UTC, in the following format:\n YYYY-MM-DDTHH:MM:SSZ.\n If you specified a value for seconds, Amazon EC2 rounds the seconds to the nearest minute.

", "smithy.api#xmlName": "deprecationTime" } }, @@ -57265,7 +57667,7 @@ "target": "com.amazonaws.ec2#ImdsSupportValues", "traits": { "aws.protocols#ec2QueryName": "ImdsSupport", - "smithy.api#documentation": "

If v2.0, it indicates that IMDSv2 is specified in the AMI. Instances launched\n from this AMI will have HttpTokens automatically set to required so\n that, by default, the instance requires that IMDSv2 is used when requesting instance metadata.\n In addition, HttpPutResponseHopLimit is set to 2. For more\n information, see Configure\n the AMI in the Amazon EC2 User Guide.

", + "smithy.api#documentation": "

If v2.0, it indicates that IMDSv2 is specified in the AMI. Instances launched\n from this AMI will have HttpTokens automatically set to required so\n that, by default, the instance requires that IMDSv2 is used when requesting instance metadata.\n In addition, HttpPutResponseHopLimit is set to 2. For more\n information, see Configure the AMI in the Amazon EC2 User Guide.

", "smithy.api#xmlName": "imdsSupport" } }, @@ -57289,7 +57691,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "LastLaunchedTime", - "smithy.api#documentation": "

The date and time, in ISO 8601 date-time\n format, when the AMI was last used to launch an EC2 instance. When the AMI is used\n to launch an instance, there is a 24-hour delay before that usage is reported.

\n \n

\n lastLaunchedTime data is available starting April 2017.

\n
", + "smithy.api#documentation": "

The date and time, in ISO 8601 date-time\n format, when the AMI was last used to launch an EC2 instance. When the AMI is used\n to launch an instance, there is a 24-hour delay before that usage is reported.

\n \n

\n lastLaunchedTime data is available starting April 2017.

\n
", "smithy.api#xmlName": "lastLaunchedTime" } }, @@ -57329,7 +57731,7 @@ "target": "com.amazonaws.ec2#ImageState", "traits": { "aws.protocols#ec2QueryName": "ImageState", - "smithy.api#documentation": "

The current state of the AMI. If the state is available, the image is successfully registered and can be used to launch an instance.

", + "smithy.api#documentation": "

The current state of the AMI. If the state is available, the image is\n successfully registered and can be used to launch an instance.

", "smithy.api#xmlName": "imageState" } }, @@ -57353,7 +57755,7 @@ "target": "com.amazonaws.ec2#Boolean", "traits": { "aws.protocols#ec2QueryName": "IsPublic", - "smithy.api#documentation": "

Indicates whether the image has public launch permissions. The value is true if\n\t\t\t\tthis image has public launch permissions or false\n\t\t\t\tif it has only implicit and explicit launch permissions.

", + "smithy.api#documentation": "

Indicates whether the image has public launch permissions. The value is true\n if this image has public launch permissions or false if it has only implicit and\n explicit launch permissions.

", "smithy.api#xmlName": "isPublic" } }, @@ -57441,7 +57843,7 @@ "target": "com.amazonaws.ec2#AttributeValue", "traits": { "aws.protocols#ec2QueryName": "SriovNetSupport", - "smithy.api#documentation": "

Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.

", + "smithy.api#documentation": "

Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is\n enabled.

", "smithy.api#xmlName": "sriovNetSupport" } }, @@ -57465,7 +57867,7 @@ "target": "com.amazonaws.ec2#AttributeValue", "traits": { "aws.protocols#ec2QueryName": "UefiData", - "smithy.api#documentation": "

Base64 representation of the non-volatile UEFI variable store. To retrieve the UEFI data,\n use the GetInstanceUefiData command. You can inspect and modify the UEFI data by using the\n python-uefivars tool on\n GitHub. For more information, see UEFI Secure Boot in the\n Amazon EC2 User Guide.

", + "smithy.api#documentation": "

Base64 representation of the non-volatile UEFI variable store. To retrieve the UEFI data,\n use the GetInstanceUefiData command. You can inspect and modify the UEFI data by using the\n python-uefivars tool on\n GitHub. For more information, see UEFI Secure Boot in the\n Amazon EC2 User Guide.

", "smithy.api#xmlName": "uefiData" } }, @@ -57481,7 +57883,7 @@ "target": "com.amazonaws.ec2#AttributeValue", "traits": { "aws.protocols#ec2QueryName": "ImdsSupport", - "smithy.api#documentation": "

If v2.0, it indicates that IMDSv2 is specified in the AMI. Instances launched\n from this AMI will have HttpTokens automatically set to required so\n that, by default, the instance requires that IMDSv2 is used when requesting instance metadata.\n In addition, HttpPutResponseHopLimit is set to 2. For more\n information, see Configure\n the AMI in the Amazon EC2 User Guide.

", + "smithy.api#documentation": "

If v2.0, it indicates that IMDSv2 is specified in the AMI. Instances launched\n from this AMI will have HttpTokens automatically set to required so\n that, by default, the instance requires that IMDSv2 is used when requesting instance metadata.\n In addition, HttpPutResponseHopLimit is set to 2. For more\n information, see Configure the AMI in the Amazon EC2 User Guide.

", "smithy.api#xmlName": "imdsSupport" } }, @@ -57749,7 +58151,7 @@ "target": "com.amazonaws.ec2#ImageState", "traits": { "aws.protocols#ec2QueryName": "ImageState", - "smithy.api#documentation": "

The current state of the AMI. If the state is available, the AMI \n is successfully registered and can be used to launch an instance.

", + "smithy.api#documentation": "

The current state of the AMI. If the state is available, the AMI is\n successfully registered and can be used to launch an instance.

", "smithy.api#xmlName": "imageState" } }, @@ -57757,7 +58159,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "ImageOwnerAlias", - "smithy.api#documentation": "

The alias of the AMI owner.

\n

Valid values: amazon | aws-backup-vault | aws-marketplace\n

", + "smithy.api#documentation": "

The alias of the AMI owner.

\n

Valid values: amazon | aws-backup-vault |\n aws-marketplace\n

", "smithy.api#xmlName": "imageOwnerAlias" } }, @@ -59560,6 +59962,14 @@ "smithy.api#xmlName": "currentInstanceBootMode" } }, + "Operator": { + "target": "com.amazonaws.ec2#OperatorResponse", + "traits": { + "aws.protocols#ec2QueryName": "Operator", + "smithy.api#documentation": "

The entity that manages the instance.

", + "smithy.api#xmlName": "operator" + } + }, "InstanceId": { "target": "com.amazonaws.ec2#String", "traits": { @@ -60807,6 +61217,14 @@ "smithy.api#documentation": "

Information about the AMI used to launch the instance.

", "smithy.api#xmlName": "imageMetadata" } + }, + "Operator": { + "target": "com.amazonaws.ec2#OperatorResponse", + "traits": { + "aws.protocols#ec2QueryName": "Operator", + "smithy.api#documentation": "

The entity that manages the instance.

", + "smithy.api#xmlName": "operator" + } } }, "traits": { @@ -61456,6 +61874,14 @@ "smithy.api#documentation": "

A security group connection tracking configuration that enables you to set the timeout for connection tracking on an Elastic network interface. For more information, see Connection tracking timeouts in the Amazon EC2 User Guide.

", "smithy.api#xmlName": "connectionTrackingConfiguration" } + }, + "Operator": { + "target": "com.amazonaws.ec2#OperatorResponse", + "traits": { + "aws.protocols#ec2QueryName": "Operator", + "smithy.api#documentation": "

The entity that manages the network interface.

", + "smithy.api#xmlName": "operator" + } } }, "traits": { @@ -62000,6 +62426,14 @@ "smithy.api#documentation": "

[Price protection] The price protection threshold for Spot Instances, as a percentage of an\n identified On-Demand price. The identified On-Demand price is the price of the lowest\n priced current generation C, M, or R instance type with your specified attributes. If no\n current generation C, M, or R instance type matches your attributes, then the identified\n price is from the lowest priced current generation instance types, and failing that, from\n the lowest priced previous generation instance types that match your attributes. When Amazon EC2\n selects instance types with your attributes, it will exclude instance types whose price\n exceeds your specified threshold.

\n

The parameter accepts an integer, which Amazon EC2 interprets as a percentage.

\n

If you set TargetCapacityUnitType to vcpu or\n memory-mib, the price protection threshold is based on the per vCPU or per\n memory price instead of the per instance price.

\n \n

Only one of SpotMaxPricePercentageOverLowestPrice or\n MaxSpotPriceAsPercentageOfOptimalOnDemandPrice can be specified. If you\n don't specify either, Amazon EC2 will automatically apply optimal price protection to\n consistently select from a wide range of instance types. To indicate no price protection\n threshold for Spot Instances, meaning you want to consider all instance types that match your\n attributes, include one of these parameters and specify a high value, such as\n 999999.

\n
", "smithy.api#xmlName": "maxSpotPriceAsPercentageOfOptimalOnDemandPrice" } + }, + "BaselinePerformanceFactors": { + "target": "com.amazonaws.ec2#BaselinePerformanceFactors", + "traits": { + "aws.protocols#ec2QueryName": "BaselinePerformanceFactors", + "smithy.api#documentation": "

The baseline performance to consider, using an instance family as a baseline reference.\n The instance family establishes the lowest acceptable level of performance. Amazon EC2 uses this\n baseline to guide instance type selection, but there is no guarantee that the selected\n instance types will always exceed the baseline for every application. Currently, this\n parameter only supports CPU performance as a baseline performance factor. For more\n information, see Performance protection in the Amazon EC2 User Guide.

", + "smithy.api#xmlName": "baselinePerformanceFactors" + } } }, "traits": { @@ -62164,6 +62598,12 @@ "traits": { "smithy.api#documentation": "

[Price protection] The price protection threshold for Spot Instances, as a percentage of an\n identified On-Demand price. The identified On-Demand price is the price of the lowest\n priced current generation C, M, or R instance type with your specified attributes. If no\n current generation C, M, or R instance type matches your attributes, then the identified\n price is from the lowest priced current generation instance types, and failing that, from\n the lowest priced previous generation instance types that match your attributes. When Amazon EC2\n selects instance types with your attributes, it will exclude instance types whose price\n exceeds your specified threshold.

\n

The parameter accepts an integer, which Amazon EC2 interprets as a percentage.

\n

If you set TargetCapacityUnitType to vcpu or\n memory-mib, the price protection threshold is based on the per vCPU or per\n memory price instead of the per instance price.

\n \n

Only one of SpotMaxPricePercentageOverLowestPrice or\n MaxSpotPriceAsPercentageOfOptimalOnDemandPrice can be specified. If you\n don't specify either, Amazon EC2 will automatically apply optimal price protection to\n consistently select from a wide range of instance types. To indicate no price protection\n threshold for Spot Instances, meaning you want to consider all instance types that match your\n attributes, include one of these parameters and specify a high value, such as\n 999999.

\n
" } + }, + "BaselinePerformanceFactors": { + "target": "com.amazonaws.ec2#BaselinePerformanceFactorsRequest", + "traits": { + "smithy.api#documentation": "

The baseline performance to consider, using an instance family as a baseline reference.\n The instance family establishes the lowest acceptable level of performance. Amazon EC2 uses this\n baseline to guide instance type selection, but there is no guarantee that the selected\n instance types will always exceed the baseline for every application. Currently, this\n parameter only supports CPU performance as a baseline performance factor. For more\n information, see Performance protection in the Amazon EC2 User Guide.

" + } } }, "traits": { @@ -62361,6 +62801,14 @@ "smithy.api#xmlName": "outpostArn" } }, + "Operator": { + "target": "com.amazonaws.ec2#OperatorResponse", + "traits": { + "aws.protocols#ec2QueryName": "Operator", + "smithy.api#documentation": "

The entity that manages the instance.

", + "smithy.api#xmlName": "operator" + } + }, "Events": { "target": "com.amazonaws.ec2#InstanceStatusEventList", "traits": { @@ -68424,6 +68872,46 @@ } } }, + "com.amazonaws.ec2#InternetGatewayBlockMode": { + "type": "enum", + "members": { + "off": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "off" + } + }, + "block_bidirectional": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "block-bidirectional" + } + }, + "block_ingress": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "block-ingress" + } + } + } + }, + "com.amazonaws.ec2#InternetGatewayExclusionMode": { + "type": "enum", + "members": { + "allow_bidirectional": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "allow-bidirectional" + } + }, + "allow_egress": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "allow-egress" + } + } + } + }, "com.amazonaws.ec2#InternetGatewayId": { "type": "string" }, @@ -72065,13 +72553,13 @@ "Add": { "target": "com.amazonaws.ec2#LaunchPermissionList", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account ID, organization ARN, or OU ARN to add to the list of launch permissions for the AMI.

" + "smithy.api#documentation": "

The Amazon Web Services account ID, organization ARN, or OU ARN to add to the list of\n launch permissions for the AMI.

" } }, "Remove": { "target": "com.amazonaws.ec2#LaunchPermissionList", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account ID, organization ARN, or OU ARN to remove from the list of launch permissions for the AMI.

" + "smithy.api#documentation": "

The Amazon Web Services account ID, organization ARN, or OU ARN to remove from the list of\n launch permissions for the AMI.

" } } }, @@ -72273,6 +72761,14 @@ "smithy.api#documentation": "

The tags for the launch template.

", "smithy.api#xmlName": "tagSet" } + }, + "Operator": { + "target": "com.amazonaws.ec2#OperatorResponse", + "traits": { + "aws.protocols#ec2QueryName": "Operator", + "smithy.api#documentation": "

The entity that manages the launch template.

", + "smithy.api#xmlName": "operator" + } } }, "traits": { @@ -73370,7 +73866,7 @@ "target": "com.amazonaws.ec2#ConnectionTrackingSpecification", "traits": { "aws.protocols#ec2QueryName": "ConnectionTrackingSpecification", - "smithy.api#documentation": "

A security group connection tracking specification that enables you to set the timeout\n for connection tracking on an Elastic network interface. For more information, see\n Idle connection tracking timeout in the\n Amazon EC2 User Guide.

", + "smithy.api#documentation": "

A security group connection tracking specification that enables you to set the timeout\n for connection tracking on an Elastic network interface. For more information, see\n Idle connection tracking timeout in the\n Amazon EC2 User Guide.

", "smithy.api#xmlName": "connectionTrackingSpecification" } } @@ -73523,7 +74019,7 @@ "ConnectionTrackingSpecification": { "target": "com.amazonaws.ec2#ConnectionTrackingSpecificationRequest", "traits": { - "smithy.api#documentation": "

A security group connection tracking specification that enables you to set the timeout\n for connection tracking on an Elastic network interface. For more information, see\n Idle connection tracking timeout in the\n Amazon EC2 User Guide.

" + "smithy.api#documentation": "

A security group connection tracking specification that enables you to set the timeout\n for connection tracking on an Elastic network interface. For more information, see\n Idle connection tracking timeout in the\n Amazon EC2 User Guide.

" } } }, @@ -74130,6 +74626,14 @@ "smithy.api#documentation": "

Information about the launch template.

", "smithy.api#xmlName": "launchTemplateData" } + }, + "Operator": { + "target": "com.amazonaws.ec2#OperatorResponse", + "traits": { + "aws.protocols#ec2QueryName": "Operator", + "smithy.api#documentation": "

The entity that manages the launch template.

", + "smithy.api#xmlName": "operator" + } } }, "traits": { @@ -74232,7 +74736,7 @@ "target": "com.amazonaws.ec2#ListImagesInRecycleBinResult" }, "traits": { - "smithy.api#documentation": "

Lists one or more AMIs that are currently in the Recycle Bin. For more information, \n see Recycle\n Bin in the Amazon EC2 User Guide.

", + "smithy.api#documentation": "

Lists one or more AMIs that are currently in the Recycle Bin. For more information, see\n Recycle\n Bin in the Amazon EC2 User Guide.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -74256,7 +74760,7 @@ "ImageIds": { "target": "com.amazonaws.ec2#ImageIdStringList", "traits": { - "smithy.api#documentation": "

The IDs of the AMIs to list. Omit this parameter to list all of the AMIs that \n are in the Recycle Bin. You can specify up to 20 IDs in a single request.

", + "smithy.api#documentation": "

The IDs of the AMIs to list. Omit this parameter to list all of the AMIs that are in the\n Recycle Bin. You can specify up to 20 IDs in a single request.

", "smithy.api#xmlName": "ImageId" } }, @@ -77050,7 +77554,7 @@ "target": "smithy.api#Unit" }, "traits": { - "smithy.api#documentation": "

Modifies the specified attribute of the specified AMI. You can specify only one attribute at a time.

\n

To specify the attribute, you can use the Attribute parameter, or one of the following parameters: \n Description, ImdsSupport, or LaunchPermission.

\n

Images with an Amazon Web Services Marketplace product code cannot be made public.

\n

To enable the SriovNetSupport enhanced networking attribute of an image, enable SriovNetSupport on an instance \n and create an AMI from the instance.

", + "smithy.api#documentation": "

Modifies the specified attribute of the specified AMI. You can specify only one attribute\n at a time.

\n

To specify the attribute, you can use the Attribute parameter, or one of the\n following parameters: Description, ImdsSupport, or\n LaunchPermission.

\n

Images with an Amazon Web Services Marketplace product code cannot be made public.

\n

To enable the SriovNetSupport enhanced networking attribute of an image, enable\n SriovNetSupport on an instance and create an AMI from the instance.

", "smithy.api#examples": [ { "title": "To grant launch permissions", @@ -77091,7 +77595,7 @@ "Attribute": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

The name of the attribute to modify.

\n

Valid values: description | imdsSupport | launchPermission\n

" + "smithy.api#documentation": "

The name of the attribute to modify.

\n

Valid values: description | imdsSupport |\n launchPermission\n

" } }, "Description": { @@ -77117,7 +77621,7 @@ "OperationType": { "target": "com.amazonaws.ec2#OperationType", "traits": { - "smithy.api#documentation": "

The operation type. \n This parameter can be used only when the Attribute parameter is launchPermission.

" + "smithy.api#documentation": "

The operation type. This parameter can be used only when the Attribute\n parameter is launchPermission.

" } }, "ProductCodes": { @@ -77130,41 +77634,41 @@ "UserGroups": { "target": "com.amazonaws.ec2#UserGroupStringList", "traits": { - "smithy.api#documentation": "

The user groups. \n This parameter can be used only when the Attribute parameter is launchPermission.

", + "smithy.api#documentation": "

The user groups. This parameter can be used only when the Attribute parameter\n is launchPermission.

", "smithy.api#xmlName": "UserGroup" } }, "UserIds": { "target": "com.amazonaws.ec2#UserIdStringList", "traits": { - "smithy.api#documentation": "

The Amazon Web Services account IDs. \n This parameter can be used only when the Attribute parameter is launchPermission.

", + "smithy.api#documentation": "

The Amazon Web Services account IDs. This parameter can be used only when the\n Attribute parameter is launchPermission.

", "smithy.api#xmlName": "UserId" } }, "Value": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

The value of the attribute being modified. \n This parameter can be used only when the Attribute parameter is description or imdsSupport.

" + "smithy.api#documentation": "

The value of the attribute being modified. This parameter can be used only when the\n Attribute parameter is description or\n imdsSupport.

" } }, "OrganizationArns": { "target": "com.amazonaws.ec2#OrganizationArnStringList", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an organization. This parameter can be used only when the Attribute parameter is launchPermission.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an organization. This parameter can be used only when\n the Attribute parameter is launchPermission.

", "smithy.api#xmlName": "OrganizationArn" } }, "OrganizationalUnitArns": { "target": "com.amazonaws.ec2#OrganizationalUnitArnStringList", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an organizational unit (OU). This parameter can be used only when the Attribute parameter is launchPermission.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an organizational unit (OU). This parameter can be used\n only when the Attribute parameter is launchPermission.

", "smithy.api#xmlName": "OrganizationalUnitArn" } }, "ImdsSupport": { "target": "com.amazonaws.ec2#AttributeValue", "traits": { - "smithy.api#documentation": "

Set to v2.0 to indicate that IMDSv2 is specified in the AMI. Instances\n launched from this AMI will have HttpTokens automatically set to\n required so that, by default, the instance requires that IMDSv2 is used when\n requesting instance metadata. In addition, HttpPutResponseHopLimit is set to\n 2. For more information, see Configure\n the AMI in the Amazon EC2 User Guide.

\n \n

Do not use this parameter unless your AMI software supports IMDSv2. After you set the value to v2.0, \n you can't undo it. The only way to “reset” your AMI is to create a new AMI from the underlying snapshot.

\n
" + "smithy.api#documentation": "

Set to v2.0 to indicate that IMDSv2 is specified in the AMI. Instances\n launched from this AMI will have HttpTokens automatically set to\n required so that, by default, the instance requires that IMDSv2 is used when\n requesting instance metadata. In addition, HttpPutResponseHopLimit is set to\n 2. For more information, see Configure the AMI in the Amazon EC2 User Guide.

\n \n

Do not use this parameter unless your AMI software supports IMDSv2. After you set the\n value to v2.0, you can't undo it. The only way to “reset” your AMI is to create\n a new AMI from the underlying snapshot.

\n
" } }, "DryRun": { @@ -77367,7 +77871,7 @@ "target": "com.amazonaws.ec2#ModifyInstanceCapacityReservationAttributesResult" }, "traits": { - "smithy.api#documentation": "

Modifies the Capacity Reservation settings for a stopped instance. Use this action to configure an\n\t\t\tinstance to target a specific Capacity Reservation, run in any open Capacity Reservation with matching\n\t\t\tattributes, or run On-Demand Instance capacity.

" + "smithy.api#documentation": "

Modifies the Capacity Reservation settings for a stopped instance. Use this action to configure an\n\t\t\tinstance to target a specific Capacity Reservation, run in any open Capacity Reservation with matching\n\t\t\tattributes, run in On-Demand Instance capacity, or only run in a Capacity Reservation.

" } }, "com.amazonaws.ec2#ModifyInstanceCapacityReservationAttributesRequest": { @@ -80777,6 +81281,114 @@ "smithy.api#input": {} } }, + "com.amazonaws.ec2#ModifyVpcBlockPublicAccessExclusion": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#ModifyVpcBlockPublicAccessExclusionRequest" + }, + "output": { + "target": "com.amazonaws.ec2#ModifyVpcBlockPublicAccessExclusionResult" + }, + "traits": { + "smithy.api#documentation": "

Modify VPC Block Public Access (BPA) exclusions. A VPC BPA exclusion is a mode that can be applied to a single VPC or subnet that exempts it from the account’s BPA mode and will allow bidirectional or egress-only access. You can create BPA exclusions for VPCs and subnets even when BPA is not enabled on the account to ensure that there is no traffic disruption to the exclusions when VPC BPA is turned on.

" + } + }, + "com.amazonaws.ec2#ModifyVpcBlockPublicAccessExclusionRequest": { + "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.

" + } + }, + "ExclusionId": { + "target": "com.amazonaws.ec2#VpcBlockPublicAccessExclusionId", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "

The ID of an exclusion.

", + "smithy.api#required": {} + } + }, + "InternetGatewayExclusionMode": { + "target": "com.amazonaws.ec2#InternetGatewayExclusionMode", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "

The exclusion mode for internet gateway traffic.

\n ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.ec2#ModifyVpcBlockPublicAccessExclusionResult": { + "type": "structure", + "members": { + "VpcBlockPublicAccessExclusion": { + "target": "com.amazonaws.ec2#VpcBlockPublicAccessExclusion", + "traits": { + "aws.protocols#ec2QueryName": "VpcBlockPublicAccessExclusion", + "smithy.api#documentation": "

Details related to the exclusion.

", + "smithy.api#xmlName": "vpcBlockPublicAccessExclusion" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.ec2#ModifyVpcBlockPublicAccessOptions": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#ModifyVpcBlockPublicAccessOptionsRequest" + }, + "output": { + "target": "com.amazonaws.ec2#ModifyVpcBlockPublicAccessOptionsResult" + }, + "traits": { + "smithy.api#documentation": "

Modify VPC Block Public Access (BPA) options. VPC Block public Access (BPA) enables you to block resources in VPCs and subnets that you own in a Region from reaching or being reached from the internet through internet gateways and egress-only internet gateways. To learn more about VPC BPA, see Block public access to VPCs and subnets in the Amazon VPC User Guide.

" + } + }, + "com.amazonaws.ec2#ModifyVpcBlockPublicAccessOptionsRequest": { + "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.

" + } + }, + "InternetGatewayBlockMode": { + "target": "com.amazonaws.ec2#InternetGatewayBlockMode", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "

The mode of VPC BPA.

\n ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.ec2#ModifyVpcBlockPublicAccessOptionsResult": { + "type": "structure", + "members": { + "VpcBlockPublicAccessOptions": { + "target": "com.amazonaws.ec2#VpcBlockPublicAccessOptions", + "traits": { + "aws.protocols#ec2QueryName": "VpcBlockPublicAccessOptions", + "smithy.api#documentation": "

Details related to the VPC Block Public Access (BPA) options.

", + "smithy.api#xmlName": "vpcBlockPublicAccessOptions" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.ec2#ModifyVpcEndpoint": { "type": "operation", "input": { @@ -83593,6 +84205,14 @@ "smithy.api#documentation": "

The IPv6 globally unique address associated with the network interface.

", "smithy.api#xmlName": "ipv6Address" } + }, + "Operator": { + "target": "com.amazonaws.ec2#OperatorResponse", + "traits": { + "aws.protocols#ec2QueryName": "Operator", + "smithy.api#documentation": "

The entity that manages the network interface.

", + "smithy.api#xmlName": "operator" + } } }, "traits": { @@ -84779,6 +85399,44 @@ } } }, + "com.amazonaws.ec2#OperatorRequest": { + "type": "structure", + "members": { + "Principal": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "

The entity that manages the resource.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The entity that manages the resource.

" + } + }, + "com.amazonaws.ec2#OperatorResponse": { + "type": "structure", + "members": { + "Managed": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "aws.protocols#ec2QueryName": "Managed", + "smithy.api#documentation": "

If true, the resource is managed by an entity.

", + "smithy.api#xmlName": "managed" + } + }, + "Principal": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Principal", + "smithy.api#documentation": "

If managed is true, then the principal is returned. \n The principal is the entity that manages the resource.

", + "smithy.api#xmlName": "principal" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes whether the resource is managed by an entity and, if so, \n describes the entity that manages it.

" + } + }, "com.amazonaws.ec2#OrganizationArnStringList": { "type": "list", "member": { @@ -85452,6 +86110,54 @@ "smithy.api#documentation": "

Information about the transit gateway in the peering attachment.

" } }, + "com.amazonaws.ec2#PerformanceFactorReference": { + "type": "structure", + "members": { + "InstanceFamily": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "InstanceFamily", + "smithy.api#documentation": "

The instance family to use as a baseline reference.

\n \n

Ensure that you specify the correct value for the instance family. The instance\n family is everything before the period (.) in the instance type name. For\n example, in the instance type c6i.large, the instance family is\n c6i, not c6. For more information, see Amazon EC2\n instance type naming conventions in Amazon EC2 Instance\n Types.

\n
\n

The following instance families are not supported for performance\n protection:

\n \n

If you enable performance protection by specifying a supported instance family, the\n returned instance types will exclude the above unsupported instance families.

\n

If you specify an unsupported instance family as a value for baseline performance, the\n API returns an empty response for and an exception for , , , and .

", + "smithy.api#xmlName": "instanceFamily" + } + } + }, + "traits": { + "smithy.api#documentation": "

Specify an instance family to use as the baseline reference for CPU performance. All\n instance types that match your specified attributes will be compared against the CPU\n performance of the referenced instance family, regardless of CPU manufacturer or\n architecture.

\n \n

Currently, only one instance family can be specified in the list.

\n
" + } + }, + "com.amazonaws.ec2#PerformanceFactorReferenceRequest": { + "type": "structure", + "members": { + "InstanceFamily": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "

The instance family to use as a baseline reference.

\n \n

Ensure that you specify the correct value for the instance family. The instance\n family is everything before the period (.) in the instance type name. For\n example, in the instance type c6i.large, the instance family is\n c6i, not c6. For more information, see Amazon EC2\n instance type naming conventions in Amazon EC2 Instance\n Types.

\n
\n

The following instance families are not supported for performance\n protection:

\n \n

If you enable performance protection by specifying a supported instance family, the\n returned instance types will exclude the above unsupported instance families.

\n

If you specify an unsupported instance family as a value for baseline performance, the\n API returns an empty response for and an exception for , , , and .

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Specify an instance family to use as the baseline reference for CPU performance. All\n instance types that match your specified attributes will be compared against the CPU\n performance of the referenced instance family, regardless of CPU manufacturer or\n architecture.

\n \n

Currently, only one instance family can be specified in the list.

\n
" + } + }, + "com.amazonaws.ec2#PerformanceFactorReferenceSet": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#PerformanceFactorReference", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#PerformanceFactorReferenceSetRequest": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#PerformanceFactorReferenceRequest", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, "com.amazonaws.ec2#PeriodType": { "type": "enum", "members": { @@ -88290,7 +88996,7 @@ "target": "com.amazonaws.ec2#RegisterImageResult" }, "traits": { - "smithy.api#documentation": "

Registers an AMI. When you're creating an instance-store backed AMI, registering the AMI\n is the final step in the creation process. For more information about creating AMIs, see\n Create an AMI from a snapshot and Create an instance-store\n backed AMI in the Amazon EC2 User Guide.

\n \n

For Amazon EBS-backed instances, CreateImage creates and registers the AMI\n in a single request, so you don't have to register the AMI yourself. We recommend that you\n always use CreateImage unless you have a specific reason to use\n RegisterImage.

\n
\n

If needed, you can deregister an AMI at any time. Any modifications you make to an AMI\n backed by an instance store volume invalidates its registration. If you make changes to an\n image, deregister the previous image and register the new image.

\n

\n Register a snapshot of a root device volume\n

\n

You can use RegisterImage to create an Amazon EBS-backed Linux AMI from\n a snapshot of a root device volume. You specify the snapshot using a block device mapping.\n You can't set the encryption state of the volume using the block device mapping. If the \n snapshot is encrypted, or encryption by default is enabled, the root volume of an instance \n launched from the AMI is encrypted.

\n

For more information, see Create an AMI from a snapshot and Use encryption with Amazon EBS-backed\n AMIs in the Amazon EC2 User Guide.

\n

\n Amazon Web Services Marketplace product codes\n

\n

If any snapshots have Amazon Web Services Marketplace product codes, they are copied to the new\n AMI.

\n

In most cases, AMIs for Windows, RedHat, SUSE, and SQL Server require correct licensing\n information to be present on the AMI. For more information, see Understand AMI billing\n information in the Amazon EC2 User Guide. When creating an AMI from\n a snapshot, the RegisterImage operation derives the correct billing information\n from the snapshot's metadata, but this requires the appropriate metadata to be present. To\n verify if the correct billing information was applied, check the PlatformDetails\n field on the new AMI. If the field is empty or doesn't match the expected operating system\n code (for example, Windows, RedHat, SUSE, or SQL), the AMI creation was unsuccessful, and you\n should discard the AMI and instead create the AMI from an instance using CreateImage. For more information, see Create an AMI\n from an instance in the Amazon EC2 User Guide.

\n

If you purchase a Reserved Instance to apply to an On-Demand Instance that was launched\n from an AMI with a billing product code, make sure that the Reserved Instance has the matching\n billing product code. If you purchase a Reserved Instance without the matching billing product\n code, the Reserved Instance will not be applied to the On-Demand Instance. For information\n about how to obtain the platform details and billing information of an AMI, see Understand AMI\n billing information in the Amazon EC2 User Guide.

" + "smithy.api#documentation": "

Registers an AMI. When you're creating an instance-store backed AMI, registering the AMI\n is the final step in the creation process. For more information about creating AMIs, see\n Create an AMI from a snapshot and Create an instance-store\n backed AMI in the Amazon EC2 User Guide.

\n \n

For Amazon EBS-backed instances, CreateImage creates and registers the AMI\n in a single request, so you don't have to register the AMI yourself. We recommend that you\n always use CreateImage unless you have a specific reason to use\n RegisterImage.

\n
\n

If needed, you can deregister an AMI at any time. Any modifications you make to an AMI\n backed by an instance store volume invalidates its registration. If you make changes to an\n image, deregister the previous image and register the new image.

\n

\n Register a snapshot of a root device volume\n

\n

You can use RegisterImage to create an Amazon EBS-backed Linux AMI from a snapshot\n of a root device volume. You specify the snapshot using a block device mapping. You can't set\n the encryption state of the volume using the block device mapping. If the snapshot is\n encrypted, or encryption by default is enabled, the root volume of an instance launched from\n the AMI is encrypted.

\n

For more information, see Create an AMI from a snapshot and Use encryption with Amazon EBS-backed\n AMIs in the Amazon EC2 User Guide.

\n

\n Amazon Web Services Marketplace product codes\n

\n

If any snapshots have Amazon Web Services Marketplace product codes, they are copied to the new AMI.

\n

In most cases, AMIs for Windows, RedHat, SUSE, and SQL Server require correct licensing\n information to be present on the AMI. For more information, see Understand AMI billing\n information in the Amazon EC2 User Guide. When creating an AMI from\n a snapshot, the RegisterImage operation derives the correct billing information\n from the snapshot's metadata, but this requires the appropriate metadata to be present. To\n verify if the correct billing information was applied, check the PlatformDetails\n field on the new AMI. If the field is empty or doesn't match the expected operating system\n code (for example, Windows, RedHat, SUSE, or SQL), the AMI creation was unsuccessful, and you\n should discard the AMI and instead create the AMI from an instance using CreateImage. For more information, see Create an AMI\n from an instance in the Amazon EC2 User Guide.

\n

If you purchase a Reserved Instance to apply to an On-Demand Instance that was launched\n from an AMI with a billing product code, make sure that the Reserved Instance has the matching\n billing product code. If you purchase a Reserved Instance without the matching billing product\n code, the Reserved Instance will not be applied to the On-Demand Instance. For information\n about how to obtain the platform details and billing information of an AMI, see Understand AMI\n billing information in the Amazon EC2 User Guide.

" } }, "com.amazonaws.ec2#RegisterImageRequest": { @@ -88299,20 +89005,20 @@ "ImageLocation": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

The full path to your AMI manifest in Amazon S3 storage. The specified bucket must have the \n \t\taws-exec-read canned access control list (ACL) to ensure that it can be accessed \n \t\tby Amazon EC2. For more information, see Canned ACLs in the \n \t\tAmazon S3 Service Developer Guide.

" + "smithy.api#documentation": "

The full path to your AMI manifest in Amazon S3 storage. The specified bucket must have the\n aws-exec-read canned access control list (ACL) to ensure that it can be\n accessed by Amazon EC2. For more information, see Canned ACLs in the\n Amazon S3 Service Developer Guide.

" } }, "BillingProducts": { "target": "com.amazonaws.ec2#BillingProductList", "traits": { - "smithy.api#documentation": "

The billing product codes. Your account must be authorized to specify billing product codes.

\n

If your account is not authorized to specify billing product codes, you can publish AMIs\n that include billable software and list them on the Amazon Web Services Marketplace. You must first register as a seller\n on the Amazon Web Services Marketplace. For more information, see Getting started as a\n seller and AMI-based\n products in the Amazon Web Services Marketplace Seller Guide.

", + "smithy.api#documentation": "

The billing product codes. Your account must be authorized to specify billing product\n codes.

\n

If your account is not authorized to specify billing product codes, you can publish AMIs\n that include billable software and list them on the Amazon Web Services Marketplace. You must first register as a seller\n on the Amazon Web Services Marketplace. For more information, see Getting started as a\n seller and AMI-based products in the\n Amazon Web Services Marketplace Seller Guide.

", "smithy.api#xmlName": "BillingProduct" } }, "BootMode": { "target": "com.amazonaws.ec2#BootModeValues", "traits": { - "smithy.api#documentation": "

The boot mode of the AMI. A value of uefi-preferred indicates that the AMI supports both UEFI and Legacy BIOS.

\n \n

The operating system contained in the AMI must be configured to support the specified boot mode.

\n
\n

For more information, see Boot modes in the\n Amazon EC2 User Guide.

" + "smithy.api#documentation": "

The boot mode of the AMI. A value of uefi-preferred indicates that the AMI\n supports both UEFI and Legacy BIOS.

\n \n

The operating system contained in the AMI must be configured to support the specified\n boot mode.

\n
\n

For more information, see Boot modes in the\n Amazon EC2 User Guide.

" } }, "TpmSupport": { @@ -88330,7 +89036,7 @@ "ImdsSupport": { "target": "com.amazonaws.ec2#ImdsSupportValues", "traits": { - "smithy.api#documentation": "

Set to v2.0 to indicate that IMDSv2 is specified in the AMI. Instances\n launched from this AMI will have HttpTokens automatically set to\n required so that, by default, the instance requires that IMDSv2 is used when\n requesting instance metadata. In addition, HttpPutResponseHopLimit is set to\n 2. For more information, see Configure\n the AMI in the Amazon EC2 User Guide.

\n \n

If you set the value to v2.0, make sure that your AMI software can support IMDSv2.

\n
" + "smithy.api#documentation": "

Set to v2.0 to indicate that IMDSv2 is specified in the AMI. Instances\n launched from this AMI will have HttpTokens automatically set to\n required so that, by default, the instance requires that IMDSv2 is used when\n requesting instance metadata. In addition, HttpPutResponseHopLimit is set to\n 2. For more information, see Configure the AMI in the Amazon EC2 User Guide.

\n \n

If you set the value to v2.0, make sure that your AMI software can support\n IMDSv2.

\n
" } }, "TagSpecifications": { @@ -88353,7 +89059,7 @@ "traits": { "aws.protocols#ec2QueryName": "Name", "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

A name for your AMI.

\n

Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)

", + "smithy.api#documentation": "

A name for your AMI.

\n

Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces\n ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or\n underscores(_)

", "smithy.api#required": {}, "smithy.api#xmlName": "name" } @@ -88370,7 +89076,7 @@ "target": "com.amazonaws.ec2#ArchitectureValues", "traits": { "aws.protocols#ec2QueryName": "Architecture", - "smithy.api#documentation": "

The architecture of the AMI.

\n

Default: For Amazon EBS-backed AMIs, i386.\n For instance store-backed AMIs, the architecture specified in the manifest file.

", + "smithy.api#documentation": "

The architecture of the AMI.

\n

Default: For Amazon EBS-backed AMIs, i386. For instance store-backed AMIs, the\n architecture specified in the manifest file.

", "smithy.api#xmlName": "architecture" } }, @@ -88401,7 +89107,7 @@ "BlockDeviceMappings": { "target": "com.amazonaws.ec2#BlockDeviceMappingRequestList", "traits": { - "smithy.api#documentation": "

The block device mapping entries.

\n

If you specify an Amazon EBS volume using the ID of an Amazon EBS snapshot, you can't specify the encryption state of the volume.

\n

If you create an AMI on an Outpost, then all backing snapshots must be on the same\n Outpost or in the Region of that Outpost. AMIs on an Outpost that include local snapshots can\n be used to launch instances on the same Outpost only. For more information, Amazon EBS local\n snapshots on Outposts in the Amazon EBS User Guide.

", + "smithy.api#documentation": "

The block device mapping entries.

\n

If you specify an Amazon EBS volume using the ID of an Amazon EBS snapshot, you can't specify the\n encryption state of the volume.

\n

If you create an AMI on an Outpost, then all backing snapshots must be on the same Outpost\n or in the Region of that Outpost. AMIs on an Outpost that include local snapshots can be used\n to launch instances on the same Outpost only. For more information, Amazon EBS local\n snapshots on Outposts in the Amazon EBS User Guide.

", "smithy.api#xmlName": "BlockDeviceMapping" } }, @@ -88417,7 +89123,7 @@ "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "SriovNetSupport", - "smithy.api#documentation": "

Set to simple to enable enhanced networking with the Intel 82599 Virtual Function interface for the AMI and any instances that you launch from the AMI.

\n

There is no way to disable sriovNetSupport at this time.

\n

This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances launched from the AMI unreachable.

", + "smithy.api#documentation": "

Set to simple to enable enhanced networking with the Intel 82599 Virtual\n Function interface for the AMI and any instances that you launch from the AMI.

\n

There is no way to disable sriovNetSupport at this time.

\n

This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make\n instances launched from the AMI unreachable.

", "smithy.api#xmlName": "sriovNetSupport" } }, @@ -88425,7 +89131,7 @@ "target": "com.amazonaws.ec2#Boolean", "traits": { "aws.protocols#ec2QueryName": "EnaSupport", - "smithy.api#documentation": "

Set to true to enable enhanced networking with ENA for the AMI and any instances that you launch from the AMI.

\n

This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances launched from the AMI unreachable.

", + "smithy.api#documentation": "

Set to true to enable enhanced networking with ENA for the AMI and any\n instances that you launch from the AMI.

\n

This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make\n instances launched from the AMI unreachable.

", "smithy.api#xmlName": "enaSupport" } } @@ -90434,6 +91140,12 @@ "traits": { "smithy.api#documentation": "

Indicates whether to enable the instance for stop protection. For more information,\n see Enable stop protection for your instance in the\n Amazon EC2 User Guide.

" } + }, + "Operator": { + "target": "com.amazonaws.ec2#OperatorRequest", + "traits": { + "smithy.api#documentation": "

The entity that manages the launch template.

" + } } }, "traits": { @@ -92083,7 +92795,7 @@ "target": "com.amazonaws.ec2#ResetImageAttributeName", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

The attribute to reset (currently you can only reset the launch permission attribute).

", + "smithy.api#documentation": "

The attribute to reset (currently you can only reset the launch permission\n attribute).

", "smithy.api#required": {} } }, @@ -93159,6 +93871,14 @@ "smithy.api#documentation": "

Indicates whether the instance is enabled for stop protection. For more information,\n see Enable stop protection for your instance in the\n Amazon EC2 User Guide.

", "smithy.api#xmlName": "disableApiStop" } + }, + "Operator": { + "target": "com.amazonaws.ec2#OperatorResponse", + "traits": { + "aws.protocols#ec2QueryName": "Operator", + "smithy.api#documentation": "

The entity that manages the launch template.

", + "smithy.api#xmlName": "operator" + } } }, "traits": { @@ -93242,7 +93962,7 @@ "target": "com.amazonaws.ec2#RestoreImageFromRecycleBinResult" }, "traits": { - "smithy.api#documentation": "

Restores an AMI from the Recycle Bin. For more information, see Recycle Bin in the Amazon EC2 User Guide.

" + "smithy.api#documentation": "

Restores an AMI from the Recycle Bin. For more information, see Recycle Bin in\n the Amazon EC2 User Guide.

" } }, "com.amazonaws.ec2#RestoreImageFromRecycleBinRequest": { @@ -94784,7 +95504,7 @@ "CapacityReservationSpecification": { "target": "com.amazonaws.ec2#CapacityReservationSpecification", "traits": { - "smithy.api#documentation": "

Information about the Capacity Reservation targeting option. If you do not specify this parameter, the\n instance's Capacity Reservation preference defaults to open, which enables\n it to run in any open Capacity Reservation that has matching attributes (instance type,\n platform, Availability Zone).

" + "smithy.api#documentation": "

Information about the Capacity Reservation targeting option. If you do not specify this parameter, the\n instance's Capacity Reservation preference defaults to open, which enables\n it to run in any open Capacity Reservation that has matching attributes (instance type,\n platform, Availability Zone, and tenancy).

" } }, "HibernationOptions": { @@ -94836,6 +95556,12 @@ "smithy.api#documentation": "

If you’re launching an instance into a dual-stack or IPv6-only subnet, you can enable\n assigning a primary IPv6 address. A primary IPv6 address is an IPv6 GUA address\n associated with an ENI that you have enabled to use a primary IPv6 address. Use this\n option if an instance relies on its IPv6 address not changing. When you launch the\n instance, Amazon Web Services will automatically assign an IPv6 address associated with\n the ENI attached to your instance to be the primary IPv6 address. Once you enable an\n IPv6 GUA address to be a primary IPv6, you cannot disable it. When you enable an IPv6\n GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6\n address until the instance is terminated or the network interface is detached. If you\n have multiple IPv6 addresses associated with an ENI attached to your instance and you\n enable a primary IPv6 address, the first IPv6 GUA address associated with the ENI\n becomes the primary IPv6 address.

" } }, + "Operator": { + "target": "com.amazonaws.ec2#OperatorRequest", + "traits": { + "smithy.api#documentation": "

Reserved for internal use.

" + } + }, "DryRun": { "target": "com.amazonaws.ec2#Boolean", "traits": { @@ -95028,14 +95754,14 @@ "AWSAccessKeyId": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "

The access key ID of the owner of the bucket. Before you specify a value for your access\n key ID, review and follow the guidance in Best\n Practices for Amazon Web Services accounts in the Account ManagementReference\n Guide.

" + "smithy.api#documentation": "

The access key ID of the owner of the bucket. Before you specify a value for your access\n key ID, review and follow the guidance in Best Practices for Amazon Web Services\n accounts in the Account ManagementReference Guide.

" } }, "Bucket": { "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "Bucket", - "smithy.api#documentation": "

The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.

", + "smithy.api#documentation": "

The bucket in which to store the AMI. You can specify a bucket that you already own or a\n new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone\n else, Amazon EC2 returns an error.

", "smithy.api#xmlName": "bucket" } }, @@ -95051,7 +95777,7 @@ "target": "com.amazonaws.ec2#Blob", "traits": { "aws.protocols#ec2QueryName": "UploadPolicy", - "smithy.api#documentation": "

An Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf.

", + "smithy.api#documentation": "

An Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your\n behalf.

", "smithy.api#xmlName": "uploadPolicy" } }, @@ -95065,7 +95791,7 @@ } }, "traits": { - "smithy.api#documentation": "

Describes the storage parameters for Amazon S3 and Amazon S3 buckets for an instance store-backed AMI.

" + "smithy.api#documentation": "

Describes the storage parameters for Amazon S3 and Amazon S3 buckets for an instance store-backed\n AMI.

" } }, "com.amazonaws.ec2#S3StorageUploadPolicySignature": { @@ -100179,6 +100905,14 @@ "smithy.api#xmlName": "privateDnsNameOptionsOnLaunch" } }, + "BlockPublicAccessStates": { + "target": "com.amazonaws.ec2#BlockPublicAccessStates", + "traits": { + "aws.protocols#ec2QueryName": "BlockPublicAccessStates", + "smithy.api#documentation": "

The state of VPC Block Public Access (BPA).

", + "smithy.api#xmlName": "blockPublicAccessStates" + } + }, "SubnetId": { "target": "com.amazonaws.ec2#String", "traits": { @@ -107849,6 +108583,14 @@ "smithy.api#xmlName": "sseType" } }, + "Operator": { + "target": "com.amazonaws.ec2#OperatorResponse", + "traits": { + "aws.protocols#ec2QueryName": "Operator", + "smithy.api#documentation": "

The entity that manages the volume.

", + "smithy.api#xmlName": "operator" + } + }, "VolumeId": { "target": "com.amazonaws.ec2#String", "traits": { @@ -108731,6 +109473,14 @@ "smithy.api#xmlName": "tagSet" } }, + "BlockPublicAccessStates": { + "target": "com.amazonaws.ec2#BlockPublicAccessStates", + "traits": { + "aws.protocols#ec2QueryName": "BlockPublicAccessStates", + "smithy.api#documentation": "

The state of VPC Block Public Access (BPA).

", + "smithy.api#xmlName": "blockPublicAccessStates" + } + }, "VpcId": { "target": "com.amazonaws.ec2#String", "traits": { @@ -108824,6 +109574,251 @@ } } }, + "com.amazonaws.ec2#VpcBlockPublicAccessExclusion": { + "type": "structure", + "members": { + "ExclusionId": { + "target": "com.amazonaws.ec2#VpcBlockPublicAccessExclusionId", + "traits": { + "aws.protocols#ec2QueryName": "ExclusionId", + "smithy.api#documentation": "

The ID of the exclusion.

", + "smithy.api#xmlName": "exclusionId" + } + }, + "InternetGatewayExclusionMode": { + "target": "com.amazonaws.ec2#InternetGatewayExclusionMode", + "traits": { + "aws.protocols#ec2QueryName": "InternetGatewayExclusionMode", + "smithy.api#documentation": "

The exclusion mode for internet gateway traffic.

\n ", + "smithy.api#xmlName": "internetGatewayExclusionMode" + } + }, + "ResourceArn": { + "target": "com.amazonaws.ec2#ResourceArn", + "traits": { + "aws.protocols#ec2QueryName": "ResourceArn", + "smithy.api#documentation": "

The ARN of the exclusion.

", + "smithy.api#xmlName": "resourceArn" + } + }, + "State": { + "target": "com.amazonaws.ec2#VpcBlockPublicAccessExclusionState", + "traits": { + "aws.protocols#ec2QueryName": "State", + "smithy.api#documentation": "

The state of the exclusion.

", + "smithy.api#xmlName": "state" + } + }, + "Reason": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Reason", + "smithy.api#documentation": "

The reason for the current exclusion state.

", + "smithy.api#xmlName": "reason" + } + }, + "CreationTimestamp": { + "target": "com.amazonaws.ec2#MillisecondDateTime", + "traits": { + "aws.protocols#ec2QueryName": "CreationTimestamp", + "smithy.api#documentation": "

When the exclusion was created.

", + "smithy.api#xmlName": "creationTimestamp" + } + }, + "LastUpdateTimestamp": { + "target": "com.amazonaws.ec2#MillisecondDateTime", + "traits": { + "aws.protocols#ec2QueryName": "LastUpdateTimestamp", + "smithy.api#documentation": "

When the exclusion was last updated.

", + "smithy.api#xmlName": "lastUpdateTimestamp" + } + }, + "DeletionTimestamp": { + "target": "com.amazonaws.ec2#MillisecondDateTime", + "traits": { + "aws.protocols#ec2QueryName": "DeletionTimestamp", + "smithy.api#documentation": "

When the exclusion was deleted.

", + "smithy.api#xmlName": "deletionTimestamp" + } + }, + "Tags": { + "target": "com.amazonaws.ec2#TagList", + "traits": { + "aws.protocols#ec2QueryName": "TagSet", + "smithy.api#documentation": "

\n tag - 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.

", + "smithy.api#xmlName": "tagSet" + } + } + }, + "traits": { + "smithy.api#documentation": "

A VPC BPA exclusion is a mode that can be applied to a single VPC or subnet that exempts it from the account’s BPA mode and will allow bidirectional or egress-only access. You can create BPA exclusions for VPCs and subnets even when BPA is not enabled on the account to ensure that there is no traffic disruption to the exclusions when VPC BPA is turned on. To learn more about VPC BPA, see Block public access to VPCs and subnets in the Amazon VPC User Guide.

" + } + }, + "com.amazonaws.ec2#VpcBlockPublicAccessExclusionId": { + "type": "string" + }, + "com.amazonaws.ec2#VpcBlockPublicAccessExclusionIdList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#VpcBlockPublicAccessExclusionId", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#VpcBlockPublicAccessExclusionList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#VpcBlockPublicAccessExclusion", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#VpcBlockPublicAccessExclusionState": { + "type": "enum", + "members": { + "create_in_progress": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "create-in-progress" + } + }, + "create_complete": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "create-complete" + } + }, + "create_failed": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "create-failed" + } + }, + "update_in_progress": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "update-in-progress" + } + }, + "update_complete": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "update-complete" + } + }, + "update_failed": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "update-failed" + } + }, + "delete_in_progress": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "delete-in-progress" + } + }, + "delete_complete": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "delete-complete" + } + }, + "disable_in_progress": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "disable-in-progress" + } + }, + "disable_complete": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "disable-complete" + } + } + } + }, + "com.amazonaws.ec2#VpcBlockPublicAccessOptions": { + "type": "structure", + "members": { + "AwsAccountId": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "AwsAccountId", + "smithy.api#documentation": "

An Amazon Web Services account ID.

", + "smithy.api#xmlName": "awsAccountId" + } + }, + "AwsRegion": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "AwsRegion", + "smithy.api#documentation": "

An Amazon Web Services Region.

", + "smithy.api#xmlName": "awsRegion" + } + }, + "State": { + "target": "com.amazonaws.ec2#VpcBlockPublicAccessState", + "traits": { + "aws.protocols#ec2QueryName": "State", + "smithy.api#documentation": "

The current state of VPC BPA.

", + "smithy.api#xmlName": "state" + } + }, + "InternetGatewayBlockMode": { + "target": "com.amazonaws.ec2#InternetGatewayBlockMode", + "traits": { + "aws.protocols#ec2QueryName": "InternetGatewayBlockMode", + "smithy.api#documentation": "

The current mode of VPC BPA.

\n ", + "smithy.api#xmlName": "internetGatewayBlockMode" + } + }, + "Reason": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Reason", + "smithy.api#documentation": "

The reason for the current state.

", + "smithy.api#xmlName": "reason" + } + }, + "LastUpdateTimestamp": { + "target": "com.amazonaws.ec2#MillisecondDateTime", + "traits": { + "aws.protocols#ec2QueryName": "LastUpdateTimestamp", + "smithy.api#documentation": "

The last time the VPC BPA mode was updated.

", + "smithy.api#xmlName": "lastUpdateTimestamp" + } + } + }, + "traits": { + "smithy.api#documentation": "

VPC Block public Access (BPA) enables you to block resources in VPCs and subnets that you own in a Region from reaching or being reached from the internet through internet gateways and egress-only internet gateways. To learn more about VPC BPA, see Block public access to VPCs and subnets in the Amazon VPC User Guide.

" + } + }, + "com.amazonaws.ec2#VpcBlockPublicAccessState": { + "type": "enum", + "members": { + "default_state": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "default-state" + } + }, + "update_in_progress": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "update-in-progress" + } + }, + "update_complete": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "update-complete" + } + } + } + }, "com.amazonaws.ec2#VpcCidrAssociationId": { "type": "string" }, diff --git a/codegen/sdk-codegen/aws-models/ecs.json b/codegen/sdk-codegen/aws-models/ecs.json index d2c2b09a385..56b65bb7fcd 100644 --- a/codegen/sdk-codegen/aws-models/ecs.json +++ b/codegen/sdk-codegen/aws-models/ecs.json @@ -279,7 +279,7 @@ "name": "ecs" }, "aws.protocols#awsJson1_1": {}, - "smithy.api#documentation": "Amazon Elastic Container Service\n

Amazon Elastic Container Service (Amazon ECS) is a highly scalable, fast, container management service. It makes\n\t\t\tit easy to run, stop, and manage Docker containers. You can host your cluster on a\n\t\t\tserverless infrastructure that's managed by Amazon ECS by launching your services or tasks on\n\t\t\tFargate. For more control, you can host your tasks on a cluster of Amazon Elastic Compute Cloud (Amazon EC2)\n\t\t\tor External (on-premises) instances that you manage.

\n

Amazon ECS makes it easy to launch and stop container-based applications with simple API\n\t\t\tcalls. This makes it easy to get the state of your cluster from a centralized service,\n\t\t\tand gives you access to many familiar Amazon EC2 features.

\n

You can use Amazon ECS to schedule the placement of containers across your cluster based on\n\t\t\tyour resource needs, isolation policies, and availability requirements. With Amazon ECS, you\n\t\t\tdon't need to operate your own cluster management and configuration management systems.\n\t\t\tYou also don't need to worry about scaling your management infrastructure.

", + "smithy.api#documentation": "Amazon Elastic Container Service\n

Amazon Elastic Container Service (Amazon ECS) is a highly scalable, fast, container management service. It makes it easy to run,\n\t\t\tstop, and manage Docker containers. You can host your cluster on a serverless infrastructure that's\n\t\t\tmanaged by Amazon ECS by launching your services or tasks on Fargate. For more control, you can host your\n\t\t\ttasks on a cluster of Amazon Elastic Compute Cloud (Amazon EC2) or External (on-premises) instances that you manage.

\n

Amazon ECS makes it easy to launch and stop container-based applications with simple API calls. This makes\n\t\t\tit easy to get the state of your cluster from a centralized service, and gives you access to many\n\t\t\tfamiliar Amazon EC2 features.

\n

You can use Amazon ECS to schedule the placement of containers across your cluster based on your resource\n\t\t\tneeds, isolation policies, and availability requirements. With Amazon ECS, you don't need to operate your\n\t\t\town cluster management and configuration management systems. You also don't need to worry about scaling\n\t\t\tyour management infrastructure.

", "smithy.api#title": "Amazon EC2 Container Service", "smithy.api#xmlNamespace": { "uri": "http://ecs.amazonaws.com/doc/2014-11-13/" @@ -1336,13 +1336,13 @@ "status": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The status of the attachment. Valid values are PRECREATED,\n\t\t\t\tCREATED, ATTACHING, ATTACHED,\n\t\t\t\tDETACHING, DETACHED, DELETED, and\n\t\t\t\tFAILED.

" + "smithy.api#documentation": "

The status of the attachment. Valid values are PRECREATED, CREATED,\n\t\t\t\tATTACHING, ATTACHED, DETACHING, DETACHED,\n\t\t\t\tDELETED, and FAILED.

" } }, "details": { "target": "com.amazonaws.ecs#AttachmentDetails", "traits": { - "smithy.api#documentation": "

Details of the attachment.

\n

For elastic network interfaces, this includes the network interface ID, the MAC\n\t\t\taddress, the subnet ID, and the private IPv4 address.

\n

For Service Connect services, this includes portName,\n\t\t\t\tclientAliases, discoveryName, and\n\t\t\t\tingressPortOverride.

\n

For Elastic Block Storage, this includes roleArn,\n\t\t\t\tdeleteOnTermination, volumeName, volumeId,\n\t\t\tand statusReason (only when the attachment fails to create or\n\t\t\tattach).

" + "smithy.api#documentation": "

Details of the attachment.

\n

For elastic network interfaces, this includes the network interface ID, the MAC address, the subnet\n\t\t\tID, and the private IPv4 address.

\n

For Service Connect services, this includes portName, clientAliases,\n\t\t\t\tdiscoveryName, and ingressPortOverride.

\n

For Elastic Block Storage, this includes roleArn, deleteOnTermination,\n\t\t\t\tvolumeName, volumeId, and statusReason (only when the\n\t\t\tattachment fails to create or attach).

" } } }, @@ -1396,31 +1396,31 @@ "name": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The name of the attribute. The name must contain between 1 and 128\n\t\t\tcharacters. The name may contain letters (uppercase and lowercase), numbers, hyphens\n\t\t\t(-), underscores (_), forward slashes (/), back slashes (\\), or periods (.).

", + "smithy.api#documentation": "

The name of the attribute. The name must contain between 1 and 128 characters. The name\n\t\t\tmay contain letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), forward slashes\n\t\t\t(/), back slashes (\\), or periods (.).

", "smithy.api#required": {} } }, "value": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The value of the attribute. The value must contain between 1 and 128\n\t\t\tcharacters. It can contain letters (uppercase and lowercase), numbers, hyphens (-),\n\t\t\tunderscores (_), periods (.), at signs (@), forward slashes (/), back slashes (\\),\n\t\t\tcolons (:), or spaces. The value can't start or end with a space.

" + "smithy.api#documentation": "

The value of the attribute. The value must contain between 1 and 128 characters. It can\n\t\t\tcontain letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), periods (.), at signs\n\t\t\t(@), forward slashes (/), back slashes (\\), colons (:), or spaces. The value can't start or end with a\n\t\t\tspace.

" } }, "targetType": { "target": "com.amazonaws.ecs#TargetType", "traits": { - "smithy.api#documentation": "

The type of the target to attach the attribute with. This parameter is required if you\n\t\t\tuse the short form ID for a resource instead of the full ARN.

" + "smithy.api#documentation": "

The type of the target to attach the attribute with. This parameter is required if you use the short\n\t\t\tform ID for a resource instead of the full ARN.

" } }, "targetId": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The ID of the target. You can specify the short form ID for a resource or the full\n\t\t\tAmazon Resource Name (ARN).

" + "smithy.api#documentation": "

The ID of the target. You can specify the short form ID for a resource or the full Amazon Resource Name (ARN).

" } } }, "traits": { - "smithy.api#documentation": "

An attribute is a name-value pair that's associated with an Amazon ECS object. Use\n\t\t\tattributes to extend the Amazon ECS data model by adding custom metadata to your resources.\n\t\t\tFor more information, see Attributes in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

An attribute is a name-value pair that's associated with an Amazon ECS object. Use attributes to extend\n\t\t\tthe Amazon ECS data model by adding custom metadata to your resources. For more information, see Attributes\n\t\t\tin the Amazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#AttributeLimitExceededException": { @@ -1434,7 +1434,7 @@ } }, "traits": { - "smithy.api#documentation": "

You can apply up to 10 custom attributes for each resource. You can view the\n\t\t\tattributes of a resource with ListAttributes. You can remove existing\n\t\t\tattributes on a resource with DeleteAttributes.

", + "smithy.api#documentation": "

You can apply up to 10 custom attributes for each resource. You can view the attributes of a resource\n\t\t\twith ListAttributes. You can remove existing attributes on a resource with DeleteAttributes.

", "smithy.api#error": "client" } }, @@ -1450,7 +1450,7 @@ "autoScalingGroupArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) that identifies the Auto Scaling group, or the Auto Scaling group\n\t\t\tname.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) that identifies the Auto Scaling group, or the Auto Scaling group name.

", "smithy.api#required": {} } }, @@ -1463,7 +1463,7 @@ "managedTerminationProtection": { "target": "com.amazonaws.ecs#ManagedTerminationProtection", "traits": { - "smithy.api#documentation": "

The managed termination protection setting to use for the Auto Scaling group capacity\n\t\t\tprovider. This determines whether the Auto Scaling group has managed termination\n\t\t\tprotection. The default is off.

\n \n

When using managed termination protection, managed scaling must also be used\n\t\t\t\totherwise managed termination protection doesn't work.

\n
\n

When managed termination protection is on, Amazon ECS prevents the Amazon EC2 instances in an\n\t\t\tAuto Scaling group that contain tasks from being terminated during a scale-in action.\n\t\t\tThe Auto Scaling group and each instance in the Auto Scaling group must have instance\n\t\t\tprotection from scale-in actions on as well. For more information, see Instance Protection in the Auto Scaling User Guide.

\n

When managed termination protection is off, your Amazon EC2 instances aren't protected from\n\t\t\ttermination when the Auto Scaling group scales in.

" + "smithy.api#documentation": "

The managed termination protection setting to use for the Auto Scaling group capacity provider. This\n\t\t\tdetermines whether the Auto Scaling group has managed termination protection. The default is\n\t\t\toff.

\n \n

When using managed termination protection, managed scaling must also be used otherwise managed\n\t\t\t\ttermination protection doesn't work.

\n
\n

When managed termination protection is on, Amazon ECS prevents the Amazon EC2 instances in an Auto Scaling\n\t\t\tgroup that contain tasks from being terminated during a scale-in action. The Auto Scaling group and\n\t\t\teach instance in the Auto Scaling group must have instance protection from scale-in actions on as well.\n\t\t\tFor more information, see Instance\n\t\t\t\tProtection in the Auto Scaling User Guide.

\n

When managed termination protection is off, your Amazon EC2 instances aren't protected from termination\n\t\t\twhen the Auto Scaling group scales in.

" } }, "managedDraining": { @@ -1489,7 +1489,7 @@ "managedTerminationProtection": { "target": "com.amazonaws.ecs#ManagedTerminationProtection", "traits": { - "smithy.api#documentation": "

The managed termination protection setting to use for the Auto Scaling group capacity\n\t\t\tprovider. This determines whether the Auto Scaling group has managed termination\n\t\t\tprotection.

\n \n

When using managed termination protection, managed scaling must also be used\n\t\t\t\totherwise managed termination protection doesn't work.

\n
\n

When managed termination protection is on, Amazon ECS prevents the Amazon EC2 instances in an\n\t\t\tAuto Scaling group that contain tasks from being terminated during a scale-in action.\n\t\t\tThe Auto Scaling group and each instance in the Auto Scaling group must have instance\n\t\t\tprotection from scale-in actions on. For more information, see Instance Protection in the Auto Scaling User Guide.

\n

When managed termination protection is off, your Amazon EC2 instances aren't protected from\n\t\t\ttermination when the Auto Scaling group scales in.

" + "smithy.api#documentation": "

The managed termination protection setting to use for the Auto Scaling group capacity provider. This\n\t\t\tdetermines whether the Auto Scaling group has managed termination protection.

\n \n

When using managed termination protection, managed scaling must also be used otherwise managed\n\t\t\t\ttermination protection doesn't work.

\n
\n

When managed termination protection is on, Amazon ECS prevents the Amazon EC2 instances in an Auto Scaling\n\t\t\tgroup that contain tasks from being terminated during a scale-in action. The Auto Scaling group and\n\t\t\teach instance in the Auto Scaling group must have instance protection from scale-in actions on. For\n\t\t\tmore information, see Instance\n\t\t\t\tProtection in the Auto Scaling User Guide.

\n

When managed termination protection is off, your Amazon EC2 instances aren't protected from termination\n\t\t\twhen the Auto Scaling group scales in.

" } }, "managedDraining": { @@ -1503,26 +1503,43 @@ "smithy.api#documentation": "

The details of the Auto Scaling group capacity provider to update.

" } }, + "com.amazonaws.ecs#AvailabilityZoneRebalancing": { + "type": "enum", + "members": { + "ENABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENABLED" + } + }, + "DISABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLED" + } + } + } + }, "com.amazonaws.ecs#AwsVpcConfiguration": { "type": "structure", "members": { "subnets": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The IDs of the subnets associated with the task or service. There's a limit of 16\n\t\t\tsubnets that can be specified per awsvpcConfiguration.

\n \n

All specified subnets must be from the same VPC.

\n
", + "smithy.api#documentation": "

The IDs of the subnets associated with the task or service. There's a limit of 16 subnets that can be\n\t\t\tspecified per awsvpcConfiguration.

\n \n

All specified subnets must be from the same VPC.

\n
", "smithy.api#required": {} } }, "securityGroups": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The IDs of the security groups associated with the task or service. If you don't\n\t\t\tspecify a security group, the default security group for the VPC is used. There's a\n\t\t\tlimit of 5 security groups that can be specified per\n\t\t\tawsvpcConfiguration.

\n \n

All specified security groups must be from the same VPC.

\n
" + "smithy.api#documentation": "

The IDs of the security groups associated with the task or service. If you don't specify a security\n\t\t\tgroup, the default security group for the VPC is used. There's a limit of 5 security groups that can be\n\t\t\tspecified per awsvpcConfiguration.

\n \n

All specified security groups must be from the same VPC.

\n
" } }, "assignPublicIp": { "target": "com.amazonaws.ecs#AssignPublicIp", "traits": { - "smithy.api#documentation": "

Whether the task's elastic network interface receives a public IP address. The default\n\t\t\tvalue is DISABLED.

" + "smithy.api#documentation": "

Whether the task's elastic network interface receives a public IP address. The default value is\n\t\t\t\tDISABLED.

" } } }, @@ -1592,7 +1609,7 @@ "status": { "target": "com.amazonaws.ecs#CapacityProviderStatus", "traits": { - "smithy.api#documentation": "

The current status of the capacity provider. Only capacity providers in an\n\t\t\t\tACTIVE state can be used in a cluster. When a capacity provider is\n\t\t\tsuccessfully deleted, it has an INACTIVE status.

" + "smithy.api#documentation": "

The current status of the capacity provider. Only capacity providers in an ACTIVE state\n\t\t\tcan be used in a cluster. When a capacity provider is successfully deleted, it has an\n\t\t\t\tINACTIVE status.

" } }, "autoScalingGroupProvider": { @@ -1604,19 +1621,19 @@ "updateStatus": { "target": "com.amazonaws.ecs#CapacityProviderUpdateStatus", "traits": { - "smithy.api#documentation": "

The update status of the capacity provider. The following are the possible states that\n\t\t\tis returned.

\n
\n
DELETE_IN_PROGRESS
\n
\n

The capacity provider is in the process of being deleted.

\n
\n
DELETE_COMPLETE
\n
\n

The capacity provider was successfully deleted and has an\n\t\t\t\t\t\t\tINACTIVE status.

\n
\n
DELETE_FAILED
\n
\n

The capacity provider can't be deleted. The update status reason provides\n\t\t\t\t\t\tfurther details about why the delete failed.

\n
\n
" + "smithy.api#documentation": "

The update status of the capacity provider. The following are the possible states that is\n\t\t\treturned.

\n
\n
DELETE_IN_PROGRESS
\n
\n

The capacity provider is in the process of being deleted.

\n
\n
DELETE_COMPLETE
\n
\n

The capacity provider was successfully deleted and has an INACTIVE\n\t\t\t\t\t\tstatus.

\n
\n
DELETE_FAILED
\n
\n

The capacity provider can't be deleted. The update status reason provides further details\n\t\t\t\t\t\tabout why the delete failed.

\n
\n
" } }, "updateStatusReason": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The update status reason. This provides further details about the update status for\n\t\t\tthe capacity provider.

" + "smithy.api#documentation": "

The update status reason. This provides further details about the update status for the capacity\n\t\t\tprovider.

" } }, "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the capacity provider to help you categorize and\n\t\t\torganize it. Each tag consists of a key and an optional value. You define both.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the capacity provider to help you categorize and organize it. Each tag\n\t\t\tconsists of a key and an optional value. You define both.

\n

The following basic restrictions apply to tags:

\n " } } }, @@ -1678,19 +1695,19 @@ "target": "com.amazonaws.ecs#CapacityProviderStrategyItemWeight", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The weight value designates the relative percentage of the total\n\t\t\tnumber of tasks launched that should use the specified capacity provider. The\n\t\t\t\tweight value is taken into consideration after the base\n\t\t\tvalue, if defined, is satisfied.

\n

If no weight value is specified, the default value of 0 is\n\t\t\tused. When multiple capacity providers are specified within a capacity provider\n\t\t\tstrategy, at least one of the capacity providers must have a weight value greater than\n\t\t\tzero and any capacity providers with a weight of 0 can't be used to place\n\t\t\ttasks. If you specify multiple capacity providers in a strategy that all have a weight\n\t\t\tof 0, any RunTask or CreateService actions using\n\t\t\tthe capacity provider strategy will fail.

\n

An example scenario for using weights is defining a strategy that contains two\n\t\t\tcapacity providers and both have a weight of 1, then when the\n\t\t\t\tbase is satisfied, the tasks will be split evenly across the two\n\t\t\tcapacity providers. Using that same logic, if you specify a weight of 1 for\n\t\t\t\tcapacityProviderA and a weight of 4 for\n\t\t\t\tcapacityProviderB, then for every one task that's run using\n\t\t\t\tcapacityProviderA, four tasks would use\n\t\t\t\tcapacityProviderB.

" + "smithy.api#documentation": "

The weight value designates the relative percentage of the total number of tasks\n\t\t\tlaunched that should use the specified capacity provider. The weight value is taken into\n\t\t\tconsideration after the base value, if defined, is satisfied.

\n

If no weight value is specified, the default value of 0 is used. When\n\t\t\tmultiple capacity providers are specified within a capacity provider strategy, at least one of the\n\t\t\tcapacity providers must have a weight value greater than zero and any capacity providers with a weight\n\t\t\tof 0 can't be used to place tasks. If you specify multiple capacity providers in a\n\t\t\tstrategy that all have a weight of 0, any RunTask or\n\t\t\t\tCreateService actions using the capacity provider strategy will fail.

\n

An example scenario for using weights is defining a strategy that contains two capacity providers and\n\t\t\tboth have a weight of 1, then when the base is satisfied, the tasks will be\n\t\t\tsplit evenly across the two capacity providers. Using that same logic, if you specify a weight of\n\t\t\t\t1 for capacityProviderA and a weight of 4 for\n\t\t\t\tcapacityProviderB, then for every one task that's run using\n\t\t\t\tcapacityProviderA, four tasks would use\n\t\t\tcapacityProviderB.

" } }, "base": { "target": "com.amazonaws.ecs#CapacityProviderStrategyItemBase", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The base value designates how many tasks, at a minimum, to run on\n\t\t\tthe specified capacity provider. Only one capacity provider in a capacity provider\n\t\t\tstrategy can have a base defined. If no value is specified, the\n\t\t\tdefault value of 0 is used.

" + "smithy.api#documentation": "

The base value designates how many tasks, at a minimum, to run on the specified\n\t\t\tcapacity provider. Only one capacity provider in a capacity provider strategy can have a\n\t\t\t\tbase defined. If no value is specified, the default value of 0 is\n\t\t\tused.

" } } }, "traits": { - "smithy.api#documentation": "

The details of a capacity provider strategy. A capacity provider strategy can be set\n\t\t\twhen using the RunTaskor CreateCluster APIs or as\n\t\t\tthe default capacity provider strategy for a cluster with the CreateCluster API.

\n

Only capacity providers that are already associated with a cluster and have an\n\t\t\t\tACTIVE or UPDATING status can be used in a capacity\n\t\t\tprovider strategy. The PutClusterCapacityProviders API is used to\n\t\t\tassociate a capacity provider with a cluster.

\n

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New Auto Scaling group capacity providers can be\n\t\t\tcreated with the CreateClusterCapacityProvider API operation.

\n

To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be used in a\n\t\t\tcapacity provider strategy.

\n

With FARGATE_SPOT, you can run interruption tolerant tasks at a rate that's\n\t\t\tdiscounted compared to the FARGATE price. FARGATE_SPOT runs\n\t\t\ttasks on spare compute capacity. When Amazon Web Services needs the capacity back, your tasks are\n\t\t\tinterrupted with a two-minute warning. FARGATE_SPOT supports Linux tasks\n\t\t\twith the X86_64 architecture on platform version 1.3.0 or later.\n\t\t\t\tFARGATE_SPOT supports Linux tasks with the ARM64 architecture on\n\t\t\tplatform version 1.4.0 or later.

\n

A capacity provider strategy may contain a maximum of 6 capacity providers.

" + "smithy.api#documentation": "

The details of a capacity provider strategy. A capacity provider strategy can be set when using the\n\t\t\t\tRunTaskor\n\t\t\t\tCreateCluster APIs or as the default capacity provider strategy for a cluster with the\n\t\t\t\tCreateCluster API.

\n

Only capacity providers that are already associated with a cluster and have an ACTIVE or\n\t\t\t\tUPDATING status can be used in a capacity provider strategy. The PutClusterCapacityProviders API is used to associate a capacity provider with a\n\t\t\tcluster.

\n

If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must already\n\t\t\tbe created. New Auto Scaling group capacity providers can be created with the CreateClusterCapacityProvider API operation.

\n

To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are available to all\n\t\t\taccounts and only need to be associated with a cluster to be used in a capacity provider\n\t\t\tstrategy.

\n

With FARGATE_SPOT, you can run interruption tolerant tasks at a rate that's discounted\n\t\t\tcompared to the FARGATE price. FARGATE_SPOT runs tasks on spare compute\n\t\t\tcapacity. When Amazon Web Services needs the capacity back, your tasks are interrupted with a two-minute warning.\n\t\t\t\tFARGATE_SPOT supports Linux tasks with the X86_64 architecture on platform version\n\t\t\t1.3.0 or later. FARGATE_SPOT supports Linux tasks with the ARM64 architecture on platform\n\t\t\tversion 1.4.0 or later.

\n

A capacity provider strategy may contain a maximum of 6 capacity providers.

" } }, "com.amazonaws.ecs#CapacityProviderStrategyItemBase": { @@ -1771,7 +1788,7 @@ } }, "traits": { - "smithy.api#documentation": "

These errors are usually caused by a client action. This client action might be using\n\t\t\tan action or resource on behalf of a user that doesn't have permissions to use the\n\t\t\taction or resource. Or, it might be specifying an identifier that isn't valid.

\n

The following list includes additional causes for the error:

\n ", + "smithy.api#documentation": "

These errors are usually caused by a client action. This client action might be using an action or\n\t\t\tresource on behalf of a user that doesn't have permissions to use the action or resource. Or, it might\n\t\t\tbe specifying an identifier that isn't valid.

\n

The following list includes additional causes for the error:

\n ", "smithy.api#error": "client" } }, @@ -1781,7 +1798,7 @@ "clusterArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) that identifies the cluster. For more information about the ARN\n\t\t\tformat, see Amazon Resource Name (ARN) in the Amazon ECS Developer Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) that identifies the cluster. For more information about the ARN format, see Amazon Resource Name (ARN)\n\t\t\tin the Amazon ECS Developer Guide.

" } }, "clusterName": { @@ -1799,14 +1816,14 @@ "status": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The status of the cluster. The following are the possible states that are\n\t\t\treturned.

\n
\n
ACTIVE
\n
\n

The cluster is ready to accept tasks and if applicable you can register\n\t\t\t\t\t\tcontainer instances with the cluster.

\n
\n
PROVISIONING
\n
\n

The cluster has capacity providers that are associated with it and the\n\t\t\t\t\t\tresources needed for the capacity provider are being created.

\n
\n
DEPROVISIONING
\n
\n

The cluster has capacity providers that are associated with it and the\n\t\t\t\t\t\tresources needed for the capacity provider are being deleted.

\n
\n
FAILED
\n
\n

The cluster has capacity providers that are associated with it and the\n\t\t\t\t\t\tresources needed for the capacity provider have failed to create.

\n
\n
INACTIVE
\n
\n

The cluster has been deleted. Clusters with an INACTIVE\n\t\t\t\t\t\tstatus may remain discoverable in your account for a period of time.\n\t\t\t\t\t\tHowever, this behavior is subject to change in the future. We don't\n\t\t\t\t\t\trecommend that you rely on INACTIVE clusters persisting.

\n
\n
" + "smithy.api#documentation": "

The status of the cluster. The following are the possible states that are returned.

\n
\n
ACTIVE
\n
\n

The cluster is ready to accept tasks and if applicable you can register container\n\t\t\t\t\t\tinstances with the cluster.

\n
\n
PROVISIONING
\n
\n

The cluster has capacity providers that are associated with it and the resources needed\n\t\t\t\t\t\tfor the capacity provider are being created.

\n
\n
DEPROVISIONING
\n
\n

The cluster has capacity providers that are associated with it and the resources needed\n\t\t\t\t\t\tfor the capacity provider are being deleted.

\n
\n
FAILED
\n
\n

The cluster has capacity providers that are associated with it and the resources needed\n\t\t\t\t\t\tfor the capacity provider have failed to create.

\n
\n
INACTIVE
\n
\n

The cluster has been deleted. Clusters with an INACTIVE status may remain\n\t\t\t\t\t\tdiscoverable in your account for a period of time. However, this behavior is subject to\n\t\t\t\t\t\tchange in the future. We don't recommend that you rely on INACTIVE clusters\n\t\t\t\t\t\tpersisting.

\n
\n
" } }, "registeredContainerInstancesCount": { "target": "com.amazonaws.ecs#Integer", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The number of container instances registered into the cluster. This includes container\n\t\t\tinstances in both ACTIVE and DRAINING status.

" + "smithy.api#documentation": "

The number of container instances registered into the cluster. This includes container instances in\n\t\t\tboth ACTIVE and DRAINING status.

" } }, "runningTasksCount": { @@ -1827,25 +1844,25 @@ "target": "com.amazonaws.ecs#Integer", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The number of services that are running on the cluster in an ACTIVE\n\t\t\tstate. You can view these services with PListServices.

" + "smithy.api#documentation": "

The number of services that are running on the cluster in an ACTIVE state. You can view\n\t\t\tthese services with PListServices.

" } }, "statistics": { "target": "com.amazonaws.ecs#Statistics", "traits": { - "smithy.api#documentation": "

Additional information about your clusters that are separated by launch type. They\n\t\t\tinclude the following:

\n " + "smithy.api#documentation": "

Additional information about your clusters that are separated by launch type. They include the\n\t\t\tfollowing:

\n " } }, "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the cluster to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value. You define both.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the cluster to help you categorize and organize them. Each tag\n\t\t\tconsists of a key and an optional value. You define both.

\n

The following basic restrictions apply to tags:

\n " } }, "settings": { "target": "com.amazonaws.ecs#ClusterSettings", "traits": { - "smithy.api#documentation": "

The settings for the cluster. This parameter indicates whether CloudWatch Container Insights\n\t\t\tis on or off for a cluster.

" + "smithy.api#documentation": "

The settings for the cluster. This parameter indicates whether CloudWatch Container Insights is on or off\n\t\t\tfor a cluster.

" } }, "capacityProviders": { @@ -1857,19 +1874,19 @@ "defaultCapacityProviderStrategy": { "target": "com.amazonaws.ecs#CapacityProviderStrategy", "traits": { - "smithy.api#documentation": "

The default capacity provider strategy for the cluster. When services or tasks are run\n\t\t\tin the cluster with no launch type or capacity provider strategy specified, the default\n\t\t\tcapacity provider strategy is used.

" + "smithy.api#documentation": "

The default capacity provider strategy for the cluster. When services or tasks are run in the cluster\n\t\t\twith no launch type or capacity provider strategy specified, the default capacity provider strategy is\n\t\t\tused.

" } }, "attachments": { "target": "com.amazonaws.ecs#Attachments", "traits": { - "smithy.api#documentation": "

The resources attached to a cluster. When using a capacity provider with a cluster,\n\t\t\tthe capacity provider and associated resources are returned as cluster\n\t\t\tattachments.

" + "smithy.api#documentation": "

The resources attached to a cluster. When using a capacity provider with a cluster, the capacity\n\t\t\tprovider and associated resources are returned as cluster attachments.

" } }, "attachmentsStatus": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The status of the capacity providers associated with the cluster. The following are\n\t\t\tthe states that are returned.

\n
\n
UPDATE_IN_PROGRESS
\n
\n

The available capacity providers for the cluster are updating.

\n
\n
UPDATE_COMPLETE
\n
\n

The capacity providers have successfully updated.

\n
\n
UPDATE_FAILED
\n
\n

The capacity provider updates failed.

\n
\n
" + "smithy.api#documentation": "

The status of the capacity providers associated with the cluster. The following are the states that\n\t\t\tare returned.

\n
\n
UPDATE_IN_PROGRESS
\n
\n

The available capacity providers for the cluster are updating.

\n
\n
UPDATE_COMPLETE
\n
\n

The capacity providers have successfully updated.

\n
\n
UPDATE_FAILED
\n
\n

The capacity provider updates failed.

\n
\n
" } }, "serviceConnectDefaults": { @@ -1880,7 +1897,7 @@ } }, "traits": { - "smithy.api#documentation": "

A regional grouping of one or more container instances where you can run task\n\t\t\trequests. Each account receives a default cluster the first time you use the Amazon ECS\n\t\t\tservice, but you may also create other clusters. Clusters may contain more than one\n\t\t\tinstance type simultaneously.

" + "smithy.api#documentation": "

A regional grouping of one or more container instances where you can run task requests. Each account\n\t\t\treceives a default cluster the first time you use the Amazon ECS service, but you may also create other\n\t\t\tclusters. Clusters may contain more than one instance type simultaneously.

" } }, "com.amazonaws.ecs#ClusterConfiguration": { @@ -1914,7 +1931,7 @@ } }, "traits": { - "smithy.api#documentation": "

You can't delete a cluster that has registered container instances. First, deregister\n\t\t\tthe container instances before you can delete the cluster. For more information, see\n\t\t\tDeregisterContainerInstance.

", + "smithy.api#documentation": "

You can't delete a cluster that has registered container instances. First, deregister the container\n\t\t\tinstances before you can delete the cluster. For more information, see DeregisterContainerInstance.

", "smithy.api#error": "client" } }, @@ -1929,7 +1946,7 @@ } }, "traits": { - "smithy.api#documentation": "

You can't delete a cluster that contains services. First, update the service to reduce\n\t\t\tits desired task count to 0, and then delete the service. For more information, see\n\t\t\tUpdateService and DeleteService.

", + "smithy.api#documentation": "

You can't delete a cluster that contains services. First, update the service to reduce its desired\n\t\t\ttask count to 0, and then delete the service. For more information, see UpdateService and DeleteService.

", "smithy.api#error": "client" } }, @@ -2010,7 +2027,7 @@ "namespace": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The namespace name or full Amazon Resource Name (ARN) of the Cloud Map namespace. When you create a service and don't specify a\n\t\t\tService Connect configuration, this namespace is used.

" + "smithy.api#documentation": "

The namespace name or full Amazon Resource Name (ARN) of the Cloud Map namespace. When you create a service and don't specify a Service Connect\n\t\t\tconfiguration, this namespace is used.

" } } }, @@ -2024,7 +2041,7 @@ "namespace": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The namespace name or full Amazon Resource Name (ARN) of the Cloud Map namespace that's used when you create a service and don't specify\n\t\t\ta Service Connect configuration. The namespace name can include up to 1024 characters.\n\t\t\tThe name is case-sensitive. The name can't include hyphens (-), tilde (~), greater than\n\t\t\t(>), less than (<), or slash (/).

\n

If you enter an existing namespace name or ARN, then that namespace will be used.\n\t\t\tAny namespace type is supported. The namespace must be in this account and this Amazon Web Services\n\t\t\tRegion.

\n

If you enter a new name, a Cloud Map namespace will be created. Amazon ECS creates a\n\t\t\tCloud Map namespace with the \"API calls\" method of instance discovery only. This instance\n\t\t\tdiscovery method is the \"HTTP\" namespace type in the Command Line Interface. Other types of instance\n\t\t\tdiscovery aren't used by Service Connect.

\n

If you update the cluster with an empty string \"\" for the namespace name,\n\t\t\tthe cluster configuration for Service Connect is removed. Note that the namespace will\n\t\t\tremain in Cloud Map and must be deleted separately.

\n

For more information about Cloud Map, see Working with Services\n\t\t\tin the Cloud Map Developer Guide.

", + "smithy.api#documentation": "

The namespace name or full Amazon Resource Name (ARN) of the Cloud Map namespace that's used when you create a service and don't specify a\n\t\t\tService Connect configuration. The namespace name can include up to 1024 characters. The name is\n\t\t\tcase-sensitive. The name can't include hyphens (-), tilde (~), greater than (>), less than (<),\n\t\t\tor slash (/).

\n

If you enter an existing namespace name or ARN, then that namespace will be used. Any namespace\n\t\t\ttype is supported. The namespace must be in this account and this Amazon Web Services Region.

\n

If you enter a new name, a Cloud Map namespace will be created. Amazon ECS creates a Cloud Map namespace\n\t\t\twith the \"API calls\" method of instance discovery only. This instance discovery method is the \"HTTP\"\n\t\t\tnamespace type in the Command Line Interface. Other types of instance discovery aren't used by\n\t\t\tService Connect.

\n

If you update the cluster with an empty string \"\" for the namespace name, the cluster\n\t\t\tconfiguration for Service Connect is removed. Note that the namespace will remain in Cloud Map and must\n\t\t\tbe deleted separately.

\n

For more information about Cloud Map, see Working with Services in the\n\t\t\tCloud Map Developer Guide.

", "smithy.api#required": {} } } @@ -2045,12 +2062,12 @@ "value": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The value to set for the cluster setting. The supported values are\n\t\t\t\tenabled and disabled.

\n

If you set name to containerInsights and value\n\t\t\tto enabled, CloudWatch Container Insights will be on for the cluster, otherwise\n\t\t\tit will be off unless the containerInsights account setting is turned on.\n\t\t\tIf a cluster value is specified, it will override the containerInsights\n\t\t\tvalue set with PutAccountSetting or PutAccountSettingDefault.

" + "smithy.api#documentation": "

The value to set for the cluster setting. The supported values are enabled and\n\t\t\t\tdisabled.

\n

If you set name to containerInsights and value to\n\t\t\t\tenabled, CloudWatch Container Insights will be on for the cluster, otherwise it will be off\n\t\t\tunless the containerInsights account setting is turned on. If a cluster value is\n\t\t\tspecified, it will override the containerInsights value set with PutAccountSetting or PutAccountSettingDefault.

" } } }, "traits": { - "smithy.api#documentation": "

The settings to use when creating a cluster. This parameter is used to turn on CloudWatch\n\t\t\tContainer Insights for a cluster.

" + "smithy.api#documentation": "

The settings to use when creating a cluster. This parameter is used to turn on CloudWatch Container\n\t\t\tInsights for a cluster.

" } }, "com.amazonaws.ecs#ClusterSettingName": { @@ -2111,7 +2128,7 @@ "resourceIds": { "target": "com.amazonaws.ecs#ResourceIds", "traits": { - "smithy.api#documentation": "

The existing task ARNs which are already associated with the\n\t\t\t\tclientToken.

" + "smithy.api#documentation": "

The existing task ARNs which are already associated with the clientToken.

" } }, "message": { @@ -2122,7 +2139,7 @@ } }, "traits": { - "smithy.api#documentation": "

The RunTask request could not be processed due to conflicts. The provided\n\t\t\t\tclientToken is already in use with a different RunTask\n\t\t\trequest. The resourceIds are the existing task ARNs which are already\n\t\t\tassociated with the clientToken.

\n

To fix this issue:

\n ", + "smithy.api#documentation": "

The RunTask request could not be processed due to conflicts. The provided\n\t\t\t\tclientToken is already in use with a different RunTask request. The\n\t\t\t\tresourceIds are the existing task ARNs which are already associated with the\n\t\t\t\tclientToken.

\n

To fix this issue:

\n ", "smithy.api#error": "client" } }, @@ -2197,7 +2214,7 @@ "reason": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

A short (255 max characters) human-readable string to provide additional details about\n\t\t\ta running or stopped container.

" + "smithy.api#documentation": "

A short (255 max characters) human-readable string to provide additional details about a running or\n\t\t\tstopped container.

" } }, "networkBindings": { @@ -2215,7 +2232,7 @@ "healthStatus": { "target": "com.amazonaws.ecs#HealthStatus", "traits": { - "smithy.api#documentation": "

The health status of the container. If health checks aren't configured for this\n\t\t\tcontainer in its task definition, then it reports the health status as\n\t\t\t\tUNKNOWN.

" + "smithy.api#documentation": "

The health status of the container. If health checks aren't configured for this container in its task\n\t\t\tdefinition, then it reports the health status as UNKNOWN.

" } }, "managedAgents": { @@ -2227,7 +2244,7 @@ "cpu": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The number of CPU units set for the container. The value is 0 if no value\n\t\t\twas specified in the container definition when the task definition was\n\t\t\tregistered.

" + "smithy.api#documentation": "

The number of CPU units set for the container. The value is 0 if no value was specified\n\t\t\tin the container definition when the task definition was registered.

" } }, "memory": { @@ -2288,13 +2305,13 @@ "name": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The name of a container. If you're linking multiple containers together in a task\n\t\t\tdefinition, the name of one container can be entered in the\n\t\t\t\tlinks of another container to connect the containers.\n\t\t\tUp to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This parameter maps to name in the docker container create command and the\n\t\t\t\t--name option to docker\n\t\t\trun.

" + "smithy.api#documentation": "

The name of a container. If you're linking multiple containers together in a task definition, the\n\t\t\t\tname of one container can be entered in the links of another container to\n\t\t\tconnect the containers. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This parameter maps to name in the docker\n\t\t\tcontainer create command and the --name option to docker run.

" } }, "image": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The image used to start a container. This string is passed directly to the Docker\n\t\t\tdaemon. By default, images in the Docker Hub registry are available. Other repositories\n\t\t\tare specified with either \n repository-url/image:tag\n or \n repository-url/image@digest\n . Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to Image in the docker container create command and the\n\t\t\t\tIMAGE parameter of docker\n\t\t\t\trun.

\n " + "smithy.api#documentation": "

The image used to start a container. This string is passed directly to the Docker daemon. By default,\n\t\t\timages in the Docker Hub registry are available. Other repositories are specified with either \n repository-url/image:tag\n or \n repository-url/image@digest\n . Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to Image in the docker container create\n\t\t\tcommand and the IMAGE parameter of docker run.

\n " } }, "repositoryCredentials": { @@ -2307,234 +2324,240 @@ "target": "com.amazonaws.ecs#Integer", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The number of cpu units reserved for the container. This parameter maps\n\t\t\tto CpuShares in the docker container create commandand the --cpu-shares option to docker run.

\n

This field is optional for tasks using the Fargate launch type, and the\n\t\t\tonly requirement is that the total amount of CPU reserved for all containers within a\n\t\t\ttask be lower than the task-level cpu value.

\n \n

You can determine the number of CPU units that are available per EC2 instance type\n\t\t\t\tby multiplying the vCPUs listed for that instance type on the Amazon EC2 Instances detail page\n\t\t\t\tby 1,024.

\n
\n

Linux containers share unallocated CPU units with other containers on the container\n\t\t\tinstance with the same ratio as their allocated amount. For example, if you run a\n\t\t\tsingle-container task on a single-core instance type with 512 CPU units specified for\n\t\t\tthat container, and that's the only task running on the container instance, that\n\t\t\tcontainer could use the full 1,024 CPU unit share at any given time. However, if you\n\t\t\tlaunched another copy of the same task on that container instance, each task is\n\t\t\tguaranteed a minimum of 512 CPU units when needed. Moreover, each container could float\n\t\t\tto higher CPU usage if the other container was not using it. If both tasks were 100%\n\t\t\tactive all of the time, they would be limited to 512 CPU units.

\n

On Linux container instances, the Docker daemon on the container instance uses the CPU\n\t\t\tvalue to calculate the relative CPU share ratios for running containers. The minimum valid CPU share value\n\t\t\tthat the Linux kernel allows is 2, and the\n\t\t\tmaximum valid CPU share value that the Linux kernel allows is 262144. However, the CPU parameter isn't required, and you\n\t\t\tcan use CPU values below 2 or above 262144 in your container definitions. For CPU values below 2\n\t\t\t(including null) or above 262144, the behavior varies based on your Amazon ECS container agent\n\t\t\tversion:

\n \n

On Windows container instances, the CPU limit is enforced as an absolute limit, or a\n\t\t\tquota. Windows containers only have access to the specified amount of CPU that's\n\t\t\tdescribed in the task definition. A null or zero CPU value is passed to Docker as\n\t\t\t\t0, which Windows interprets as 1% of one CPU.

" + "smithy.api#documentation": "

The number of cpu units reserved for the container. This parameter maps to\n\t\t\t\tCpuShares in the docker container create commandand the --cpu-shares\n\t\t\toption to docker run.

\n

This field is optional for tasks using the Fargate launch type, and the only\n\t\t\trequirement is that the total amount of CPU reserved for all containers within a task be lower than the\n\t\t\ttask-level cpu value.

\n \n

You can determine the number of CPU units that are available per EC2 instance type by multiplying\n\t\t\t\tthe vCPUs listed for that instance type on the Amazon EC2 Instances detail page by 1,024.

\n
\n

Linux containers share unallocated CPU units with other containers on the container instance with the\n\t\t\tsame ratio as their allocated amount. For example, if you run a single-container task on a single-core\n\t\t\tinstance type with 512 CPU units specified for that container, and that's the only task running on the\n\t\t\tcontainer instance, that container could use the full 1,024 CPU unit share at any given time. However,\n\t\t\tif you launched another copy of the same task on that container instance, each task is guaranteed a\n\t\t\tminimum of 512 CPU units when needed. Moreover, each container could float to higher CPU usage if the\n\t\t\tother container was not using it. If both tasks were 100% active all of the time, they would be limited\n\t\t\tto 512 CPU units.

\n

On Linux container instances, the Docker daemon on the container instance uses the CPU value to\n\t\t\tcalculate the relative CPU share ratios for running containers. The minimum valid CPU share value that\n\t\t\tthe Linux kernel allows is 2, and the maximum valid CPU share value that the Linux kernel allows is\n\t\t\t262144. However, the CPU parameter isn't required, and you can use CPU values below 2 or above 262144\n\t\t\tin your container definitions. For CPU values below 2 (including null) or above 262144, the behavior\n\t\t\tvaries based on your Amazon ECS container agent version:

\n \n

On Windows container instances, the CPU limit is enforced as an absolute limit, or a quota. Windows\n\t\t\tcontainers only have access to the specified amount of CPU that's described in the task definition. A\n\t\t\tnull or zero CPU value is passed to Docker as 0, which Windows interprets as 1% of one\n\t\t\tCPU.

" } }, "memory": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The amount (in MiB) of memory to present to the container. If your container attempts\n\t\t\tto exceed the memory specified here, the container is killed. The total amount of memory\n\t\t\treserved for all containers within a task must be lower than the task\n\t\t\t\tmemory value, if one is specified. This parameter maps to\n\t\t\tMemory in the docker container create command and the --memory option to docker run.

\n

If using the Fargate launch type, this parameter is optional.

\n

If using the EC2 launch type, you must specify either a task-level\n\t\t\tmemory value or a container-level memory value. If you specify both a container-level\n\t\t\t\tmemory and memoryReservation value, memory\n\t\t\tmust be greater than memoryReservation. If you specify\n\t\t\t\tmemoryReservation, then that value is subtracted from the available\n\t\t\tmemory resources for the container instance where the container is placed. Otherwise,\n\t\t\tthe value of memory is used.

\n

The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory for a\n\t\t\tcontainer. So, don't specify less than 6 MiB of memory for your containers.

\n

The Docker 19.03.13-ce or earlier daemon reserves a minimum of 4 MiB of memory for a\n\t\t\tcontainer. So, don't specify less than 4 MiB of memory for your containers.

" + "smithy.api#documentation": "

The amount (in MiB) of memory to present to the container. If your container attempts to exceed the\n\t\t\tmemory specified here, the container is killed. The total amount of memory reserved for all containers\n\t\t\twithin a task must be lower than the task memory value, if one is specified. This\n\t\t\tparameter maps to Memory in the docker container create command and the\n\t\t\t\t--memory option to docker run.

\n

If using the Fargate launch type, this parameter is optional.

\n

If using the EC2 launch type, you must specify either a task-level memory value or a\n\t\t\tcontainer-level memory value. If you specify both a container-level memory and\n\t\t\t\tmemoryReservation value, memory must be greater than\n\t\t\t\tmemoryReservation. If you specify memoryReservation, then that value is\n\t\t\tsubtracted from the available memory resources for the container instance where the container is\n\t\t\tplaced. Otherwise, the value of memory is used.

\n

The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory for a container. So, don't\n\t\t\tspecify less than 6 MiB of memory for your containers.

\n

The Docker 19.03.13-ce or earlier daemon reserves a minimum of 4 MiB of memory for a container. So,\n\t\t\tdon't specify less than 4 MiB of memory for your containers.

" } }, "memoryReservation": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The soft limit (in MiB) of memory to reserve for the container. When system memory is\n\t\t\tunder heavy contention, Docker attempts to keep the container memory to this soft limit.\n\t\t\tHowever, your container can consume more memory when it needs to, up to either the hard\n\t\t\tlimit specified with the memory parameter (if applicable), or all of the\n\t\t\tavailable memory on the container instance, whichever comes first. This parameter maps\n\t\t\tto MemoryReservation in the docker container create command and the --memory-reservation option to docker run.

\n

If a task-level memory value is not specified, you must specify a non-zero integer for\n\t\t\tone or both of memory or memoryReservation in a container\n\t\t\tdefinition. If you specify both, memory must be greater than\n\t\t\t\tmemoryReservation. If you specify memoryReservation, then\n\t\t\tthat value is subtracted from the available memory resources for the container instance\n\t\t\twhere the container is placed. Otherwise, the value of memory is\n\t\t\tused.

\n

For example, if your container normally uses 128 MiB of memory, but occasionally\n\t\t\tbursts to 256 MiB of memory for short periods of time, you can set a\n\t\t\t\tmemoryReservation of 128 MiB, and a memory hard limit of\n\t\t\t300 MiB. This configuration would allow the container to only reserve 128 MiB of memory\n\t\t\tfrom the remaining resources on the container instance, but also allow the container to\n\t\t\tconsume more memory resources when needed.

\n

The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory for a\n\t\t\tcontainer. So, don't specify less than 6 MiB of memory for your containers.

\n

The Docker 19.03.13-ce or earlier daemon reserves a minimum of 4 MiB of memory for a\n\t\t\tcontainer. So, don't specify less than 4 MiB of memory for your containers.

" + "smithy.api#documentation": "

The soft limit (in MiB) of memory to reserve for the container. When system memory is under heavy\n\t\t\tcontention, Docker attempts to keep the container memory to this soft limit. However, your container\n\t\t\tcan consume more memory when it needs to, up to either the hard limit specified with the\n\t\t\t\tmemory parameter (if applicable), or all of the available memory on the container\n\t\t\tinstance, whichever comes first. This parameter maps to MemoryReservation in the docker\n\t\t\tcontainer create command and the --memory-reservation option to docker run.

\n

If a task-level memory value is not specified, you must specify a non-zero integer for one or both of\n\t\t\t\tmemory or memoryReservation in a container definition. If you specify\n\t\t\tboth, memory must be greater than memoryReservation. If you specify\n\t\t\t\tmemoryReservation, then that value is subtracted from the available memory resources\n\t\t\tfor the container instance where the container is placed. Otherwise, the value of memory\n\t\t\tis used.

\n

For example, if your container normally uses 128 MiB of memory, but occasionally bursts to 256 MiB of\n\t\t\tmemory for short periods of time, you can set a memoryReservation of 128 MiB, and a\n\t\t\t\tmemory hard limit of 300 MiB. This configuration would allow the container to only\n\t\t\treserve 128 MiB of memory from the remaining resources on the container instance, but also allow the\n\t\t\tcontainer to consume more memory resources when needed.

\n

The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory for a container. So, don't\n\t\t\tspecify less than 6 MiB of memory for your containers.

\n

The Docker 19.03.13-ce or earlier daemon reserves a minimum of 4 MiB of memory for a container. So,\n\t\t\tdon't specify less than 4 MiB of memory for your containers.

" } }, "links": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The links parameter allows containers to communicate with each other\n\t\t\twithout the need for port mappings. This parameter is only supported if the network mode\n\t\t\tof a task definition is bridge. The name:internalName\n\t\t\tconstruct is analogous to name:alias in Docker links.\n\t\t\tUp to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.. This parameter maps to Links in the docker container create command and the\n\t\t\t\t--link option to docker\n\t\t\trun.

\n \n

This parameter is not supported for Windows containers.

\n
\n \n

Containers that are collocated on a single container instance may be able to\n\t\t\t\tcommunicate with each other without requiring links or host port mappings. Network\n\t\t\t\tisolation is achieved on the container instance using security groups and VPC\n\t\t\t\tsettings.

\n
" + "smithy.api#documentation": "

The links parameter allows containers to communicate with each other without the need\n\t\t\tfor port mappings. This parameter is only supported if the network mode of a task definition is\n\t\t\t\tbridge. The name:internalName construct is analogous to\n\t\t\t\tname:alias in Docker links. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.. This parameter maps to\n\t\t\t\tLinks in the docker container create command and the --link option to\n\t\t\tdocker run.

\n \n

This parameter is not supported for Windows containers.

\n
\n \n

Containers that are collocated on a single container instance may be able to communicate with\n\t\t\t\teach other without requiring links or host port mappings. Network isolation is achieved on the\n\t\t\t\tcontainer instance using security groups and VPC settings.

\n
" } }, "portMappings": { "target": "com.amazonaws.ecs#PortMappingList", "traits": { - "smithy.api#documentation": "

The list of port mappings for the container. Port mappings allow containers to access\n\t\t\tports on the host container instance to send or receive traffic.

\n

For task definitions that use the awsvpc network mode, only specify the\n\t\t\t\tcontainerPort. The hostPort can be left blank or it must\n\t\t\tbe the same value as the containerPort.

\n

Port mappings on Windows use the NetNAT gateway address rather than\n\t\t\t\tlocalhost. There's no loopback for port mappings on Windows, so you\n\t\t\tcan't access a container's mapped port from the host itself.

\n

This parameter maps to PortBindings in the\n\t\t\tthe docker container create command and the\n\t\t\t\t--publish option to docker\n\t\t\t\trun. If the network mode of a task definition is set to none,\n\t\t\tthen you can't specify port mappings. If the network mode of a task definition is set to\n\t\t\t\thost, then host ports must either be undefined or they must match the\n\t\t\tcontainer port in the port mapping.

\n \n

After a task reaches the RUNNING status, manual and automatic host\n\t\t\t\tand container port assignments are visible in the Network\n\t\t\t\t\tBindings section of a container description for a selected task in\n\t\t\t\tthe Amazon ECS console. The assignments are also visible in the\n\t\t\t\tnetworkBindings section DescribeTasks\n\t\t\t\tresponses.

\n
" + "smithy.api#documentation": "

The list of port mappings for the container. Port mappings allow containers to access ports on the\n\t\t\thost container instance to send or receive traffic.

\n

For task definitions that use the awsvpc network mode, only specify the\n\t\t\t\tcontainerPort. The hostPort can be left blank or it must be the same\n\t\t\tvalue as the containerPort.

\n

Port mappings on Windows use the NetNAT gateway address rather than\n\t\t\t\tlocalhost. There's no loopback for port mappings on Windows, so you can't access a\n\t\t\tcontainer's mapped port from the host itself.

\n

This parameter maps to PortBindings in the the docker container create command and the\n\t\t\t\t--publish option to docker run. If the network mode of a task definition is set to\n\t\t\t\tnone, then you can't specify port mappings. If the network mode of a task definition\n\t\t\tis set to host, then host ports must either be undefined or they must match the container\n\t\t\tport in the port mapping.

\n \n

After a task reaches the RUNNING status, manual and automatic host and container\n\t\t\t\tport assignments are visible in the Network Bindings section of a\n\t\t\t\tcontainer description for a selected task in the Amazon ECS console. The assignments are also visible in\n\t\t\t\tthe networkBindings section DescribeTasks\n\t\t\t\tresponses.

\n
" } }, "essential": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

If the essential parameter of a container is marked as true,\n\t\t\tand that container fails or stops for any reason, all other containers that are part of\n\t\t\tthe task are stopped. If the essential parameter of a container is marked\n\t\t\tas false, its failure doesn't affect the rest of the containers in a task.\n\t\t\tIf this parameter is omitted, a container is assumed to be essential.

\n

All tasks must have at least one essential container. If you have an application\n\t\t\tthat's composed of multiple containers, group containers that are used for a common\n\t\t\tpurpose into components, and separate the different components into multiple task\n\t\t\tdefinitions. For more information, see Application\n\t\t\t\tArchitecture in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

If the essential parameter of a container is marked as true, and that\n\t\t\tcontainer fails or stops for any reason, all other containers that are part of the task are stopped. If\n\t\t\tthe essential parameter of a container is marked as false, its failure\n\t\t\tdoesn't affect the rest of the containers in a task. If this parameter is omitted, a container is\n\t\t\tassumed to be essential.

\n

All tasks must have at least one essential container. If you have an application that's composed of\n\t\t\tmultiple containers, group containers that are used for a common purpose into components, and separate\n\t\t\tthe different components into multiple task definitions. For more information, see Application Architecture in the Amazon Elastic Container Service Developer Guide.

" } }, "restartPolicy": { "target": "com.amazonaws.ecs#ContainerRestartPolicy", "traits": { - "smithy.api#documentation": "

The restart policy for a container. When you set up a restart policy, Amazon ECS can restart the container without needing to replace the\n\t\t\ttask. For more information, see Restart individual containers in Amazon ECS tasks with container restart policies in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The restart policy for a container. When you set up a restart policy, Amazon ECS can restart the container\n\t\t\twithout needing to replace the task. For more information, see Restart individual containers\n\t\t\t\tin Amazon ECS tasks with container restart policies in the Amazon Elastic Container Service Developer Guide.

" } }, "entryPoint": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "\n

Early versions of the Amazon ECS container agent don't properly handle\n\t\t\t\t\tentryPoint parameters. If you have problems using\n\t\t\t\t\tentryPoint, update your container agent or enter your commands and\n\t\t\t\targuments as command array items instead.

\n
\n

The entry point that's passed to the container. This parameter maps to\n\t\t\tEntrypoint in the docker container create command and the --entrypoint option to docker run.

" + "smithy.api#documentation": "\n

Early versions of the Amazon ECS container agent don't properly handle entryPoint\n\t\t\t\tparameters. If you have problems using entryPoint, update your container agent or\n\t\t\t\tenter your commands and arguments as command array items instead.

\n
\n

The entry point that's passed to the container. This parameter maps to Entrypoint in the\n\t\t\tdocker container create command and the --entrypoint option to docker run.

" } }, "command": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The command that's passed to the container. This parameter maps to Cmd in\n\t\t\tthe docker container create command and the\n\t\t\t\tCOMMAND parameter to docker\n\t\t\t\trun. If there are multiple arguments, each\n\t\t\targument is a separated string in the array.

" + "smithy.api#documentation": "

The command that's passed to the container. This parameter maps to Cmd in the docker\n\t\t\tcontainer create command and the COMMAND parameter to docker run. If there are multiple\n\t\t\targuments, each argument is a separated string in the array.

" } }, "environment": { "target": "com.amazonaws.ecs#EnvironmentVariables", "traits": { - "smithy.api#documentation": "

The environment variables to pass to a container. This parameter maps to\n\t\t\tEnv in the docker container create command and the --env option to docker run.

\n \n

We don't recommend that you use plaintext environment variables for sensitive\n\t\t\t\tinformation, such as credential data.

\n
" + "smithy.api#documentation": "

The environment variables to pass to a container. This parameter maps to Env in the\n\t\t\tdocker container create command and the --env option to docker run.

\n \n

We don't recommend that you use plaintext environment variables for sensitive information, such\n\t\t\t\tas credential data.

\n
" } }, "environmentFiles": { "target": "com.amazonaws.ecs#EnvironmentFiles", "traits": { - "smithy.api#documentation": "

A list of files containing the environment variables to pass to a container. This\n\t\t\tparameter maps to the --env-file option to docker run.

\n

You can specify up to ten environment files. The file must have a .env\n\t\t\tfile extension. Each line in an environment file contains an environment variable in\n\t\t\t\tVARIABLE=VALUE format. Lines beginning with # are treated\n\t\t\tas comments and are ignored.

\n

If there are environment variables specified using the environment\n\t\t\tparameter in a container definition, they take precedence over the variables contained\n\t\t\twithin an environment file. If multiple environment files are specified that contain the\n\t\t\tsame variable, they're processed from the top down. We recommend that you use unique\n\t\t\tvariable names. For more information, see Specifying Environment\n\t\t\t\tVariables in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

A list of files containing the environment variables to pass to a container. This parameter maps to\n\t\t\tthe --env-file option to docker run.

\n

You can specify up to ten environment files. The file must have a .env file extension.\n\t\t\tEach line in an environment file contains an environment variable in VARIABLE=VALUE\n\t\t\tformat. Lines beginning with # are treated as comments and are ignored.

\n

If there are environment variables specified using the environment parameter in a\n\t\t\tcontainer definition, they take precedence over the variables contained within an environment file. If\n\t\t\tmultiple environment files are specified that contain the same variable, they're processed from the top\n\t\t\tdown. We recommend that you use unique variable names. For more information, see Specifying\n\t\t\t\tEnvironment Variables in the Amazon Elastic Container Service Developer Guide.

" } }, "mountPoints": { "target": "com.amazonaws.ecs#MountPointList", "traits": { - "smithy.api#documentation": "

The mount points for data volumes in your container.

\n

This parameter maps to Volumes in the docker container create command and the --volume option to docker run.

\n

Windows containers can mount whole directories on the same drive as\n\t\t\t\t$env:ProgramData. Windows containers can't mount directories on a\n\t\t\tdifferent drive, and mount point can't be across drives.

" + "smithy.api#documentation": "

The mount points for data volumes in your container.

\n

This parameter maps to Volumes in the docker container create command and the\n\t\t\t\t--volume option to docker run.

\n

Windows containers can mount whole directories on the same drive as $env:ProgramData.\n\t\t\tWindows containers can't mount directories on a different drive, and mount point can't be across\n\t\t\tdrives.

" } }, "volumesFrom": { "target": "com.amazonaws.ecs#VolumeFromList", "traits": { - "smithy.api#documentation": "

Data volumes to mount from another container. This parameter maps to\n\t\t\tVolumesFrom in the docker container create command and the --volumes-from option to docker run.

" + "smithy.api#documentation": "

Data volumes to mount from another container. This parameter maps to VolumesFrom in the\n\t\t\tdocker container create command and the --volumes-from option to docker run.

" } }, "linuxParameters": { "target": "com.amazonaws.ecs#LinuxParameters", "traits": { - "smithy.api#documentation": "

Linux-specific modifications that are applied to the container, such as Linux kernel\n\t\t\tcapabilities. For more information see KernelCapabilities.

\n \n

This parameter is not supported for Windows containers.

\n
" + "smithy.api#documentation": "

Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.\n\t\t\tFor more information see KernelCapabilities.

\n \n

This parameter is not supported for Windows containers.

\n
" } }, "secrets": { "target": "com.amazonaws.ecs#SecretList", "traits": { - "smithy.api#documentation": "

The secrets to pass to the container. For more information, see Specifying\n\t\t\t\tSensitive Data in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The secrets to pass to the container. For more information, see Specifying Sensitive\n\t\t\t\tData in the Amazon Elastic Container Service Developer Guide.

" } }, "dependsOn": { "target": "com.amazonaws.ecs#ContainerDependencies", "traits": { - "smithy.api#documentation": "

The dependencies defined for container startup and shutdown. A container can contain\n\t\t\tmultiple dependencies on other containers in a task definition. When a dependency is\n\t\t\tdefined for container startup, for container shutdown it is reversed.

\n

For tasks using the EC2 launch type, the container instances require at\n\t\t\tleast version 1.26.0 of the container agent to turn on container dependencies. However,\n\t\t\twe recommend using the latest container agent version. For information about checking\n\t\t\tyour agent version and updating to the latest version, see Updating the Amazon ECS\n\t\t\t\tContainer Agent in the Amazon Elastic Container Service Developer Guide. If you're using an Amazon ECS-optimized Linux AMI,\n\t\t\tyour instance needs at least version 1.26.0-1 of the ecs-init package. If\n\t\t\tyour container instances are launched from version 20190301 or later, then\n\t\t\tthey contain the required versions of the container agent and ecs-init. For\n\t\t\tmore information, see Amazon ECS-optimized Linux AMI\n\t\t\tin the Amazon Elastic Container Service Developer Guide.

\n

For tasks using the Fargate launch type, the task or service requires\n\t\t\tthe following platforms:

\n " + "smithy.api#documentation": "

The dependencies defined for container startup and shutdown. A container can contain multiple\n\t\t\tdependencies on other containers in a task definition. When a dependency is defined for container\n\t\t\tstartup, for container shutdown it is reversed.

\n

For tasks using the EC2 launch type, the container instances require at least version\n\t\t\t1.26.0 of the container agent to turn on container dependencies. However, we recommend using the latest\n\t\t\tcontainer agent version. For information about checking your agent version and updating to the latest\n\t\t\tversion, see Updating the Amazon ECS Container Agent in the Amazon Elastic Container Service Developer Guide. If you're using an\n\t\t\tAmazon ECS-optimized Linux AMI, your instance needs at least version 1.26.0-1 of the ecs-init package. If\n\t\t\tyour container instances are launched from version 20190301 or later, then they contain\n\t\t\tthe required versions of the container agent and ecs-init. For more information, see\n\t\t\t\tAmazon ECS-optimized Linux AMI in the Amazon Elastic Container Service Developer Guide.

\n

For tasks using the Fargate launch type, the task or service requires the following\n\t\t\tplatforms:

\n " } }, "startTimeout": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

Time duration (in seconds) to wait before giving up on resolving dependencies for a\n\t\t\tcontainer. For example, you specify two containers in a task definition with containerA\n\t\t\thaving a dependency on containerB reaching a COMPLETE,\n\t\t\tSUCCESS, or HEALTHY status. If a startTimeout\n\t\t\tvalue is specified for containerB and it doesn't reach the desired status within that\n\t\t\ttime then containerA gives up and not start. This results in the task transitioning to a\n\t\t\t\tSTOPPED state.

\n \n

When the ECS_CONTAINER_START_TIMEOUT container agent configuration\n\t\t\t\tvariable is used, it's enforced independently from this start timeout value.

\n
\n

For tasks using the Fargate launch type, the task or service requires\n\t\t\tthe following platforms:

\n \n

For tasks using the EC2 launch type, your container instances require at\n\t\t\tleast version 1.26.0 of the container agent to use a container start\n\t\t\ttimeout value. However, we recommend using the latest container agent version. For\n\t\t\tinformation about checking your agent version and updating to the latest version, see\n\t\t\t\tUpdating the Amazon ECS\n\t\t\t\tContainer Agent in the Amazon Elastic Container Service Developer Guide. If you're using an Amazon ECS-optimized Linux AMI,\n\t\t\tyour instance needs at least version 1.26.0-1 of the ecs-init\n\t\t\tpackage. If your container instances are launched from version 20190301 or\n\t\t\tlater, then they contain the required versions of the container agent and\n\t\t\t\tecs-init. For more information, see Amazon ECS-optimized Linux AMI\n\t\t\tin the Amazon Elastic Container Service Developer Guide.

\n

The valid values for Fargate are 2-120 seconds.

" + "smithy.api#documentation": "

Time duration (in seconds) to wait before giving up on resolving dependencies for a container. For\n\t\t\texample, you specify two containers in a task definition with containerA having a dependency on\n\t\t\tcontainerB reaching a COMPLETE, SUCCESS, or HEALTHY status. If a\n\t\t\t\tstartTimeout value is specified for containerB and it doesn't reach the desired status\n\t\t\twithin that time then containerA gives up and not start. This results in the task transitioning to a\n\t\t\t\tSTOPPED state.

\n \n

When the ECS_CONTAINER_START_TIMEOUT container agent configuration variable is used,\n\t\t\t\tit's enforced independently from this start timeout value.

\n
\n

For tasks using the Fargate launch type, the task or service requires the following\n\t\t\tplatforms:

\n \n

For tasks using the EC2 launch type, your container instances require at least version\n\t\t\t\t1.26.0 of the container agent to use a container start timeout value. However, we\n\t\t\trecommend using the latest container agent version. For information about checking your agent version\n\t\t\tand updating to the latest version, see Updating the Amazon ECS Container\n\t\t\t\tAgent in the Amazon Elastic Container Service Developer Guide. If you're using an Amazon ECS-optimized Linux AMI, your instance needs at\n\t\t\tleast version 1.26.0-1 of the ecs-init package. If your container instances\n\t\t\tare launched from version 20190301 or later, then they contain the required versions of\n\t\t\tthe container agent and ecs-init. For more information, see Amazon ECS-optimized Linux AMI in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

\n

The valid values for Fargate are 2-120 seconds.

" } }, "stopTimeout": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

Time duration (in seconds) to wait before the container is forcefully killed if it\n\t\t\tdoesn't exit normally on its own.

\n

For tasks using the Fargate launch type, the task or service requires\n\t\t\tthe following platforms:

\n \n

For tasks that use the Fargate launch type, the max stop timeout value is 120 seconds and if the parameter is not specified, the\n\t\t\tdefault value of 30 seconds is used.

\n

For tasks that use the EC2 launch type, if the stopTimeout\n\t\t\tparameter isn't specified, the value set for the Amazon ECS container agent configuration\n\t\t\tvariable ECS_CONTAINER_STOP_TIMEOUT is used. If neither the\n\t\t\t\tstopTimeout parameter or the ECS_CONTAINER_STOP_TIMEOUT\n\t\t\tagent configuration variable are set, then the default values of 30 seconds for Linux\n\t\t\tcontainers and 30 seconds on Windows containers are used. Your container instances\n\t\t\trequire at least version 1.26.0 of the container agent to use a container stop timeout\n\t\t\tvalue. However, we recommend using the latest container agent version. For information\n\t\t\tabout checking your agent version and updating to the latest version, see Updating the Amazon ECS Container Agent in the Amazon Elastic Container Service Developer Guide. If you're using\n\t\t\tan Amazon ECS-optimized Linux AMI, your instance needs at least version 1.26.0-1 of the\n\t\t\t\tecs-init package. If your container instances are launched from version\n\t\t\t\t20190301 or later, then they contain the required versions of the\n\t\t\tcontainer agent and ecs-init. For more information, see Amazon ECS-optimized Linux AMI in the Amazon Elastic Container Service Developer Guide.

\n

The valid values for Fargate are 2-120 seconds.

" + "smithy.api#documentation": "

Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit\n\t\t\tnormally on its own.

\n

For tasks using the Fargate launch type, the task or service requires the following\n\t\t\tplatforms:

\n \n

For tasks that use the Fargate launch type, the max stop timeout value is 120 seconds and if the\n\t\t\tparameter is not specified, the default value of 30 seconds is used.

\n

For tasks that use the EC2 launch type, if the stopTimeout parameter isn't\n\t\t\tspecified, the value set for the Amazon ECS container agent configuration variable\n\t\t\t\tECS_CONTAINER_STOP_TIMEOUT is used. If neither the stopTimeout parameter\n\t\t\tor the ECS_CONTAINER_STOP_TIMEOUT agent configuration variable are set, then the default\n\t\t\tvalues of 30 seconds for Linux containers and 30 seconds on Windows containers are used. Your container\n\t\t\tinstances require at least version 1.26.0 of the container agent to use a container stop timeout value.\n\t\t\tHowever, we recommend using the latest container agent version. For information about checking your\n\t\t\tagent version and updating to the latest version, see Updating the Amazon ECS Container\n\t\t\t\tAgent in the Amazon Elastic Container Service Developer Guide. If you're using an Amazon ECS-optimized Linux AMI, your instance needs at\n\t\t\tleast version 1.26.0-1 of the ecs-init package. If your container instances are launched\n\t\t\tfrom version 20190301 or later, then they contain the required versions of the container\n\t\t\tagent and ecs-init. For more information, see Amazon ECS-optimized Linux AMI in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

\n

The valid values for Fargate are 2-120 seconds.

" + } + }, + "versionConsistency": { + "target": "com.amazonaws.ecs#VersionConsistency", + "traits": { + "smithy.api#documentation": "

Specifies whether Amazon ECS will resolve the container image tag\n\t\t\tprovided in the container definition to an image digest. By default, the\n\t\t\tvalue is enabled. If you set the value for a container as\n\t\t\tdisabled, Amazon ECS will not resolve the provided container image tag\n\t\t\tto a digest and will use the original image URI specified in the container definition for deployment.\n\t\t\tFor more information about container image resolution, see Container image resolution in the Amazon ECS Developer Guide.

" } }, "hostname": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The hostname to use for your container. This parameter maps to Hostname\n\t\t\tin the docker container create command and the\n\t\t\t\t--hostname option to docker\n\t\t\t\trun.

\n \n

The hostname parameter is not supported if you're using the\n\t\t\t\t\tawsvpc network mode.

\n
" + "smithy.api#documentation": "

The hostname to use for your container. This parameter maps to Hostname in the docker\n\t\t\tcontainer create command and the --hostname option to docker run.

\n \n

The hostname parameter is not supported if you're using the awsvpc\n\t\t\t\tnetwork mode.

\n
" } }, "user": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The user to use inside the container. This parameter maps to User in the docker container create command and the\n\t\t\t\t--user option to docker\n\t\t\trun.

\n \n

When running tasks using the host network mode, don't run containers\n\t\t\t\tusing the root user (UID 0). We recommend using a non-root user for better\n\t\t\t\tsecurity.

\n
\n

You can specify the user using the following formats. If specifying a UID\n\t\t\tor GID, you must specify it as a positive integer.

\n \n \n

This parameter is not supported for Windows containers.

\n
" + "smithy.api#documentation": "

The user to use inside the container. This parameter maps to User in the docker\n\t\t\tcontainer create command and the --user option to docker run.

\n \n

When running tasks using the host network mode, don't run containers using the\n\t\t\t\troot user (UID 0). We recommend using a non-root user for better security.

\n
\n

You can specify the user using the following formats. If specifying a UID or GID, you\n\t\t\tmust specify it as a positive integer.

\n \n \n

This parameter is not supported for Windows containers.

\n
" } }, "workingDirectory": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The working directory to run commands inside the container in. This parameter maps to\n\t\t\tWorkingDir in the docker container create command and the --workdir option to docker run.

" + "smithy.api#documentation": "

The working directory to run commands inside the container in. This parameter maps to\n\t\t\t\tWorkingDir in the docker container create command and the --workdir\n\t\t\toption to docker run.

" } }, "disableNetworking": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

When this parameter is true, networking is off within the container. This parameter\n\t\t\tmaps to NetworkDisabled in the docker container create command.

\n \n

This parameter is not supported for Windows containers.

\n
" + "smithy.api#documentation": "

When this parameter is true, networking is off within the container. This parameter maps to\n\t\t\t\tNetworkDisabled in the docker container create command.

\n \n

This parameter is not supported for Windows containers.

\n
" } }, "privileged": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

When this parameter is true, the container is given elevated privileges on the host\n\t\t\tcontainer instance (similar to the root user). This parameter maps to\n\t\t\tPrivileged in the docker container create command and the --privileged option to docker run

\n \n

This parameter is not supported for Windows containers or tasks run on Fargate.

\n
" + "smithy.api#documentation": "

When this parameter is true, the container is given elevated privileges on the host container\n\t\t\tinstance (similar to the root user). This parameter maps to Privileged in the\n\t\t\tdocker container create command and the --privileged option to docker run

\n \n

This parameter is not supported for Windows containers or tasks run on Fargate.

\n
" } }, "readonlyRootFilesystem": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

When this parameter is true, the container is given read-only access to its root file\n\t\t\tsystem. This parameter maps to ReadonlyRootfs in the docker container create command and the\n\t\t\t\t--read-only option to docker\n\t\t\t\trun.

\n \n

This parameter is not supported for Windows containers.

\n
" + "smithy.api#documentation": "

When this parameter is true, the container is given read-only access to its root file system. This\n\t\t\tparameter maps to ReadonlyRootfs in the docker container create command and the\n\t\t\t\t--read-only option to docker run.

\n \n

This parameter is not supported for Windows containers.

\n
" } }, "dnsServers": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

A list of DNS servers that are presented to the container. This parameter maps to\n\t\t\tDns in the docker container create command and the --dns option to docker run.

\n \n

This parameter is not supported for Windows containers.

\n
" + "smithy.api#documentation": "

A list of DNS servers that are presented to the container. This parameter maps to Dns in\n\t\t\tthe docker container create command and the --dns option to docker run.

\n \n

This parameter is not supported for Windows containers.

\n
" } }, "dnsSearchDomains": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

A list of DNS search domains that are presented to the container. This parameter maps\n\t\t\tto DnsSearch in the docker container create command and the --dns-search option to docker run.

\n \n

This parameter is not supported for Windows containers.

\n
" + "smithy.api#documentation": "

A list of DNS search domains that are presented to the container. This parameter maps to\n\t\t\t\tDnsSearch in the docker container create command and the --dns-search\n\t\t\toption to docker run.

\n \n

This parameter is not supported for Windows containers.

\n
" } }, "extraHosts": { "target": "com.amazonaws.ecs#HostEntryList", "traits": { - "smithy.api#documentation": "

A list of hostnames and IP address mappings to append to the /etc/hosts\n\t\t\tfile on the container. This parameter maps to ExtraHosts in the docker container create command and the\n\t\t\t\t--add-host option to docker\n\t\t\t\trun.

\n \n

This parameter isn't supported for Windows containers or tasks that use the\n\t\t\t\t\tawsvpc network mode.

\n
" + "smithy.api#documentation": "

A list of hostnames and IP address mappings to append to the /etc/hosts file on the\n\t\t\tcontainer. This parameter maps to ExtraHosts in the docker container create command and\n\t\t\tthe --add-host option to docker run.

\n \n

This parameter isn't supported for Windows containers or tasks that use the awsvpc\n\t\t\t\tnetwork mode.

\n
" } }, "dockerSecurityOptions": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

A list of strings to provide custom configuration for multiple security systems. This field isn't valid for containers in tasks\n\t\t\tusing the Fargate launch type.

\n

For Linux tasks on EC2, this parameter can be used to reference custom\n\t\t\tlabels for SELinux and AppArmor multi-level security systems.

\n

For any tasks on EC2, this parameter can be used to reference a\n\t\t\tcredential spec file that configures a container for Active Directory authentication.\n\t\t\tFor more information, see Using gMSAs for Windows\n\t\t\t\tContainers and Using gMSAs for Linux\n\t\t\t\tContainers in the Amazon Elastic Container Service Developer Guide.

\n

This parameter maps to SecurityOpt in the docker container create command and the\n\t\t\t\t--security-opt option to docker\n\t\t\t\trun.

\n \n

The Amazon ECS container agent running on a container instance must register with the\n\t\t\t\t\tECS_SELINUX_CAPABLE=true or ECS_APPARMOR_CAPABLE=true\n\t\t\t\tenvironment variables before containers placed on that instance can use these\n\t\t\t\tsecurity options. For more information, see Amazon ECS Container\n\t\t\t\t\tAgent Configuration in the Amazon Elastic Container Service Developer Guide.

\n
\n

Valid values: \"no-new-privileges\" | \"apparmor:PROFILE\" | \"label:value\" |\n\t\t\t\"credentialspec:CredentialSpecFilePath\"

" + "smithy.api#documentation": "

A list of strings to provide custom configuration for multiple security systems. This field isn't\n\t\t\tvalid for containers in tasks using the Fargate launch type.

\n

For Linux tasks on EC2, this parameter can be used to reference custom labels for\n\t\t\tSELinux and AppArmor multi-level security systems.

\n

For any tasks on EC2, this parameter can be used to reference a credential spec file\n\t\t\tthat configures a container for Active Directory authentication. For more information, see Using gMSAs for\n\t\t\t\tWindows Containers and Using gMSAs for Linux Containers in\n\t\t\tthe Amazon Elastic Container Service Developer Guide.

\n

This parameter maps to SecurityOpt in the docker container create command and the\n\t\t\t\t--security-opt option to docker run.

\n \n

The Amazon ECS container agent running on a container instance must register with the\n\t\t\t\t\tECS_SELINUX_CAPABLE=true or ECS_APPARMOR_CAPABLE=true environment\n\t\t\t\tvariables before containers placed on that instance can use these security options. For more\n\t\t\t\tinformation, see Amazon ECS Container Agent\n\t\t\t\t\tConfiguration in the Amazon Elastic Container Service Developer Guide.

\n
\n

Valid values: \"no-new-privileges\" | \"apparmor:PROFILE\" | \"label:value\" |\n\t\t\t\"credentialspec:CredentialSpecFilePath\"

" } }, "interactive": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

When this parameter is true, you can deploy containerized applications\n\t\t\tthat require stdin or a tty to be allocated. This parameter\n\t\t\tmaps to OpenStdin in the docker container create command and the --interactive option to docker run.

" + "smithy.api#documentation": "

When this parameter is true, you can deploy containerized applications that require\n\t\t\t\tstdin or a tty to be allocated. This parameter maps to\n\t\t\t\tOpenStdin in the docker container create command and the --interactive\n\t\t\toption to docker run.

" } }, "pseudoTerminal": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

When this parameter is true, a TTY is allocated. This parameter maps to\n\t\t\tTty in the docker container create command and the --tty option to docker run.

" + "smithy.api#documentation": "

When this parameter is true, a TTY is allocated. This parameter maps to Tty\n\t\t\tin the docker container create command and the --tty option to docker run.

" } }, "dockerLabels": { "target": "com.amazonaws.ecs#DockerLabelsMap", "traits": { - "smithy.api#documentation": "

A key/value map of labels to add to the container. This parameter maps to\n\t\t\tLabels in the docker container create command and the --label option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'\n

" + "smithy.api#documentation": "

A key/value map of labels to add to the container. This parameter maps to Labels in the\n\t\t\tdocker container create command and the --label option to docker run.\n\t\t\tThis parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'\n

" } }, "ulimits": { "target": "com.amazonaws.ecs#UlimitList", "traits": { - "smithy.api#documentation": "

A list of ulimits to set in the container. If a ulimit value\n\t\t\tis specified in a task definition, it overrides the default values set by Docker. This\n\t\t\tparameter maps to Ulimits in the docker container create command and the --ulimit option to docker run. Valid naming values are displayed\n\t\t\tin the Ulimit data type.

\n

Amazon ECS tasks hosted on Fargate use the default\n\t\t\t\t\t\t\tresource limit values set by the operating system with the exception of\n\t\t\t\t\t\t\tthe nofile resource limit parameter which Fargate\n\t\t\t\t\t\t\toverrides. The nofile resource limit sets a restriction on\n\t\t\t\t\t\t\tthe number of open files that a container can use. The default\n\t\t\t\t\t\t\t\tnofile soft limit is 65535 and the default hard limit\n\t\t\t\t\t\t\tis 65535.

\n

This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'\n

\n \n

This parameter is not supported for Windows containers.

\n
" + "smithy.api#documentation": "

A list of ulimits to set in the container. If a ulimit value is specified\n\t\t\tin a task definition, it overrides the default values set by Docker. This parameter maps to\n\t\t\t\tUlimits in the docker container create command and the --ulimit option to\n\t\t\tdocker run. Valid naming values are displayed in the Ulimit data type.

\n

Amazon ECS tasks hosted on Fargate use the default\n\t\t\t\t\t\t\tresource limit values set by the operating system with the exception of\n\t\t\t\t\t\t\tthe nofile resource limit parameter which Fargate\n\t\t\t\t\t\t\toverrides. The nofile resource limit sets a restriction on\n\t\t\t\t\t\t\tthe number of open files that a container can use. The default\n\t\t\t\t\t\t\t\tnofile soft limit is 65535 and the default hard limit\n\t\t\t\t\t\t\tis 65535.

\n

This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'\n

\n \n

This parameter is not supported for Windows containers.

\n
" } }, "logConfiguration": { "target": "com.amazonaws.ecs#LogConfiguration", "traits": { - "smithy.api#documentation": "

The log configuration specification for the container.

\n

This parameter maps to LogConfig in the docker container create command and the\n\t\t\t\t--log-driver option to docker\n\t\t\t\trun. By default, containers use the same logging driver that the Docker\n\t\t\tdaemon uses. However the container can use a different logging driver than the Docker\n\t\t\tdaemon by specifying a log driver with this parameter in the container definition. To\n\t\t\tuse a different logging driver for a container, the log system must be configured\n\t\t\tproperly on the container instance (or on a different log server for remote logging\n\t\t\toptions).

\n \n

Amazon ECS currently supports a subset of the logging drivers available to the Docker\n\t\t\t\tdaemon (shown in the LogConfiguration data type). Additional log\n\t\t\t\tdrivers may be available in future releases of the Amazon ECS container agent.

\n
\n

This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'\n

\n \n

The Amazon ECS container agent running on a container instance must register the\n\t\t\t\tlogging drivers available on that instance with the\n\t\t\t\t\tECS_AVAILABLE_LOGGING_DRIVERS environment variable before\n\t\t\t\tcontainers placed on that instance can use these log configuration options. For more\n\t\t\t\tinformation, see Amazon ECS Container\n\t\t\t\t\tAgent Configuration in the Amazon Elastic Container Service Developer Guide.

\n
" + "smithy.api#documentation": "

The log configuration specification for the container.

\n

This parameter maps to LogConfig in the docker container create command and the\n\t\t\t\t--log-driver option to docker run. By default, containers use the same logging driver\n\t\t\tthat the Docker daemon uses. However the container can use a different logging driver than the Docker\n\t\t\tdaemon by specifying a log driver with this parameter in the container definition. To use a different\n\t\t\tlogging driver for a container, the log system must be configured properly on the container instance\n\t\t\t(or on a different log server for remote logging options).

\n \n

Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon (shown in\n\t\t\t\tthe LogConfiguration data type). Additional log drivers may be available in future\n\t\t\t\treleases of the Amazon ECS container agent.

\n
\n

This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'\n

\n \n

The Amazon ECS container agent running on a container instance must register the logging drivers\n\t\t\t\tavailable on that instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment variable\n\t\t\t\tbefore containers placed on that instance can use these log configuration options. For more\n\t\t\t\tinformation, see Amazon ECS Container Agent\n\t\t\t\t\tConfiguration in the Amazon Elastic Container Service Developer Guide.

\n
" } }, "healthCheck": { "target": "com.amazonaws.ecs#HealthCheck", "traits": { - "smithy.api#documentation": "

The container health check command and associated configuration parameters for the\n\t\t\tcontainer. This parameter maps to HealthCheck in the docker container create command and the\n\t\t\t\tHEALTHCHECK parameter of docker\n\t\t\t\trun.

" + "smithy.api#documentation": "

The container health check command and associated configuration parameters for the container. This\n\t\t\tparameter maps to HealthCheck in the docker container create command and the\n\t\t\t\tHEALTHCHECK parameter of docker run.

" } }, "systemControls": { "target": "com.amazonaws.ecs#SystemControls", "traits": { - "smithy.api#documentation": "

A list of namespaced kernel parameters to set in the container. This parameter maps to\n\t\t\tSysctls in the docker container create command and the --sysctl option to docker run. For example, you can configure\n\t\t\t\tnet.ipv4.tcp_keepalive_time setting to maintain longer lived\n\t\t\tconnections.

" + "smithy.api#documentation": "

A list of namespaced kernel parameters to set in the container. This parameter maps to\n\t\t\t\tSysctls in the docker container create command and the --sysctl option to\n\t\t\tdocker run. For example, you can configure net.ipv4.tcp_keepalive_time setting to maintain\n\t\t\tlonger lived connections.

" } }, "resourceRequirements": { "target": "com.amazonaws.ecs#ResourceRequirements", "traits": { - "smithy.api#documentation": "

The type and amount of a resource to assign to a container. The only supported\n\t\t\tresource is a GPU.

" + "smithy.api#documentation": "

The type and amount of a resource to assign to a container. The only supported resource is a\n\t\t\tGPU.

" } }, "firelensConfiguration": { "target": "com.amazonaws.ecs#FirelensConfiguration", "traits": { - "smithy.api#documentation": "

The FireLens configuration for the container. This is used to specify and configure a\n\t\t\tlog router for container logs. For more information, see Custom Log Routing\n\t\t\tin the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The FireLens configuration for the container. This is used to specify and configure a log router for\n\t\t\tcontainer logs. For more information, see Custom Log Routing in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

" } }, "credentialSpecs": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

A list of ARNs in SSM or Amazon S3 to a credential spec (CredSpec) file that\n\t\t\tconfigures the container for Active Directory authentication. We recommend that you use\n\t\t\tthis parameter instead of the dockerSecurityOptions. The maximum number of\n\t\t\tARNs is 1.

\n

There are two formats for each ARN.

\n
\n
credentialspecdomainless:MyARN
\n
\n

You use credentialspecdomainless:MyARN to provide a\n\t\t\t\t\t\t\tCredSpec with an additional section for a secret in Secrets Manager.\n\t\t\t\t\t\tYou provide the login credentials to the domain in the secret.

\n

Each task that runs on any container instance can join different\n\t\t\t\t\t\tdomains.

\n

You can use this format without joining the container instance to a\n\t\t\t\t\t\tdomain.

\n
\n
credentialspec:MyARN
\n
\n

You use credentialspec:MyARN to provide a\n\t\t\t\t\t\t\tCredSpec for a single domain.

\n

You must join the container instance to the domain before you start any\n\t\t\t\t\t\ttasks that use this task definition.

\n
\n
\n

In both formats, replace MyARN with the ARN in SSM or Amazon S3.

\n

If you provide a credentialspecdomainless:MyARN, the\n\t\t\t\tcredspec must provide a ARN in Secrets Manager for a secret containing the\n\t\t\tusername, password, and the domain to connect to. For better security, the instance\n\t\t\tisn't joined to the domain for domainless authentication. Other applications on the\n\t\t\tinstance can't use the domainless credentials. You can use this parameter to run tasks\n\t\t\ton the same instance, even it the tasks need to join different domains. For more\n\t\t\tinformation, see Using gMSAs for Windows\n\t\t\t\tContainers and Using gMSAs for Linux\n\t\t\t\tContainers.

" + "smithy.api#documentation": "

A list of ARNs in SSM or Amazon S3 to a credential spec (CredSpec) file that configures the\n\t\t\tcontainer for Active Directory authentication. We recommend that you use this parameter instead of the\n\t\t\t\tdockerSecurityOptions. The maximum number of ARNs is 1.

\n

There are two formats for each ARN.

\n
\n
credentialspecdomainless:MyARN
\n
\n

You use credentialspecdomainless:MyARN to provide a CredSpec\n\t\t\t\t\t\twith an additional section for a secret in Secrets Manager. You provide the login credentials to the\n\t\t\t\t\t\tdomain in the secret.

\n

Each task that runs on any container instance can join different domains.

\n

You can use this format without joining the container instance to a domain.

\n
\n
credentialspec:MyARN
\n
\n

You use credentialspec:MyARN to provide a CredSpec for a single\n\t\t\t\t\t\tdomain.

\n

You must join the container instance to the domain before you start any tasks that use\n\t\t\t\t\t\tthis task definition.

\n
\n
\n

In both formats, replace MyARN with the ARN in SSM or Amazon S3.

\n

If you provide a credentialspecdomainless:MyARN, the credspec must provide\n\t\t\ta ARN in Secrets Manager for a secret containing the username, password, and the domain to connect to. For better\n\t\t\tsecurity, the instance isn't joined to the domain for domainless authentication. Other applications on\n\t\t\tthe instance can't use the domainless credentials. You can use this parameter to run tasks on the same\n\t\t\tinstance, even it the tasks need to join different domains. For more information, see Using gMSAs for\n\t\t\t\tWindows Containers and Using gMSAs for Linux\n\t\t\tContainers.

" } } }, "traits": { - "smithy.api#documentation": "

Container definitions are used in task definitions to describe the different\n\t\t\tcontainers that are launched as part of a task.

" + "smithy.api#documentation": "

Container definitions are used in task definitions to describe the different containers that are\n\t\t\tlaunched as part of a task.

" } }, "com.amazonaws.ecs#ContainerDefinitions": { @@ -2562,13 +2585,13 @@ "condition": { "target": "com.amazonaws.ecs#ContainerCondition", "traits": { - "smithy.api#documentation": "

The dependency condition of the container. The following are the available conditions\n\t\t\tand their behavior:

\n ", + "smithy.api#documentation": "

The dependency condition of the container. The following are the available conditions and their\n\t\t\tbehavior:

\n ", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

The dependencies defined for container startup and shutdown. A container can contain\n\t\t\tmultiple dependencies. When a dependency is defined for container startup, for container\n\t\t\tshutdown it is reversed.

\n

Your Amazon ECS container instances require at least version 1.26.0 of the container agent\n\t\t\tto use container dependencies. However, we recommend using the latest container agent\n\t\t\tversion. For information about checking your agent version and updating to the latest\n\t\t\tversion, see Updating the Amazon ECS\n\t\t\t\tContainer Agent in the Amazon Elastic Container Service Developer Guide. If you're using an Amazon ECS-optimized Linux AMI,\n\t\t\tyour instance needs at least version 1.26.0-1 of the ecs-init package. If\n\t\t\tyour container instances are launched from version 20190301 or later, then\n\t\t\tthey contain the required versions of the container agent and ecs-init. For\n\t\t\tmore information, see Amazon ECS-optimized Linux AMI\n\t\t\tin the Amazon Elastic Container Service Developer Guide.

\n \n

For tasks that use the Fargate launch type, the task or service\n\t\t\t\trequires the following platforms:

\n \n
\n

For more information about how to create a container dependency, see Container dependency in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The dependencies defined for container startup and shutdown. A container can contain multiple\n\t\t\tdependencies. When a dependency is defined for container startup, for container shutdown it is\n\t\t\treversed.

\n

Your Amazon ECS container instances require at least version 1.26.0 of the container agent to use\n\t\t\tcontainer dependencies. However, we recommend using the latest container agent version. For information\n\t\t\tabout checking your agent version and updating to the latest version, see Updating the Amazon ECS Container\n\t\t\t\tAgent in the Amazon Elastic Container Service Developer Guide. If you're using an Amazon ECS-optimized Linux AMI, your instance needs at\n\t\t\tleast version 1.26.0-1 of the ecs-init package. If your container instances are launched\n\t\t\tfrom version 20190301 or later, then they contain the required versions of the container\n\t\t\tagent and ecs-init. For more information, see Amazon ECS-optimized Linux AMI in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

\n \n

For tasks that use the Fargate launch type, the task or service requires the\n\t\t\t\tfollowing platforms:

\n \n
\n

For more information about how to create a container dependency, see Container dependency in the Amazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#ContainerImage": { @@ -2609,13 +2632,13 @@ "containerInstanceArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the container instance. For more information about the ARN format,\n\t\t\tsee Amazon Resource Name (ARN) in the Amazon ECS Developer Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the container instance. For more information about the ARN format, see Amazon Resource Name (ARN)\n\t\t\tin the Amazon ECS Developer Guide.

" } }, "ec2InstanceId": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The ID of the container instance. For Amazon EC2 instances, this value is the Amazon EC2\n\t\t\tinstance ID. For external instances, this value is the Amazon Web Services Systems Manager managed instance ID.

" + "smithy.api#documentation": "

The ID of the container instance. For Amazon EC2 instances, this value is the Amazon EC2 instance ID. For\n\t\t\texternal instances, this value is the Amazon Web Services Systems Manager managed instance ID.

" } }, "capacityProviderName": { @@ -2628,31 +2651,31 @@ "target": "com.amazonaws.ecs#Long", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The version counter for the container instance. Every time a container instance\n\t\t\texperiences a change that triggers a CloudWatch event, the version counter is\n\t\t\tincremented. If you're replicating your Amazon ECS container instance state with CloudWatch\n\t\t\tEvents, you can compare the version of a container instance reported by the Amazon ECS APIs\n\t\t\twith the version reported in CloudWatch Events for the container instance (inside the\n\t\t\t\tdetail object) to verify that the version in your event stream is\n\t\t\tcurrent.

" + "smithy.api#documentation": "

The version counter for the container instance. Every time a container instance experiences a change\n\t\t\tthat triggers a CloudWatch event, the version counter is incremented. If you're replicating your Amazon ECS\n\t\t\tcontainer instance state with CloudWatch Events, you can compare the version of a container instance\n\t\t\treported by the Amazon ECS APIs with the version reported in CloudWatch Events for the container instance\n\t\t\t(inside the detail object) to verify that the version in your event stream is\n\t\t\tcurrent.

" } }, "versionInfo": { "target": "com.amazonaws.ecs#VersionInfo", "traits": { - "smithy.api#documentation": "

The version information for the Amazon ECS container agent and Docker daemon running on the\n\t\t\tcontainer instance.

" + "smithy.api#documentation": "

The version information for the Amazon ECS container agent and Docker daemon running on the container\n\t\t\tinstance.

" } }, "remainingResources": { "target": "com.amazonaws.ecs#Resources", "traits": { - "smithy.api#documentation": "

For CPU and memory resource types, this parameter describes the remaining CPU and\n\t\t\tmemory that wasn't already allocated to tasks and is therefore available for new tasks.\n\t\t\tFor port resource types, this parameter describes the ports that were reserved by the\n\t\t\tAmazon ECS container agent (at instance registration time) and any task containers that have\n\t\t\treserved port mappings on the host (with the host or bridge\n\t\t\tnetwork mode). Any port that's not specified here is available for new tasks.

" + "smithy.api#documentation": "

For CPU and memory resource types, this parameter describes the remaining CPU and memory that wasn't\n\t\t\talready allocated to tasks and is therefore available for new tasks. For port resource types, this\n\t\t\tparameter describes the ports that were reserved by the Amazon ECS container agent (at instance registration\n\t\t\ttime) and any task containers that have reserved port mappings on the host (with the host\n\t\t\tor bridge network mode). Any port that's not specified here is available for new\n\t\t\ttasks.

" } }, "registeredResources": { "target": "com.amazonaws.ecs#Resources", "traits": { - "smithy.api#documentation": "

For CPU and memory resource types, this parameter describes the amount of each\n\t\t\tresource that was available on the container instance when the container agent\n\t\t\tregistered it with Amazon ECS. This value represents the total amount of CPU and memory that\n\t\t\tcan be allocated on this container instance to tasks. For port resource types, this\n\t\t\tparameter describes the ports that were reserved by the Amazon ECS container agent when it\n\t\t\tregistered the container instance with Amazon ECS.

" + "smithy.api#documentation": "

For CPU and memory resource types, this parameter describes the amount of each resource that was\n\t\t\tavailable on the container instance when the container agent registered it with Amazon ECS. This value\n\t\t\trepresents the total amount of CPU and memory that can be allocated on this container instance to\n\t\t\ttasks. For port resource types, this parameter describes the ports that were reserved by the Amazon ECS\n\t\t\tcontainer agent when it registered the container instance with Amazon ECS.

" } }, "status": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The status of the container instance. The valid values are REGISTERING,\n\t\t\t\tREGISTRATION_FAILED, ACTIVE, INACTIVE,\n\t\t\t\tDEREGISTERING, or DRAINING.

\n

If your account has opted in to the awsvpcTrunking account setting, then\n\t\t\tany newly registered container instance will transition to a REGISTERING\n\t\t\tstatus while the trunk elastic network interface is provisioned for the instance. If the\n\t\t\tregistration fails, the instance will transition to a REGISTRATION_FAILED\n\t\t\tstatus. You can describe the container instance and see the reason for failure in the\n\t\t\t\tstatusReason parameter. Once the container instance is terminated, the\n\t\t\tinstance transitions to a DEREGISTERING status while the trunk elastic\n\t\t\tnetwork interface is deprovisioned. The instance then transitions to an\n\t\t\t\tINACTIVE status.

\n

The ACTIVE status indicates that the container instance can accept tasks.\n\t\t\tThe DRAINING indicates that new tasks aren't placed on the container\n\t\t\tinstance and any service tasks running on the container instance are removed if\n\t\t\tpossible. For more information, see Container instance draining in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The status of the container instance. The valid values are REGISTERING,\n\t\t\t\tREGISTRATION_FAILED, ACTIVE, INACTIVE,\n\t\t\t\tDEREGISTERING, or DRAINING.

\n

If your account has opted in to the awsvpcTrunking account setting, then any newly\n\t\t\tregistered container instance will transition to a REGISTERING status while the trunk\n\t\t\telastic network interface is provisioned for the instance. If the registration fails, the instance will\n\t\t\ttransition to a REGISTRATION_FAILED status. You can describe the container instance and\n\t\t\tsee the reason for failure in the statusReason parameter. Once the container instance is\n\t\t\tterminated, the instance transitions to a DEREGISTERING status while the trunk elastic\n\t\t\tnetwork interface is deprovisioned. The instance then transitions to an INACTIVE\n\t\t\tstatus.

\n

The ACTIVE status indicates that the container instance can accept tasks. The\n\t\t\t\tDRAINING indicates that new tasks aren't placed on the container instance and any\n\t\t\tservice tasks running on the container instance are removed if possible. For more information, see\n\t\t\t\tContainer instance draining in the Amazon Elastic Container Service Developer Guide.

" } }, "statusReason": { @@ -2665,33 +2688,33 @@ "target": "com.amazonaws.ecs#Boolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

This parameter returns true if the agent is connected to Amazon ECS. An\n\t\t\tinstance with an agent that may be unhealthy or stopped return false. Only\n\t\t\tinstances connected to an agent can accept task placement requests.

" + "smithy.api#documentation": "

This parameter returns true if the agent is connected to Amazon ECS. An instance with an\n\t\t\tagent that may be unhealthy or stopped return false. Only instances connected to an agent\n\t\t\tcan accept task placement requests.

" } }, "runningTasksCount": { "target": "com.amazonaws.ecs#Integer", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The number of tasks on the container instance that have a desired status\n\t\t\t\t(desiredStatus) of RUNNING.

" + "smithy.api#documentation": "

The number of tasks on the container instance that have a desired status (desiredStatus)\n\t\t\tof RUNNING.

" } }, "pendingTasksCount": { "target": "com.amazonaws.ecs#Integer", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The number of tasks on the container instance that are in the PENDING\n\t\t\tstatus.

" + "smithy.api#documentation": "

The number of tasks on the container instance that are in the PENDING status.

" } }, "agentUpdateStatus": { "target": "com.amazonaws.ecs#AgentUpdateStatus", "traits": { - "smithy.api#documentation": "

The status of the most recent agent update. If an update wasn't ever requested, this\n\t\t\tvalue is NULL.

" + "smithy.api#documentation": "

The status of the most recent agent update. If an update wasn't ever requested, this value is\n\t\t\t\tNULL.

" } }, "attributes": { "target": "com.amazonaws.ecs#Attributes", "traits": { - "smithy.api#documentation": "

The attributes set for the container instance, either by the Amazon ECS container agent at\n\t\t\tinstance registration or manually with the PutAttributes\n\t\t\toperation.

" + "smithy.api#documentation": "

The attributes set for the container instance, either by the Amazon ECS container agent at instance\n\t\t\tregistration or manually with the PutAttributes operation.

" } }, "registeredAt": { @@ -2703,13 +2726,13 @@ "attachments": { "target": "com.amazonaws.ecs#Attachments", "traits": { - "smithy.api#documentation": "

The resources attached to a container instance, such as an elastic network\n\t\t\tinterface.

" + "smithy.api#documentation": "

The resources attached to a container instance, such as an elastic network interface.

" } }, "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the container instance to help you categorize and\n\t\t\torganize them. Each tag consists of a key and an optional value. You define both.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the container instance to help you categorize and organize them. Each\n\t\t\ttag consists of a key and an optional value. You define both.

\n

The following basic restrictions apply to tags:

\n " } }, "healthStatus": { @@ -2720,7 +2743,7 @@ } }, "traits": { - "smithy.api#documentation": "

An Amazon EC2 or External instance that's running the Amazon ECS agent and has been registered\n\t\t\twith a cluster.

" + "smithy.api#documentation": "

An Amazon EC2 or External instance that's running the Amazon ECS agent and has been registered with a\n\t\t\tcluster.

" } }, "com.amazonaws.ecs#ContainerInstanceField": { @@ -2752,13 +2775,13 @@ "overallStatus": { "target": "com.amazonaws.ecs#InstanceHealthCheckState", "traits": { - "smithy.api#documentation": "

The overall health status of the container instance. This is an aggregate status of\n\t\t\tall container instance health checks.

" + "smithy.api#documentation": "

The overall health status of the container instance. This is an aggregate status of all container\n\t\t\tinstance health checks.

" } }, "details": { "target": "com.amazonaws.ecs#InstanceHealthCheckResultList", "traits": { - "smithy.api#documentation": "

An array of objects representing the details of the container instance health\n\t\t\tstatus.

" + "smithy.api#documentation": "

An array of objects representing the details of the container instance health status.

" } } }, @@ -2813,54 +2836,54 @@ "name": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The name of the container that receives the override. This parameter is required if\n\t\t\tany override is specified.

" + "smithy.api#documentation": "

The name of the container that receives the override. This parameter is required if any override is\n\t\t\tspecified.

" } }, "command": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The command to send to the container that overrides the default command from the\n\t\t\tDocker image or the task definition. You must also specify a container name.

" + "smithy.api#documentation": "

The command to send to the container that overrides the default command from the Docker image or the\n\t\t\ttask definition. You must also specify a container name.

" } }, "environment": { "target": "com.amazonaws.ecs#EnvironmentVariables", "traits": { - "smithy.api#documentation": "

The environment variables to send to the container. You can add new environment\n\t\t\tvariables, which are added to the container at launch, or you can override the existing\n\t\t\tenvironment variables from the Docker image or the task definition. You must also\n\t\t\tspecify a container name.

" + "smithy.api#documentation": "

The environment variables to send to the container. You can add new environment variables, which are\n\t\t\tadded to the container at launch, or you can override the existing environment variables from the\n\t\t\tDocker image or the task definition. You must also specify a container name.

" } }, "environmentFiles": { "target": "com.amazonaws.ecs#EnvironmentFiles", "traits": { - "smithy.api#documentation": "

A list of files containing the environment variables to pass to a container, instead\n\t\t\tof the value from the container definition.

" + "smithy.api#documentation": "

A list of files containing the environment variables to pass to a container, instead of the value\n\t\t\tfrom the container definition.

" } }, "cpu": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The number of cpu units reserved for the container, instead of the\n\t\t\tdefault value from the task definition. You must also specify a container name.

" + "smithy.api#documentation": "

The number of cpu units reserved for the container, instead of the default value from\n\t\t\tthe task definition. You must also specify a container name.

" } }, "memory": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The hard limit (in MiB) of memory to present to the container, instead of the default\n\t\t\tvalue from the task definition. If your container attempts to exceed the memory\n\t\t\tspecified here, the container is killed. You must also specify a container name.

" + "smithy.api#documentation": "

The hard limit (in MiB) of memory to present to the container, instead of the default value from the\n\t\t\ttask definition. If your container attempts to exceed the memory specified here, the container is\n\t\t\tkilled. You must also specify a container name.

" } }, "memoryReservation": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The soft limit (in MiB) of memory to reserve for the container, instead of the default\n\t\t\tvalue from the task definition. You must also specify a container name.

" + "smithy.api#documentation": "

The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the\n\t\t\ttask definition. You must also specify a container name.

" } }, "resourceRequirements": { "target": "com.amazonaws.ecs#ResourceRequirements", "traits": { - "smithy.api#documentation": "

The type and amount of a resource to assign to a container, instead of the default\n\t\t\tvalue from the task definition. The only supported resource is a GPU.

" + "smithy.api#documentation": "

The type and amount of a resource to assign to a container, instead of the default value from the\n\t\t\ttask definition. The only supported resource is a GPU.

" } } }, "traits": { - "smithy.api#documentation": "

The overrides that are sent to a container. An empty container override can be passed\n\t\t\tin. An example of an empty container override is {\"containerOverrides\": [ ]\n\t\t\t\t}. If a non-empty container override is specified, the name\n\t\t\tparameter must be included.

\n

You can use Secrets Manager or Amazon Web Services Systems Manager Parameter Store to store the\n\t\t\tsensitive data. For more information, see Retrieve secrets through\n\t\t\t\tenvironment variables in the Amazon ECS Developer Guide.

" + "smithy.api#documentation": "

The overrides that are sent to a container. An empty container override can be passed in. An example\n\t\t\tof an empty container override is {\"containerOverrides\": [ ] }. If a non-empty container\n\t\t\toverride is specified, the name parameter must be included.

\n

You can use Secrets Manager or Amazon Web Services Systems Manager Parameter Store to store the sensitive data. For\n\t\t\tmore information, see Retrieve secrets through environment\n\t\t\t\tvariables in the Amazon ECS Developer Guide.

" } }, "com.amazonaws.ecs#ContainerOverrides": { @@ -2875,25 +2898,25 @@ "enabled": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

Specifies whether a restart policy is enabled for the\n\t\t\tcontainer.

", + "smithy.api#documentation": "

Specifies whether a restart policy is enabled for the container.

", "smithy.api#required": {} } }, "ignoredExitCodes": { "target": "com.amazonaws.ecs#IntegerList", "traits": { - "smithy.api#documentation": "

A list of exit codes that Amazon ECS will ignore and not attempt a restart on. You can specify a maximum of 50 container exit\n\t\t\tcodes. By default, Amazon ECS does not ignore\n\t\t\tany exit codes.

" + "smithy.api#documentation": "

A list of exit codes that Amazon ECS will ignore and not attempt a restart on. You can specify a maximum\n\t\t\tof 50 container exit codes. By default, Amazon ECS does not ignore any exit codes.

" } }, "restartAttemptPeriod": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

A period of time (in seconds) that the container must run for before a restart can be attempted. A container can be\n\t\t\trestarted only once every restartAttemptPeriod seconds. If a container isn't able to run for this time period and exits early, it will not be restarted. You can set a minimum\n\t\t\trestartAttemptPeriod of 60 seconds and a maximum restartAttemptPeriod of 1800 seconds.\n\t\t\tBy default, a container must run for 300 seconds before it can be restarted.

" + "smithy.api#documentation": "

A period of time (in seconds) that the container must run for before a restart can be attempted. A\n\t\t\tcontainer can be restarted only once every restartAttemptPeriod seconds. If a container\n\t\t\tisn't able to run for this time period and exits early, it will not be restarted. You can set a minimum\n\t\t\t\trestartAttemptPeriod of 60 seconds and a maximum restartAttemptPeriod of\n\t\t\t1800 seconds. By default, a container must run for 300 seconds before it can be restarted.

" } } }, "traits": { - "smithy.api#documentation": "

You can enable a restart policy for each container defined in your\n\t\t\ttask definition, to overcome transient failures faster and maintain task availability. When you\n\t\t\tenable a restart policy for a container, Amazon ECS can restart the container if it exits, without needing to replace\n\t\t\tthe task. For more information, see Restart individual containers\n\t\t\t\tin Amazon ECS tasks with container restart policies in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

You can enable a restart policy for each container defined in your task definition, to overcome\n\t\t\ttransient failures faster and maintain task availability. When you enable a restart policy for a\n\t\t\tcontainer, Amazon ECS can restart the container if it exits, without needing to replace the task. For more\n\t\t\tinformation, see Restart individual containers\n\t\t\t\tin Amazon ECS tasks with container restart policies in the Amazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#ContainerStateChange": { @@ -2920,7 +2943,7 @@ "exitCode": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The exit code for the container, if the state change is a result of the container\n\t\t\texiting.

" + "smithy.api#documentation": "

The exit code for the container, if the state change is a result of the container exiting.

" } }, "networkBindings": { @@ -2984,7 +3007,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new capacity provider. Capacity providers are associated with an Amazon ECS\n\t\t\tcluster and are used in capacity provider strategies to facilitate cluster auto\n\t\t\tscaling.

\n

Only capacity providers that use an Auto Scaling group can be created. Amazon ECS tasks on\n\t\t\tFargate use the FARGATE and FARGATE_SPOT capacity providers.\n\t\t\tThese providers are available to all accounts in the Amazon Web Services Regions that Fargate\n\t\t\tsupports.

" + "smithy.api#documentation": "

Creates a new capacity provider. Capacity providers are associated with an Amazon ECS cluster and are used\n\t\t\tin capacity provider strategies to facilitate cluster auto scaling.

\n

Only capacity providers that use an Auto Scaling group can be created. Amazon ECS tasks on Fargate use\n\t\t\tthe FARGATE and FARGATE_SPOT capacity providers. These providers are\n\t\t\tavailable to all accounts in the Amazon Web Services Regions that Fargate supports.

" } }, "com.amazonaws.ecs#CreateCapacityProviderRequest": { @@ -2993,7 +3016,7 @@ "name": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The name of the capacity provider. Up to 255 characters are allowed. They include\n\t\t\tletters (both upper and lowercase letters), numbers, underscores (_), and hyphens (-).\n\t\t\tThe name can't be prefixed with \"aws\", \"ecs\", or\n\t\t\t\t\"fargate\".

", + "smithy.api#documentation": "

The name of the capacity provider. Up to 255 characters are allowed. They include letters (both upper\n\t\t\tand lowercase letters), numbers, underscores (_), and hyphens (-). The name can't be prefixed with\n\t\t\t\t\"aws\", \"ecs\", or \"fargate\".

", "smithy.api#required": {} } }, @@ -3007,7 +3030,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the capacity provider to categorize and organize them\n\t\t\tmore conveniently. Each tag consists of a key and an optional value. You define both of\n\t\t\tthem.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the capacity provider to categorize and organize them more\n\t\t\tconveniently. Each tag consists of a key and an optional value. You define both of them.

\n

The following basic restrictions apply to tags:

\n " } } }, @@ -3052,7 +3075,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new Amazon ECS cluster. By default, your account receives a default\n\t\t\tcluster when you launch your first container instance. However, you can create your own\n\t\t\tcluster with a unique name.

\n \n

When you call the CreateCluster API operation, Amazon ECS attempts to\n\t\t\t\tcreate the Amazon ECS service-linked role for your account. This is so that it can manage\n\t\t\t\trequired resources in other Amazon Web Services services on your behalf. However, if the user that\n\t\t\t\tmakes the call doesn't have permissions to create the service-linked role, it isn't\n\t\t\t\tcreated. For more information, see Using\n\t\t\t\t\tservice-linked roles for Amazon ECS in the Amazon Elastic Container Service Developer Guide.

\n
", + "smithy.api#documentation": "

Creates a new Amazon ECS cluster. By default, your account receives a default cluster when\n\t\t\tyou launch your first container instance. However, you can create your own cluster with a unique\n\t\t\tname.

\n \n

When you call the CreateCluster API operation,\n\t\t\t\tAmazon ECS attempts to create the Amazon ECS service-linked role for your account. This is so that it can\n\t\t\t\tmanage required resources in other Amazon Web Services services on your behalf. However, if the user that makes\n\t\t\t\tthe call doesn't have permissions to create the service-linked role, it isn't created. For more\n\t\t\t\tinformation, see Using service-linked\n\t\t\t\t\troles for Amazon ECS in the Amazon Elastic Container Service Developer Guide.

\n
", "smithy.api#examples": [ { "title": "To create a new cluster", @@ -3081,19 +3104,19 @@ "clusterName": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The name of your cluster. If you don't specify a name for your cluster, you create a\n\t\t\tcluster that's named default. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.

" + "smithy.api#documentation": "

The name of your cluster. If you don't specify a name for your cluster, you create a cluster that's\n\t\t\tnamed default. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.

" } }, "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the cluster to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value. You define both.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the cluster to help you categorize and organize them. Each tag\n\t\t\tconsists of a key and an optional value. You define both.

\n

The following basic restrictions apply to tags:

\n " } }, "settings": { "target": "com.amazonaws.ecs#ClusterSettings", "traits": { - "smithy.api#documentation": "

The setting to use when creating a cluster. This parameter is used to turn on CloudWatch\n\t\t\tContainer Insights for a cluster. If this value is specified, it overrides the\n\t\t\tcontainerInsights value set with PutAccountSetting or\n\t\t\tPutAccountSettingDefault.

" + "smithy.api#documentation": "

The setting to use when creating a cluster. This parameter is used to turn on CloudWatch Container Insights\n\t\t\tfor a cluster. If this value is specified, it overrides the containerInsights value set\n\t\t\twith PutAccountSetting or PutAccountSettingDefault.

" } }, "configuration": { @@ -3105,13 +3128,13 @@ "capacityProviders": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The short name of one or more capacity providers to associate with the cluster. A\n\t\t\tcapacity provider must be associated with a cluster before it can be included as part of\n\t\t\tthe default capacity provider strategy of the cluster or used in a capacity provider\n\t\t\tstrategy when calling the CreateService or\n\t\t\t\tRunTask actions.

\n

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must be created but not associated with another cluster. New Auto Scaling group\n\t\t\tcapacity providers can be created with the CreateCapacityProvider API operation.

\n

To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

\n

The PutCapacityProvider API operation is used to update the list of available\n\t\t\tcapacity providers for a cluster after the cluster is created.

" + "smithy.api#documentation": "

The short name of one or more capacity providers to associate with the cluster. A capacity provider\n\t\t\tmust be associated with a cluster before it can be included as part of the default capacity provider\n\t\t\tstrategy of the cluster or used in a capacity provider strategy when calling the CreateService or RunTask actions.

\n

If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must be\n\t\t\tcreated but not associated with another cluster. New Auto Scaling group capacity providers can be\n\t\t\tcreated with the CreateCapacityProvider\n\t\t\tAPI operation.

\n

To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are available to all\n\t\t\taccounts and only need to be associated with a cluster to be used.

\n

The PutCapacityProvider API operation is used to update the list of available capacity\n\t\t\tproviders for a cluster after the cluster is created.

" } }, "defaultCapacityProviderStrategy": { "target": "com.amazonaws.ecs#CapacityProviderStrategy", "traits": { - "smithy.api#documentation": "

The capacity provider strategy to set as the default for the cluster. After a default\n\t\t\tcapacity provider strategy is set for a cluster, when you call the CreateService or RunTask APIs with no\n\t\t\tcapacity provider strategy or launch type specified, the default capacity provider\n\t\t\tstrategy for the cluster is used.

\n

If a default capacity provider strategy isn't defined for a cluster when it was\n\t\t\tcreated, it can be defined later with the PutClusterCapacityProviders\n\t\t\tAPI operation.

" + "smithy.api#documentation": "

The capacity provider strategy to set as the default for the cluster. After a default capacity\n\t\t\tprovider strategy is set for a cluster, when you call the CreateService or RunTask APIs with\n\t\t\tno capacity provider strategy or launch type specified, the default capacity provider strategy for the\n\t\t\tcluster is used.

\n

If a default capacity provider strategy isn't defined for a cluster when it was created, it can be\n\t\t\tdefined later with the PutClusterCapacityProviders API operation.

" } }, "serviceConnectDefaults": { @@ -3177,7 +3200,7 @@ } ], "traits": { - "smithy.api#documentation": "

Runs and maintains your desired number of tasks from a specified task definition. If\n\t\t\tthe number of tasks running in a service drops below the desiredCount,\n\t\t\tAmazon ECS runs another copy of the task in the specified cluster. To update an existing\n\t\t\tservice, see the UpdateService action.

\n \n

On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.

\n
\n \n

Amazon Elastic Inference (EI) is no longer available to customers.

\n
\n

In addition to maintaining the desired count of tasks in your service, you can\n\t\t\toptionally run your service behind one or more load balancers. The load balancers\n\t\t\tdistribute traffic across the tasks that are associated with the service. For more\n\t\t\tinformation, see Service load balancing in the Amazon Elastic Container Service Developer Guide.

\n

You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or\n\t\t\tupdating a service. volumeConfigurations is only supported for REPLICA\n\t\t\tservice and not DAEMON service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

\n

Tasks for services that don't use a load balancer are considered healthy if they're in\n\t\t\tthe RUNNING state. Tasks for services that use a load balancer are\n\t\t\tconsidered healthy if they're in the RUNNING state and are reported as\n\t\t\thealthy by the load balancer.

\n

There are two service scheduler strategies available:

\n \n

You can optionally specify a deployment configuration for your service. The deployment\n\t\t\tis initiated by changing properties. For example, the deployment might be initiated by\n\t\t\tthe task definition or by your desired count of a service. You can use UpdateService. The default value for a replica service for\n\t\t\t\tminimumHealthyPercent is 100%. The default value for a daemon service\n\t\t\tfor minimumHealthyPercent is 0%.

\n

If a service uses the ECS deployment controller, the minimum healthy\n\t\t\tpercent represents a lower limit on the number of tasks in a service that must remain in\n\t\t\tthe RUNNING state during a deployment. Specifically, it represents it as a\n\t\t\tpercentage of your desired number of tasks (rounded up to the nearest integer). This\n\t\t\thappens when any of your container instances are in the DRAINING state if\n\t\t\tthe service contains tasks using the EC2 launch type. Using this\n\t\t\tparameter, you can deploy without using additional cluster capacity. For example, if you\n\t\t\tset your service to have desired number of four tasks and a minimum healthy percent of\n\t\t\t50%, the scheduler might stop two existing tasks to free up cluster capacity before\n\t\t\tstarting two new tasks. If they're in the RUNNING state, tasks for services\n\t\t\tthat don't use a load balancer are considered healthy . If they're in the\n\t\t\t\tRUNNING state and reported as healthy by the load balancer, tasks for\n\t\t\tservices that do use a load balancer are considered healthy . The\n\t\t\tdefault value for minimum healthy percent is 100%.

\n

If a service uses the ECS deployment controller, the maximum percent parameter represents an upper limit on the\n\t\t\tnumber of tasks in a service that are allowed in the RUNNING or\n\t\t\t\tPENDING state during a deployment. Specifically, it represents it as a\n\t\t\tpercentage of the desired number of tasks (rounded down to the nearest integer). This\n\t\t\thappens when any of your container instances are in the DRAINING state if\n\t\t\tthe service contains tasks using the EC2 launch type. Using this\n\t\t\tparameter, you can define the deployment batch size. For example, if your service has a\n\t\t\tdesired number of four tasks and a maximum percent value of 200%, the scheduler may\n\t\t\tstart four new tasks before stopping the four older tasks (provided that the cluster\n\t\t\tresources required to do this are available). The default value for maximum percent is\n\t\t\t200%.

\n

If a service uses either the CODE_DEPLOY or EXTERNAL\n\t\t\tdeployment controller types and tasks that use the EC2 launch type, the\n\t\t\t\tminimum healthy percent and maximum percent values are used only to define the lower and upper limit\n\t\t\ton the number of the tasks in the service that remain in the RUNNING state.\n\t\t\tThis is while the container instances are in the DRAINING state. If the\n\t\t\ttasks in the service use the Fargate launch type, the minimum healthy\n\t\t\tpercent and maximum percent values aren't used. This is the case even if they're\n\t\t\tcurrently visible when describing your service.

\n

When creating a service that uses the EXTERNAL deployment controller, you\n\t\t\tcan specify only parameters that aren't controlled at the task set level. The only\n\t\t\trequired parameter is the service name. You control your services using the CreateTaskSet. For more information, see Amazon ECS deployment types in the Amazon Elastic Container Service Developer Guide.

\n

When the service scheduler launches new tasks, it determines task placement. For\n\t\t\tinformation about task placement and task placement strategies, see Amazon ECS\n\t\t\t\ttask placement in the Amazon Elastic Container Service Developer Guide\n

", + "smithy.api#documentation": "

Runs and maintains your desired number of tasks from a specified task definition. If the number of\n\t\t\ttasks running in a service drops below the desiredCount, Amazon ECS runs another copy of the\n\t\t\ttask in the specified cluster. To update an existing service, use UpdateService.

\n \n

On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.

\n
\n \n

Amazon Elastic Inference (EI) is no longer available to customers.

\n
\n

In addition to maintaining the desired count of tasks in your service, you can optionally run your\n\t\t\tservice behind one or more load balancers. The load balancers distribute traffic across the tasks that\n\t\t\tare associated with the service. For more information, see Service load\n\t\t\t\tbalancing in the Amazon Elastic Container Service Developer Guide.

\n

You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or updating a\n\t\t\tservice. volumeConfigurations is only supported for REPLICA service and not DAEMON\n\t\t\tservice. For more infomation, see Amazon EBS\n\t\t\t\tvolumes in the Amazon Elastic Container Service Developer Guide.

\n

Tasks for services that don't use a load balancer are considered healthy if they're in the\n\t\t\t\tRUNNING state. Tasks for services that use a load balancer are considered healthy if\n\t\t\tthey're in the RUNNING state and are reported as healthy by the load balancer.

\n

There are two service scheduler strategies available:

\n \n

You can optionally specify a deployment configuration for your service. The deployment is initiated\n\t\t\tby changing properties. For example, the deployment might be initiated by the task definition or by\n\t\t\tyour desired count of a service. You can use UpdateService. The default value for a replica service for\n\t\t\t\tminimumHealthyPercent is 100%. The default value for a daemon service for\n\t\t\t\tminimumHealthyPercent is 0%.

\n

If a service uses the ECS deployment controller, the minimum healthy percent represents\n\t\t\ta lower limit on the number of tasks in a service that must remain in the RUNNING state\n\t\t\tduring a deployment. Specifically, it represents it as a percentage of your desired number of tasks\n\t\t\t(rounded up to the nearest integer). This happens when any of your container instances are in the\n\t\t\t\tDRAINING state if the service contains tasks using the EC2 launch type.\n\t\t\tUsing this parameter, you can deploy without using additional cluster capacity. For example, if you set\n\t\t\tyour service to have desired number of four tasks and a minimum healthy percent of 50%, the scheduler\n\t\t\tmight stop two existing tasks to free up cluster capacity before starting two new tasks. If they're in\n\t\t\tthe RUNNING state, tasks for services that don't use a load balancer are considered\n\t\t\thealthy . If they're in the RUNNING state and reported as healthy by the load balancer,\n\t\t\ttasks for services that do use a load balancer are considered healthy . The\n\t\t\tdefault value for minimum healthy percent is 100%.

\n

If a service uses the ECS deployment controller, the maximum\n\t\t\t\tpercent parameter represents an upper limit on the number of tasks in a service that are\n\t\t\tallowed in the RUNNING or PENDING state during a deployment. Specifically, it\n\t\t\trepresents it as a percentage of the desired number of tasks (rounded down to the nearest integer).\n\t\t\tThis happens when any of your container instances are in the DRAINING state if the service\n\t\t\tcontains tasks using the EC2 launch type. Using this parameter, you can define the\n\t\t\tdeployment batch size. For example, if your service has a desired number of four tasks and a maximum\n\t\t\tpercent value of 200%, the scheduler may start four new tasks before stopping the four older tasks\n\t\t\t(provided that the cluster resources required to do this are available). The default value for maximum\n\t\t\tpercent is 200%.

\n

If a service uses either the CODE_DEPLOY or EXTERNAL deployment controller\n\t\t\ttypes and tasks that use the EC2 launch type, the minimum healthy\n\t\t\t\tpercent and maximum percent values are used only to\n\t\t\tdefine the lower and upper limit on the number of the tasks in the service that remain in the\n\t\t\t\tRUNNING state. This is while the container instances are in the DRAINING\n\t\t\tstate. If the tasks in the service use the Fargate launch type, the minimum healthy\n\t\t\tpercent and maximum percent values aren't used. This is the case even if they're currently visible when\n\t\t\tdescribing your service.

\n

When creating a service that uses the EXTERNAL deployment controller, you can specify\n\t\t\tonly parameters that aren't controlled at the task set level. The only required parameter is the\n\t\t\tservice name. You control your services using the CreateTaskSet. For more information, see Amazon ECS deployment\n\t\t\t\ttypes in the Amazon Elastic Container Service Developer Guide.

\n

When the service scheduler launches new tasks, it determines task placement. For information about\n\t\t\ttask placement and task placement strategies, see Amazon ECS task\n\t\t\t\tplacement in the Amazon Elastic Container Service Developer Guide\n

", "smithy.api#examples": [ { "title": "To create a new service", @@ -3299,32 +3322,38 @@ "serviceName": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The name of your service. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. Service names must be unique within\n\t\t\ta cluster, but you can have similarly named services in multiple clusters within a\n\t\t\tRegion or across multiple Regions.

", + "smithy.api#documentation": "

The name of your service. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. Service names must be unique within a cluster, but\n\t\t\tyou can have similarly named services in multiple clusters within a Region or across multiple\n\t\t\tRegions.

", "smithy.api#required": {} } }, "taskDefinition": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The family and revision (family:revision) or\n\t\t\tfull ARN of the task definition to run in your service. If a revision\n\t\t\tisn't specified, the latest ACTIVE revision is used.

\n

A task definition must be specified if the service uses either the ECS or\n\t\t\t\tCODE_DEPLOY deployment controllers.

\n

For more information about deployment types, see Amazon ECS deployment\n\t\t\t\ttypes.

" + "smithy.api#documentation": "

The family and revision (family:revision) or full ARN of the\n\t\t\ttask definition to run in your service. If a revision isn't specified, the latest\n\t\t\t\tACTIVE revision is used.

\n

A task definition must be specified if the service uses either the ECS or\n\t\t\t\tCODE_DEPLOY deployment controllers.

\n

For more information about deployment types, see Amazon ECS deployment types.

" + } + }, + "availabilityZoneRebalancing": { + "target": "com.amazonaws.ecs#AvailabilityZoneRebalancing", + "traits": { + "smithy.api#documentation": "

Indicates whether to use Availability Zone rebalancing for the service.

\n

For more information, see Balancing an Amazon ECS service across Availability Zones in\n\t\t\tthe Amazon Elastic Container Service Developer Guide.

" } }, "loadBalancers": { "target": "com.amazonaws.ecs#LoadBalancers", "traits": { - "smithy.api#documentation": "

A load balancer object representing the load balancers to use with your service. For\n\t\t\tmore information, see Service load balancing in the Amazon Elastic Container Service Developer Guide.

\n

If the service uses the rolling update (ECS) deployment controller and\n\t\t\tusing either an Application Load Balancer or Network Load Balancer, you must specify one or more target group ARNs to attach\n\t\t\tto the service. The service-linked role is required for services that use multiple\n\t\t\ttarget groups. For more information, see Using service-linked roles for Amazon ECS in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

\n

If the service uses the CODE_DEPLOY deployment controller, the service is\n\t\t\trequired to use either an Application Load Balancer or Network Load Balancer. When creating an CodeDeploy deployment group, you\n\t\t\tspecify two target groups (referred to as a targetGroupPair). During a\n\t\t\tdeployment, CodeDeploy determines which task set in your service has the status\n\t\t\t\tPRIMARY, and it associates one target group with it. Then, it also\n\t\t\tassociates the other target group with the replacement task set. The load balancer can\n\t\t\talso have up to two listeners: a required listener for production traffic and an\n\t\t\toptional listener that you can use to perform validation tests with Lambda functions\n\t\t\tbefore routing production traffic to it.

\n

If you use the CODE_DEPLOY deployment controller, these values can be\n\t\t\tchanged when updating the service.

\n

For Application Load Balancers and Network Load Balancers, this object must contain the load balancer target group ARN,\n\t\t\tthe container name, and the container port to access from the load balancer. The\n\t\t\tcontainer name must be as it appears in a container definition. The load balancer name\n\t\t\tparameter must be omitted. When a task from this service is placed on a container\n\t\t\tinstance, the container instance and port combination is registered as a target in the\n\t\t\ttarget group that's specified here.

\n

For Classic Load Balancers, this object must contain the load balancer name, the container name , and\n\t\t\tthe container port to access from the load balancer. The container name must be as it\n\t\t\tappears in a container definition. The target group ARN parameter must be omitted.\n\t\t\tWhen a task from this service is placed on a container instance, the container instance\n\t\t\tis registered with the load balancer that's specified here.

\n

Services with tasks that use the awsvpc network mode (for example, those\n\t\t\twith the Fargate launch type) only support Application Load Balancers and Network Load Balancers. Classic Load Balancers\n\t\t\taren't supported. Also, when you create any target groups for these services, you must\n\t\t\tchoose ip as the target type, not instance. This is because\n\t\t\ttasks that use the awsvpc network mode are associated with an elastic\n\t\t\tnetwork interface, not an Amazon EC2 instance.

" + "smithy.api#documentation": "

A load balancer object representing the load balancers to use with your service. For more\n\t\t\tinformation, see Service load balancing in the Amazon Elastic Container Service Developer Guide.

\n

If the service uses the rolling update (ECS) deployment controller and using either an\n\t\t\tApplication Load Balancer or Network Load Balancer, you must specify one or more target group ARNs to attach to the service. The\n\t\t\tservice-linked role is required for services that use multiple target groups. For more information, see\n\t\t\t\tUsing service-linked roles for Amazon ECS in the Amazon Elastic Container Service Developer Guide.

\n

If the service uses the CODE_DEPLOY deployment controller, the service is required to\n\t\t\tuse either an Application Load Balancer or Network Load Balancer. When creating an CodeDeploy deployment group, you specify two target groups\n\t\t\t(referred to as a targetGroupPair). During a deployment, CodeDeploy determines which task set\n\t\t\tin your service has the status PRIMARY, and it associates one target group with it. Then,\n\t\t\tit also associates the other target group with the replacement task set. The load balancer can also\n\t\t\thave up to two listeners: a required listener for production traffic and an optional listener that you\n\t\t\tcan use to perform validation tests with Lambda functions before routing production traffic to\n\t\t\tit.

\n

If you use the CODE_DEPLOY deployment controller, these values can be changed when\n\t\t\tupdating the service.

\n

For Application Load Balancers and Network Load Balancers, this object must contain the load balancer target group ARN, the container\n\t\t\tname, and the container port to access from the load balancer. The container name must be as it appears\n\t\t\tin a container definition. The load balancer name parameter must be omitted. When a task from this\n\t\t\tservice is placed on a container instance, the container instance and port combination is registered as\n\t\t\ta target in the target group that's specified here.

\n

For Classic Load Balancers, this object must contain the load balancer name, the container name , and the container\n\t\t\tport to access from the load balancer. The container name must be as it appears in a container\n\t\t\tdefinition. The target group ARN parameter must be omitted. When a task from this service is placed\n\t\t\ton a container instance, the container instance is registered with the load balancer that's specified\n\t\t\there.

\n

Services with tasks that use the awsvpc network mode (for example, those with the\n\t\t\tFargate launch type) only support Application Load Balancers and Network Load Balancers. Classic Load Balancers aren't supported. Also, when\n\t\t\tyou create any target groups for these services, you must choose ip as the target type,\n\t\t\tnot instance. This is because tasks that use the awsvpc network mode are\n\t\t\tassociated with an elastic network interface, not an Amazon EC2 instance.

" } }, "serviceRegistries": { "target": "com.amazonaws.ecs#ServiceRegistries", "traits": { - "smithy.api#documentation": "

The details of the service discovery registry to associate with this service. For more\n\t\t\tinformation, see Service\n\t\t\t\tdiscovery.

\n \n

Each service may be associated with one service registry. Multiple service\n\t\t\t\tregistries for each service isn't supported.

\n
" + "smithy.api#documentation": "

The details of the service discovery registry to associate with this service. For more information,\n\t\t\tsee Service\n\t\t\t\tdiscovery.

\n \n

Each service may be associated with one service registry. Multiple service registries for each\n\t\t\t\tservice isn't supported.

\n
" } }, "desiredCount": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The number of instantiations of the specified task definition to place and keep\n\t\t\trunning in your service.

\n

This is required if schedulingStrategy is REPLICA or isn't\n\t\t\tspecified. If schedulingStrategy is DAEMON then this isn't\n\t\t\trequired.

" + "smithy.api#documentation": "

The number of instantiations of the specified task definition to place and keep running in your\n\t\t\tservice.

\n

This is required if schedulingStrategy is REPLICA or isn't specified. If\n\t\t\t\tschedulingStrategy is DAEMON then this isn't required.

" } }, "clientToken": { @@ -3336,93 +3365,93 @@ "launchType": { "target": "com.amazonaws.ecs#LaunchType", "traits": { - "smithy.api#documentation": "

The infrastructure that you run your service on. For more information, see Amazon ECS\n\t\t\t\tlaunch types in the Amazon Elastic Container Service Developer Guide.

\n

The FARGATE launch type runs your tasks on Fargate On-Demand\n\t\t\tinfrastructure.

\n \n

Fargate Spot infrastructure is available for use but a capacity provider\n\t\t\t\tstrategy must be used. For more information, see Fargate capacity providers in the Amazon ECS\n\t\t\t\t\tDeveloper Guide.

\n
\n

The EC2 launch type runs your tasks on Amazon EC2 instances registered to your\n\t\t\tcluster.

\n

The EXTERNAL launch type runs your tasks on your on-premises server or\n\t\t\tvirtual machine (VM) capacity registered to your cluster.

\n

A service can use either a launch type or a capacity provider strategy. If a\n\t\t\t\tlaunchType is specified, the capacityProviderStrategy\n\t\t\tparameter must be omitted.

" + "smithy.api#documentation": "

The infrastructure that you run your service on. For more information, see Amazon ECS launch\n\t\t\t\ttypes in the Amazon Elastic Container Service Developer Guide.

\n

The FARGATE launch type runs your tasks on Fargate On-Demand infrastructure.

\n \n

Fargate Spot infrastructure is available for use but a capacity provider strategy must be used.\n\t\t\t\tFor more information, see Fargate capacity providers in the Amazon ECS Developer Guide.

\n
\n

The EC2 launch type runs your tasks on Amazon EC2 instances registered to your\n\t\t\tcluster.

\n

The EXTERNAL launch type runs your tasks on your on-premises server or virtual machine\n\t\t\t(VM) capacity registered to your cluster.

\n

A service can use either a launch type or a capacity provider strategy. If a launchType\n\t\t\tis specified, the capacityProviderStrategy parameter must be omitted.

" } }, "capacityProviderStrategy": { "target": "com.amazonaws.ecs#CapacityProviderStrategy", "traits": { - "smithy.api#documentation": "

The capacity provider strategy to use for the service.

\n

If a capacityProviderStrategy is specified, the launchType\n\t\t\tparameter must be omitted. If no capacityProviderStrategy or\n\t\t\t\tlaunchType is specified, the\n\t\t\t\tdefaultCapacityProviderStrategy for the cluster is used.

\n

A capacity provider strategy may contain a maximum of 6 capacity providers.

" + "smithy.api#documentation": "

The capacity provider strategy to use for the service.

\n

If a capacityProviderStrategy is specified, the launchType parameter must\n\t\t\tbe omitted. If no capacityProviderStrategy or launchType is specified, the\n\t\t\t\tdefaultCapacityProviderStrategy for the cluster is used.

\n

A capacity provider strategy may contain a maximum of 6 capacity providers.

" } }, "platformVersion": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The platform version that your tasks in the service are running on. A platform version\n\t\t\tis specified only for tasks using the Fargate launch type. If one isn't\n\t\t\tspecified, the LATEST platform version is used. For more information, see\n\t\t\t\tFargate platform\n\t\t\t\tversions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The platform version that your tasks in the service are running on. A platform version is specified\n\t\t\tonly for tasks using the Fargate launch type. If one isn't specified, the\n\t\t\t\tLATEST platform version is used. For more information, see Fargate platform versions in\n\t\t\tthe Amazon Elastic Container Service Developer Guide.

" } }, "role": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The name or full Amazon Resource Name (ARN) of the IAM role that allows Amazon ECS to make calls to your\n\t\t\tload balancer on your behalf. This parameter is only permitted if you are using a load\n\t\t\tbalancer with your service and your task definition doesn't use the awsvpc\n\t\t\tnetwork mode. If you specify the role parameter, you must also specify a\n\t\t\tload balancer object with the loadBalancers parameter.

\n \n

If your account has already created the Amazon ECS service-linked role, that role is\n\t\t\t\tused for your service unless you specify a role here. The service-linked role is\n\t\t\t\trequired if your task definition uses the awsvpc network mode or if the\n\t\t\t\tservice is configured to use service discovery, an external deployment controller,\n\t\t\t\tmultiple target groups, or Elastic Inference accelerators in which case you don't\n\t\t\t\tspecify a role here. For more information, see Using\n\t\t\t\t\tservice-linked roles for Amazon ECS in the Amazon Elastic Container Service Developer Guide.

\n
\n

If your specified role has a path other than /, then you must either\n\t\t\tspecify the full role ARN (this is recommended) or prefix the role name with the path.\n\t\t\tFor example, if a role with the name bar has a path of /foo/\n\t\t\tthen you would specify /foo/bar as the role name. For more information, see\n\t\t\t\tFriendly names and paths in the IAM User\n\t\t\tGuide.

" + "smithy.api#documentation": "

The name or full Amazon Resource Name (ARN) of the IAM role that allows Amazon ECS to make calls to your load balancer on\n\t\t\tyour behalf. This parameter is only permitted if you are using a load balancer with your service and\n\t\t\tyour task definition doesn't use the awsvpc network mode. If you specify the\n\t\t\t\trole parameter, you must also specify a load balancer object with the\n\t\t\t\tloadBalancers parameter.

\n \n

If your account has already created the Amazon ECS service-linked role, that role is used for your\n\t\t\t\tservice unless you specify a role here. The service-linked role is required if your task definition\n\t\t\t\tuses the awsvpc network mode or if the service is configured to use service discovery,\n\t\t\t\tan external deployment controller, multiple target groups, or Elastic Inference accelerators in\n\t\t\t\twhich case you don't specify a role here. For more information, see Using service-linked\n\t\t\t\t\troles for Amazon ECS in the Amazon Elastic Container Service Developer Guide.

\n
\n

If your specified role has a path other than /, then you must either specify the full\n\t\t\trole ARN (this is recommended) or prefix the role name with the path. For example, if a role with the\n\t\t\tname bar has a path of /foo/ then you would specify /foo/bar as\n\t\t\tthe role name. For more information, see Friendly names and\n\t\t\t\tpaths in the IAM User Guide.

" } }, "deploymentConfiguration": { "target": "com.amazonaws.ecs#DeploymentConfiguration", "traits": { - "smithy.api#documentation": "

Optional deployment parameters that control how many tasks run during the deployment and the\n\t\t\tfailure detection methods.

" + "smithy.api#documentation": "

Optional deployment parameters that control how many tasks run during the deployment and the ordering\n\t\t\tof stopping and starting tasks.

" } }, "placementConstraints": { "target": "com.amazonaws.ecs#PlacementConstraints", "traits": { - "smithy.api#documentation": "

An array of placement constraint objects to use for tasks in your service. You can\n\t\t\tspecify a maximum of 10 constraints for each task. This limit includes constraints in\n\t\t\tthe task definition and those specified at runtime.

" + "smithy.api#documentation": "

An array of placement constraint objects to use for tasks in your service. You can specify a maximum\n\t\t\tof 10 constraints for each task. This limit includes constraints in the task definition and those\n\t\t\tspecified at runtime.

" } }, "placementStrategy": { "target": "com.amazonaws.ecs#PlacementStrategies", "traits": { - "smithy.api#documentation": "

The placement strategy objects to use for tasks in your service. You can specify a\n\t\t\tmaximum of 5 strategy rules for each service.

" + "smithy.api#documentation": "

The placement strategy objects to use for tasks in your service. You can specify a maximum of 5\n\t\t\tstrategy rules for each service.

" } }, "networkConfiguration": { "target": "com.amazonaws.ecs#NetworkConfiguration", "traits": { - "smithy.api#documentation": "

The network configuration for the service. This parameter is required for task\n\t\t\tdefinitions that use the awsvpc network mode to receive their own elastic\n\t\t\tnetwork interface, and it isn't supported for other network modes. For more information,\n\t\t\tsee Task networking\n\t\t\tin the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The network configuration for the service. This parameter is required for task definitions that use\n\t\t\tthe awsvpc network mode to receive their own elastic network interface, and it isn't\n\t\t\tsupported for other network modes. For more information, see Task networking in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

" } }, "healthCheckGracePeriodSeconds": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy\n\t\t\tElastic Load Balancing target health checks after a task has first started. This is only used when your\n\t\t\tservice is configured to use a load balancer. If your service has a load balancer\n\t\t\tdefined and you don't specify a health check grace period value, the default value of\n\t\t\t\t0 is used.

\n

If you do not use an Elastic Load Balancing, we recommend that you use the startPeriod in\n\t\t\tthe task definition health check parameters. For more information, see Health\n\t\t\t\tcheck.

\n

If your service's tasks take a while to start and respond to Elastic Load Balancing health checks, you can\n\t\t\tspecify a health check grace period of up to 2,147,483,647 seconds (about 69 years).\n\t\t\tDuring that time, the Amazon ECS service scheduler ignores health check status. This grace\n\t\t\tperiod can prevent the service scheduler from marking tasks as unhealthy and stopping\n\t\t\tthem before they have time to come up.

" + "smithy.api#documentation": "

The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing, VPC Lattice, and container \n\t\t\thealth checks after a task has first started. If you don't specify a health check grace\n\t\t\tperiod value, the default value of 0 is used. If you don't use any of the health checks, \n\t\t\tthen healthCheckGracePeriodSeconds is unused.

\n

If your service's tasks take a while to start and respond to health checks, you can specify a\n\t\t\thealth check grace period of up to 2,147,483,647 seconds (about 69 years). During that time, the Amazon ECS\n\t\t\tservice scheduler ignores health check status. This grace period can prevent the service scheduler from\n\t\t\tmarking tasks as unhealthy and stopping them before they have time to come up.

" } }, "schedulingStrategy": { "target": "com.amazonaws.ecs#SchedulingStrategy", "traits": { - "smithy.api#documentation": "

The scheduling strategy to use for the service. For more information, see Services.

\n

There are two service scheduler strategies available:

\n " + "smithy.api#documentation": "

The scheduling strategy to use for the service. For more information, see Services.

\n

There are two service scheduler strategies available:

\n " } }, "deploymentController": { "target": "com.amazonaws.ecs#DeploymentController", "traits": { - "smithy.api#documentation": "

The deployment controller to use for the service. If no deployment controller is\n\t\t\tspecified, the default value of ECS is used.

" + "smithy.api#documentation": "

The deployment controller to use for the service. If no deployment controller is specified, the\n\t\t\tdefault value of ECS is used.

" } }, "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the service to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value, both of which you define. When a\n\t\t\tservice is deleted, the tags are deleted as well.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the service to help you categorize and organize them. Each tag\n\t\t\tconsists of a key and an optional value, both of which you define. When a service is deleted, the tags\n\t\t\tare deleted as well.

\n

The following basic restrictions apply to tags:

\n " } }, "enableECSManagedTags": { "target": "com.amazonaws.ecs#Boolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

Specifies whether to turn on Amazon ECS managed tags for the tasks within the service. For\n\t\t\tmore information, see Tagging your Amazon ECS\n\t\t\t\tresources in the Amazon Elastic Container Service Developer Guide.

\n

When you use Amazon ECS managed tags, you need to set the propagateTags\n\t\t\trequest parameter.

" + "smithy.api#documentation": "

Specifies whether to turn on Amazon ECS managed tags for the tasks within the service. For more\n\t\t\tinformation, see Tagging your Amazon ECS resources in the Amazon Elastic Container Service Developer Guide.

\n

When you use Amazon ECS managed tags, you need to set the propagateTags request\n\t\t\tparameter.

" } }, "propagateTags": { "target": "com.amazonaws.ecs#PropagateTags", "traits": { - "smithy.api#documentation": "

Specifies whether to propagate the tags from the task definition to the task. If no\n\t\t\tvalue is specified, the tags aren't propagated. Tags can only be propagated to the task\n\t\t\tduring task creation. To add tags to a task after task creation, use the TagResource API action.

\n

You must set this to a value other than NONE when you use Cost Explorer.\n\t\t\tFor more information, see Amazon ECS usage reports\n\t\t\tin the Amazon Elastic Container Service Developer Guide.

\n

The default is NONE.

" + "smithy.api#documentation": "

Specifies whether to propagate the tags from the task definition to the task. If no value is\n\t\t\tspecified, the tags aren't propagated. Tags can only be propagated to the task during task creation. To\n\t\t\tadd tags to a task after task creation, use the TagResource API action.

\n

You must set this to a value other than NONE when you use Cost Explorer. For more\n\t\t\tinformation, see Amazon ECS usage reports in the Amazon Elastic Container Service Developer Guide.

\n

The default is NONE.

" } }, "enableExecuteCommand": { "target": "com.amazonaws.ecs#Boolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

Determines whether the execute command functionality is turned on for the service. If\n\t\t\t\ttrue, this enables execute command functionality on all containers in\n\t\t\tthe service tasks.

" + "smithy.api#documentation": "

Determines whether the execute command functionality is turned on for the service. If\n\t\t\t\ttrue, this enables execute command functionality on all containers in the service\n\t\t\ttasks.

" } }, "serviceConnectConfiguration": { @@ -3434,7 +3463,13 @@ "volumeConfigurations": { "target": "com.amazonaws.ecs#ServiceVolumeConfigurations", "traits": { - "smithy.api#documentation": "

The configuration for a volume specified in the task definition as a volume that is\n\t\t\tconfigured at launch time. Currently, the only supported volume type is an Amazon EBS\n\t\t\tvolume.

" + "smithy.api#documentation": "

The configuration for a volume specified in the task definition as a volume that is configured at\n\t\t\tlaunch time. Currently, the only supported volume type is an Amazon EBS volume.

" + } + }, + "vpcLatticeConfigurations": { + "target": "com.amazonaws.ecs#VpcLatticeConfigurations", + "traits": { + "smithy.api#documentation": "

The VPC Lattice configuration for the service being created.

" } } }, @@ -3448,7 +3483,7 @@ "service": { "target": "com.amazonaws.ecs#Service", "traits": { - "smithy.api#documentation": "

The full description of your service following the create call.

\n

A service will return either a capacityProviderStrategy or\n\t\t\t\tlaunchType parameter, but not both, depending where one was specified\n\t\t\twhen it was created.

\n

If a service is using the ECS deployment controller, the\n\t\t\t\tdeploymentController and taskSets parameters will not be\n\t\t\treturned.

\n

if the service uses the CODE_DEPLOY deployment controller, the\n\t\t\t\tdeploymentController, taskSets and\n\t\t\t\tdeployments parameters will be returned, however the\n\t\t\t\tdeployments parameter will be an empty list.

" + "smithy.api#documentation": "

The full description of your service following the create call.

\n

A service will return either a capacityProviderStrategy or launchType\n\t\t\tparameter, but not both, depending where one was specified when it was created.

\n

If a service is using the ECS deployment controller, the\n\t\t\t\tdeploymentController and taskSets parameters will not be returned.

\n

if the service uses the CODE_DEPLOY deployment controller, the\n\t\t\t\tdeploymentController, taskSets and deployments parameters\n\t\t\twill be returned, however the deployments parameter will be an empty list.

" } } }, @@ -3500,7 +3535,7 @@ } ], "traits": { - "smithy.api#documentation": "

Create a task set in the specified cluster and service. This is used when a service\n\t\t\tuses the EXTERNAL deployment controller type. For more information, see\n\t\t\t\tAmazon ECS deployment\n\t\t\t\ttypes in the Amazon Elastic Container Service Developer Guide.

\n \n

On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.

\n
\n

For information about the maximum number of task sets and other quotas, see Amazon ECS\n\t\t\tservice quotas in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

Create a task set in the specified cluster and service. This is used when a service uses the\n\t\t\t\tEXTERNAL deployment controller type. For more information, see Amazon ECS deployment\n\t\t\t\ttypes in the Amazon Elastic Container Service Developer Guide.

\n \n

On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.

\n
\n

For information about the maximum number of task sets and other quotas, see Amazon ECS service\n\t\t\t\tquotas in the Amazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#CreateTaskSetRequest": { @@ -3516,20 +3551,20 @@ "cluster": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to create the\n\t\t\ttask set in.

", + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to create the task set\n\t\t\tin.

", "smithy.api#required": {} } }, "externalId": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

An optional non-unique tag that identifies this task set in external systems. If the\n\t\t\ttask set is associated with a service discovery registry, the tasks in this task set\n\t\t\twill have the ECS_TASK_SET_EXTERNAL_ID Cloud Map attribute set to the provided\n\t\t\tvalue.

" + "smithy.api#documentation": "

An optional non-unique tag that identifies this task set in external systems. If the task set is\n\t\t\tassociated with a service discovery registry, the tasks in this task set will have the\n\t\t\t\tECS_TASK_SET_EXTERNAL_ID Cloud Map attribute set to the provided\n\t\t\tvalue.

" } }, "taskDefinition": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The task definition for the tasks in the task set to use. If a revision isn't\n\t\t\tspecified, the latest ACTIVE revision is used.

", + "smithy.api#documentation": "

The task definition for the tasks in the task set to use. If a revision isn't specified, the latest\n\t\t\t\tACTIVE revision is used.

", "smithy.api#required": {} } }, @@ -3542,37 +3577,37 @@ "loadBalancers": { "target": "com.amazonaws.ecs#LoadBalancers", "traits": { - "smithy.api#documentation": "

A load balancer object representing the load balancer to use with the task set. The\n\t\t\tsupported load balancer types are either an Application Load Balancer or a Network Load Balancer.

" + "smithy.api#documentation": "

A load balancer object representing the load balancer to use with the task set. The supported load\n\t\t\tbalancer types are either an Application Load Balancer or a Network Load Balancer.

" } }, "serviceRegistries": { "target": "com.amazonaws.ecs#ServiceRegistries", "traits": { - "smithy.api#documentation": "

The details of the service discovery registries to assign to this task set. For more\n\t\t\tinformation, see Service\n\t\t\t\tdiscovery.

" + "smithy.api#documentation": "

The details of the service discovery registries to assign to this task set. For more information, see\n\t\t\t\tService\n\t\t\t\tdiscovery.

" } }, "launchType": { "target": "com.amazonaws.ecs#LaunchType", "traits": { - "smithy.api#documentation": "

The launch type that new tasks in the task set uses. For more information, see Amazon ECS\n\t\t\t\tlaunch types in the Amazon Elastic Container Service Developer Guide.

\n

If a launchType is specified, the capacityProviderStrategy\n\t\t\tparameter must be omitted.

" + "smithy.api#documentation": "

The launch type that new tasks in the task set uses. For more information, see Amazon ECS launch\n\t\t\t\ttypes in the Amazon Elastic Container Service Developer Guide.

\n

If a launchType is specified, the capacityProviderStrategy parameter must\n\t\t\tbe omitted.

" } }, "capacityProviderStrategy": { "target": "com.amazonaws.ecs#CapacityProviderStrategy", "traits": { - "smithy.api#documentation": "

The capacity provider strategy to use for the task set.

\n

A capacity provider strategy consists of one or more capacity providers along with the\n\t\t\t\tbase and weight to assign to them. A capacity provider\n\t\t\tmust be associated with the cluster to be used in a capacity provider strategy. The PutClusterCapacityProviders\n\t\t\t\t API is used to associate a capacity\n\t\t\tprovider with a cluster. Only capacity providers with an ACTIVE or\n\t\t\t\tUPDATING status can be used.

\n

If a capacityProviderStrategy is specified, the launchType\n\t\t\tparameter must be omitted. If no capacityProviderStrategy or\n\t\t\t\tlaunchType is specified, the\n\t\t\t\tdefaultCapacityProviderStrategy for the cluster is used.

\n

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New capacity providers can be created with the CreateCapacityProviderProviderAPI operation.

\n

To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

\n

The PutClusterCapacityProviders API operation is used to update the\n\t\t\tlist of available capacity providers for a cluster after the cluster is created.

" + "smithy.api#documentation": "

The capacity provider strategy to use for the task set.

\n

A capacity provider strategy consists of one or more capacity providers along with the\n\t\t\t\tbase and weight to assign to them. A capacity provider must be associated\n\t\t\twith the cluster to be used in a capacity provider strategy. The PutClusterCapacityProviders API is used to associate a capacity provider with a cluster.\n\t\t\tOnly capacity providers with an ACTIVE or UPDATING status can be used.

\n

If a capacityProviderStrategy is specified, the launchType parameter must\n\t\t\tbe omitted. If no capacityProviderStrategy or launchType is specified, the\n\t\t\t\tdefaultCapacityProviderStrategy for the cluster is used.

\n

If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must already\n\t\t\tbe created. New capacity providers can be created with the CreateCapacityProviderProviderAPI operation.

\n

To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are available to all\n\t\t\taccounts and only need to be associated with a cluster to be used.

\n

The PutClusterCapacityProviders API operation is used to update the list of available capacity\n\t\t\tproviders for a cluster after the cluster is created.

" } }, "platformVersion": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The platform version that the tasks in the task set uses. A platform version is\n\t\t\tspecified only for tasks using the Fargate launch type. If one isn't\n\t\t\tspecified, the LATEST platform version is used.

" + "smithy.api#documentation": "

The platform version that the tasks in the task set uses. A platform version is specified only for\n\t\t\ttasks using the Fargate launch type. If one isn't specified, the LATEST\n\t\t\tplatform version is used.

" } }, "scale": { "target": "com.amazonaws.ecs#Scale", "traits": { - "smithy.api#documentation": "

A floating-point percentage of the desired number of tasks to place and keep running\n\t\t\tin the task set.

" + "smithy.api#documentation": "

A floating-point percentage of the desired number of tasks to place and keep running in the task\n\t\t\tset.

" } }, "clientToken": { @@ -3584,7 +3619,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the task set to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value. You define both. When a service is\n\t\t\tdeleted, the tags are deleted.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the task set to help you categorize and organize them. Each tag\n\t\t\tconsists of a key and an optional value. You define both. When a service is deleted, the tags are\n\t\t\tdeleted.

\n

The following basic restrictions apply to tags:

\n " } } }, @@ -3598,7 +3633,7 @@ "taskSet": { "target": "com.amazonaws.ecs#TaskSet", "traits": { - "smithy.api#documentation": "

Information about a set of Amazon ECS tasks in either an CodeDeploy or an\n\t\t\t\tEXTERNAL deployment. A task set includes details such as the desired\n\t\t\tnumber of tasks, how many tasks are running, and whether the task set serves production\n\t\t\ttraffic.

" + "smithy.api#documentation": "

Information about a set of Amazon ECS tasks in either an CodeDeploy or an EXTERNAL deployment.\n\t\t\tA task set includes details such as the desired number of tasks, how many tasks are running, and\n\t\t\twhether the task set serves production traffic.

" } } }, @@ -3646,7 +3681,7 @@ } ], "traits": { - "smithy.api#documentation": "

Disables an account setting for a specified user, role, or the root user for an\n\t\t\taccount.

", + "smithy.api#documentation": "

Disables an account setting for a specified user, role, or the root user for an account.

", "smithy.api#examples": [ { "title": "To delete the account settings for a specific IAM user or IAM role", @@ -3686,14 +3721,14 @@ "name": { "target": "com.amazonaws.ecs#SettingName", "traits": { - "smithy.api#documentation": "

The resource name to disable the account setting for. If\n\t\t\t\tserviceLongArnFormat is specified, the ARN for your Amazon ECS services is\n\t\t\taffected. If taskLongArnFormat is specified, the ARN and resource ID for\n\t\t\tyour Amazon ECS tasks is affected. If containerInstanceLongArnFormat is\n\t\t\tspecified, the ARN and resource ID for your Amazon ECS container instances is affected. If\n\t\t\t\tawsvpcTrunking is specified, the ENI limit for your Amazon ECS container\n\t\t\tinstances is affected.

", + "smithy.api#documentation": "

The resource name to disable the account setting for. If serviceLongArnFormat is\n\t\t\tspecified, the ARN for your Amazon ECS services is affected. If taskLongArnFormat is\n\t\t\tspecified, the ARN and resource ID for your Amazon ECS tasks is affected. If\n\t\t\t\tcontainerInstanceLongArnFormat is specified, the ARN and resource ID for your Amazon ECS\n\t\t\tcontainer instances is affected. If awsvpcTrunking is specified, the ENI limit for your\n\t\t\tAmazon ECS container instances is affected.

", "smithy.api#required": {} } }, "principalArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the principal. It can be an user, role, or the\n\t\t\troot user. If you specify the root user, it disables the account setting for all users, roles,\n\t\t\tand the root user of the account unless a user or role explicitly overrides these settings.\n\t\t\tIf this field is omitted, the setting is changed only for the authenticated user.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the principal. It can be an user, role, or the root user. If you\n\t\t\tspecify the root user, it disables the account setting for all users, roles, and the root user of the account\n\t\t\tunless a user or role explicitly overrides these settings. If this field is omitted, the setting is\n\t\t\tchanged only for the authenticated user.

" } } }, @@ -3744,13 +3779,13 @@ "cluster": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to delete\n\t\t\tattributes. If you do not specify a cluster, the default cluster is assumed.

" + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to delete attributes.\n\t\t\tIf you do not specify a cluster, the default cluster is assumed.

" } }, "attributes": { "target": "com.amazonaws.ecs#Attributes", "traits": { - "smithy.api#documentation": "

The attributes to delete from your resource. You can specify up to 10 attributes for\n\t\t\teach request. For custom attributes, specify the attribute name and target ID, but don't\n\t\t\tspecify the value. If you specify the target ID using the short form, you must also\n\t\t\tspecify the target type.

", + "smithy.api#documentation": "

The attributes to delete from your resource. You can specify up to 10 attributes for each request.\n\t\t\tFor custom attributes, specify the attribute name and target ID, but don't specify the value. If you\n\t\t\tspecify the target ID using the short form, you must also specify the target type.

", "smithy.api#required": {} } } @@ -3793,7 +3828,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes the specified capacity provider.

\n \n

The FARGATE and FARGATE_SPOT capacity providers are\n\t\t\t\treserved and can't be deleted. You can disassociate them from a cluster using either PutCapacityProviderProviders or by deleting the\n\t\t\t\tcluster.

\n
\n

Prior to a capacity provider being deleted, the capacity provider must be removed from\n\t\t\tthe capacity provider strategy from all services. The UpdateService\n\t\t\tAPI can be used to remove a capacity provider from a service's capacity provider\n\t\t\tstrategy. When updating a service, the forceNewDeployment option can be\n\t\t\tused to ensure that any tasks using the Amazon EC2 instance capacity provided by the capacity\n\t\t\tprovider are transitioned to use the capacity from the remaining capacity providers.\n\t\t\tOnly capacity providers that aren't associated with a cluster can be deleted. To remove\n\t\t\ta capacity provider from a cluster, you can either use PutCapacityProviderProviders or delete the cluster.

" + "smithy.api#documentation": "

Deletes the specified capacity provider.

\n \n

The FARGATE and FARGATE_SPOT capacity providers are reserved and can't\n\t\t\t\tbe deleted. You can disassociate them from a cluster using either PutCapacityProviderProviders or by deleting the cluster.

\n
\n

Prior to a capacity provider being deleted, the capacity provider must be removed from the capacity\n\t\t\tprovider strategy from all services. The UpdateService API can be used to\n\t\t\tremove a capacity provider from a service's capacity provider strategy. When updating a service, the\n\t\t\t\tforceNewDeployment option can be used to ensure that any tasks using the Amazon EC2\n\t\t\tinstance capacity provided by the capacity provider are transitioned to use the capacity from the\n\t\t\tremaining capacity providers. Only capacity providers that aren't associated with a cluster can be\n\t\t\tdeleted. To remove a capacity provider from a cluster, you can either use PutClusterCapacityProviders or delete the cluster.

" } }, "com.amazonaws.ecs#DeleteCapacityProviderRequest": { @@ -3860,7 +3895,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes the specified cluster. The cluster transitions to the INACTIVE\n\t\t\tstate. Clusters with an INACTIVE status might remain discoverable in your\n\t\t\taccount for a period of time. However, this behavior is subject to change in the future.\n\t\t\tWe don't recommend that you rely on INACTIVE clusters persisting.

\n

You must deregister all container instances from this cluster before you may delete\n\t\t\tit. You can list the container instances in a cluster with ListContainerInstances and deregister them with DeregisterContainerInstance.

", + "smithy.api#documentation": "

Deletes the specified cluster. The cluster transitions to the INACTIVE state. Clusters\n\t\t\twith an INACTIVE status might remain discoverable in your account for a period of time.\n\t\t\tHowever, this behavior is subject to change in the future. We don't recommend that you rely on\n\t\t\t\tINACTIVE clusters persisting.

\n

You must deregister all container instances from this cluster before you may delete it. You can list\n\t\t\tthe container instances in a cluster with ListContainerInstances\n\t\t\tand deregister them with DeregisterContainerInstance.

", "smithy.api#examples": [ { "title": "To delete an empty cluster", @@ -3938,7 +3973,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes a specified service within a cluster. You can delete a service if you have no\n\t\t\trunning tasks in it and the desired task count is zero. If the service is actively\n\t\t\tmaintaining tasks, you can't delete it, and you must update the service to a desired\n\t\t\ttask count of zero. For more information, see UpdateService.

\n \n

When you delete a service, if there are still running tasks that require cleanup,\n\t\t\t\tthe service status moves from ACTIVE to DRAINING, and the\n\t\t\t\tservice is no longer visible in the console or in the ListServices\n\t\t\t\tAPI operation. After all tasks have transitioned to either STOPPING or\n\t\t\t\t\tSTOPPED status, the service status moves from DRAINING\n\t\t\t\tto INACTIVE. Services in the DRAINING or\n\t\t\t\tINACTIVE status can still be viewed with the DescribeServices API operation. However, in the future,\n\t\t\t\t\tINACTIVE services may be cleaned up and purged from Amazon ECS record\n\t\t\t\tkeeping, and DescribeServices calls on those services return a\n\t\t\t\t\tServiceNotFoundException error.

\n
\n \n

If you attempt to create a new service with the same name as an existing service\n\t\t\t\tin either ACTIVE or DRAINING status, you receive an\n\t\t\t\terror.

\n
", + "smithy.api#documentation": "

Deletes a specified service within a cluster. You can delete a service if you have no running tasks\n\t\t\tin it and the desired task count is zero. If the service is actively maintaining tasks, you can't\n\t\t\tdelete it, and you must update the service to a desired task count of zero. For more information, see\n\t\t\t\tUpdateService.

\n \n

When you delete a service, if there are still running tasks that require cleanup, the service\n\t\t\t\tstatus moves from ACTIVE to DRAINING, and the service is no longer\n\t\t\t\tvisible in the console or in the ListServices API operation.\n\t\t\t\tAfter all tasks have transitioned to either STOPPING or STOPPED status,\n\t\t\t\tthe service status moves from DRAINING to INACTIVE. Services in the\n\t\t\t\t\tDRAINING or INACTIVE status can still be viewed with the DescribeServices API operation. However, in the future, INACTIVE services\n\t\t\t\tmay be cleaned up and purged from Amazon ECS record keeping, and DescribeServices calls on\n\t\t\t\tthose services return a ServiceNotFoundException error.

\n
\n \n

If you attempt to create a new service with the same name as an existing service in either\n\t\t\t\t\tACTIVE or DRAINING status, you receive an error.

\n
", "smithy.api#examples": [ { "title": "To delete a service", @@ -3970,7 +4005,7 @@ "force": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

If true, allows you to delete a service even if it wasn't scaled down to\n\t\t\tzero tasks. It's only necessary to use this if the service uses the REPLICA\n\t\t\tscheduling strategy.

" + "smithy.api#documentation": "

If true, allows you to delete a service even if it wasn't scaled down to zero tasks.\n\t\t\tIt's only necessary to use this if the service uses the REPLICA scheduling\n\t\t\tstrategy.

" } } }, @@ -4015,7 +4050,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes one or more task definitions.

\n

You must deregister a task definition revision before you delete it. For more\n\t\t\tinformation, see DeregisterTaskDefinition.

\n

When you delete a task definition revision, it is immediately transitions from the\n\t\t\t\tINACTIVE to DELETE_IN_PROGRESS. Existing tasks and\n\t\t\tservices that reference a DELETE_IN_PROGRESS task definition revision\n\t\t\tcontinue to run without disruption. Existing services that reference a\n\t\t\t\tDELETE_IN_PROGRESS task definition revision can still scale up or down\n\t\t\tby modifying the service's desired count.

\n

You can't use a DELETE_IN_PROGRESS task definition revision to run new\n\t\t\ttasks or create new services. You also can't update an existing service to reference a\n\t\t\t\tDELETE_IN_PROGRESS task definition revision.

\n

A task definition revision will stay in DELETE_IN_PROGRESS status until\n\t\t\tall the associated tasks and services have been terminated.

\n

When you delete all INACTIVE task definition revisions, the task\n\t\t\tdefinition name is not displayed in the console and not returned in the API. If a task\n\t\t\tdefinition revisions are in the DELETE_IN_PROGRESS state, the task\n\t\t\tdefinition name is displayed in the console and returned in the API. The task definition\n\t\t\tname is retained by Amazon ECS and the revision is incremented the next time you create a\n\t\t\ttask definition with that name.

" + "smithy.api#documentation": "

Deletes one or more task definitions.

\n

You must deregister a task definition revision before you delete it. For more information, see DeregisterTaskDefinition.

\n

When you delete a task definition revision, it is immediately transitions from the\n\t\t\t\tINACTIVE to DELETE_IN_PROGRESS. Existing tasks and services that\n\t\t\treference a DELETE_IN_PROGRESS task definition revision continue to run without\n\t\t\tdisruption. Existing services that reference a DELETE_IN_PROGRESS task definition revision\n\t\t\tcan still scale up or down by modifying the service's desired count.

\n

You can't use a DELETE_IN_PROGRESS task definition revision to run new tasks or create\n\t\t\tnew services. You also can't update an existing service to reference a DELETE_IN_PROGRESS\n\t\t\ttask definition revision.

\n

A task definition revision will stay in DELETE_IN_PROGRESS status until all the\n\t\t\tassociated tasks and services have been terminated.

\n

When you delete all INACTIVE task definition revisions, the task definition name is not\n\t\t\tdisplayed in the console and not returned in the API. If a task definition revisions are in the\n\t\t\t\tDELETE_IN_PROGRESS state, the task definition name is displayed in the console and\n\t\t\treturned in the API. The task definition name is retained by Amazon ECS and the revision is incremented the\n\t\t\tnext time you create a task definition with that name.

" } }, "com.amazonaws.ecs#DeleteTaskDefinitionsRequest": { @@ -4024,7 +4059,7 @@ "taskDefinitions": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The family and revision (family:revision) or\n\t\t\tfull Amazon Resource Name (ARN) of the task definition to delete. You must specify a\n\t\t\t\trevision.

\n

You can specify up to 10 task definitions as a comma separated list.

", + "smithy.api#documentation": "

The family and revision (family:revision) or full Amazon Resource Name (ARN) of\n\t\t\tthe task definition to delete. You must specify a revision.

\n

You can specify up to 10 task definitions as a comma separated list.

", "smithy.api#required": {} } } @@ -4091,7 +4126,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes a specified task set within a service. This is used when a service uses the\n\t\t\t\tEXTERNAL deployment controller type. For more information, see Amazon ECS deployment types in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

Deletes a specified task set within a service. This is used when a service uses the\n\t\t\t\tEXTERNAL deployment controller type. For more information, see Amazon ECS deployment\n\t\t\t\ttypes in the Amazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#DeleteTaskSetRequest": { @@ -4100,14 +4135,14 @@ "cluster": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task\n\t\t\tset found in to delete.

", + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task set found in to\n\t\t\tdelete.

", "smithy.api#required": {} } }, "service": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the service that hosts the task set to\n\t\t\tdelete.

", + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the service that hosts the task set to delete.

", "smithy.api#required": {} } }, @@ -4121,7 +4156,7 @@ "force": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

If true, you can delete a task set even if it hasn't been scaled down to\n\t\t\tzero.

" + "smithy.api#documentation": "

If true, you can delete a task set even if it hasn't been scaled down to zero.

" } } }, @@ -4155,13 +4190,13 @@ "status": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The status of the deployment. The following describes each state.

\n
\n
PRIMARY
\n
\n

The most recent deployment of a service.

\n
\n
ACTIVE
\n
\n

A service deployment that still has running tasks, but are in the process\n\t\t\t\t\t\tof being replaced with a new PRIMARY deployment.

\n
\n
INACTIVE
\n
\n

A deployment that has been completely replaced.

\n
\n
" + "smithy.api#documentation": "

The status of the deployment. The following describes each state.

\n
\n
PRIMARY
\n
\n

The most recent deployment of a service.

\n
\n
ACTIVE
\n
\n

A service deployment that still has running tasks, but are in the process of being\n\t\t\t\t\t\treplaced with a new PRIMARY deployment.

\n
\n
INACTIVE
\n
\n

A deployment that has been completely replaced.

\n
\n
" } }, "taskDefinition": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The most recent task definition that was specified for the tasks in the service to\n\t\t\tuse.

" + "smithy.api#documentation": "

The most recent task definition that was specified for the tasks in the service to use.

" } }, "desiredCount": { @@ -4175,21 +4210,21 @@ "target": "com.amazonaws.ecs#Integer", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The number of tasks in the deployment that are in the PENDING\n\t\t\tstatus.

" + "smithy.api#documentation": "

The number of tasks in the deployment that are in the PENDING status.

" } }, "runningCount": { "target": "com.amazonaws.ecs#Integer", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The number of tasks in the deployment that are in the RUNNING\n\t\t\tstatus.

" + "smithy.api#documentation": "

The number of tasks in the deployment that are in the RUNNING status.

" } }, "failedTasks": { "target": "com.amazonaws.ecs#Integer", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The number of consecutively failed tasks in the deployment. A task is considered a\n\t\t\tfailure if the service scheduler can't launch the task, the task doesn't transition to a\n\t\t\t\tRUNNING state, or if it fails any of its defined health checks and is\n\t\t\tstopped.

\n \n

Once a service deployment has one or more successfully running tasks, the failed\n\t\t\t\ttask count resets to zero and stops being evaluated.

\n
" + "smithy.api#documentation": "

The number of consecutively failed tasks in the deployment. A task is considered a failure if the\n\t\t\tservice scheduler can't launch the task, the task doesn't transition to a RUNNING state,\n\t\t\tor if it fails any of its defined health checks and is stopped.

\n \n

Once a service deployment has one or more successfully running tasks, the failed task count\n\t\t\t\tresets to zero and stops being evaluated.

\n
" } }, "createdAt": { @@ -4213,19 +4248,19 @@ "launchType": { "target": "com.amazonaws.ecs#LaunchType", "traits": { - "smithy.api#documentation": "

The launch type the tasks in the service are using. For more information, see Amazon ECS\n\t\t\t\tLaunch Types in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The launch type the tasks in the service are using. For more information, see Amazon ECS Launch\n\t\t\t\tTypes in the Amazon Elastic Container Service Developer Guide.

" } }, "platformVersion": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The platform version that your tasks in the service run on. A platform version is only\n\t\t\tspecified for tasks using the Fargate launch type. If one isn't specified,\n\t\t\tthe LATEST platform version is used. For more information, see Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The platform version that your tasks in the service run on. A platform version is only specified for\n\t\t\ttasks using the Fargate launch type. If one isn't specified, the LATEST\n\t\t\tplatform version is used. For more information, see Fargate Platform Versions in\n\t\t\tthe Amazon Elastic Container Service Developer Guide.

" } }, "platformFamily": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The operating system that your tasks in the service, or tasks are running on. A\n\t\t\tplatform family is specified only for tasks using the Fargate launch type.

\n

All tasks that run as part of this service must use the same\n\t\t\t\tplatformFamily value as the service, for example, \n\t\t\tLINUX..

" + "smithy.api#documentation": "

The operating system that your tasks in the service, or tasks are running on. A platform family is\n\t\t\tspecified only for tasks using the Fargate launch type.

\n

All tasks that run as part of this service must use the same platformFamily value as\n\t\t\tthe service, for example, LINUX..

" } }, "networkConfiguration": { @@ -4237,7 +4272,7 @@ "rolloutState": { "target": "com.amazonaws.ecs#DeploymentRolloutState", "traits": { - "smithy.api#documentation": "\n

The rolloutState of a service is only returned for services that use\n\t\t\t\tthe rolling update (ECS) deployment type that aren't behind a\n\t\t\t\tClassic Load Balancer.

\n
\n

The rollout state of the deployment. When a service deployment is started, it begins\n\t\t\tin an IN_PROGRESS state. When the service reaches a steady state, the\n\t\t\tdeployment transitions to a COMPLETED state. If the service fails to reach\n\t\t\ta steady state and circuit breaker is turned on, the deployment transitions to a\n\t\t\t\tFAILED state. A deployment in FAILED state doesn't launch\n\t\t\tany new tasks. For more information, see DeploymentCircuitBreaker.

" + "smithy.api#documentation": "\n

The rolloutState of a service is only returned for services that use the rolling\n\t\t\t\tupdate (ECS) deployment type that aren't behind a Classic Load Balancer.

\n
\n

The rollout state of the deployment. When a service deployment is started, it begins in an\n\t\t\t\tIN_PROGRESS state. When the service reaches a steady state, the deployment transitions\n\t\t\tto a COMPLETED state. If the service fails to reach a steady state and circuit breaker is\n\t\t\tturned on, the deployment transitions to a FAILED state. A deployment in\n\t\t\t\tFAILED state doesn't launch any new tasks. For more information, see DeploymentCircuitBreaker.

" } }, "rolloutStateReason": { @@ -4249,19 +4284,19 @@ "serviceConnectConfiguration": { "target": "com.amazonaws.ecs#ServiceConnectConfiguration", "traits": { - "smithy.api#documentation": "

The details of the Service Connect configuration that's used by this deployment.\n\t\t\tCompare the configuration between multiple deployments when troubleshooting issues with\n\t\t\tnew deployments.

\n

The configuration for this service to discover and connect to\n\tservices, and be discovered by, and connected from, other services within a namespace.

\n

Tasks that run in a namespace can use short names to connect\n\tto services in the namespace. Tasks can connect to services across all of the clusters in the namespace.\n\tTasks connect through a managed proxy container\n\tthat collects logs and metrics for increased visibility.\n\tOnly the tasks that Amazon ECS services create are supported with Service Connect.\n\tFor more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The details of the Service Connect configuration that's used by this deployment. Compare the\n\t\t\tconfiguration between multiple deployments when troubleshooting issues with new deployments.

\n

The configuration for this service to discover and connect to\n\tservices, and be discovered by, and connected from, other services within a namespace.

\n

Tasks that run in a namespace can use short names to connect\n\tto services in the namespace. Tasks can connect to services across all of the clusters in the namespace.\n\tTasks connect through a managed proxy container\n\tthat collects logs and metrics for increased visibility.\n\tOnly the tasks that Amazon ECS services create are supported with Service Connect.\n\tFor more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.

" } }, "serviceConnectResources": { "target": "com.amazonaws.ecs#ServiceConnectServiceResourceList", "traits": { - "smithy.api#documentation": "

The list of Service Connect resources that are associated with this deployment. Each\n\t\t\tlist entry maps a discovery name to a Cloud Map service name.

" + "smithy.api#documentation": "

The list of Service Connect resources that are associated with this deployment. Each list entry maps\n\t\t\ta discovery name to a Cloud Map service name.

" } }, "volumeConfigurations": { "target": "com.amazonaws.ecs#ServiceVolumeConfigurations", "traits": { - "smithy.api#documentation": "

The details of the volume that was configuredAtLaunch. You can configure\n\t\t\tdifferent settings like the size, throughput, volumeType, and ecryption in ServiceManagedEBSVolumeConfiguration. The name of the volume\n\t\t\tmust match the name from the task definition.

" + "smithy.api#documentation": "

The details of the volume that was configuredAtLaunch. You can configure different\n\t\t\tsettings like the size, throughput, volumeType, and ecryption in ServiceManagedEBSVolumeConfiguration. The name of the volume must match the\n\t\t\t\tname from the task definition.

" } }, "fargateEphemeralStorage": { @@ -4269,6 +4304,12 @@ "traits": { "smithy.api#documentation": "

The Fargate ephemeral storage settings for the deployment.

" } + }, + "vpcLatticeConfigurations": { + "target": "com.amazonaws.ecs#VpcLatticeConfigurations", + "traits": { + "smithy.api#documentation": "

The VPC Lattice configuration for the service deployment.

" + } } }, "traits": { @@ -4289,7 +4330,7 @@ "target": "com.amazonaws.ecs#Boolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

Determines whether to configure Amazon ECS to roll back the service if a service deployment\n\t\t\tfails. If rollback is used, when a service deployment fails, the service is rolled back\n\t\t\tto the last deployment that completed successfully.

", + "smithy.api#documentation": "

Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If\n\t\t\trollback is used, when a service deployment fails, the service is rolled back to the last deployment\n\t\t\tthat completed successfully.

", "smithy.api#required": {} } }, @@ -4297,13 +4338,13 @@ "target": "com.amazonaws.ecs#Boolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

Determines whether to use the CloudWatch alarm option in the service deployment\n\t\t\tprocess.

", + "smithy.api#documentation": "

Determines whether to use the CloudWatch alarm option in the service deployment process.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

One of the methods which provide a way for you to quickly identify when a deployment\n\t\t\thas failed, and then to optionally roll back the failure to the last working\n\t\t\tdeployment.

\n

When the alarms are generated, Amazon ECS sets the service deployment to failed. Set the\n\t\t\trollback parameter to have Amazon ECS to roll back your service to the last completed\n\t\t\tdeployment after a failure.

\n

You can only use the DeploymentAlarms method to detect failures when the\n\t\t\t\tDeploymentController is set to ECS (rolling\n\t\t\tupdate).

\n

For more information, see Rolling\n\t\t\t\tupdate in the \n Amazon Elastic Container Service Developer Guide\n .

" + "smithy.api#documentation": "

One of the methods which provide a way for you to quickly identify when a deployment has failed, and\n\t\t\tthen to optionally roll back the failure to the last working deployment.

\n

When the alarms are generated, Amazon ECS sets the service deployment to failed. Set the rollback\n\t\t\tparameter to have Amazon ECS to roll back your service to the last completed deployment after a\n\t\t\tfailure.

\n

You can only use the DeploymentAlarms method to detect failures when the\n\t\t\t\tDeploymentController is set to ECS (rolling update).

\n

For more information, see Rolling update in the\n\t\t\t\t\n Amazon Elastic Container Service Developer Guide\n .

" } }, "com.amazonaws.ecs#DeploymentCircuitBreaker": { @@ -4321,13 +4362,13 @@ "target": "com.amazonaws.ecs#Boolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

Determines whether to configure Amazon ECS to roll back the service if a service deployment\n\t\t\tfails. If rollback is on, when a service deployment fails, the service is rolled back to\n\t\t\tthe last deployment that completed successfully.

", + "smithy.api#documentation": "

Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If\n\t\t\trollback is on, when a service deployment fails, the service is rolled back to the last deployment that\n\t\t\tcompleted successfully.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "\n

The deployment circuit breaker can only be used for services using the rolling\n\t\t\t\tupdate (ECS) deployment type.

\n
\n

The deployment circuit breaker determines whether a\n\t\t\tservice deployment will fail if the service can't reach a steady state. If it is turned\n\t\t\ton, a service deployment will transition to a failed state and stop launching new tasks.\n\t\t\tYou can also configure Amazon ECS to roll back your service to the last completed deployment\n\t\t\tafter a failure. For more information, see Rolling\n\t\t\t\tupdate in the Amazon Elastic Container Service Developer Guide.

\n

For more information about API failure reasons, see API failure\n\t\t\t\treasons in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "\n

The deployment circuit breaker can only be used for services using the rolling update\n\t\t\t\t\t(ECS) deployment type.

\n
\n

The deployment circuit breaker determines whether a service\n\t\t\tdeployment will fail if the service can't reach a steady state. If it is turned on, a service\n\t\t\tdeployment will transition to a failed state and stop launching new tasks. You can also configure Amazon ECS\n\t\t\tto roll back your service to the last completed deployment after a failure. For more information, see\n\t\t\t\tRolling\n\t\t\t\tupdate in the Amazon Elastic Container Service Developer Guide.

\n

For more information about API failure reasons, see API failure reasons in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#DeploymentConfiguration": { @@ -4336,19 +4377,19 @@ "deploymentCircuitBreaker": { "target": "com.amazonaws.ecs#DeploymentCircuitBreaker", "traits": { - "smithy.api#documentation": "\n

The deployment circuit breaker can only be used for services using the rolling\n\t\t\t\tupdate (ECS) deployment type.

\n
\n

The deployment circuit breaker determines whether a\n\t\t\tservice deployment will fail if the service can't reach a steady state. If you use the\n\t\t\tdeployment circuit breaker, a service deployment will transition to a failed state and\n\t\t\tstop launching new tasks. If you use the rollback option, when a service deployment\n\t\t\tfails, the service is rolled back to the last deployment that completed successfully.\n\t\t\tFor more information, see Rolling\n\t\t\t\tupdate in the Amazon Elastic Container Service Developer\n\t\t\t\tGuide\n

" + "smithy.api#documentation": "\n

The deployment circuit breaker can only be used for services using the rolling update\n\t\t\t\t\t(ECS) deployment type.

\n
\n

The deployment circuit breaker determines whether a service\n\t\t\tdeployment will fail if the service can't reach a steady state. If you use the deployment circuit\n\t\t\tbreaker, a service deployment will transition to a failed state and stop launching new tasks. If you\n\t\t\tuse the rollback option, when a service deployment fails, the service is rolled back to the last\n\t\t\tdeployment that completed successfully. For more information, see Rolling update in the\n\t\t\t\tAmazon Elastic Container Service Developer Guide\n

" } }, "maximumPercent": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

If a service is using the rolling update (ECS) deployment type, the\n\t\t\t\tmaximumPercent parameter represents an upper limit on the number of\n\t\t\tyour service's tasks that are allowed in the RUNNING or\n\t\t\t\tPENDING state during a deployment, as a percentage of the\n\t\t\t\tdesiredCount (rounded down to the nearest integer). This parameter\n\t\t\tenables you to define the deployment batch size. For example, if your service is using\n\t\t\tthe REPLICA service scheduler and has a desiredCount of four\n\t\t\ttasks and a maximumPercent value of 200%, the scheduler may start four new\n\t\t\ttasks before stopping the four older tasks (provided that the cluster resources required\n\t\t\tto do this are available). The default maximumPercent value for a service\n\t\t\tusing the REPLICA service scheduler is 200%.

\n

If a service is using either the blue/green (CODE_DEPLOY) or\n\t\t\t\tEXTERNAL deployment types, and tasks in the service use the EC2\n\t\t\tlaunch type, the maximum percent value is set to the\n\t\t\tdefault value. The maximum percent value is used to define the upper limit on the number of the tasks in the\n\t\t\tservice that remain in the RUNNING state while the container instances are\n\t\t\tin the DRAINING state.

\n \n

You can't specify a custom maximumPercent value for a service that uses either the blue/green (CODE_DEPLOY) or\n\t\t\tEXTERNAL deployment types and has tasks that use the EC2 launch type.

\n
\n

If the tasks in the service use the\n\t\t\tFargate launch type, the maximum percent value is not used, although it is\n\t\t\treturned when describing your service.

" + "smithy.api#documentation": "

If a service is using the rolling update (ECS) deployment type, the\n\t\t\t\tmaximumPercent parameter represents an upper limit on the number of your service's\n\t\t\ttasks that are allowed in the RUNNING or PENDING state during a deployment,\n\t\t\tas a percentage of the desiredCount (rounded down to the nearest integer). This parameter\n\t\t\tenables you to define the deployment batch size. For example, if your service is using the\n\t\t\t\tREPLICA service scheduler and has a desiredCount of four tasks and a\n\t\t\t\tmaximumPercent value of 200%, the scheduler may start four new tasks before stopping\n\t\t\tthe four older tasks (provided that the cluster resources required to do this are available). The\n\t\t\tdefault maximumPercent value for a service using the REPLICA service\n\t\t\tscheduler is 200%.

\n

If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL\n\t\t\tdeployment types, and tasks in the service use the EC2 launch type, the maximum percent value is set to the default value. The maximum percent value is used to define the upper limit on the number of the tasks in\n\t\t\tthe service that remain in the RUNNING state while the container instances are in the\n\t\t\t\tDRAINING state.

\n \n

You can't specify a custom maximumPercent value for a service that uses either the\n\t\t\t\tblue/green (CODE_DEPLOY) or EXTERNAL deployment types and has tasks that\n\t\t\t\tuse the EC2 launch type.

\n
\n

If the tasks in the service use the Fargate launch type, the maximum percent value is\n\t\t\tnot used, although it is returned when describing your service.

" } }, "minimumHealthyPercent": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

If a service is using the rolling update (ECS) deployment type, the\n\t\t\t\tminimumHealthyPercent represents a lower limit on the number of your\n\t\t\tservice's tasks that must remain in the RUNNING state during a deployment,\n\t\t\tas a percentage of the desiredCount (rounded up to the nearest integer).\n\t\t\tThis parameter enables you to deploy without using additional cluster capacity. For\n\t\t\texample, if your service has a desiredCount of four tasks and a\n\t\t\t\tminimumHealthyPercent of 50%, the service scheduler may stop two\n\t\t\texisting tasks to free up cluster capacity before starting two new tasks.

\n

For services that do not use a load balancer, the following\n\t\t\tshould be noted:

\n \n

For services that do use a load balancer, the following should be\n\t\t\tnoted:

\n \n

The default value for a replica service for minimumHealthyPercent is\n\t\t\t100%. The default minimumHealthyPercent value for a service using the\n\t\t\t\tDAEMON service schedule is 0% for the CLI, the Amazon Web Services SDKs, and the\n\t\t\tAPIs and 50% for the Amazon Web Services Management Console.

\n

The minimum number of healthy tasks during a deployment is the\n\t\t\t\tdesiredCount multiplied by the minimumHealthyPercent/100,\n\t\t\trounded up to the nearest integer value.

\n

If a service is using either the blue/green (CODE_DEPLOY) or\n\t\t\t\tEXTERNAL deployment types and is running tasks that use the\n\t\t\tEC2 launch type, the minimum healthy\n\t\t\t\tpercent value is set to the default value. The minimum healthy percent value is used to define the lower\n\t\t\tlimit on the number of the tasks in the service that remain in the RUNNING\n\t\t\tstate while the container instances are in the DRAINING state.

\n \n

You can't specify a custom minimumHealthyPercent value for a service that uses either the blue/green (CODE_DEPLOY) or\n\t\t\tEXTERNAL deployment types and has tasks that use the EC2 launch type.

\n
\n

If a service\n\t\t\tis using either the blue/green (CODE_DEPLOY) or EXTERNAL\n\t\t\tdeployment types and is running tasks that use the Fargate launch type,\n\t\t\tthe minimum healthy percent value is not used, although it is returned when describing\n\t\t\tyour service.

" + "smithy.api#documentation": "

If a service is using the rolling update (ECS) deployment type, the\n\t\t\t\tminimumHealthyPercent represents a lower limit on the number of your service's tasks\n\t\t\tthat must remain in the RUNNING state during a deployment, as a percentage of the\n\t\t\t\tdesiredCount (rounded up to the nearest integer). This parameter enables you to deploy\n\t\t\twithout using additional cluster capacity. For example, if your service has a desiredCount\n\t\t\tof four tasks and a minimumHealthyPercent of 50%, the service scheduler may stop two\n\t\t\texisting tasks to free up cluster capacity before starting two new tasks.

\n

For services that do not use a load balancer, the following should be\n\t\t\tnoted:

\n \n

For services that do use a load balancer, the following should be noted:

\n \n

The default value for a replica service for minimumHealthyPercent is 100%. The default\n\t\t\t\tminimumHealthyPercent value for a service using the DAEMON service\n\t\t\tschedule is 0% for the CLI, the Amazon Web Services SDKs, and the APIs and 50% for the Amazon Web Services Management Console.

\n

The minimum number of healthy tasks during a deployment is the desiredCount multiplied\n\t\t\tby the minimumHealthyPercent/100, rounded up to the nearest integer value.

\n

If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL\n\t\t\tdeployment types and is running tasks that use the EC2 launch type, the minimum healthy percent value is set to the default value. The minimum healthy percent value is used to define the lower limit on the\n\t\t\tnumber of the tasks in the service that remain in the RUNNING state while the container\n\t\t\tinstances are in the DRAINING state.

\n \n

You can't specify a custom minimumHealthyPercent value for a service that uses\n\t\t\t\teither the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and has\n\t\t\t\ttasks that use the EC2 launch type.

\n
\n

If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL\n\t\t\tdeployment types and is running tasks that use the Fargate launch type, the minimum\n\t\t\thealthy percent value is not used, although it is returned when describing your service.

" } }, "alarms": { @@ -4359,7 +4400,7 @@ } }, "traits": { - "smithy.api#documentation": "

Optional deployment parameters that control how many tasks run during the deployment and the\n\t\t\tfailure detection methods.

" + "smithy.api#documentation": "

Optional deployment parameters that control how many tasks run during a deployment and the ordering\n\t\t\tof stopping and starting tasks.

" } }, "com.amazonaws.ecs#DeploymentController": { @@ -4368,13 +4409,13 @@ "type": { "target": "com.amazonaws.ecs#DeploymentControllerType", "traits": { - "smithy.api#documentation": "

The deployment controller type to use.

\n

There are three deployment controller types available:

\n
\n
ECS
\n
\n

The rolling update (ECS) deployment type involves replacing\n\t\t\t\t\t\tthe current running version of the container with the latest version. The\n\t\t\t\t\t\tnumber of containers Amazon ECS adds or removes from the service during a rolling\n\t\t\t\t\t\tupdate is controlled by adjusting the minimum and maximum number of healthy\n\t\t\t\t\t\ttasks allowed during a service deployment, as specified in the DeploymentConfiguration.

\n
\n
CODE_DEPLOY
\n
\n

The blue/green (CODE_DEPLOY) deployment type uses the\n\t\t\t\t\t\tblue/green deployment model powered by CodeDeploy, which allows you to verify a\n\t\t\t\t\t\tnew deployment of a service before sending production traffic to it.

\n
\n
EXTERNAL
\n
\n

The external (EXTERNAL) deployment type enables you to use\n\t\t\t\t\t\tany third-party deployment controller for full control over the deployment\n\t\t\t\t\t\tprocess for an Amazon ECS service.

\n
\n
", + "smithy.api#documentation": "

The deployment controller type to use.

\n

There are three deployment controller types available:

\n
\n
ECS
\n
\n

The rolling update (ECS) deployment type involves replacing the current\n\t\t\t\t\t\trunning version of the container with the latest version. The number of containers Amazon ECS\n\t\t\t\t\t\tadds or removes from the service during a rolling update is controlled by adjusting the\n\t\t\t\t\t\tminimum and maximum number of healthy tasks allowed during a service deployment, as\n\t\t\t\t\t\tspecified in the DeploymentConfiguration.

\n

For more information about rolling deployments, see Deploy Amazon ECS services by replacing tasks in the Amazon Elastic Container Service Developer Guide.

\n
\n
CODE_DEPLOY
\n
\n

The blue/green (CODE_DEPLOY) deployment type uses the blue/green deployment\n\t\t\t\t\t\tmodel powered by CodeDeploy, which allows you to verify a new deployment of a service before\n\t\t\t\t\t\tsending production traffic to it.

\n

For more information about blue/green deployments, see Validate the state of an Amazon ECS service before deployment in the Amazon Elastic Container Service Developer Guide.

\n
\n
EXTERNAL
\n
\n

The external (EXTERNAL) deployment type enables you to use any third-party\n\t\t\t\t\t\tdeployment controller for full control over the deployment process for an Amazon ECS\n\t\t\t\t\t\tservice.

\n

For more information about external deployments, see Deploy Amazon ECS services using a third-party controller in the Amazon Elastic Container Service Developer Guide.

\n
\n
", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

The deployment controller to use for the service. For more information, see Amazon ECS deployment types in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The deployment controller to use for the service.

" } }, "com.amazonaws.ecs#DeploymentControllerType": { @@ -4406,7 +4447,7 @@ "kmsKeyId": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

Specify an Amazon Web Services Key Management Service key ID to encrypt the ephemeral storage for\n\t\t\tdeployment.

" + "smithy.api#documentation": "

Specify an Key Management Service key ID to encrypt the ephemeral storage for deployment.

" } } }, @@ -4466,7 +4507,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deregisters an Amazon ECS container instance from the specified cluster. This instance is\n\t\t\tno longer available to run tasks.

\n

If you intend to use the container instance for some other purpose after\n\t\t\tderegistration, we recommend that you stop all of the tasks running on the container\n\t\t\tinstance before deregistration. That prevents any orphaned tasks from consuming\n\t\t\tresources.

\n

Deregistering a container instance removes the instance from a cluster, but it doesn't\n\t\t\tterminate the EC2 instance. If you are finished using the instance, be sure to terminate\n\t\t\tit in the Amazon EC2 console to stop billing.

\n \n

If you terminate a running container instance, Amazon ECS automatically deregisters the\n\t\t\t\tinstance from your cluster (stopped container instances or instances with\n\t\t\t\tdisconnected agents aren't automatically deregistered when terminated).

\n
", + "smithy.api#documentation": "

Deregisters an Amazon ECS container instance from the specified cluster. This instance is no longer\n\t\t\tavailable to run tasks.

\n

If you intend to use the container instance for some other purpose after deregistration, we recommend\n\t\t\tthat you stop all of the tasks running on the container instance before deregistration. That prevents\n\t\t\tany orphaned tasks from consuming resources.

\n

Deregistering a container instance removes the instance from a cluster, but it doesn't terminate the\n\t\t\tEC2 instance. If you are finished using the instance, be sure to terminate it in the Amazon EC2 console to\n\t\t\tstop billing.

\n \n

If you terminate a running container instance, Amazon ECS automatically deregisters the instance from\n\t\t\t\tyour cluster (stopped container instances or instances with disconnected agents aren't\n\t\t\t\tautomatically deregistered when terminated).

\n
", "smithy.api#examples": [ { "title": "To deregister a container instance from a cluster", @@ -4487,20 +4528,20 @@ "cluster": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instance to\n\t\t\tderegister. If you do not specify a cluster, the default cluster is assumed.

" + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instance to deregister.\n\t\t\tIf you do not specify a cluster, the default cluster is assumed.

" } }, "containerInstance": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The container instance ID or full ARN of the container instance to deregister. For\n\t\t\tmore information about the ARN format, see Amazon Resource Name (ARN) in the Amazon ECS Developer Guide.

", + "smithy.api#documentation": "

The container instance ID or full ARN of the container instance to deregister. For more information\n\t\t\tabout the ARN format, see Amazon Resource Name (ARN)\n\t\t\tin the Amazon ECS Developer Guide.

", "smithy.api#required": {} } }, "force": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

Forces the container instance to be deregistered. If you have tasks running on the\n\t\t\tcontainer instance when you deregister it with the force option, these\n\t\t\ttasks remain running until you terminate the instance or the tasks stop through some\n\t\t\tother means, but they're orphaned (no longer monitored or accounted for by Amazon ECS). If an\n\t\t\torphaned task on your container instance is part of an Amazon ECS service, then the service\n\t\t\tscheduler starts another copy of that task, on a different container instance if\n\t\t\tpossible.

\n

Any containers in orphaned service tasks that are registered with a Classic Load Balancer or an Application Load Balancer\n\t\t\ttarget group are deregistered. They begin connection draining according to the settings\n\t\t\ton the load balancer or target group.

" + "smithy.api#documentation": "

Forces the container instance to be deregistered. If you have tasks running on the container instance\n\t\t\twhen you deregister it with the force option, these tasks remain running until you\n\t\t\tterminate the instance or the tasks stop through some other means, but they're orphaned (no longer\n\t\t\tmonitored or accounted for by Amazon ECS). If an orphaned task on your container instance is part of an\n\t\t\tAmazon ECS service, then the service scheduler starts another copy of that task, on a different container\n\t\t\tinstance if possible.

\n

Any containers in orphaned service tasks that are registered with a Classic Load Balancer or an Application Load Balancer target group\n\t\t\tare deregistered. They begin connection draining according to the settings on the load balancer or\n\t\t\ttarget group.

" } } }, @@ -4542,7 +4583,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deregisters the specified task definition by family and revision. Upon deregistration,\n\t\t\tthe task definition is marked as INACTIVE. Existing tasks and services that\n\t\t\treference an INACTIVE task definition continue to run without disruption.\n\t\t\tExisting services that reference an INACTIVE task definition can still\n\t\t\tscale up or down by modifying the service's desired count. If you want to delete a task\n\t\t\tdefinition revision, you must first deregister the task definition revision.

\n

You can't use an INACTIVE task definition to run new tasks or create new\n\t\t\tservices, and you can't update an existing service to reference an INACTIVE\n\t\t\ttask definition. However, there may be up to a 10-minute window following deregistration\n\t\t\twhere these restrictions have not yet taken effect.

\n \n

At this time, INACTIVE task definitions remain discoverable in your\n\t\t\t\taccount indefinitely. However, this behavior is subject to change in the future. We\n\t\t\t\tdon't recommend that you rely on INACTIVE task definitions persisting\n\t\t\t\tbeyond the lifecycle of any associated tasks and services.

\n
\n

You must deregister a task definition revision before you delete it. For more\n\t\t\tinformation, see DeleteTaskDefinitions.

" + "smithy.api#documentation": "

Deregisters the specified task definition by family and revision. Upon deregistration, the task\n\t\t\tdefinition is marked as INACTIVE. Existing tasks and services that reference an\n\t\t\t\tINACTIVE task definition continue to run without disruption. Existing services that\n\t\t\treference an INACTIVE task definition can still scale up or down by modifying the\n\t\t\tservice's desired count. If you want to delete a task definition revision, you must first deregister\n\t\t\tthe task definition revision.

\n

You can't use an INACTIVE task definition to run new tasks or create new services, and\n\t\t\tyou can't update an existing service to reference an INACTIVE task definition. However,\n\t\t\tthere may be up to a 10-minute window following deregistration where these restrictions have not yet\n\t\t\ttaken effect.

\n \n

At this time, INACTIVE task definitions remain discoverable in your account\n\t\t\t\tindefinitely. However, this behavior is subject to change in the future. We don't recommend that\n\t\t\t\tyou rely on INACTIVE task definitions persisting beyond the lifecycle of any\n\t\t\t\tassociated tasks and services.

\n
\n

You must deregister a task definition revision before you delete it. For more information, see DeleteTaskDefinitions.

" } }, "com.amazonaws.ecs#DeregisterTaskDefinitionRequest": { @@ -4551,7 +4592,7 @@ "taskDefinition": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The family and revision (family:revision) or\n\t\t\tfull Amazon Resource Name (ARN) of the task definition to deregister. You must specify a\n\t\t\t\trevision.

", + "smithy.api#documentation": "

The family and revision (family:revision) or full Amazon Resource Name (ARN) of\n\t\t\tthe task definition to deregister. You must specify a revision.

", "smithy.api#required": {} } } @@ -4603,25 +4644,25 @@ "capacityProviders": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of one or more capacity providers. Up to\n\t\t\t\t100 capacity providers can be described in an action.

" + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of one or more capacity providers. Up to 100 capacity\n\t\t\tproviders can be described in an action.

" } }, "include": { "target": "com.amazonaws.ecs#CapacityProviderFieldList", "traits": { - "smithy.api#documentation": "

Specifies whether or not you want to see the resource tags for the capacity provider.\n\t\t\tIf TAGS is specified, the tags are included in the response. If this field\n\t\t\tis omitted, tags aren't included in the response.

" + "smithy.api#documentation": "

Specifies whether or not you want to see the resource tags for the capacity provider. If\n\t\t\t\tTAGS is specified, the tags are included in the response. If this field is omitted,\n\t\t\ttags aren't included in the response.

" } }, "maxResults": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The maximum number of account setting results returned by\n\t\t\t\tDescribeCapacityProviders in paginated output. When this parameter is\n\t\t\tused, DescribeCapacityProviders only returns maxResults\n\t\t\tresults in a single page along with a nextToken response element. The\n\t\t\tremaining results of the initial request can be seen by sending another\n\t\t\t\tDescribeCapacityProviders request with the returned\n\t\t\t\tnextToken value. This value can be between\n\t\t\t1 and 10. If this\n\t\t\tparameter is not used, then DescribeCapacityProviders returns up to\n\t\t\t10 results and a nextToken value\n\t\t\tif applicable.

" + "smithy.api#documentation": "

The maximum number of account setting results returned by DescribeCapacityProviders in\n\t\t\tpaginated output. When this parameter is used, DescribeCapacityProviders only returns\n\t\t\t\tmaxResults results in a single page along with a nextToken response\n\t\t\telement. The remaining results of the initial request can be seen by sending another\n\t\t\t\tDescribeCapacityProviders request with the returned nextToken value. This\n\t\t\tvalue can be between 1 and 10. If\n\t\t\tthis parameter is not used, then DescribeCapacityProviders returns up to\n\t\t\t10 results and a nextToken value if\n\t\t\tapplicable.

" } }, "nextToken": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The nextToken value returned from a previous paginated\n\t\t\t\tDescribeCapacityProviders request where maxResults was\n\t\t\tused and the results exceeded the value of that parameter. Pagination continues from the\n\t\t\tend of the previous results that returned the nextToken value.

\n \n

This token should be treated as an opaque identifier that is only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" + "smithy.api#documentation": "

The nextToken value returned from a previous paginated\n\t\t\t\tDescribeCapacityProviders request where maxResults was used and the\n\t\t\tresults exceeded the value of that parameter. Pagination continues from the end of the previous results\n\t\t\tthat returned the nextToken value.

\n \n

This token should be treated as an opaque identifier that is only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" } } }, @@ -4647,7 +4688,7 @@ "nextToken": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The nextToken value to include in a future\n\t\t\t\tDescribeCapacityProviders request. When the results of a\n\t\t\t\tDescribeCapacityProviders request exceed maxResults, this\n\t\t\tvalue can be used to retrieve the next page of results. This value is null\n\t\t\twhen there are no more results to return.

" + "smithy.api#documentation": "

The nextToken value to include in a future DescribeCapacityProviders\n\t\t\trequest. When the results of a DescribeCapacityProviders request exceed\n\t\t\t\tmaxResults, this value can be used to retrieve the next page of results. This value is\n\t\t\t\tnull when there are no more results to return.

" } } }, @@ -4705,13 +4746,13 @@ "clusters": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

A list of up to 100 cluster names or full cluster Amazon Resource Name (ARN) entries.\n\t\t\tIf you do not specify a cluster, the default cluster is assumed.

" + "smithy.api#documentation": "

A list of up to 100 cluster names or full cluster Amazon Resource Name (ARN) entries. If you do not specify a cluster, the default cluster is assumed.

" } }, "include": { "target": "com.amazonaws.ecs#ClusterFieldList", "traits": { - "smithy.api#documentation": "

Determines whether to include additional information about the clusters in the\n\t\t\tresponse. If this field is omitted, this information isn't included.

\n

If ATTACHMENTS is specified, the attachments for the container instances\n\t\t\tor tasks within the cluster are included, for example the capacity providers.

\n

If SETTINGS is specified, the settings for the cluster are\n\t\t\tincluded.

\n

If CONFIGURATIONS is specified, the configuration for the cluster is\n\t\t\tincluded.

\n

If STATISTICS is specified, the task and service count is included,\n\t\t\tseparated by launch type.

\n

If TAGS is specified, the metadata tags associated with the cluster are\n\t\t\tincluded.

" + "smithy.api#documentation": "

Determines whether to include additional information about the clusters in the response. If this\n\t\t\tfield is omitted, this information isn't included.

\n

If ATTACHMENTS is specified, the attachments for the container instances or tasks within\n\t\t\tthe cluster are included, for example the capacity providers.

\n

If SETTINGS is specified, the settings for the cluster are included.

\n

If CONFIGURATIONS is specified, the configuration for the cluster is included.

\n

If STATISTICS is specified, the task and service count is included, separated by launch\n\t\t\ttype.

\n

If TAGS is specified, the metadata tags associated with the cluster are included.

" } } }, @@ -4762,7 +4803,7 @@ } ], "traits": { - "smithy.api#documentation": "

Describes one or more container instances. Returns metadata about each container\n\t\t\tinstance requested.

", + "smithy.api#documentation": "

Describes one or more container instances. Returns metadata about each container instance\n\t\t\trequested.

", "smithy.api#examples": [ { "title": "To describe container instance", @@ -4855,7 +4896,7 @@ "cluster": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instances to\n\t\t\tdescribe. If you do not specify a cluster, the default cluster is assumed. This parameter is required if the container instance\n\t\t\tor container instances you are describing were launched in any cluster other than the\n\t\t\tdefault cluster.

" + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instances to describe.\n\t\t\tIf you do not specify a cluster, the default cluster is assumed. This parameter is required if the container instance or container instances\n\t\t\tyou are describing were launched in any cluster other than the default cluster.

" } }, "containerInstances": { @@ -4868,7 +4909,7 @@ "include": { "target": "com.amazonaws.ecs#ContainerInstanceFieldList", "traits": { - "smithy.api#documentation": "

Specifies whether you want to see the resource tags for the container instance. If\n\t\t\t\tTAGS is specified, the tags are included in the response. If\n\t\t\t\tCONTAINER_INSTANCE_HEALTH is specified, the container instance health\n\t\t\tis included in the response. If this field is omitted, tags and container instance\n\t\t\thealth status aren't included in the response.

" + "smithy.api#documentation": "

Specifies whether you want to see the resource tags for the container instance. If TAGS\n\t\t\tis specified, the tags are included in the response. If CONTAINER_INSTANCE_HEALTH is\n\t\t\tspecified, the container instance health is included in the response. If this field is omitted, tags\n\t\t\tand container instance health status aren't included in the response.

" } } }, @@ -4958,7 +4999,7 @@ "failures": { "target": "com.amazonaws.ecs#Failures", "traits": { - "smithy.api#documentation": "

Any failures associated with the call.

\n

If you decsribe a deployment with a service revision created before October 25, 2024, the\n\t\t\tcall fails. The failure includes the service revision ARN and the reason set to\n\t\t\t\tMISSING.

" + "smithy.api#documentation": "

Any failures associated with the call.

\n

If you decsribe a deployment with a service revision created before October 25, 2024, the\n\t\t\tcall fails. The failure includes the service revision ARN and the reason set to\n\t\t\tMISSING.

" } } }, @@ -5191,20 +5232,20 @@ "cluster": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN)the cluster that hosts the service to describe.\n\t\t\tIf you do not specify a cluster, the default cluster is assumed. This parameter is required if the service or services you are\n\t\t\tdescribing were launched in any cluster other than the default cluster.

" + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN)the cluster that hosts the service to describe.\n\t\t\tIf you do not specify a cluster, the default cluster is assumed. This parameter is required if the service or services you are describing were\n\t\t\tlaunched in any cluster other than the default cluster.

" } }, "services": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

A list of services to describe. You may specify up to 10 services to describe in a\n\t\t\tsingle operation.

", + "smithy.api#documentation": "

A list of services to describe. You may specify up to 10 services to describe in a single\n\t\t\toperation.

", "smithy.api#required": {} } }, "include": { "target": "com.amazonaws.ecs#ServiceFieldList", "traits": { - "smithy.api#documentation": "

Determines whether you want to see the resource tags for the service. If\n\t\t\t\tTAGS is specified, the tags are included in the response. If this field\n\t\t\tis omitted, tags aren't included in the response.

" + "smithy.api#documentation": "

Determines whether you want to see the resource tags for the service. If TAGS is\n\t\t\tspecified, the tags are included in the response. If this field is omitted, tags aren't included in the\n\t\t\tresponse.

" } } }, @@ -5252,7 +5293,7 @@ } ], "traits": { - "smithy.api#documentation": "

Describes a task definition. You can specify a family and\n\t\t\t\trevision to find information about a specific task definition, or you\n\t\t\tcan simply specify the family to find the latest ACTIVE revision in that\n\t\t\tfamily.

\n \n

You can only describe INACTIVE task definitions while an active task\n\t\t\t\tor service references them.

\n
", + "smithy.api#documentation": "

Describes a task definition. You can specify a family and revision to find\n\t\t\tinformation about a specific task definition, or you can simply specify the family to find the latest\n\t\t\t\tACTIVE revision in that family.

\n \n

You can only describe INACTIVE task definitions while an active task or service\n\t\t\t\treferences them.

\n
", "smithy.api#examples": [ { "title": "To describe a task definition", @@ -5315,14 +5356,14 @@ "taskDefinition": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The family for the latest ACTIVE revision,\n\t\t\t\tfamily and revision (family:revision) for a\n\t\t\tspecific revision in the family, or full Amazon Resource Name (ARN) of the task definition to\n\t\t\tdescribe.

", + "smithy.api#documentation": "

The family for the latest ACTIVE revision, family and\n\t\t\t\trevision (family:revision) for a specific revision in the family, or full\n\t\t\tAmazon Resource Name (ARN) of the task definition to describe.

", "smithy.api#required": {} } }, "include": { "target": "com.amazonaws.ecs#TaskDefinitionFieldList", "traits": { - "smithy.api#documentation": "

Determines whether to see the resource tags for the task definition. If\n\t\t\t\tTAGS is specified, the tags are included in the response. If this field\n\t\t\tis omitted, tags aren't included in the response.

" + "smithy.api#documentation": "

Determines whether to see the resource tags for the task definition. If TAGS is\n\t\t\tspecified, the tags are included in the response. If this field is omitted, tags aren't included in the\n\t\t\tresponse.

" } } }, @@ -5342,7 +5383,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that's applied to the task definition to help you categorize and organize\n\t\t\tthem. Each tag consists of a key and an optional value. You define both.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that's applied to the task definition to help you categorize and organize them. Each tag\n\t\t\tconsists of a key and an optional value. You define both.

\n

The following basic restrictions apply to tags:

\n " } } }, @@ -5385,7 +5426,7 @@ } ], "traits": { - "smithy.api#documentation": "

Describes the task sets in the specified cluster and service. This is used when a\n\t\t\tservice uses the EXTERNAL deployment controller type. For more information,\n\t\t\tsee Amazon ECS Deployment\n\t\t\t\tTypes in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

Describes the task sets in the specified cluster and service. This is used when a service uses the\n\t\t\t\tEXTERNAL deployment controller type. For more information, see Amazon ECS Deployment\n\t\t\t\tTypes in the Amazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#DescribeTaskSetsRequest": { @@ -5394,7 +5435,7 @@ "cluster": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task\n\t\t\tsets exist in.

", + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task sets exist\n\t\t\tin.

", "smithy.api#required": {} } }, @@ -5408,13 +5449,13 @@ "taskSets": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The ID or full Amazon Resource Name (ARN) of task sets to\n\t\t\tdescribe.

" + "smithy.api#documentation": "

The ID or full Amazon Resource Name (ARN) of task sets to describe.

" } }, "include": { "target": "com.amazonaws.ecs#TaskSetFieldList", "traits": { - "smithy.api#documentation": "

Specifies whether to see the resource tags for the task set. If TAGS is\n\t\t\tspecified, the tags are included in the response. If this field is omitted, tags aren't\n\t\t\tincluded in the response.

" + "smithy.api#documentation": "

Specifies whether to see the resource tags for the task set. If TAGS is specified, the\n\t\t\ttags are included in the response. If this field is omitted, tags aren't included in the\n\t\t\tresponse.

" } } }, @@ -5465,7 +5506,7 @@ } ], "traits": { - "smithy.api#documentation": "

Describes a specified task or tasks.

\n

Currently, stopped tasks appear in the returned results for at least one hour.

\n

If you have tasks with tags, and then delete the cluster, the tagged tasks are\n\t\t\treturned in the response. If you create a new cluster with the same name as the deleted\n\t\t\tcluster, the tagged tasks are not included in the response.

", + "smithy.api#documentation": "

Describes a specified task or tasks.

\n

Currently, stopped tasks appear in the returned results for at least one hour.

\n

If you have tasks with tags, and then delete the cluster, the tagged tasks are returned in the\n\t\t\tresponse. If you create a new cluster with the same name as the deleted cluster, the tagged tasks are\n\t\t\tnot included in the response.

", "smithy.api#examples": [ { "title": "To describe a task", @@ -5573,7 +5614,7 @@ "cluster": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task or tasks to\n\t\t\tdescribe. If you do not specify a cluster, the default cluster is assumed. This parameter is required if the task or tasks you\n\t\t\tare describing were launched in any cluster other than the default cluster.

" + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task or tasks to describe.\n\t\t\tIf you do not specify a cluster, the default cluster is assumed. This parameter is required if the task or tasks you are describing were\n\t\t\tlaunched in any cluster other than the default cluster.

" } }, "tasks": { @@ -5586,7 +5627,7 @@ "include": { "target": "com.amazonaws.ecs#TaskFieldList", "traits": { - "smithy.api#documentation": "

Specifies whether you want to see the resource tags for the task. If TAGS\n\t\t\tis specified, the tags are included in the response. If this field is omitted, tags\n\t\t\taren't included in the response.

" + "smithy.api#documentation": "

Specifies whether you want to see the resource tags for the task. If TAGS is specified,\n\t\t\tthe tags are included in the response. If this field is omitted, tags aren't included in the\n\t\t\tresponse.

" } } }, @@ -5656,7 +5697,7 @@ "permissions": { "target": "com.amazonaws.ecs#DeviceCgroupPermissions", "traits": { - "smithy.api#documentation": "

The explicit permissions to provide to the container for the device. By default, the\n\t\t\tcontainer has permissions for read, write, and\n\t\t\t\tmknod for the device.

" + "smithy.api#documentation": "

The explicit permissions to provide to the container for the device. By default, the container has\n\t\t\tpermissions for read, write, and mknod for the device.

" } } }, @@ -5725,13 +5766,13 @@ "containerInstance": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The container instance ID or full ARN of the container instance. For more\n\t\t\tinformation about the ARN format, see Amazon Resource Name (ARN) in the Amazon ECS Developer Guide.

" + "smithy.api#documentation": "

The container instance ID or full ARN of the container instance. For more information about the\n\t\t\tARN format, see Amazon Resource Name (ARN)\n\t\t\tin the Amazon ECS Developer Guide.

" } }, "cluster": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that the container instance belongs\n\t\t\tto.

" + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that the container instance belongs to.

" } } }, @@ -5780,36 +5821,36 @@ "scope": { "target": "com.amazonaws.ecs#Scope", "traits": { - "smithy.api#documentation": "

The scope for the Docker volume that determines its lifecycle. Docker volumes that are\n\t\t\tscoped to a task are automatically provisioned when the task starts and\n\t\t\tdestroyed when the task stops. Docker volumes that are scoped as shared\n\t\t\tpersist after the task stops.

" + "smithy.api#documentation": "

The scope for the Docker volume that determines its lifecycle. Docker volumes that are scoped to a\n\t\t\t\ttask are automatically provisioned when the task starts and destroyed when the task\n\t\t\tstops. Docker volumes that are scoped as shared persist after the task stops.

" } }, "autoprovision": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

If this value is true, the Docker volume is created if it doesn't already\n\t\t\texist.

\n \n

This field is only used if the scope is shared.

\n
" + "smithy.api#documentation": "

If this value is true, the Docker volume is created if it doesn't already exist.

\n \n

This field is only used if the scope is shared.

\n
" } }, "driver": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Docker volume driver to use. The driver value must match the driver name provided\n\t\t\tby Docker because it is used for task placement. If the driver was installed using the\n\t\t\tDocker plugin CLI, use docker plugin ls to retrieve the driver name from\n\t\t\tyour container instance. If the driver was installed using another method, use Docker\n\t\t\tplugin discovery to retrieve the driver name. This parameter maps to Driver in the docker container create command and the\n\t\t\t\txxdriver option to docker\n\t\t\t\tvolume create.

" + "smithy.api#documentation": "

The Docker volume driver to use. The driver value must match the driver name provided by Docker\n\t\t\tbecause it is used for task placement. If the driver was installed using the Docker plugin CLI, use\n\t\t\t\tdocker plugin ls to retrieve the driver name from your container instance. If the\n\t\t\tdriver was installed using another method, use Docker plugin discovery to retrieve the driver name.\n\t\t\tThis parameter maps to Driver in the docker container create command and the\n\t\t\t\txxdriver option to docker volume create.

" } }, "driverOpts": { "target": "com.amazonaws.ecs#StringMap", "traits": { - "smithy.api#documentation": "

A map of Docker driver-specific options passed through. This parameter maps to\n\t\t\t\tDriverOpts in the docker create-volume command and the xxopt option to docker\n\t\t\t\tvolume create.

" + "smithy.api#documentation": "

A map of Docker driver-specific options passed through. This parameter maps to\n\t\t\t\tDriverOpts in the docker create-volume command and the xxopt option to\n\t\t\tdocker volume create.

" } }, "labels": { "target": "com.amazonaws.ecs#StringMap", "traits": { - "smithy.api#documentation": "

Custom metadata to add to your Docker volume. This parameter maps to\n\t\t\t\tLabels in the docker container create command and the xxlabel option to docker\n\t\t\t\tvolume create.

" + "smithy.api#documentation": "

Custom metadata to add to your Docker volume. This parameter maps to Labels in the\n\t\t\tdocker container create command and the xxlabel option to docker volume create.

" } } }, "traits": { - "smithy.api#documentation": "

This parameter is specified when you're using Docker volumes. Docker volumes are only\n\t\t\tsupported when you're using the EC2 launch type. Windows containers only\n\t\t\tsupport the use of the local driver. To use bind mounts, specify a\n\t\t\t\thost instead.

" + "smithy.api#documentation": "

This parameter is specified when you're using Docker volumes. Docker volumes are only supported when\n\t\t\tyou're using the EC2 launch type. Windows containers only support the use of the\n\t\t\t\tlocal driver. To use bind mounts, specify a host instead.

" } }, "com.amazonaws.ecs#Double": { @@ -5863,7 +5904,7 @@ "propagateTags": { "target": "com.amazonaws.ecs#PropagateTags", "traits": { - "smithy.api#documentation": "

Determines whether to propagate the tags from the task definition to \u2028the Amazon EBS\n\t\t\tvolume. Tags can only propagate to a SERVICE specified in\n\t\t\t\t\u2028ServiceVolumeConfiguration. If no value is specified, the tags aren't\n\t\t\t\u2028propagated.

" + "smithy.api#documentation": "

Determines whether to propagate the tags from the task definition to \u2028the Amazon EBS volume. Tags can only\n\t\t\tpropagate to a SERVICE specified in \u2028ServiceVolumeConfiguration. If no value\n\t\t\tis specified, the tags aren't \u2028propagated.

" } } }, @@ -5889,13 +5930,13 @@ "accessPointId": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon EFS access point ID to use. If an access point is specified, the root directory\n\t\t\tvalue specified in the EFSVolumeConfiguration must either be omitted or set\n\t\t\tto / which will enforce the path set on the EFS access point. If an access\n\t\t\tpoint is used, transit encryption must be on in the EFSVolumeConfiguration.\n\t\t\tFor more information, see Working with Amazon EFS access\n\t\t\t\tpoints in the Amazon Elastic File System User Guide.

" + "smithy.api#documentation": "

The Amazon EFS access point ID to use. If an access point is specified, the root directory value specified\n\t\t\tin the EFSVolumeConfiguration must either be omitted or set to / which will\n\t\t\tenforce the path set on the EFS access point. If an access point is used, transit encryption must be on\n\t\t\tin the EFSVolumeConfiguration. For more information, see Working with Amazon EFS access points in the\n\t\t\tAmazon Elastic File System User Guide.

" } }, "iam": { "target": "com.amazonaws.ecs#EFSAuthorizationConfigIAM", "traits": { - "smithy.api#documentation": "

Determines whether to use the Amazon ECS task role defined in a task definition when\n\t\t\tmounting the Amazon EFS file system. If it is turned on, transit encryption must be turned on\n\t\t\tin the EFSVolumeConfiguration. If this parameter is omitted, the default\n\t\t\tvalue of DISABLED is used. For more information, see Using\n\t\t\t\tAmazon EFS access points in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

Determines whether to use the Amazon ECS task role defined in a task definition when mounting the Amazon EFS\n\t\t\tfile system. If it is turned on, transit encryption must be turned on in the\n\t\t\t\tEFSVolumeConfiguration. If this parameter is omitted, the default value of\n\t\t\t\tDISABLED is used. For more information, see Using Amazon EFS access\n\t\t\t\tpoints in the Amazon Elastic Container Service Developer Guide.

" } } }, @@ -5950,19 +5991,19 @@ "rootDirectory": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The directory within the Amazon EFS file system to mount as the root directory inside the\n\t\t\thost. If this parameter is omitted, the root of the Amazon EFS volume will be used.\n\t\t\tSpecifying / will have the same effect as omitting this parameter.

\n \n

If an EFS access point is specified in the authorizationConfig, the\n\t\t\t\troot directory parameter must either be omitted or set to / which will\n\t\t\t\tenforce the path set on the EFS access point.

\n
" + "smithy.api#documentation": "

The directory within the Amazon EFS file system to mount as the root directory inside the host. If this\n\t\t\tparameter is omitted, the root of the Amazon EFS volume will be used. Specifying / will have\n\t\t\tthe same effect as omitting this parameter.

\n \n

If an EFS access point is specified in the authorizationConfig, the root directory\n\t\t\t\tparameter must either be omitted or set to / which will enforce the path set on the\n\t\t\t\tEFS access point.

\n
" } }, "transitEncryption": { "target": "com.amazonaws.ecs#EFSTransitEncryption", "traits": { - "smithy.api#documentation": "

Determines whether to use encryption for Amazon EFS data in transit between the Amazon ECS host\n\t\t\tand the Amazon EFS server. Transit encryption must be turned on if Amazon EFS IAM authorization\n\t\t\tis used. If this parameter is omitted, the default value of DISABLED is\n\t\t\tused. For more information, see Encrypting data in transit in\n\t\t\tthe Amazon Elastic File System User Guide.

" + "smithy.api#documentation": "

Determines whether to use encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS\n\t\t\tserver. Transit encryption must be turned on if Amazon EFS IAM authorization is used. If this parameter is\n\t\t\tomitted, the default value of DISABLED is used. For more information, see Encrypting data in\n\t\t\t\ttransit in the Amazon Elastic File System User Guide.

" } }, "transitEncryptionPort": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The port to use when sending encrypted data between the Amazon ECS host and the Amazon EFS\n\t\t\tserver. If you do not specify a transit encryption port, it will use the port selection\n\t\t\tstrategy that the Amazon EFS mount helper uses. For more information, see EFS mount\n\t\t\t\thelper in the Amazon Elastic File System User Guide.

" + "smithy.api#documentation": "

The port to use when sending encrypted data between the Amazon ECS host and the Amazon EFS server. If you do\n\t\t\tnot specify a transit encryption port, it will use the port selection strategy that the Amazon EFS mount\n\t\t\thelper uses. For more information, see EFS mount helper in the Amazon Elastic File System User Guide.

" } }, "authorizationConfig": { @@ -5973,7 +6014,7 @@ } }, "traits": { - "smithy.api#documentation": "

This parameter is specified when you're using an Amazon Elastic File System file system for task\n\t\t\tstorage. For more information, see Amazon EFS volumes in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

This parameter is specified when you're using an Amazon Elastic File System file system for task storage. For more\n\t\t\tinformation, see Amazon EFS volumes in the Amazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#EnvironmentFile": { @@ -5982,20 +6023,20 @@ "value": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Amazon S3 object containing the environment\n\t\t\tvariable file.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the Amazon S3 object containing the environment variable\n\t\t\tfile.

", "smithy.api#required": {} } }, "type": { "target": "com.amazonaws.ecs#EnvironmentFileType", "traits": { - "smithy.api#documentation": "

The file type to use. Environment files are objects in Amazon S3. The only supported value\n\t\t\tis s3.

", + "smithy.api#documentation": "

The file type to use. Environment files are objects in Amazon S3. The only supported value is\n\t\t\t\ts3.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

A list of files containing the environment variables to pass to a container. You can\n\t\t\tspecify up to ten environment files. The file must have a .env file\n\t\t\textension. Each line in an environment file should contain an environment variable in\n\t\t\t\tVARIABLE=VALUE format. Lines beginning with # are treated\n\t\t\tas comments and are ignored.

\n

If there are environment variables specified using the environment\n\t\t\tparameter in a container definition, they take precedence over the variables contained\n\t\t\twithin an environment file. If multiple environment files are specified that contain the\n\t\t\tsame variable, they're processed from the top down. We recommend that you use unique\n\t\t\tvariable names. For more information, see Use a file to pass\n\t\t\t\tenvironment variables to a container in the Amazon Elastic Container Service Developer Guide.

\n

Environment variable files are objects in Amazon S3 and all Amazon S3 security considerations\n\t\t\tapply.

\n

You must use the following platforms for the Fargate launch type:

\n \n

Consider the following when using the Fargate launch type:

\n " + "smithy.api#documentation": "

A list of files containing the environment variables to pass to a container. You can specify up to\n\t\t\tten environment files. The file must have a .env file extension. Each line in an\n\t\t\tenvironment file should contain an environment variable in VARIABLE=VALUE format. Lines\n\t\t\tbeginning with # are treated as comments and are ignored.

\n

If there are environment variables specified using the environment parameter in a\n\t\t\tcontainer definition, they take precedence over the variables contained within an environment file. If\n\t\t\tmultiple environment files are specified that contain the same variable, they're processed from the top\n\t\t\tdown. We recommend that you use unique variable names. For more information, see Use a file to\n\t\t\t\tpass environment variables to a container in the Amazon Elastic Container Service Developer Guide.

\n

Environment variable files are objects in Amazon S3 and all Amazon S3 security considerations apply.

\n

You must use the following platforms for the Fargate launch type:

\n \n

Consider the following when using the Fargate launch type:

\n " } }, "com.amazonaws.ecs#EnvironmentFileType": { @@ -6028,13 +6069,13 @@ "target": "com.amazonaws.ecs#Integer", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The total amount, in GiB, of ephemeral storage to set for the task. The minimum\n\t\t\tsupported value is 20 GiB and the maximum supported value is\n\t\t\t\t200 GiB.

", + "smithy.api#documentation": "

The total amount, in GiB, of ephemeral storage to set for the task. The minimum supported value is\n\t\t\t\t20 GiB and the maximum supported value is 200 GiB.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

The amount of ephemeral storage to allocate for the task. This parameter is used to\n\t\t\texpand the total amount of ephemeral storage available, beyond the default amount, for\n\t\t\ttasks hosted on Fargate. For more information, see Using data volumes in\n\t\t\t\ttasks in the Amazon ECS Developer Guide;.

\n \n

For tasks using the Fargate launch type, the task requires the\n\t\t\t\tfollowing platforms:

\n \n
" + "smithy.api#documentation": "

The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total\n\t\t\tamount of ephemeral storage available, beyond the default amount, for tasks hosted on Fargate. For\n\t\t\tmore information, see Using data volumes in tasks\n\t\t\tin the Amazon ECS Developer Guide;.

\n \n

For tasks using the Fargate launch type, the task requires the following\n\t\t\t\tplatforms:

\n \n
" } }, "com.amazonaws.ecs#ExecuteCommand": { @@ -6066,7 +6107,7 @@ } ], "traits": { - "smithy.api#documentation": "

Runs a command remotely on a container within a task.

\n

If you use a condition key in your IAM policy to refine the conditions for the\n\t\t\tpolicy statement, for example limit the actions to a specific cluster, you receive an\n\t\t\t\tAccessDeniedException when there is a mismatch between the condition\n\t\t\tkey value and the corresponding parameter value.

\n

For information about required permissions and considerations, see Using Amazon ECS\n\t\t\t\tExec for debugging in the Amazon ECS Developer Guide.\n\t\t

" + "smithy.api#documentation": "

Runs a command remotely on a container within a task.

\n

If you use a condition key in your IAM policy to refine the conditions for the policy statement,\n\t\t\tfor example limit the actions to a specific cluster, you receive an AccessDeniedException\n\t\t\twhen there is a mismatch between the condition key value and the corresponding parameter value.

\n

For information about required permissions and considerations, see Using Amazon ECS Exec for debugging in the\n\t\t\t\tAmazon ECS Developer Guide.

" } }, "com.amazonaws.ecs#ExecuteCommandConfiguration": { @@ -6075,19 +6116,19 @@ "kmsKeyId": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

Specify an Key Management Service key ID to encrypt the data between the local client\n\t\t\tand the container.

" + "smithy.api#documentation": "

Specify an Key Management Service key ID to encrypt the data between the local client and the\n\t\t\tcontainer.

" } }, "logging": { "target": "com.amazonaws.ecs#ExecuteCommandLogging", "traits": { - "smithy.api#documentation": "

The log setting to use for redirecting logs for your execute command results. The\n\t\t\tfollowing log settings are available.

\n " + "smithy.api#documentation": "

The log setting to use for redirecting logs for your execute command results. The following log\n\t\t\tsettings are available.

\n " } }, "logConfiguration": { "target": "com.amazonaws.ecs#ExecuteCommandLogConfiguration", "traits": { - "smithy.api#documentation": "

The log configuration for the results of the execute command actions. The logs can be\n\t\t\tsent to CloudWatch Logs or an Amazon S3 bucket. When logging=OVERRIDE is\n\t\t\tspecified, a logConfiguration must be provided.

" + "smithy.api#documentation": "

The log configuration for the results of the execute command actions. The logs can be sent to\n\t\t\tCloudWatch Logs or an Amazon S3 bucket. When logging=OVERRIDE is specified, a\n\t\t\t\tlogConfiguration must be provided.

" } } }, @@ -6108,7 +6149,7 @@ "target": "com.amazonaws.ecs#Boolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

Determines whether to use encryption on the CloudWatch logs. If not specified,\n\t\t\tencryption will be off.

" + "smithy.api#documentation": "

Determines whether to use encryption on the CloudWatch logs. If not specified, encryption will be\n\t\t\toff.

" } }, "s3BucketName": { @@ -6121,7 +6162,7 @@ "target": "com.amazonaws.ecs#Boolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

Determines whether to use encryption on the S3 logs. If not specified, encryption is\n\t\t\tnot used.

" + "smithy.api#documentation": "

Determines whether to use encryption on the S3 logs. If not specified, encryption is not used.

" } }, "s3KeyPrefix": { @@ -6132,7 +6173,7 @@ } }, "traits": { - "smithy.api#documentation": "

The log configuration for the results of the execute command actions. The logs can be\n\t\t\tsent to CloudWatch Logs or an Amazon S3 bucket.

" + "smithy.api#documentation": "

The log configuration for the results of the execute command actions. The logs can be sent to\n\t\t\tCloudWatch Logs or an Amazon S3 bucket.

" } }, "com.amazonaws.ecs#ExecuteCommandLogging": { @@ -6170,7 +6211,7 @@ "container": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The name of the container to execute the command on. A container name only needs to be\n\t\t\tspecified for tasks containing multiple containers.

" + "smithy.api#documentation": "

The name of the container to execute the command on. A container name only needs to be specified for\n\t\t\ttasks containing multiple containers.

" } }, "command": { @@ -6225,13 +6266,13 @@ "target": "com.amazonaws.ecs#Boolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

Determines whether the execute command session is running in interactive mode. Amazon ECS\n\t\t\tonly supports initiating interactive sessions, so you must specify true for\n\t\t\tthis value.

" + "smithy.api#documentation": "

Determines whether the execute command session is running in interactive mode. Amazon ECS only supports\n\t\t\tinitiating interactive sessions, so you must specify true for this value.

" } }, "session": { "target": "com.amazonaws.ecs#Session", "traits": { - "smithy.api#documentation": "

The details of the SSM session that was created for this instance of\n\t\t\texecute-command.

" + "smithy.api#documentation": "

The details of the SSM session that was created for this instance of execute-command.

" } }, "taskArn": { @@ -6251,20 +6292,20 @@ "credentialsParameter": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The authorization credential option to use. The authorization credential options can\n\t\t\tbe provided using either the Amazon Resource Name (ARN) of an Secrets Manager secret or SSM Parameter Store\n\t\t\tparameter. The ARN refers to the stored credentials.

", + "smithy.api#documentation": "

The authorization credential option to use. The authorization credential options can be provided\n\t\t\tusing either the Amazon Resource Name (ARN) of an Secrets Manager secret or SSM Parameter Store parameter. The ARN refers to\n\t\t\tthe stored credentials.

", "smithy.api#required": {} } }, "domain": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

A fully qualified domain name hosted by an Directory Service Managed Microsoft AD (Active Directory) or self-hosted AD on\n\t\t\tAmazon EC2.

", + "smithy.api#documentation": "

A fully qualified domain name hosted by an Directory Service Managed\n\t\t\tMicrosoft AD (Active Directory) or self-hosted AD on Amazon EC2.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

The authorization configuration details for Amazon FSx for Windows File Server file system. See FSxWindowsFileServerVolumeConfiguration in the Amazon ECS API\n\t\t\t\tReference.

\n

For more information and the input format, see Amazon FSx for Windows File Server Volumes\n\t\t\tin the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The authorization configuration details for Amazon FSx for Windows File Server file system. See FSxWindowsFileServerVolumeConfiguration in the Amazon ECS API\n\t\t\tReference.

\n

For more information and the input format, see Amazon FSx for Windows File Server Volumes in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#FSxWindowsFileServerVolumeConfiguration": { @@ -6280,7 +6321,7 @@ "rootDirectory": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The directory within the Amazon FSx for Windows File Server file system to mount as the root directory\n\t\t\tinside the host.

", + "smithy.api#documentation": "

The directory within the Amazon FSx for Windows File Server file system to mount as the root directory inside the\n\t\t\thost.

", "smithy.api#required": {} } }, @@ -6293,7 +6334,7 @@ } }, "traits": { - "smithy.api#documentation": "

This parameter is specified when you're using Amazon FSx for Windows File Server file system for task\n\t\t\tstorage.

\n

For more information and the input format, see Amazon FSx for Windows File Server volumes\n\t\t\tin the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

This parameter is specified when you're using Amazon FSx for Windows File Server file system for task\n\t\t\tstorage.

\n

For more information and the input format, see Amazon FSx for Windows File Server volumes in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#Failure": { @@ -6319,7 +6360,7 @@ } }, "traits": { - "smithy.api#documentation": "

A failed resource. For a list of common causes, see API failure\n\t\t\t\treasons in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

A failed resource. For a list of common causes, see API failure reasons in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#Failures": { @@ -6334,19 +6375,19 @@ "type": { "target": "com.amazonaws.ecs#FirelensConfigurationType", "traits": { - "smithy.api#documentation": "

The log router to use. The valid values are fluentd or\n\t\t\t\tfluentbit.

", + "smithy.api#documentation": "

The log router to use. The valid values are fluentd or fluentbit.

", "smithy.api#required": {} } }, "options": { "target": "com.amazonaws.ecs#FirelensConfigurationOptionsMap", "traits": { - "smithy.api#documentation": "

The options to use when configuring the log router. This field is optional and can be\n\t\t\tused to specify a custom configuration file or to add additional metadata, such as the\n\t\t\ttask, task definition, cluster, and container instance details to the log event. If\n\t\t\tspecified, the syntax to use is\n\t\t\t\t\"options\":{\"enable-ecs-log-metadata\":\"true|false\",\"config-file-type:\"s3|file\",\"config-file-value\":\"arn:aws:s3:::mybucket/fluent.conf|filepath\"}.\n\t\t\tFor more information, see Creating\n\t\t\t\ta task definition that uses a FireLens configuration in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

\n \n

Tasks hosted on Fargate only support the file configuration file\n\t\t\t\ttype.

\n
" + "smithy.api#documentation": "

The options to use when configuring the log router. This field is optional and can be used to specify\n\t\t\ta custom configuration file or to add additional metadata, such as the task, task definition, cluster,\n\t\t\tand container instance details to the log event. If specified, the syntax to use is\n\t\t\t\t\"options\":{\"enable-ecs-log-metadata\":\"true|false\",\"config-file-type:\"s3|file\",\"config-file-value\":\"arn:aws:s3:::mybucket/fluent.conf|filepath\"}.\n\t\t\tFor more information, see Creating a task\n\t\t\t\tdefinition that uses a FireLens configuration in the Amazon Elastic Container Service Developer Guide.

\n \n

Tasks hosted on Fargate only support the file configuration file type.

\n
" } } }, "traits": { - "smithy.api#documentation": "

The FireLens configuration for the container. This is used to specify and configure a\n\t\t\tlog router for container logs. For more information, see Custom log routing\n\t\t\tin the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The FireLens configuration for the container. This is used to specify and configure a log router for\n\t\t\tcontainer logs. For more information, see Custom log routing in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#FirelensConfigurationOptionsMap": { @@ -6438,7 +6479,7 @@ "cluster": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task\n\t\t\tsets exist in.

", + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task sets exist\n\t\t\tin.

", "smithy.api#required": {} } }, @@ -6459,7 +6500,7 @@ "protectedTasks": { "target": "com.amazonaws.ecs#ProtectedTasks", "traits": { - "smithy.api#documentation": "

A list of tasks with the following information.

\n " + "smithy.api#documentation": "

A list of tasks with the following information.

\n " } }, "failures": { @@ -6485,37 +6526,37 @@ "command": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

A string array representing the command that the container runs to determine if it is\n\t\t\thealthy. The string array must start with CMD to run the command arguments\n\t\t\tdirectly, or CMD-SHELL to run the command with the container's default\n\t\t\tshell.

\n

When you use the Amazon Web Services Management Console JSON panel, the Command Line Interface, or the APIs, enclose the list\n\t\t\tof commands in double quotes and brackets.

\n

\n [ \"CMD-SHELL\", \"curl -f http://localhost/ || exit 1\" ]\n

\n

You don't include the double quotes and brackets when you use the Amazon Web Services Management Console.

\n

\n CMD-SHELL, curl -f http://localhost/ || exit 1\n

\n

An exit code of 0 indicates success, and non-zero exit code indicates failure. For\n\t\t\tmore information, see HealthCheck in the docker container create command.

", + "smithy.api#documentation": "

A string array representing the command that the container runs to determine if it is healthy. The\n\t\t\tstring array must start with CMD to run the command arguments directly, or\n\t\t\t\tCMD-SHELL to run the command with the container's default shell.

\n

When you use the Amazon Web Services Management Console JSON panel, the Command Line Interface, or the APIs, enclose the list of commands in\n\t\t\tdouble quotes and brackets.

\n

\n [ \"CMD-SHELL\", \"curl -f http://localhost/ || exit 1\" ]\n

\n

You don't include the double quotes and brackets when you use the Amazon Web Services Management Console.

\n

\n CMD-SHELL, curl -f http://localhost/ || exit 1\n

\n

An exit code of 0 indicates success, and non-zero exit code indicates failure. For\n\t\t\tmore information, see HealthCheck in the docker container create command.

", "smithy.api#required": {} } }, "interval": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The time period in seconds between each health check execution. You may specify\n\t\t\tbetween 5 and 300 seconds. The default value is 30 seconds.

" + "smithy.api#documentation": "

The time period in seconds between each health check execution. You may specify between 5 and 300\n\t\t\tseconds. The default value is 30 seconds.

" } }, "timeout": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The time period in seconds to wait for a health check to succeed before it is\n\t\t\tconsidered a failure. You may specify between 2 and 60 seconds. The default value is\n\t\t\t5.

" + "smithy.api#documentation": "

The time period in seconds to wait for a health check to succeed before it is considered a failure.\n\t\t\tYou may specify between 2 and 60 seconds. The default value is 5.

" } }, "retries": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The number of times to retry a failed health check before the container is considered\n\t\t\tunhealthy. You may specify between 1 and 10 retries. The default value is 3.

" + "smithy.api#documentation": "

The number of times to retry a failed health check before the container is considered unhealthy. You\n\t\t\tmay specify between 1 and 10 retries. The default value is 3.

" } }, "startPeriod": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The optional grace period to provide containers time to bootstrap before failed health\n\t\t\tchecks count towards the maximum number of retries. You can specify between 0 and 300\n\t\t\tseconds. By default, the startPeriod is off.

\n \n

If a health check succeeds within the startPeriod, then the container\n\t\t\t\tis considered healthy and any subsequent failures count toward the maximum number of\n\t\t\t\tretries.

\n
" + "smithy.api#documentation": "

The optional grace period to provide containers time to bootstrap before failed health checks count\n\t\t\ttowards the maximum number of retries. You can specify between 0 and 300 seconds. By default, the\n\t\t\t\tstartPeriod is off.

\n \n

If a health check succeeds within the startPeriod, then the container is considered\n\t\t\t\thealthy and any subsequent failures count toward the maximum number of retries.

\n
" } } }, "traits": { - "smithy.api#documentation": "

An object representing a container health check. Health check parameters that are\n\t\t\tspecified in a container definition override any Docker health checks that exist in the\n\t\t\tcontainer image (such as those specified in a parent image or from the image's\n\t\t\tDockerfile). This configuration maps to the HEALTHCHECK parameter of docker run.

\n \n

The Amazon ECS container agent only monitors and reports on the health checks specified\n\t\t\t\tin the task definition. Amazon ECS does not monitor Docker health checks that are\n\t\t\t\tembedded in a container image and not specified in the container definition. Health\n\t\t\t\tcheck parameters that are specified in a container definition override any Docker\n\t\t\t\thealth checks that exist in the container image.

\n
\n

You can view the health status of both individual containers and a task with the\n\t\t\tDescribeTasks API operation or when viewing the task details in the console.

\n

The health check is designed to make sure that your containers survive agent restarts,\n\t\t\tupgrades, or temporary unavailability.

\n

Amazon ECS performs health checks on containers with the default that launched the\n\t\t\tcontainer instance or the task.

\n

The following describes the possible healthStatus values for a\n\t\t\tcontainer:

\n \n

The following describes the possible healthStatus values based on the\n\t\t\tcontainer health checker status of essential containers in the task with the following\n\t\t\tpriority order (high to low):

\n \n

Consider the following task health example with 2 containers.

\n \n

Consider the following task health example with 3 containers.

\n \n

If a task is run manually, and not as part of a service, the task will continue its\n\t\t\tlifecycle regardless of its health status. For tasks that are part of a service, if the\n\t\t\ttask reports as unhealthy then the task will be stopped and the service scheduler will\n\t\t\treplace it.

\n

The following are notes about container health check support:

\n " + "smithy.api#documentation": "

An object representing a container health check. Health check parameters that are specified in a\n\t\t\tcontainer definition override any Docker health checks that exist in the container image (such as those\n\t\t\tspecified in a parent image or from the image's Dockerfile). This configuration maps to the\n\t\t\t\tHEALTHCHECK parameter of docker run.

\n \n

The Amazon ECS container agent only monitors and reports on the health checks specified in the task\n\t\t\t\tdefinition. Amazon ECS does not monitor Docker health checks that are embedded in a container image and\n\t\t\t\tnot specified in the container definition. Health check parameters that are specified in a\n\t\t\t\tcontainer definition override any Docker health checks that exist in the container image.

\n
\n

You can view the health status of both individual containers and a task with the DescribeTasks API\n\t\t\toperation or when viewing the task details in the console.

\n

The health check is designed to make sure that your containers survive agent restarts, upgrades, or\n\t\t\ttemporary unavailability.

\n

Amazon ECS performs health checks on containers with the default that launched the container instance or\n\t\t\tthe task.

\n

The following describes the possible healthStatus values for a container:

\n \n

The following describes the possible healthStatus values based on the container health\n\t\t\tchecker status of essential containers in the task with the following priority order (high to\n\t\t\tlow):

\n \n

Consider the following task health example with 2 containers.

\n \n

Consider the following task health example with 3 containers.

\n \n

If a task is run manually, and not as part of a service, the task will continue its lifecycle\n\t\t\tregardless of its health status. For tasks that are part of a service, if the task reports as unhealthy\n\t\t\tthen the task will be stopped and the service scheduler will replace it.

\n

The following are notes about container health check support:

\n " } }, "com.amazonaws.ecs#HealthStatus": { @@ -6560,7 +6601,7 @@ } }, "traits": { - "smithy.api#documentation": "

Hostnames and IP address entries that are added to the /etc/hosts file of\n\t\t\ta container via the extraHosts parameter of its ContainerDefinition.

" + "smithy.api#documentation": "

Hostnames and IP address entries that are added to the /etc/hosts file of a container\n\t\t\tvia the extraHosts parameter of its ContainerDefinition.\n\t\t

" } }, "com.amazonaws.ecs#HostEntryList": { @@ -6575,7 +6616,7 @@ "sourcePath": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

When the host parameter is used, specify a sourcePath to\n\t\t\tdeclare the path on the host container instance that's presented to the container. If\n\t\t\tthis parameter is empty, then the Docker daemon has assigned a host path for you. If the\n\t\t\t\thost parameter contains a sourcePath file location, then\n\t\t\tthe data volume persists at the specified location on the host container instance until\n\t\t\tyou delete it manually. If the sourcePath value doesn't exist on the host\n\t\t\tcontainer instance, the Docker daemon creates it. If the location does exist, the\n\t\t\tcontents of the source path folder are exported.

\n

If you're using the Fargate launch type, the sourcePath\n\t\t\tparameter is not supported.

" + "smithy.api#documentation": "

When the host parameter is used, specify a sourcePath to declare the path\n\t\t\ton the host container instance that's presented to the container. If this parameter is empty, then the\n\t\t\tDocker daemon has assigned a host path for you. If the host parameter contains a\n\t\t\t\tsourcePath file location, then the data volume persists at the specified location on\n\t\t\tthe host container instance until you delete it manually. If the sourcePath value doesn't\n\t\t\texist on the host container instance, the Docker daemon creates it. If the location does exist, the\n\t\t\tcontents of the source path folder are exported.

\n

If you're using the Fargate launch type, the sourcePath parameter is not\n\t\t\tsupported.

" } } }, @@ -6592,7 +6633,7 @@ "deviceName": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Elastic Inference accelerator device name. The deviceName must also\n\t\t\tbe referenced in a container definition as a ResourceRequirement.

", + "smithy.api#documentation": "

The Elastic Inference accelerator device name. The deviceName must also be referenced in\n\t\t\ta container definition as a ResourceRequirement.

", "smithy.api#required": {} } }, @@ -6605,7 +6646,7 @@ } }, "traits": { - "smithy.api#documentation": "

Details on an Elastic Inference accelerator. For more information, see Working with Amazon Elastic Inference on Amazon ECS in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

Details on an Elastic Inference accelerator. For more information, see Working with Amazon Elastic Inference on\n\t\t\t\tAmazon ECS in the Amazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#InferenceAcceleratorOverride": { @@ -6614,7 +6655,7 @@ "deviceName": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Elastic Inference accelerator device name to override for the task. This parameter\n\t\t\tmust match a deviceName specified in the task definition.

" + "smithy.api#documentation": "

The Elastic Inference accelerator device name to override for the task. This parameter must match a\n\t\t\t\tdeviceName specified in the task definition.

" } }, "deviceType": { @@ -6625,7 +6666,7 @@ } }, "traits": { - "smithy.api#documentation": "

Details on an Elastic Inference accelerator task override. This parameter is used to\n\t\t\toverride the Elastic Inference accelerator specified in the task definition. For more\n\t\t\tinformation, see Working with Amazon\n\t\t\t\tElastic Inference on Amazon ECS in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

Details on an Elastic Inference accelerator task override. This parameter is used to override the\n\t\t\tElastic Inference accelerator specified in the task definition. For more information, see Working with Amazon Elastic Inference on Amazon ECS in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#InferenceAcceleratorOverrides": { @@ -6658,7 +6699,7 @@ "lastUpdated": { "target": "com.amazonaws.ecs#Timestamp", "traits": { - "smithy.api#documentation": "

The Unix timestamp for when the container instance health status was last\n\t\t\tupdated.

" + "smithy.api#documentation": "

The Unix timestamp for when the container instance health status was last updated.

" } }, "lastStatusChange": { @@ -6741,7 +6782,7 @@ } }, "traits": { - "smithy.api#documentation": "

The specified parameter isn't valid. Review the available parameters for the API\n\t\t\trequest.

", + "smithy.api#documentation": "

The specified parameter isn't valid. Review the available parameters for the API request.

", "smithy.api#error": "client" } }, @@ -6774,18 +6815,18 @@ "add": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The Linux capabilities for the container that have been added to the default\n\t\t\tconfiguration provided by Docker. This parameter maps to CapAdd in the docker container create command and the\n\t\t\t\t--cap-add option to docker\n\t\t\t\trun.

\n \n

Tasks launched on Fargate only support adding the SYS_PTRACE kernel\n\t\t\t\tcapability.

\n
\n

Valid values: \"ALL\" | \"AUDIT_CONTROL\" | \"AUDIT_WRITE\" | \"BLOCK_SUSPEND\" |\n\t\t\t\t\"CHOWN\" | \"DAC_OVERRIDE\" | \"DAC_READ_SEARCH\" | \"FOWNER\" | \"FSETID\" | \"IPC_LOCK\" |\n\t\t\t\t\"IPC_OWNER\" | \"KILL\" | \"LEASE\" | \"LINUX_IMMUTABLE\" | \"MAC_ADMIN\" | \"MAC_OVERRIDE\" |\n\t\t\t\t\"MKNOD\" | \"NET_ADMIN\" | \"NET_BIND_SERVICE\" | \"NET_BROADCAST\" | \"NET_RAW\" | \"SETFCAP\"\n\t\t\t\t| \"SETGID\" | \"SETPCAP\" | \"SETUID\" | \"SYS_ADMIN\" | \"SYS_BOOT\" | \"SYS_CHROOT\" |\n\t\t\t\t\"SYS_MODULE\" | \"SYS_NICE\" | \"SYS_PACCT\" | \"SYS_PTRACE\" | \"SYS_RAWIO\" |\n\t\t\t\t\"SYS_RESOURCE\" | \"SYS_TIME\" | \"SYS_TTY_CONFIG\" | \"SYSLOG\" |\n\t\t\t\"WAKE_ALARM\"\n

" + "smithy.api#documentation": "

The Linux capabilities for the container that have been added to the default configuration provided\n\t\t\tby Docker. This parameter maps to CapAdd in the docker container create command and the\n\t\t\t\t--cap-add option to docker run.

\n \n

Tasks launched on Fargate only support adding the SYS_PTRACE kernel\n\t\t\t\tcapability.

\n
\n

Valid values: \"ALL\" | \"AUDIT_CONTROL\" | \"AUDIT_WRITE\" | \"BLOCK_SUSPEND\" | \"CHOWN\" |\n\t\t\t\t\"DAC_OVERRIDE\" | \"DAC_READ_SEARCH\" | \"FOWNER\" | \"FSETID\" | \"IPC_LOCK\" | \"IPC_OWNER\" | \"KILL\" |\n\t\t\t\t\"LEASE\" | \"LINUX_IMMUTABLE\" | \"MAC_ADMIN\" | \"MAC_OVERRIDE\" | \"MKNOD\" | \"NET_ADMIN\" |\n\t\t\t\t\"NET_BIND_SERVICE\" | \"NET_BROADCAST\" | \"NET_RAW\" | \"SETFCAP\" | \"SETGID\" | \"SETPCAP\" | \"SETUID\" |\n\t\t\t\t\"SYS_ADMIN\" | \"SYS_BOOT\" | \"SYS_CHROOT\" | \"SYS_MODULE\" | \"SYS_NICE\" | \"SYS_PACCT\" | \"SYS_PTRACE\" |\n\t\t\t\t\"SYS_RAWIO\" | \"SYS_RESOURCE\" | \"SYS_TIME\" | \"SYS_TTY_CONFIG\" | \"SYSLOG\" |\n\t\t\t\"WAKE_ALARM\"\n

" } }, "drop": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The Linux capabilities for the container that have been removed from the default\n\t\t\tconfiguration provided by Docker. This parameter maps to CapDrop in the docker container create command and the\n\t\t\t\t--cap-drop option to docker\n\t\t\t\trun.

\n

Valid values: \"ALL\" | \"AUDIT_CONTROL\" | \"AUDIT_WRITE\" | \"BLOCK_SUSPEND\" |\n\t\t\t\t\"CHOWN\" | \"DAC_OVERRIDE\" | \"DAC_READ_SEARCH\" | \"FOWNER\" | \"FSETID\" | \"IPC_LOCK\" |\n\t\t\t\t\"IPC_OWNER\" | \"KILL\" | \"LEASE\" | \"LINUX_IMMUTABLE\" | \"MAC_ADMIN\" | \"MAC_OVERRIDE\" |\n\t\t\t\t\"MKNOD\" | \"NET_ADMIN\" | \"NET_BIND_SERVICE\" | \"NET_BROADCAST\" | \"NET_RAW\" | \"SETFCAP\"\n\t\t\t\t| \"SETGID\" | \"SETPCAP\" | \"SETUID\" | \"SYS_ADMIN\" | \"SYS_BOOT\" | \"SYS_CHROOT\" |\n\t\t\t\t\"SYS_MODULE\" | \"SYS_NICE\" | \"SYS_PACCT\" | \"SYS_PTRACE\" | \"SYS_RAWIO\" |\n\t\t\t\t\"SYS_RESOURCE\" | \"SYS_TIME\" | \"SYS_TTY_CONFIG\" | \"SYSLOG\" |\n\t\t\t\"WAKE_ALARM\"\n

" + "smithy.api#documentation": "

The Linux capabilities for the container that have been removed from the default configuration\n\t\t\tprovided by Docker. This parameter maps to CapDrop in the docker container create command\n\t\t\tand the --cap-drop option to docker run.

\n

Valid values: \"ALL\" | \"AUDIT_CONTROL\" | \"AUDIT_WRITE\" | \"BLOCK_SUSPEND\" | \"CHOWN\" |\n\t\t\t\t\"DAC_OVERRIDE\" | \"DAC_READ_SEARCH\" | \"FOWNER\" | \"FSETID\" | \"IPC_LOCK\" | \"IPC_OWNER\" | \"KILL\" |\n\t\t\t\t\"LEASE\" | \"LINUX_IMMUTABLE\" | \"MAC_ADMIN\" | \"MAC_OVERRIDE\" | \"MKNOD\" | \"NET_ADMIN\" |\n\t\t\t\t\"NET_BIND_SERVICE\" | \"NET_BROADCAST\" | \"NET_RAW\" | \"SETFCAP\" | \"SETGID\" | \"SETPCAP\" | \"SETUID\" |\n\t\t\t\t\"SYS_ADMIN\" | \"SYS_BOOT\" | \"SYS_CHROOT\" | \"SYS_MODULE\" | \"SYS_NICE\" | \"SYS_PACCT\" | \"SYS_PTRACE\" |\n\t\t\t\t\"SYS_RAWIO\" | \"SYS_RESOURCE\" | \"SYS_TIME\" | \"SYS_TTY_CONFIG\" | \"SYSLOG\" |\n\t\t\t\"WAKE_ALARM\"\n

" } } }, "traits": { - "smithy.api#documentation": "

The Linux capabilities to add or remove from the default Docker configuration for a container defined in the task definition. For more detailed information about these Linux capabilities,\n\t\t\tsee the capabilities(7) Linux manual page.

" + "smithy.api#documentation": "

The Linux capabilities to add or remove from the default Docker configuration for a container defined\n\t\t\tin the task definition. For more detailed information about these Linux capabilities, see the capabilities(7) Linux manual\n\t\t\tpage.

" } }, "com.amazonaws.ecs#KeyValuePair": { @@ -6794,13 +6835,13 @@ "name": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The name of the key-value pair. For environment variables, this is the name of the\n\t\t\tenvironment variable.

" + "smithy.api#documentation": "

The name of the key-value pair. For environment variables, this is the name of the environment\n\t\t\tvariable.

" } }, "value": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The value of the key-value pair. For environment variables, this is the value of the\n\t\t\tenvironment variable.

" + "smithy.api#documentation": "

The value of the key-value pair. For environment variables, this is the value of the environment\n\t\t\tvariable.

" } } }, @@ -6852,43 +6893,43 @@ "capabilities": { "target": "com.amazonaws.ecs#KernelCapabilities", "traits": { - "smithy.api#documentation": "

The Linux capabilities for the container that are added to or dropped from the default\n\t\t\tconfiguration provided by Docker.

\n \n

For tasks that use the Fargate launch type,\n\t\t\t\t\tcapabilities is supported for all platform versions but the\n\t\t\t\t\tadd parameter is only supported if using platform version 1.4.0 or\n\t\t\t\tlater.

\n
" + "smithy.api#documentation": "

The Linux capabilities for the container that are added to or dropped from the default configuration\n\t\t\tprovided by Docker.

\n \n

For tasks that use the Fargate launch type, capabilities is supported\n\t\t\t\tfor all platform versions but the add parameter is only supported if using platform\n\t\t\t\tversion 1.4.0 or later.

\n
" } }, "devices": { "target": "com.amazonaws.ecs#DevicesList", "traits": { - "smithy.api#documentation": "

Any host devices to expose to the container. This parameter maps to\n\t\t\tDevices in the docker container create command and the --device option to docker run.

\n \n

If you're using tasks that use the Fargate launch type, the\n\t\t\t\t\tdevices parameter isn't supported.

\n
" + "smithy.api#documentation": "

Any host devices to expose to the container. This parameter maps to Devices in the\n\t\t\tdocker container create command and the --device option to docker run.

\n \n

If you're using tasks that use the Fargate launch type, the devices\n\t\t\t\tparameter isn't supported.

\n
" } }, "initProcessEnabled": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

Run an init process inside the container that forwards signals and reaps\n\t\t\tprocesses. This parameter maps to the --init option to docker run.\n\t\t\tThis parameter requires version 1.25 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'\n

" + "smithy.api#documentation": "

Run an init process inside the container that forwards signals and reaps processes. This\n\t\t\tparameter maps to the --init option to docker run. This parameter requires version 1.25 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'\n

" } }, "sharedMemorySize": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The value for the size (in MiB) of the /dev/shm volume. This parameter\n\t\t\tmaps to the --shm-size option to docker\n\t\t\t\trun.

\n \n

If you are using tasks that use the Fargate launch type, the\n\t\t\t\t\tsharedMemorySize parameter is not supported.

\n
" + "smithy.api#documentation": "

The value for the size (in MiB) of the /dev/shm volume. This parameter maps to the\n\t\t\t\t--shm-size option to docker run.

\n \n

If you are using tasks that use the Fargate launch type, the\n\t\t\t\t\tsharedMemorySize parameter is not supported.

\n
" } }, "tmpfs": { "target": "com.amazonaws.ecs#TmpfsList", "traits": { - "smithy.api#documentation": "

The container path, mount options, and size (in MiB) of the tmpfs mount. This\n\t\t\tparameter maps to the --tmpfs option to docker run.

\n \n

If you're using tasks that use the Fargate launch type, the\n\t\t\t\t\ttmpfs parameter isn't supported.

\n
" + "smithy.api#documentation": "

The container path, mount options, and size (in MiB) of the tmpfs mount. This parameter maps to the\n\t\t\t\t--tmpfs option to docker run.

\n \n

If you're using tasks that use the Fargate launch type, the tmpfs\n\t\t\t\tparameter isn't supported.

\n
" } }, "maxSwap": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The total amount of swap memory (in MiB) a container can use. This parameter will be\n\t\t\ttranslated to the --memory-swap option to docker run where the value would be the sum of\n\t\t\tthe container memory plus the maxSwap value.

\n

If a maxSwap value of 0 is specified, the container will not\n\t\t\tuse swap. Accepted values are 0 or any positive integer. If the\n\t\t\t\tmaxSwap parameter is omitted, the container will use the swap\n\t\t\tconfiguration for the container instance it is running on. A maxSwap value\n\t\t\tmust be set for the swappiness parameter to be used.

\n \n

If you're using tasks that use the Fargate launch type, the\n\t\t\t\t\tmaxSwap parameter isn't supported.

\n

If you're using tasks on Amazon Linux 2023 the swappiness parameter isn't\n\t\t\t\tsupported.

\n
" + "smithy.api#documentation": "

The total amount of swap memory (in MiB) a container can use. This parameter will be translated to\n\t\t\tthe --memory-swap option to docker run where the value would be the sum of the container\n\t\t\tmemory plus the maxSwap value.

\n

If a maxSwap value of 0 is specified, the container will not use swap.\n\t\t\tAccepted values are 0 or any positive integer. If the maxSwap parameter is\n\t\t\tomitted, the container will use the swap configuration for the container instance it is running on. A\n\t\t\t\tmaxSwap value must be set for the swappiness parameter to be used.

\n \n

If you're using tasks that use the Fargate launch type, the maxSwap\n\t\t\t\tparameter isn't supported.

\n

If you're using tasks on Amazon Linux 2023 the swappiness parameter isn't supported.

\n
" } }, "swappiness": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

This allows you to tune a container's memory swappiness behavior. A\n\t\t\t\tswappiness value of 0 will cause swapping to not happen\n\t\t\tunless absolutely necessary. A swappiness value of 100 will\n\t\t\tcause pages to be swapped very aggressively. Accepted values are whole numbers between\n\t\t\t\t0 and 100. If the swappiness parameter is not\n\t\t\tspecified, a default value of 60 is used. If a value is not specified for\n\t\t\t\tmaxSwap then this parameter is ignored. This parameter maps to the\n\t\t\t\t--memory-swappiness option to docker run.

\n \n

If you're using tasks that use the Fargate launch type, the\n\t\t\t\t\tswappiness parameter isn't supported.

\n

If you're using tasks on Amazon Linux 2023 the swappiness parameter isn't\n\t\t\t\tsupported.

\n
" + "smithy.api#documentation": "

This allows you to tune a container's memory swappiness behavior. A swappiness value of\n\t\t\t\t0 will cause swapping to not happen unless absolutely necessary. A\n\t\t\t\tswappiness value of 100 will cause pages to be swapped very aggressively.\n\t\t\tAccepted values are whole numbers between 0 and 100. If the\n\t\t\t\tswappiness parameter is not specified, a default value of 60 is used. If\n\t\t\ta value is not specified for maxSwap then this parameter is ignored. This parameter maps\n\t\t\tto the --memory-swappiness option to docker run.

\n \n

If you're using tasks that use the Fargate launch type, the swappiness\n\t\t\t\tparameter isn't supported.

\n

If you're using tasks on Amazon Linux 2023 the swappiness parameter isn't supported.

\n
" } } }, @@ -6992,33 +7033,33 @@ "value": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The value of the account settings to filter results with. You must also specify an\n\t\t\taccount setting name to use this parameter.

" + "smithy.api#documentation": "

The value of the account settings to filter results with. You must also specify an account setting\n\t\t\tname to use this parameter.

" } }, "principalArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The ARN of the principal, which can be a user, role, or the root user. If this field is\n\t\t\tomitted, the account settings are listed only for the authenticated user.

\n \n

Federated users assume the account setting of the root user and can't have explicit\n\t\t\t\taccount settings set for them.

\n
" + "smithy.api#documentation": "

The ARN of the principal, which can be a user, role, or the root user. If this field is omitted, the\n\t\t\taccount settings are listed only for the authenticated user.

\n \n

Federated users assume the account setting of the root user and can't have explicit account settings\n\t\t\t\tset for them.

\n
" } }, "effectiveSettings": { "target": "com.amazonaws.ecs#Boolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

Determines whether to return the effective settings. If true, the account\n\t\t\tsettings for the root user or the default setting for the principalArn are\n\t\t\treturned. If false, the account settings for the principalArn\n\t\t\tare returned if they're set. Otherwise, no account settings are returned.

" + "smithy.api#documentation": "

Determines whether to return the effective settings. If true, the account settings for\n\t\t\tthe root user or the default setting for the principalArn are returned. If\n\t\t\tfalse, the account settings for the principalArn are returned if they're set.\n\t\t\tOtherwise, no account settings are returned.

" } }, "nextToken": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The nextToken value returned from a ListAccountSettings\n\t\t\trequest indicating that more results are available to fulfill the request and further\n\t\t\tcalls will be needed. If maxResults was provided, it's possible the number\n\t\t\tof results to be fewer than maxResults.

\n \n

This token should be treated as an opaque identifier that is only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" + "smithy.api#documentation": "

The nextToken value returned from a ListAccountSettings request indicating\n\t\t\tthat more results are available to fulfill the request and further calls will be needed. If\n\t\t\t\tmaxResults was provided, it's possible the number of results to be fewer than\n\t\t\t\tmaxResults.

\n \n

This token should be treated as an opaque identifier that is only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" } }, "maxResults": { "target": "com.amazonaws.ecs#Integer", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The maximum number of account setting results returned by\n\t\t\t\tListAccountSettings in paginated output. When this parameter is used,\n\t\t\t\tListAccountSettings only returns maxResults results in a\n\t\t\tsingle page along with a nextToken response element. The remaining results\n\t\t\tof the initial request can be seen by sending another ListAccountSettings\n\t\t\trequest with the returned nextToken value. This value can be between\n\t\t\t1 and 10. If this\n\t\t\tparameter isn't used, then ListAccountSettings returns up to\n\t\t\t10 results and a nextToken value\n\t\t\tif applicable.

" + "smithy.api#documentation": "

The maximum number of account setting results returned by ListAccountSettings in\n\t\t\tpaginated output. When this parameter is used, ListAccountSettings only returns\n\t\t\t\tmaxResults results in a single page along with a nextToken response\n\t\t\telement. The remaining results of the initial request can be seen by sending another\n\t\t\t\tListAccountSettings request with the returned nextToken value. This value\n\t\t\tcan be between 1 and 10. If this\n\t\t\tparameter isn't used, then ListAccountSettings returns up to\n\t\t\t10 results and a nextToken value if\n\t\t\tapplicable.

" } } }, @@ -7038,7 +7079,7 @@ "nextToken": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The nextToken value to include in a future\n\t\t\t\tListAccountSettings request. When the results of a\n\t\t\t\tListAccountSettings request exceed maxResults, this value\n\t\t\tcan be used to retrieve the next page of results. This value is null when\n\t\t\tthere are no more results to return.

" + "smithy.api#documentation": "

The nextToken value to include in a future ListAccountSettings request.\n\t\t\tWhen the results of a ListAccountSettings request exceed maxResults, this\n\t\t\tvalue can be used to retrieve the next page of results. This value is null when there are\n\t\t\tno more results to return.

" } } }, @@ -7063,7 +7104,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the attributes for Amazon ECS resources within a specified target type and cluster.\n\t\t\tWhen you specify a target type and cluster, ListAttributes returns a list\n\t\t\tof attribute objects, one for each attribute on each resource. You can filter the list\n\t\t\tof results to a single attribute name to only return results that have that name. You\n\t\t\tcan also filter the results by attribute name and value. You can do this, for example,\n\t\t\tto see which container instances in a cluster are running a Linux AMI\n\t\t\t\t(ecs.os-type=linux).

", + "smithy.api#documentation": "

Lists the attributes for Amazon ECS resources within a specified target type and cluster. When you specify\n\t\t\ta target type and cluster, ListAttributes returns a list of attribute objects, one for\n\t\t\teach attribute on each resource. You can filter the list of results to a single attribute name to only\n\t\t\treturn results that have that name. You can also filter the results by attribute name and value. You\n\t\t\tcan do this, for example, to see which container instances in a cluster are running a Linux AMI\n\t\t\t\t(ecs.os-type=linux).

", "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", @@ -7078,7 +7119,7 @@ "cluster": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster to list attributes.\n\t\t\tIf you do not specify a cluster, the default cluster is assumed.

" + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster to list attributes. If you do not specify a cluster, the default cluster is assumed.

" } }, "targetType": { @@ -7097,19 +7138,19 @@ "attributeValue": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The value of the attribute to filter results with. You must also specify an attribute\n\t\t\tname to use this parameter.

" + "smithy.api#documentation": "

The value of the attribute to filter results with. You must also specify an attribute name to use\n\t\t\tthis parameter.

" } }, "nextToken": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The nextToken value returned from a ListAttributes request\n\t\t\tindicating that more results are available to fulfill the request and further calls are\n\t\t\tneeded. If maxResults was provided, it's possible the number of results to\n\t\t\tbe fewer than maxResults.

\n \n

This token should be treated as an opaque identifier that is only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" + "smithy.api#documentation": "

The nextToken value returned from a ListAttributes request indicating that\n\t\t\tmore results are available to fulfill the request and further calls are needed. If\n\t\t\t\tmaxResults was provided, it's possible the number of results to be fewer than\n\t\t\t\tmaxResults.

\n \n

This token should be treated as an opaque identifier that is only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" } }, "maxResults": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The maximum number of cluster results that ListAttributes returned in\n\t\t\tpaginated output. When this parameter is used, ListAttributes only returns\n\t\t\t\tmaxResults results in a single page along with a nextToken\n\t\t\tresponse element. The remaining results of the initial request can be seen by sending\n\t\t\tanother ListAttributes request with the returned nextToken\n\t\t\tvalue. This value can be between 1 and 100. If this\n\t\t\tparameter isn't used, then ListAttributes returns up to\n\t\t\t100 results and a nextToken value if applicable.

" + "smithy.api#documentation": "

The maximum number of cluster results that ListAttributes returned in paginated output.\n\t\t\tWhen this parameter is used, ListAttributes only returns maxResults results\n\t\t\tin a single page along with a nextToken response element. The remaining results of the\n\t\t\tinitial request can be seen by sending another ListAttributes request with the returned\n\t\t\t\tnextToken value. This value can be between 1 and 100. If\n\t\t\tthis parameter isn't used, then ListAttributes returns up to 100 results\n\t\t\tand a nextToken value if applicable.

" } } }, @@ -7129,7 +7170,7 @@ "nextToken": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The nextToken value to include in a future ListAttributes\n\t\t\trequest. When the results of a ListAttributes request exceed\n\t\t\t\tmaxResults, this value can be used to retrieve the next page of\n\t\t\tresults. This value is null when there are no more results to\n\t\t\treturn.

" + "smithy.api#documentation": "

The nextToken value to include in a future ListAttributes request. When the\n\t\t\tresults of a ListAttributes request exceed maxResults, this value can be used\n\t\t\tto retrieve the next page of results. This value is null when there are no more results to\n\t\t\treturn.

" } } }, @@ -7197,13 +7238,13 @@ "nextToken": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The nextToken value returned from a ListClusters request\n\t\t\tindicating that more results are available to fulfill the request and further calls are\n\t\t\tneeded. If maxResults was provided, it's possible the number of results to\n\t\t\tbe fewer than maxResults.

\n \n

This token should be treated as an opaque identifier that is only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" + "smithy.api#documentation": "

The nextToken value returned from a ListClusters request indicating that\n\t\t\tmore results are available to fulfill the request and further calls are needed. If\n\t\t\t\tmaxResults was provided, it's possible the number of results to be fewer than\n\t\t\t\tmaxResults.

\n \n

This token should be treated as an opaque identifier that is only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" } }, "maxResults": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The maximum number of cluster results that ListClusters returned in\n\t\t\tpaginated output. When this parameter is used, ListClusters only returns\n\t\t\t\tmaxResults results in a single page along with a nextToken\n\t\t\tresponse element. The remaining results of the initial request can be seen by sending\n\t\t\tanother ListClusters request with the returned nextToken\n\t\t\tvalue. This value can be between 1 and 100. If this\n\t\t\tparameter isn't used, then ListClusters returns up to 100\n\t\t\tresults and a nextToken value if applicable.

" + "smithy.api#documentation": "

The maximum number of cluster results that ListClusters returned in paginated output.\n\t\t\tWhen this parameter is used, ListClusters only returns maxResults results in\n\t\t\ta single page along with a nextToken response element. The remaining results of the\n\t\t\tinitial request can be seen by sending another ListClusters request with the returned\n\t\t\t\tnextToken value. This value can be between 1 and 100. If\n\t\t\tthis parameter isn't used, then ListClusters returns up to 100 results\n\t\t\tand a nextToken value if applicable.

" } } }, @@ -7217,13 +7258,13 @@ "clusterArns": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The list of full Amazon Resource Name (ARN) entries for each cluster that's associated with your\n\t\t\taccount.

" + "smithy.api#documentation": "

The list of full Amazon Resource Name (ARN) entries for each cluster that's associated with your account.

" } }, "nextToken": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The nextToken value to include in a future ListClusters\n\t\t\trequest. When the results of a ListClusters request exceed\n\t\t\t\tmaxResults, this value can be used to retrieve the next page of\n\t\t\tresults. This value is null when there are no more results to\n\t\t\treturn.

" + "smithy.api#documentation": "

The nextToken value to include in a future ListClusters request. When the\n\t\t\tresults of a ListClusters request exceed maxResults, this value can be used\n\t\t\tto retrieve the next page of results. This value is null when there are no more results to\n\t\t\treturn.

" } } }, @@ -7254,7 +7295,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns a list of container instances in a specified cluster. You can filter the\n\t\t\tresults of a ListContainerInstances operation with cluster query language\n\t\t\tstatements inside the filter parameter. For more information, see Cluster Query Language in the Amazon Elastic Container Service Developer Guide.

", + "smithy.api#documentation": "

Returns a list of container instances in a specified cluster. You can filter the results of a\n\t\t\t\tListContainerInstances operation with cluster query language statements inside the\n\t\t\t\tfilter parameter. For more information, see Cluster\n\t\t\t\tQuery Language in the Amazon Elastic Container Service Developer Guide.

", "smithy.api#examples": [ { "title": "To list your available container instances in a cluster", @@ -7284,31 +7325,31 @@ "cluster": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instances to\n\t\t\tlist. If you do not specify a cluster, the default cluster is assumed.

" + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instances to list.\n\t\t\tIf you do not specify a cluster, the default cluster is assumed.

" } }, "filter": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

You can filter the results of a ListContainerInstances operation with\n\t\t\tcluster query language statements. For more information, see Cluster Query Language in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

You can filter the results of a ListContainerInstances operation with cluster query\n\t\t\tlanguage statements. For more information, see Cluster\n\t\t\t\tQuery Language in the Amazon Elastic Container Service Developer Guide.

" } }, "nextToken": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The nextToken value returned from a ListContainerInstances\n\t\t\trequest indicating that more results are available to fulfill the request and further\n\t\t\tcalls are needed. If maxResults was provided, it's possible the number of\n\t\t\tresults to be fewer than maxResults.

\n \n

This token should be treated as an opaque identifier that is only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" + "smithy.api#documentation": "

The nextToken value returned from a ListContainerInstances request\n\t\t\tindicating that more results are available to fulfill the request and further calls are needed. If\n\t\t\t\tmaxResults was provided, it's possible the number of results to be fewer than\n\t\t\t\tmaxResults.

\n \n

This token should be treated as an opaque identifier that is only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" } }, "maxResults": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The maximum number of container instance results that\n\t\t\t\tListContainerInstances returned in paginated output. When this\n\t\t\tparameter is used, ListContainerInstances only returns\n\t\t\t\tmaxResults results in a single page along with a nextToken\n\t\t\tresponse element. The remaining results of the initial request can be seen by sending\n\t\t\tanother ListContainerInstances request with the returned\n\t\t\t\tnextToken value. This value can be between 1 and\n\t\t\t100. If this parameter isn't used, then\n\t\t\t\tListContainerInstances returns up to 100 results and\n\t\t\ta nextToken value if applicable.

" + "smithy.api#documentation": "

The maximum number of container instance results that ListContainerInstances returned in\n\t\t\tpaginated output. When this parameter is used, ListContainerInstances only returns\n\t\t\t\tmaxResults results in a single page along with a nextToken response\n\t\t\telement. The remaining results of the initial request can be seen by sending another\n\t\t\t\tListContainerInstances request with the returned nextToken value. This\n\t\t\tvalue can be between 1 and 100. If this parameter isn't used, then\n\t\t\t\tListContainerInstances returns up to 100 results and a\n\t\t\t\tnextToken value if applicable.

" } }, "status": { "target": "com.amazonaws.ecs#ContainerInstanceStatus", "traits": { - "smithy.api#documentation": "

Filters the container instances by status. For example, if you specify the\n\t\t\t\tDRAINING status, the results include only container instances that have\n\t\t\tbeen set to DRAINING using UpdateContainerInstancesState.\n\t\t\tIf you don't specify this parameter, the default is to include container instances set\n\t\t\tto all states other than INACTIVE.

" + "smithy.api#documentation": "

Filters the container instances by status. For example, if you specify the DRAINING\n\t\t\tstatus, the results include only container instances that have been set to DRAINING using\n\t\t\t\tUpdateContainerInstancesState. If you don't specify this parameter, the default is to\n\t\t\tinclude container instances set to all states other than INACTIVE.

" } } }, @@ -7322,13 +7363,13 @@ "containerInstanceArns": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The list of container instances with full ARN entries for each container instance\n\t\t\tassociated with the specified cluster.

" + "smithy.api#documentation": "

The list of container instances with full ARN entries for each container instance associated with\n\t\t\tthe specified cluster.

" } }, "nextToken": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The nextToken value to include in a future\n\t\t\t\tListContainerInstances request. When the results of a\n\t\t\t\tListContainerInstances request exceed maxResults, this\n\t\t\tvalue can be used to retrieve the next page of results. This value is null\n\t\t\twhen there are no more results to return.

" + "smithy.api#documentation": "

The nextToken value to include in a future ListContainerInstances request.\n\t\t\tWhen the results of a ListContainerInstances request exceed maxResults, this\n\t\t\tvalue can be used to retrieve the next page of results. This value is null when there are\n\t\t\tno more results to return.

" } } }, @@ -7405,7 +7446,7 @@ "maxResults": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The maximum number of service deployment results that ListServiceDeployments\n\t\t\treturned in paginated output. When this parameter is used,\n\t\t\t\tListServiceDeployments only returns maxResults results in\n\t\t\ta single page along with a nextToken response element. The remaining\n\t\t\tresults of the initial request can be seen by sending another\n\t\t\t\tListServiceDeployments request with the returned nextToken\n\t\t\tvalue. This value can be between 1 and 100. If this parameter isn't used, then\n\t\t\t\tListServiceDeployments returns up to 20 results and a\n\t\t\t\tnextToken value if applicable.

" + "smithy.api#documentation": "

The maximum number of service deployment results that ListServiceDeployments\n\t\t\treturned in paginated output. When this parameter is used,\n\t\t\tListServiceDeployments only returns maxResults results in\n\t\t\ta single page along with a nextToken response element. The remaining\n\t\t\tresults of the initial request can be seen by sending another\n\t\t\tListServiceDeployments request with the returned nextToken\n\t\t\tvalue. This value can be between 1 and 100. If this parameter isn't used, then\n\t\t\tListServiceDeployments returns up to 20 results and a\n\t\t\tnextToken value if applicable.

" } } }, @@ -7456,7 +7497,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns a list of services. You can filter the results by cluster, launch type, and\n\t\t\tscheduling strategy.

", + "smithy.api#documentation": "

Returns a list of services. You can filter the results by cluster, launch type, and scheduling\n\t\t\tstrategy.

", "smithy.api#examples": [ { "title": "To list the services in a cluster", @@ -7499,7 +7540,7 @@ } ], "traits": { - "smithy.api#documentation": "

This operation lists all of the services that are associated with a Cloud Map\n\t\t\tnamespace. This list might include services in different clusters. In contrast,\n\t\t\t\tListServices can only list services in one cluster at a time. If you\n\t\t\tneed to filter the list of services in a single cluster by various parameters, use\n\t\t\t\tListServices. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.

", + "smithy.api#documentation": "

This operation lists all of the services that are associated with a Cloud Map namespace. This list\n\t\t\tmight include services in different clusters. In contrast, ListServices can only list\n\t\t\tservices in one cluster at a time. If you need to filter the list of services in a single cluster by\n\t\t\tvarious parameters, use ListServices. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.

", "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", @@ -7521,13 +7562,13 @@ "nextToken": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The nextToken value that's returned from a\n\t\t\t\tListServicesByNamespace request. It indicates that more results are\n\t\t\tavailable to fulfill the request and further calls are needed. If\n\t\t\t\tmaxResults is returned, it is possible the number of results is less\n\t\t\tthan maxResults.

" + "smithy.api#documentation": "

The nextToken value that's returned from a ListServicesByNamespace request.\n\t\t\tIt indicates that more results are available to fulfill the request and further calls are needed. If\n\t\t\t\tmaxResults is returned, it is possible the number of results is less than\n\t\t\t\tmaxResults.

" } }, "maxResults": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The maximum number of service results that ListServicesByNamespace\n\t\t\treturns in paginated output. When this parameter is used,\n\t\t\t\tListServicesByNamespace only returns maxResults results in\n\t\t\ta single page along with a nextToken response element. The remaining\n\t\t\tresults of the initial request can be seen by sending another\n\t\t\t\tListServicesByNamespace request with the returned\n\t\t\t\tnextToken value. This value can be between 1 and\n\t\t\t100. If this parameter isn't used, then\n\t\t\t\tListServicesByNamespace returns up to\n\t\t\t10 results and a nextToken\n\t\t\tvalue if applicable.

" + "smithy.api#documentation": "

The maximum number of service results that ListServicesByNamespace returns in paginated\n\t\t\toutput. When this parameter is used, ListServicesByNamespace only returns\n\t\t\t\tmaxResults results in a single page along with a nextToken response\n\t\t\telement. The remaining results of the initial request can be seen by sending another\n\t\t\t\tListServicesByNamespace request with the returned nextToken value. This\n\t\t\tvalue can be between 1 and 100. If this parameter\n\t\t\tisn't used, then ListServicesByNamespace returns up to\n\t\t\t10 results and a nextToken value if\n\t\t\tapplicable.

" } } }, @@ -7547,7 +7588,7 @@ "nextToken": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The nextToken value to include in a future\n\t\t\t\tListServicesByNamespace request. When the results of a\n\t\t\t\tListServicesByNamespace request exceed maxResults, this\n\t\t\tvalue can be used to retrieve the next page of results. When there are no more results\n\t\t\tto return, this value is null.

" + "smithy.api#documentation": "

The nextToken value to include in a future ListServicesByNamespace request.\n\t\t\tWhen the results of a ListServicesByNamespace request exceed maxResults, this\n\t\t\tvalue can be used to retrieve the next page of results. When there are no more results to return, this\n\t\t\tvalue is null.

" } } }, @@ -7561,19 +7602,19 @@ "cluster": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster to use when filtering the\n\t\t\t\tListServices results. If you do not specify a cluster, the default cluster is assumed.

" + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster to use when filtering the ListServices\n\t\t\tresults. If you do not specify a cluster, the default cluster is assumed.

" } }, "nextToken": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The nextToken value returned from a ListServices request\n\t\t\tindicating that more results are available to fulfill the request and further calls will\n\t\t\tbe needed. If maxResults was provided, it is possible the number of results\n\t\t\tto be fewer than maxResults.

\n \n

This token should be treated as an opaque identifier that is only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" + "smithy.api#documentation": "

The nextToken value returned from a ListServices request indicating that\n\t\t\tmore results are available to fulfill the request and further calls will be needed. If\n\t\t\t\tmaxResults was provided, it is possible the number of results to be fewer than\n\t\t\t\tmaxResults.

\n \n

This token should be treated as an opaque identifier that is only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" } }, "maxResults": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The maximum number of service results that ListServices returned in\n\t\t\tpaginated output. When this parameter is used, ListServices only returns\n\t\t\t\tmaxResults results in a single page along with a nextToken\n\t\t\tresponse element. The remaining results of the initial request can be seen by sending\n\t\t\tanother ListServices request with the returned nextToken\n\t\t\tvalue. This value can be between 1 and 100. If\n\t\t\tthis parameter isn't used, then ListServices returns up to\n\t\t\t10 results and a nextToken value if\n\t\t\tapplicable.

" + "smithy.api#documentation": "

The maximum number of service results that ListServices returned in paginated output.\n\t\t\tWhen this parameter is used, ListServices only returns maxResults results in\n\t\t\ta single page along with a nextToken response element. The remaining results of the\n\t\t\tinitial request can be seen by sending another ListServices request with the returned\n\t\t\t\tnextToken value. This value can be between 1 and\n\t\t\t100. If this parameter isn't used, then ListServices returns up to\n\t\t\t10 results and a nextToken value if applicable.

" } }, "launchType": { @@ -7585,7 +7626,7 @@ "schedulingStrategy": { "target": "com.amazonaws.ecs#SchedulingStrategy", "traits": { - "smithy.api#documentation": "

The scheduling strategy to use when filtering the ListServices\n\t\t\tresults.

" + "smithy.api#documentation": "

The scheduling strategy to use when filtering the ListServices results.

" } } }, @@ -7599,13 +7640,13 @@ "serviceArns": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The list of full ARN entries for each service that's associated with the specified\n\t\t\tcluster.

" + "smithy.api#documentation": "

The list of full ARN entries for each service that's associated with the specified cluster.

" } }, "nextToken": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The nextToken value to include in a future ListServices\n\t\t\trequest. When the results of a ListServices request exceed\n\t\t\t\tmaxResults, this value can be used to retrieve the next page of\n\t\t\tresults. This value is null when there are no more results to\n\t\t\treturn.

" + "smithy.api#documentation": "

The nextToken value to include in a future ListServices request. When the\n\t\t\tresults of a ListServices request exceed maxResults, this value can be used\n\t\t\tto retrieve the next page of results. This value is null when there are no more results to\n\t\t\treturn.

" } } }, @@ -7662,7 +7703,7 @@ "resourceArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) that identifies the resource to list the tags for. Currently, the\n\t\t\tsupported resources are Amazon ECS tasks, services, task definitions, clusters, and container\n\t\t\tinstances.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) that identifies the resource to list the tags for. Currently, the supported resources\n\t\t\tare Amazon ECS tasks, services, task definitions, clusters, and container instances.

", "smithy.api#required": {} } } @@ -7705,7 +7746,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns a list of task definition families that are registered to your account. This\n\t\t\tlist includes task definition families that no longer have any ACTIVE task\n\t\t\tdefinition revisions.

\n

You can filter out task definition families that don't contain any ACTIVE\n\t\t\ttask definition revisions by setting the status parameter to\n\t\t\t\tACTIVE. You can also filter the results with the\n\t\t\t\tfamilyPrefix parameter.

", + "smithy.api#documentation": "

Returns a list of task definition families that are registered to your account. This list includes\n\t\t\ttask definition families that no longer have any ACTIVE task definition revisions.

\n

You can filter out task definition families that don't contain any ACTIVE task\n\t\t\tdefinition revisions by setting the status parameter to ACTIVE. You can also\n\t\t\tfilter the results with the familyPrefix parameter.

", "smithy.api#examples": [ { "title": "To filter your registered task definition families", @@ -7747,25 +7788,25 @@ "familyPrefix": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The familyPrefix is a string that's used to filter the results of\n\t\t\t\tListTaskDefinitionFamilies. If you specify a familyPrefix,\n\t\t\tonly task definition family names that begin with the familyPrefix string\n\t\t\tare returned.

" + "smithy.api#documentation": "

The familyPrefix is a string that's used to filter the results of\n\t\t\t\tListTaskDefinitionFamilies. If you specify a familyPrefix, only task\n\t\t\tdefinition family names that begin with the familyPrefix string are returned.

" } }, "status": { "target": "com.amazonaws.ecs#TaskDefinitionFamilyStatus", "traits": { - "smithy.api#documentation": "

The task definition family status to filter the\n\t\t\t\tListTaskDefinitionFamilies results with. By default, both\n\t\t\t\tACTIVE and INACTIVE task definition families are listed.\n\t\t\tIf this parameter is set to ACTIVE, only task definition families that have\n\t\t\tan ACTIVE task definition revision are returned. If this parameter is set\n\t\t\tto INACTIVE, only task definition families that do not have any\n\t\t\t\tACTIVE task definition revisions are returned. If you paginate the\n\t\t\tresulting output, be sure to keep the status value constant in each\n\t\t\tsubsequent request.

" + "smithy.api#documentation": "

The task definition family status to filter the ListTaskDefinitionFamilies results with.\n\t\t\tBy default, both ACTIVE and INACTIVE task definition families are listed. If\n\t\t\tthis parameter is set to ACTIVE, only task definition families that have an\n\t\t\t\tACTIVE task definition revision are returned. If this parameter is set to\n\t\t\t\tINACTIVE, only task definition families that do not have any ACTIVE task\n\t\t\tdefinition revisions are returned. If you paginate the resulting output, be sure to keep the\n\t\t\t\tstatus value constant in each subsequent request.

" } }, "nextToken": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The nextToken value returned from a\n\t\t\t\tListTaskDefinitionFamilies request indicating that more results are\n\t\t\tavailable to fulfill the request and further calls will be needed. If\n\t\t\t\tmaxResults was provided, it is possible the number of results to be\n\t\t\tfewer than maxResults.

\n \n

This token should be treated as an opaque identifier that is only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" + "smithy.api#documentation": "

The nextToken value returned from a ListTaskDefinitionFamilies request\n\t\t\tindicating that more results are available to fulfill the request and further calls will be needed. If\n\t\t\t\tmaxResults was provided, it is possible the number of results to be fewer than\n\t\t\t\tmaxResults.

\n \n

This token should be treated as an opaque identifier that is only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" } }, "maxResults": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The maximum number of task definition family results that\n\t\t\t\tListTaskDefinitionFamilies returned in paginated output. When this\n\t\t\tparameter is used, ListTaskDefinitions only returns maxResults\n\t\t\tresults in a single page along with a nextToken response element. The\n\t\t\tremaining results of the initial request can be seen by sending another\n\t\t\t\tListTaskDefinitionFamilies request with the returned\n\t\t\t\tnextToken value. This value can be between 1 and\n\t\t\t100. If this parameter isn't used, then\n\t\t\t\tListTaskDefinitionFamilies returns up to 100 results\n\t\t\tand a nextToken value if applicable.

" + "smithy.api#documentation": "

The maximum number of task definition family results that ListTaskDefinitionFamilies\n\t\t\treturned in paginated output. When this parameter is used, ListTaskDefinitions only\n\t\t\treturns maxResults results in a single page along with a nextToken response\n\t\t\telement. The remaining results of the initial request can be seen by sending another\n\t\t\t\tListTaskDefinitionFamilies request with the returned nextToken value.\n\t\t\tThis value can be between 1 and 100. If this parameter isn't used, then\n\t\t\t\tListTaskDefinitionFamilies returns up to 100 results and a\n\t\t\t\tnextToken value if applicable.

" } } }, @@ -7779,13 +7820,13 @@ "families": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The list of task definition family names that match the\n\t\t\t\tListTaskDefinitionFamilies request.

" + "smithy.api#documentation": "

The list of task definition family names that match the ListTaskDefinitionFamilies\n\t\t\trequest.

" } }, "nextToken": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The nextToken value to include in a future\n\t\t\t\tListTaskDefinitionFamilies request. When the results of a\n\t\t\t\tListTaskDefinitionFamilies request exceed maxResults, this\n\t\t\tvalue can be used to retrieve the next page of results. This value is null\n\t\t\twhen there are no more results to return.

" + "smithy.api#documentation": "

The nextToken value to include in a future ListTaskDefinitionFamilies\n\t\t\trequest. When the results of a ListTaskDefinitionFamilies request exceed\n\t\t\t\tmaxResults, this value can be used to retrieve the next page of results. This value is\n\t\t\t\tnull when there are no more results to return.

" } } }, @@ -7813,7 +7854,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns a list of task definitions that are registered to your account. You can filter\n\t\t\tthe results by family name with the familyPrefix parameter or by status\n\t\t\twith the status parameter.

", + "smithy.api#documentation": "

Returns a list of task definitions that are registered to your account. You can filter the results by\n\t\t\tfamily name with the familyPrefix parameter or by status with the status\n\t\t\tparameter.

", "smithy.api#examples": [ { "title": "To list the registered task definitions in a family", @@ -7859,31 +7900,31 @@ "familyPrefix": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The full family name to filter the ListTaskDefinitions results with.\n\t\t\tSpecifying a familyPrefix limits the listed task definitions to task\n\t\t\tdefinition revisions that belong to that family.

" + "smithy.api#documentation": "

The full family name to filter the ListTaskDefinitions results with. Specifying a\n\t\t\t\tfamilyPrefix limits the listed task definitions to task definition revisions that\n\t\t\tbelong to that family.

" } }, "status": { "target": "com.amazonaws.ecs#TaskDefinitionStatus", "traits": { - "smithy.api#documentation": "

The task definition status to filter the ListTaskDefinitions results\n\t\t\twith. By default, only ACTIVE task definitions are listed. By setting this\n\t\t\tparameter to INACTIVE, you can view task definitions that are\n\t\t\t\tINACTIVE as long as an active task or service still references them. If\n\t\t\tyou paginate the resulting output, be sure to keep the status value\n\t\t\tconstant in each subsequent request.

" + "smithy.api#documentation": "

The task definition status to filter the ListTaskDefinitions results with. By default,\n\t\t\tonly ACTIVE task definitions are listed. By setting this parameter to\n\t\t\t\tINACTIVE, you can view task definitions that are INACTIVE as long as an\n\t\t\tactive task or service still references them. If you paginate the resulting output, be sure to keep the\n\t\t\t\tstatus value constant in each subsequent request.

" } }, "sort": { "target": "com.amazonaws.ecs#SortOrder", "traits": { - "smithy.api#documentation": "

The order to sort the results in. Valid values are ASC and\n\t\t\t\tDESC. By default, (ASC) task definitions are listed\n\t\t\tlexicographically by family name and in ascending numerical order by revision so that\n\t\t\tthe newest task definitions in a family are listed last. Setting this parameter to\n\t\t\t\tDESC reverses the sort order on family name and revision. This is so\n\t\t\tthat the newest task definitions in a family are listed first.

" + "smithy.api#documentation": "

The order to sort the results in. Valid values are ASC and DESC. By\n\t\t\tdefault, (ASC) task definitions are listed lexicographically by family name and in\n\t\t\tascending numerical order by revision so that the newest task definitions in a family are listed last.\n\t\t\tSetting this parameter to DESC reverses the sort order on family name and revision. This\n\t\t\tis so that the newest task definitions in a family are listed first.

" } }, "nextToken": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The nextToken value returned from a ListTaskDefinitions\n\t\t\trequest indicating that more results are available to fulfill the request and further\n\t\t\tcalls will be needed. If maxResults was provided, it is possible the number\n\t\t\tof results to be fewer than maxResults.

\n \n

This token should be treated as an opaque identifier that is only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" + "smithy.api#documentation": "

The nextToken value returned from a ListTaskDefinitions request indicating\n\t\t\tthat more results are available to fulfill the request and further calls will be needed. If\n\t\t\t\tmaxResults was provided, it is possible the number of results to be fewer than\n\t\t\t\tmaxResults.

\n \n

This token should be treated as an opaque identifier that is only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" } }, "maxResults": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The maximum number of task definition results that ListTaskDefinitions\n\t\t\treturned in paginated output. When this parameter is used,\n\t\t\t\tListTaskDefinitions only returns maxResults results in a\n\t\t\tsingle page along with a nextToken response element. The remaining results\n\t\t\tof the initial request can be seen by sending another ListTaskDefinitions\n\t\t\trequest with the returned nextToken value. This value can be between\n\t\t\t1 and 100. If this parameter isn't used, then\n\t\t\t\tListTaskDefinitions returns up to 100 results and a\n\t\t\t\tnextToken value if applicable.

" + "smithy.api#documentation": "

The maximum number of task definition results that ListTaskDefinitions returned in\n\t\t\tpaginated output. When this parameter is used, ListTaskDefinitions only returns\n\t\t\t\tmaxResults results in a single page along with a nextToken response\n\t\t\telement. The remaining results of the initial request can be seen by sending another\n\t\t\t\tListTaskDefinitions request with the returned nextToken value. This value\n\t\t\tcan be between 1 and 100. If this parameter isn't used, then\n\t\t\t\tListTaskDefinitions returns up to 100 results and a\n\t\t\t\tnextToken value if applicable.

" } } }, @@ -7903,7 +7944,7 @@ "nextToken": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The nextToken value to include in a future\n\t\t\t\tListTaskDefinitions request. When the results of a\n\t\t\t\tListTaskDefinitions request exceed maxResults, this value\n\t\t\tcan be used to retrieve the next page of results. This value is null when\n\t\t\tthere are no more results to return.

" + "smithy.api#documentation": "

The nextToken value to include in a future ListTaskDefinitions request.\n\t\t\tWhen the results of a ListTaskDefinitions request exceed maxResults, this\n\t\t\tvalue can be used to retrieve the next page of results. This value is null when there are\n\t\t\tno more results to return.

" } } }, @@ -7937,7 +7978,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns a list of tasks. You can filter the results by cluster, task definition\n\t\t\tfamily, container instance, launch type, what IAM principal started the task, or by\n\t\t\tthe desired status of the task.

\n

Recently stopped tasks might appear in the returned results.

", + "smithy.api#documentation": "

Returns a list of tasks. You can filter the results by cluster, task definition family, container\n\t\t\tinstance, launch type, what IAM principal started the task, or by the desired status of the\n\t\t\ttask.

\n

Recently stopped tasks might appear in the returned results.

", "smithy.api#examples": [ { "title": "To list the tasks on a particular container instance", @@ -7980,49 +8021,49 @@ "cluster": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster to use when filtering the\n\t\t\t\tListTasks results. If you do not specify a cluster, the default cluster is assumed.

" + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster to use when filtering the ListTasks\n\t\t\tresults. If you do not specify a cluster, the default cluster is assumed.

" } }, "containerInstance": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The container instance ID or full ARN of the container instance to use when\n\t\t\tfiltering the ListTasks results. Specifying a\n\t\t\t\tcontainerInstance limits the results to tasks that belong to that\n\t\t\tcontainer instance.

" + "smithy.api#documentation": "

The container instance ID or full ARN of the container instance to use when filtering the\n\t\t\t\tListTasks results. Specifying a containerInstance limits the results to\n\t\t\ttasks that belong to that container instance.

" } }, "family": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The name of the task definition family to use when filtering the\n\t\t\t\tListTasks results. Specifying a family limits the results\n\t\t\tto tasks that belong to that family.

" + "smithy.api#documentation": "

The name of the task definition family to use when filtering the ListTasks results.\n\t\t\tSpecifying a family limits the results to tasks that belong to that family.

" } }, "nextToken": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The nextToken value returned from a ListTasks request\n\t\t\tindicating that more results are available to fulfill the request and further calls will\n\t\t\tbe needed. If maxResults was provided, it's possible the number of results\n\t\t\tto be fewer than maxResults.

\n \n

This token should be treated as an opaque identifier that is only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" + "smithy.api#documentation": "

The nextToken value returned from a ListTasks request indicating that more\n\t\t\tresults are available to fulfill the request and further calls will be needed. If\n\t\t\t\tmaxResults was provided, it's possible the number of results to be fewer than\n\t\t\t\tmaxResults.

\n \n

This token should be treated as an opaque identifier that is only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" } }, "maxResults": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The maximum number of task results that ListTasks returned in paginated\n\t\t\toutput. When this parameter is used, ListTasks only returns\n\t\t\t\tmaxResults results in a single page along with a nextToken\n\t\t\tresponse element. The remaining results of the initial request can be seen by sending\n\t\t\tanother ListTasks request with the returned nextToken value.\n\t\t\tThis value can be between 1 and 100. If this parameter\n\t\t\tisn't used, then ListTasks returns up to 100 results and\n\t\t\ta nextToken value if applicable.

" + "smithy.api#documentation": "

The maximum number of task results that ListTasks returned in paginated output. When\n\t\t\tthis parameter is used, ListTasks only returns maxResults results in a single\n\t\t\tpage along with a nextToken response element. The remaining results of the initial request\n\t\t\tcan be seen by sending another ListTasks request with the returned nextToken\n\t\t\tvalue. This value can be between 1 and 100. If this parameter isn't used,\n\t\t\tthen ListTasks returns up to 100 results and a nextToken\n\t\t\tvalue if applicable.

" } }, "startedBy": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The startedBy value to filter the task results with. Specifying a\n\t\t\t\tstartedBy value limits the results to tasks that were started with that\n\t\t\tvalue.

\n

When you specify startedBy as the filter, it must be the only filter that\n\t\t\tyou use.

" + "smithy.api#documentation": "

The startedBy value to filter the task results with. Specifying a startedBy\n\t\t\tvalue limits the results to tasks that were started with that value.

\n

When you specify startedBy as the filter, it must be the only filter that you\n\t\t\tuse.

" } }, "serviceName": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The name of the service to use when filtering the ListTasks results.\n\t\t\tSpecifying a serviceName limits the results to tasks that belong to that\n\t\t\tservice.

" + "smithy.api#documentation": "

The name of the service to use when filtering the ListTasks results. Specifying a\n\t\t\t\tserviceName limits the results to tasks that belong to that service.

" } }, "desiredStatus": { "target": "com.amazonaws.ecs#DesiredStatus", "traits": { - "smithy.api#documentation": "

The task desired status to use when filtering the ListTasks results.\n\t\t\tSpecifying a desiredStatus of STOPPED limits the results to\n\t\t\ttasks that Amazon ECS has set the desired status to STOPPED. This can be useful\n\t\t\tfor debugging tasks that aren't starting properly or have died or finished. The default\n\t\t\tstatus filter is RUNNING, which shows tasks that Amazon ECS has set the desired\n\t\t\tstatus to RUNNING.

\n \n

Although you can filter results based on a desired status of PENDING,\n\t\t\t\tthis doesn't return any results. Amazon ECS never sets the desired status of a task to\n\t\t\t\tthat value (only a task's lastStatus may have a value of\n\t\t\t\t\tPENDING).

\n
" + "smithy.api#documentation": "

The task desired status to use when filtering the ListTasks results. Specifying a\n\t\t\t\tdesiredStatus of STOPPED limits the results to tasks that Amazon ECS has set\n\t\t\tthe desired status to STOPPED. This can be useful for debugging tasks that aren't starting\n\t\t\tproperly or have died or finished. The default status filter is RUNNING, which shows tasks\n\t\t\tthat Amazon ECS has set the desired status to RUNNING.

\n \n

Although you can filter results based on a desired status of PENDING, this doesn't\n\t\t\t\treturn any results. Amazon ECS never sets the desired status of a task to that value (only a task's\n\t\t\t\t\tlastStatus may have a value of PENDING).

\n
" } }, "launchType": { @@ -8048,7 +8089,7 @@ "nextToken": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The nextToken value to include in a future ListTasks\n\t\t\trequest. When the results of a ListTasks request exceed\n\t\t\t\tmaxResults, this value can be used to retrieve the next page of\n\t\t\tresults. This value is null when there are no more results to\n\t\t\treturn.

" + "smithy.api#documentation": "

The nextToken value to include in a future ListTasks request. When the\n\t\t\tresults of a ListTasks request exceed maxResults, this value can be used to\n\t\t\tretrieve the next page of results. This value is null when there are no more results to\n\t\t\treturn.

" } } }, @@ -8062,30 +8103,30 @@ "targetGroupArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The full Amazon Resource Name (ARN) of the Elastic Load Balancing target group or groups associated with a service or\n\t\t\ttask set.

\n

A target group ARN is only specified when using an Application Load Balancer or Network Load Balancer.

\n

For services using the ECS deployment controller, you can specify one or\n\t\t\tmultiple target groups. For more information, see Registering multiple target groups with a service in\n\t\t\tthe Amazon Elastic Container Service Developer Guide.

\n

For services using the CODE_DEPLOY deployment controller, you're required\n\t\t\tto define two target groups for the load balancer. For more information, see Blue/green deployment with CodeDeploy in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

\n \n

If your service's task definition uses the awsvpc network mode, you\n\t\t\t\tmust choose ip as the target type, not instance. Do this\n\t\t\t\twhen creating your target groups because tasks that use the awsvpc\n\t\t\t\tnetwork mode are associated with an elastic network interface, not an Amazon EC2\n\t\t\t\tinstance. This network mode is required for the Fargate launch\n\t\t\t\ttype.

\n
" + "smithy.api#documentation": "

The full Amazon Resource Name (ARN) of the Elastic Load Balancing target group or groups associated with a service or task set.

\n

A target group ARN is only specified when using an Application Load Balancer or Network Load Balancer.

\n

For services using the ECS deployment controller, you can specify one or multiple target\n\t\t\tgroups. For more information, see Registering multiple target groups with a service in the Amazon Elastic Container Service Developer Guide.

\n

For services using the CODE_DEPLOY deployment controller, you're required to define two\n\t\t\ttarget groups for the load balancer. For more information, see Blue/green deployment with CodeDeploy in the Amazon Elastic Container Service Developer Guide.

\n \n

If your service's task definition uses the awsvpc network mode, you must choose\n\t\t\t\t\tip as the target type, not instance. Do this when creating your\n\t\t\t\ttarget groups because tasks that use the awsvpc network mode are associated with an\n\t\t\t\telastic network interface, not an Amazon EC2 instance. This network mode is required for the\n\t\t\t\tFargate launch type.

\n
" } }, "loadBalancerName": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The name of the load balancer to associate with the service or task set.

\n

If you are using an Application Load Balancer or a Network Load Balancer the load balancer name parameter should be\n\t\t\tomitted.

" + "smithy.api#documentation": "

The name of the load balancer to associate with the Amazon ECS service or task set.

\n

If you are using an Application Load Balancer or a Network Load Balancer the load balancer name parameter should be omitted.

" } }, "containerName": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The name of the container (as it appears in a container definition) to associate with\n\t\t\tthe load balancer.

\n

You need to specify the container name when configuring the target group for an Amazon ECS\n\t\t\tload balancer.

" + "smithy.api#documentation": "

The name of the container (as it appears in a container definition) to associate with the load\n\t\t\tbalancer.

\n

You need to specify the container name when configuring the target group for an Amazon ECS load\n\t\t\tbalancer.

" } }, "containerPort": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The port on the container to associate with the load balancer. This port must\n\t\t\tcorrespond to a containerPort in the task definition the tasks in the\n\t\t\tservice are using. For tasks that use the EC2 launch type, the container\n\t\t\tinstance they're launched on must allow ingress traffic on the hostPort of\n\t\t\tthe port mapping.

" + "smithy.api#documentation": "

The port on the container to associate with the load balancer. This port must correspond to a\n\t\t\t\tcontainerPort in the task definition the tasks in the service are using. For tasks\n\t\t\tthat use the EC2 launch type, the container instance they're launched on must allow\n\t\t\tingress traffic on the hostPort of the port mapping.

" } } }, "traits": { - "smithy.api#documentation": "

The load balancer configuration to use with a service or task set.

\n

When you add, update, or remove a load balancer configuration, Amazon ECS starts a new\n\t\t\tdeployment with the updated Elastic Load Balancing configuration. This causes tasks to register to and\n\t\t\tderegister from load balancers.

\n

We recommend that you verify this on a test environment before you update the Elastic Load Balancing\n\t\t\tconfiguration.

\n

A service-linked role is required for services that use multiple target groups. For\n\t\t\tmore information, see Using\n\t\t\t\tservice-linked roles in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The load balancer configuration to use with a service or task set.

\n

When you add, update, or remove a load balancer configuration, Amazon ECS starts a new deployment with the\n\t\t\tupdated Elastic Load Balancing configuration. This causes tasks to register to and deregister from load\n\t\t\tbalancers.

\n

We recommend that you verify this on a test environment before you update the Elastic Load Balancing configuration.

\n

A service-linked role is required for services that use multiple target groups. For more information,\n\t\t\tsee Using service-linked roles in the Amazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#LoadBalancers": { @@ -8100,25 +8141,25 @@ "logDriver": { "target": "com.amazonaws.ecs#LogDriver", "traits": { - "smithy.api#documentation": "

The log driver to use for the container.

\n

For tasks on Fargate, the supported log drivers are awslogs,\n\t\t\t\tsplunk, and awsfirelens.

\n

For tasks hosted on Amazon EC2 instances, the supported log drivers are\n\t\t\t\tawslogs, fluentd, gelf,\n\t\t\t\tjson-file, journald, syslog,\n\t\t\t\tsplunk, and awsfirelens.

\n

For more information about using the awslogs log driver, see Send\n\t\t\t\tAmazon ECS logs to CloudWatch in the Amazon Elastic Container Service Developer Guide.

\n

For more information about using the awsfirelens log driver, see Send\n\t\t\t\tAmazon ECS logs to an Amazon Web Services service or Amazon Web Services Partner.

\n \n

If you have a custom driver that isn't listed, you can fork the Amazon ECS container\n\t\t\t\tagent project that's available\n\t\t\t\t\ton GitHub and customize it to work with that driver. We encourage you to\n\t\t\t\tsubmit pull requests for changes that you would like to have included. However, we\n\t\t\t\tdon't currently provide support for running modified copies of this software.

\n
", + "smithy.api#documentation": "

The log driver to use for the container.

\n

For tasks on Fargate, the supported log drivers are awslogs, splunk, and\n\t\t\t\tawsfirelens.

\n

For tasks hosted on Amazon EC2 instances, the supported log drivers are awslogs,\n\t\t\t\tfluentd, gelf, json-file, journald,\n\t\t\t\tsyslog, splunk, and awsfirelens.

\n

For more information about using the awslogs log driver, see Send Amazon ECS logs to CloudWatch in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

\n

For more information about using the awsfirelens log driver, see Send Amazon ECS logs to\n\t\t\t\tan Amazon Web Services service or Amazon Web Services Partner.

\n \n

If you have a custom driver that isn't listed, you can fork the Amazon ECS container agent project\n\t\t\t\tthat's available on GitHub and\n\t\t\t\tcustomize it to work with that driver. We encourage you to submit pull requests for changes that\n\t\t\t\tyou would like to have included. However, we don't currently provide support for running modified\n\t\t\t\tcopies of this software.

\n
", "smithy.api#required": {} } }, "options": { "target": "com.amazonaws.ecs#LogConfigurationOptionsMap", "traits": { - "smithy.api#documentation": "

The configuration options to send to the log driver.

\n

The options you can specify depend on the log driver. Some\n\t\t\t\tof the options you can specify when you use the awslogs log driver to route logs to\n\t\t\t\tAmazon CloudWatch include the following:

\n
\n
awslogs-create-group
\n
\n

Required: No

\n

Specify whether you want the log group to be\n\t\t\t\t\t\t\tcreated automatically. If this option isn't\n\t\t\t\t\t\t\tspecified, it defaults to\n\t\t\t\t\t\t\tfalse.

\n \n

Your IAM policy must include the\n\t\t\t\t\t\t\t\tlogs:CreateLogGroup permission before\n\t\t\t\t\t\t\t\tyou attempt to use\n\t\t\t\t\t\t\t\tawslogs-create-group.

\n
\n
\n
awslogs-region
\n
\n

Required: Yes

\n

Specify the Amazon Web Services Region that the\n\t\t\t\t\t\t\tawslogs log driver is to send your\n\t\t\t\t\t\t\tDocker logs to. You can choose to send all of your\n\t\t\t\t\t\t\tlogs from clusters in different Regions to a\n\t\t\t\t\t\t\tsingle region in CloudWatch Logs. This is so that they're\n\t\t\t\t\t\t\tall visible in one location. Otherwise, you can\n\t\t\t\t\t\t\tseparate them by Region for more granularity. Make\n\t\t\t\t\t\t\tsure that the specified log group exists in the\n\t\t\t\t\t\t\tRegion that you specify with this option.

\n
\n
awslogs-group
\n
\n

Required: Yes

\n

Make sure to specify a log group that the\n\t\t\t\t\t\t\tawslogs log driver sends its log\n\t\t\t\t\t\t\tstreams to.

\n
\n
awslogs-stream-prefix
\n
\n

Required: Yes, when\n\t\t\t\t\t\t\tusing the Fargate launch\n\t\t\t\t\t\t\ttype.Optional for\n\t\t\t\t\t\t\t\tthe EC2 launch type, required for\n\t\t\t\t\t\t\t\tthe Fargate launch\n\t\t\t\t\t\t\t\ttype.

\n

Use the awslogs-stream-prefix\n\t\t\t\t\t\t\toption to associate a log stream with the\n\t\t\t\t\t\t\tspecified prefix, the container name, and the ID\n\t\t\t\t\t\t\tof the Amazon ECS task that the container belongs to.\n\t\t\t\t\t\t\tIf you specify a prefix with this option, then the\n\t\t\t\t\t\t\tlog stream takes the format prefix-name/container-name/ecs-task-id.

\n

If you don't specify a prefix\n\t\t\t\t\t\t\twith this option, then the log stream is named\n\t\t\t\t\t\t\tafter the container ID that's assigned by the\n\t\t\t\t\t\t\tDocker daemon on the container instance. Because\n\t\t\t\t\t\t\tit's difficult to trace logs back to the container\n\t\t\t\t\t\t\tthat sent them with just the Docker container ID\n\t\t\t\t\t\t\t(which is only available on the container\n\t\t\t\t\t\t\tinstance), we recommend that you specify a prefix\n\t\t\t\t\t\t\twith this option.

\n

For Amazon ECS services, you can use the service\n\t\t\t\t\t\t\tname as the prefix. Doing so, you can trace log\n\t\t\t\t\t\t\tstreams to the service that the container belongs\n\t\t\t\t\t\t\tto, the name of the container that sent them, and\n\t\t\t\t\t\t\tthe ID of the task that the container belongs\n\t\t\t\t\t\t\tto.

\n

You must specify a\n\t\t\t\t\t\t\tstream-prefix for your logs to have your logs\n\t\t\t\t\t\t\tappear in the Log pane when using the Amazon ECS\n\t\t\t\t\t\t\tconsole.

\n
\n
awslogs-datetime-format
\n
\n

Required: No

\n

This option defines a multiline start pattern\n\t\t\t\t\t\t\tin Python strftime format. A log\n\t\t\t\t\t\t\tmessage consists of a line that matches the\n\t\t\t\t\t\t\tpattern and any following lines that don’t match\n\t\t\t\t\t\t\tthe pattern. The matched line is the delimiter\n\t\t\t\t\t\t\tbetween log messages.

\n

One example of a use case for using this\n\t\t\t\t\t\t\tformat is for parsing output such as a stack dump,\n\t\t\t\t\t\t\twhich might otherwise be logged in multiple\n\t\t\t\t\t\t\tentries. The correct pattern allows it to be\n\t\t\t\t\t\t\tcaptured in a single entry.

\n

For more information, see awslogs-datetime-format.

\n

You cannot configure both the\n\t\t\t\t\t\t\tawslogs-datetime-format and\n\t\t\t\t\t\t\tawslogs-multiline-pattern\n\t\t\t\t\t\t\toptions.

\n \n

Multiline logging performs regular\n\t\t\t\t\t\t\t\texpression parsing and matching of all log\n\t\t\t\t\t\t\t\tmessages. This might have a negative impact on\n\t\t\t\t\t\t\t\tlogging performance.

\n
\n
\n
awslogs-multiline-pattern
\n
\n

Required: No

\n

This option defines a multiline start pattern\n\t\t\t\t\t\t\tthat uses a regular expression. A log message\n\t\t\t\t\t\t\tconsists of a line that matches the pattern and\n\t\t\t\t\t\t\tany following lines that don’t match the pattern.\n\t\t\t\t\t\t\tThe matched line is the delimiter between log\n\t\t\t\t\t\t\tmessages.

\n

For more information, see awslogs-multiline-pattern.

\n

This option is ignored if\n\t\t\t\t\t\t\tawslogs-datetime-format is also\n\t\t\t\t\t\t\tconfigured.

\n

You cannot configure both the\n\t\t\t\t\t\t\tawslogs-datetime-format and\n\t\t\t\t\t\t\tawslogs-multiline-pattern\n\t\t\t\t\t\t\toptions.

\n \n

Multiline logging performs regular\n\t\t\t\t\t\t\t\texpression parsing and matching of all log\n\t\t\t\t\t\t\t\tmessages. This might have a negative impact on\n\t\t\t\t\t\t\t\tlogging performance.

\n
\n
\n
mode
\n
\n

Required: No

\n

Valid values: non-blocking |\n\t\t\t\t\t\t\tblocking\n

\n

This option defines the delivery mode of log\n\t\t\t\t\t\t\tmessages from the container to CloudWatch Logs. The delivery\n\t\t\t\t\t\t\tmode you choose affects application availability\n\t\t\t\t\t\t\twhen the flow of logs from container to CloudWatch is\n\t\t\t\t\t\t\tinterrupted.

\n

If you use the blocking\n\t\t\t\t\t\t\tmode and the flow of logs to CloudWatch is interrupted,\n\t\t\t\t\t\t\tcalls from container code to write to the\n\t\t\t\t\t\t\tstdout and stderr\n\t\t\t\t\t\t\tstreams will block. The logging thread of the\n\t\t\t\t\t\t\tapplication will block as a result. This may cause\n\t\t\t\t\t\t\tthe application to become unresponsive and lead to\n\t\t\t\t\t\t\tcontainer healthcheck failure.

\n

If you use the non-blocking mode,\n\t\t\t\t\t\t\tthe container's logs are instead stored in an\n\t\t\t\t\t\t\tin-memory intermediate buffer configured with the\n\t\t\t\t\t\t\tmax-buffer-size option. This prevents\n\t\t\t\t\t\t\tthe application from becoming unresponsive when\n\t\t\t\t\t\t\tlogs cannot be sent to CloudWatch. We recommend using this mode if you want to\n\t\t\t\t\t\t\tensure service availability and are okay with some\n\t\t\t\t\t\t\tlog loss. For more information, see Preventing log loss with non-blocking mode in the awslogs container log driver.

\n
\n
max-buffer-size
\n
\n

Required: No

\n

Default value: 1m\n

\n

When non-blocking mode is used,\n\t\t\t\t\t\t\tthe max-buffer-size log option\n\t\t\t\t\t\t\tcontrols the size of the buffer that's used for\n\t\t\t\t\t\t\tintermediate message storage. Make sure to specify\n\t\t\t\t\t\t\tan adequate buffer size based on your application.\n\t\t\t\t\t\t\tWhen the buffer fills up, further logs cannot be\n\t\t\t\t\t\t\tstored. Logs that cannot be stored are lost.\n\t\t\t\t\t\t

\n
\n
\n

To route logs using the splunk log router, you need to specify a\n\t\t\t\tsplunk-token and a\n\t\t\t\tsplunk-url.

\n

When you use the awsfirelens log router to route logs to an Amazon Web Services Service or\n\t\t\t\tAmazon Web Services Partner Network destination for log storage and analytics, you can\n\t\t\t\tset the log-driver-buffer-limit option to limit\n\t\t\t\tthe number of events that are buffered in memory, before\n\t\t\t\tbeing sent to the log router container. It can help to\n\t\t\t\tresolve potential log loss issue because high throughput\n\t\t\t\tmight result in memory running out for the buffer inside of\n\t\t\t\tDocker.

\n

Other options you can specify when using awsfirelens to route\n\t\t\t\tlogs depend on the destination. When you export logs to\n\t\t\t\tAmazon Data Firehose, you can specify the Amazon Web Services Region with\n\t\t\t\tregion and a name for the log stream with\n\t\t\t\tdelivery_stream.

\n

When you export logs to\n\t\t\t\tAmazon Kinesis Data Streams, you can specify an Amazon Web Services Region with\n\t\t\t\tregion and a data stream name with\n\t\t\t\tstream.

\n

When you export logs to Amazon OpenSearch Service,\n\t\t\t\tyou can specify options like Name,\n\t\t\t\tHost (OpenSearch Service endpoint without protocol), Port,\n\t\t\t\tIndex, Type,\n\t\t\t\tAws_auth, Aws_region, Suppress_Type_Name, and\n\t\t\t\ttls.

\n

When you export logs to Amazon S3, you can\n\t\t\t\t\tspecify the bucket using the bucket option. You can also specify region,\n\t\t\t\t\ttotal_file_size, upload_timeout,\n\t\t\t\t\tand use_put_object as options.

\n

This parameter requires version 1.19 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'\n

" + "smithy.api#documentation": "

The configuration options to send to the log driver.

\n

The options you can specify depend on the log driver. Some of the options you can specify when you\n\t\t\tuse the awslogs log driver to route logs to Amazon CloudWatch include the following:

\n
\n
awslogs-create-group
\n
\n

Required: No

\n

Specify whether you want the log group to be created automatically. If this option isn't\n\t\t\t\t\t\tspecified, it defaults to false.

\n \n

Your IAM policy must include the logs:CreateLogGroup permission before\n\t\t\t\t\t\t\tyou attempt to use awslogs-create-group.

\n
\n
\n
awslogs-region
\n
\n

Required: Yes

\n

Specify the Amazon Web Services Region that the awslogs log driver is to send your Docker\n\t\t\t\t\t\tlogs to. You can choose to send all of your logs from clusters in different Regions to a\n\t\t\t\t\t\tsingle region in CloudWatch Logs. This is so that they're all visible in one location. Otherwise, you\n\t\t\t\t\t\tcan separate them by Region for more granularity. Make sure that the specified log group\n\t\t\t\t\t\texists in the Region that you specify with this option.

\n
\n
awslogs-group
\n
\n

Required: Yes

\n

Make sure to specify a log group that the awslogs log driver sends its log\n\t\t\t\t\t\tstreams to.

\n
\n
awslogs-stream-prefix
\n
\n

Required: Yes, when using the Fargate launch\n\t\t\t\t\t\t\ttype.Optional for the EC2 launch type, required for the\n\t\t\t\t\t\t\tFargate launch type.

\n

Use the awslogs-stream-prefix option to associate a log stream with the\n\t\t\t\t\t\tspecified prefix, the container name, and the ID of the Amazon ECS task that the container\n\t\t\t\t\t\tbelongs to. If you specify a prefix with this option, then the log stream takes the format\n\t\t\t\t\t\t\tprefix-name/container-name/ecs-task-id.

\n

If you don't specify a prefix with this option, then the log stream is named after the\n\t\t\t\t\t\tcontainer ID that's assigned by the Docker daemon on the container instance. Because it's\n\t\t\t\t\t\tdifficult to trace logs back to the container that sent them with just the Docker container\n\t\t\t\t\t\tID (which is only available on the container instance), we recommend that you specify a\n\t\t\t\t\t\tprefix with this option.

\n

For Amazon ECS services, you can use the service name as the prefix. Doing so, you can trace\n\t\t\t\t\t\tlog streams to the service that the container belongs to, the name of the container that\n\t\t\t\t\t\tsent them, and the ID of the task that the container belongs to.

\n

You must specify a stream-prefix for your logs to have your logs appear in the Log pane\n\t\t\t\t\t\twhen using the Amazon ECS console.

\n
\n
awslogs-datetime-format
\n
\n

Required: No

\n

This option defines a multiline start pattern in Python strftime format. A\n\t\t\t\t\t\tlog message consists of a line that matches the pattern and any following lines that don’t\n\t\t\t\t\t\tmatch the pattern. The matched line is the delimiter between log messages.

\n

One example of a use case for using this format is for parsing output such as a stack\n\t\t\t\t\t\tdump, which might otherwise be logged in multiple entries. The correct pattern allows it to\n\t\t\t\t\t\tbe captured in a single entry.

\n

For more information, see awslogs-datetime-format.

\n

You cannot configure both the awslogs-datetime-format and\n\t\t\t\t\t\t\tawslogs-multiline-pattern options.

\n \n

Multiline logging performs regular expression parsing and matching of all log\n\t\t\t\t\t\t\tmessages. This might have a negative impact on logging performance.

\n
\n
\n
awslogs-multiline-pattern
\n
\n

Required: No

\n

This option defines a multiline start pattern that uses a regular expression. A log\n\t\t\t\t\t\tmessage consists of a line that matches the pattern and any following lines that don’t\n\t\t\t\t\t\tmatch the pattern. The matched line is the delimiter between log messages.

\n

For more information, see awslogs-multiline-pattern.

\n

This option is ignored if awslogs-datetime-format is also configured.

\n

You cannot configure both the awslogs-datetime-format and\n\t\t\t\t\t\t\tawslogs-multiline-pattern options.

\n \n

Multiline logging performs regular expression parsing and matching of all log\n\t\t\t\t\t\t\tmessages. This might have a negative impact on logging performance.

\n
\n
\n
mode
\n
\n

Required: No

\n

Valid values: non-blocking | blocking\n

\n

This option defines the delivery mode of log messages from the container to CloudWatch Logs. The\n\t\t\t\t\t\tdelivery mode you choose affects application availability when the flow of logs from\n\t\t\t\t\t\tcontainer to CloudWatch is interrupted.

\n

If you use the blocking mode and the flow of logs to CloudWatch is interrupted,\n\t\t\t\t\t\tcalls from container code to write to the stdout and stderr\n\t\t\t\t\t\tstreams will block. The logging thread of the application will block as a result. This may\n\t\t\t\t\t\tcause the application to become unresponsive and lead to container healthcheck failure.

\n

If you use the non-blocking mode, the container's logs are instead stored in\n\t\t\t\t\t\tan in-memory intermediate buffer configured with the max-buffer-size option.\n\t\t\t\t\t\tThis prevents the application from becoming unresponsive when logs cannot be sent to CloudWatch.\n\t\t\t\t\t\tWe recommend using this mode if you want to ensure service availability and are okay with\n\t\t\t\t\t\tsome log loss. For more information, see Preventing log loss with non-blocking mode in the awslogs container log\n\t\t\t\t\t\t\tdriver.

\n
\n
max-buffer-size
\n
\n

Required: No

\n

Default value: 1m\n

\n

When non-blocking mode is used, the max-buffer-size log option\n\t\t\t\t\t\tcontrols the size of the buffer that's used for intermediate message storage. Make sure to\n\t\t\t\t\t\tspecify an adequate buffer size based on your application. When the buffer fills up,\n\t\t\t\t\t\tfurther logs cannot be stored. Logs that cannot be stored are lost.

\n
\n
\n

To route logs using the splunk log router, you need to specify a\n\t\t\t\tsplunk-token and a splunk-url.

\n

When you use the awsfirelens log router to route logs to an Amazon Web Services Service or Amazon Web Services Partner Network\n\t\t\tdestination for log storage and analytics, you can set the log-driver-buffer-limit option\n\t\t\tto limit the number of events that are buffered in memory, before being sent to the log router\n\t\t\tcontainer. It can help to resolve potential log loss issue because high throughput might result in\n\t\t\tmemory running out for the buffer inside of Docker.

\n

Other options you can specify when using awsfirelens to route logs depend on the\n\t\t\tdestination. When you export logs to Amazon Data Firehose, you can specify the Amazon Web Services Region with\n\t\t\t\tregion and a name for the log stream with delivery_stream.

\n

When you export logs to Amazon Kinesis Data Streams, you can specify an Amazon Web Services Region with region and a\n\t\t\tdata stream name with stream.

\n

When you export logs to Amazon OpenSearch Service, you can specify options like Name, Host\n\t\t\t(OpenSearch Service endpoint without protocol), Port, Index, Type,\n\t\t\t\tAws_auth, Aws_region, Suppress_Type_Name, and\n\t\t\t\ttls.

\n

When you export logs to Amazon S3, you can specify the bucket using the bucket option. You\n\t\t\tcan also specify region, total_file_size, upload_timeout, and\n\t\t\t\tuse_put_object as options.

\n

This parameter requires version 1.19 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'\n

" } }, "secretOptions": { "target": "com.amazonaws.ecs#SecretList", "traits": { - "smithy.api#documentation": "

The secrets to pass to the log configuration. For more information, see Specifying\n\t\t\t\tsensitive data in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The secrets to pass to the log configuration. For more information, see Specifying sensitive\n\t\t\t\tdata in the Amazon Elastic Container Service Developer Guide.

" } } }, "traits": { - "smithy.api#documentation": "

The log configuration for the container. This parameter maps to LogConfig\n\t\t\tin the docker container create command and the\n\t\t\t\t--log-driver option to docker\n\t\t\t\t\trun.

\n

By default, containers use the same logging driver that the Docker daemon uses.\n\t\t\tHowever, the container might use a different logging driver than the Docker daemon by\n\t\t\tspecifying a log driver configuration in the container definition.

\n

Understand the following when specifying a log configuration for your\n\t\t\tcontainers.

\n " + "smithy.api#documentation": "

The log configuration for the container. This parameter maps to LogConfig in the docker\n\t\t\tcontainer create command and the --log-driver option to docker run.

\n

By default, containers use the same logging driver that the Docker daemon uses. However, the\n\t\t\tcontainer might use a different logging driver than the Docker daemon by specifying a log driver\n\t\t\tconfiguration in the container definition.

\n

Understand the following when specifying a log configuration for your containers.

\n " } }, "com.amazonaws.ecs#LogConfigurationOptionsMap": { @@ -8201,7 +8242,7 @@ "name": { "target": "com.amazonaws.ecs#ManagedAgentName", "traits": { - "smithy.api#documentation": "

The name of the managed agent. When the execute command feature is turned on, the\n\t\t\tmanaged agent name is ExecuteCommandAgent.

" + "smithy.api#documentation": "

The name of the managed agent. When the execute command feature is turned on, the managed agent name\n\t\t\tis ExecuteCommandAgent.

" } }, "reason": { @@ -8308,30 +8349,30 @@ "targetCapacity": { "target": "com.amazonaws.ecs#ManagedScalingTargetCapacity", "traits": { - "smithy.api#documentation": "

The target capacity utilization as a percentage for the capacity provider. The\n\t\t\tspecified value must be greater than 0 and less than or equal to\n\t\t\t\t100. For example, if you want the capacity provider to maintain 10%\n\t\t\tspare capacity, then that means the utilization is 90%, so use a\n\t\t\t\ttargetCapacity of 90. The default value of\n\t\t\t\t100 percent results in the Amazon EC2 instances in your Auto Scaling group\n\t\t\tbeing completely used.

" + "smithy.api#documentation": "

The target capacity utilization as a percentage for the capacity provider. The specified value must\n\t\t\tbe greater than 0 and less than or equal to 100. For example, if you want the\n\t\t\tcapacity provider to maintain 10% spare capacity, then that means the utilization is 90%, so use a\n\t\t\t\ttargetCapacity of 90. The default value of 100 percent\n\t\t\tresults in the Amazon EC2 instances in your Auto Scaling group being completely used.

" } }, "minimumScalingStepSize": { "target": "com.amazonaws.ecs#ManagedScalingStepSize", "traits": { - "smithy.api#documentation": "

The minimum number of Amazon EC2 instances that Amazon ECS will scale out at one time. If this parameter is omitted, the default\n\t\t\tvalue of 1 is used.

\n

When additional capacity is required, Amazon ECS will scale up the minimum scaling step\n\t\t\tsize even if the actual demand is less than the minimum scaling step size.

\n

If you use a capacity provider with an Auto Scaling group configured with more than\n\t\t\tone Amazon EC2 instance type or Availability Zone, Amazon ECS will scale up by the exact minimum\n\t\t\tscaling step size value and will ignore both the maximum scaling step size as well as\n\t\t\tthe capacity demand.

" + "smithy.api#documentation": "

The minimum number of Amazon EC2 instances that Amazon ECS will scale out at one time. The scale in process is\n\t\t\tnot affected by this parameter If this parameter is omitted, the default value of 1 is\n\t\t\tused.

\n

When additional capacity is required, Amazon ECS will scale up the minimum scaling step size even if the\n\t\t\tactual demand is less than the minimum scaling step size.

\n

If you use a capacity provider with an Auto Scaling group configured with more than one Amazon EC2\n\t\t\tinstance type or Availability Zone, Amazon ECS will scale up by the exact minimum scaling step size value\n\t\t\tand will ignore both the maximum scaling step size as well as the capacity demand.

" } }, "maximumScalingStepSize": { "target": "com.amazonaws.ecs#ManagedScalingStepSize", "traits": { - "smithy.api#documentation": "

The maximum number of Amazon EC2 instances that Amazon ECS will scale out at one time. If this parameter is omitted, the default\n\t\t\tvalue of 10000 is used.

" + "smithy.api#documentation": "

The maximum number of Amazon EC2 instances that Amazon ECS will scale out at one time. If this parameter is\n\t\t\tomitted, the default value of 10000 is used.

" } }, "instanceWarmupPeriod": { "target": "com.amazonaws.ecs#ManagedScalingInstanceWarmupPeriod", "traits": { - "smithy.api#documentation": "

The period of time, in seconds, after a newly launched Amazon EC2 instance can contribute\n\t\t\tto CloudWatch metrics for Auto Scaling group. If this parameter is omitted, the default value\n\t\t\tof 300 seconds is used.

" + "smithy.api#documentation": "

The period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch metrics\n\t\t\tfor Auto Scaling group. If this parameter is omitted, the default value of 300 seconds is\n\t\t\tused.

" } } }, "traits": { - "smithy.api#documentation": "

The managed scaling settings for the Auto Scaling group capacity provider.

\n

When managed scaling is turned on, Amazon ECS manages the scale-in and scale-out actions of\n\t\t\tthe Auto Scaling group. Amazon ECS manages a target tracking scaling policy using an Amazon ECS\n\t\t\tmanaged CloudWatch metric with the specified targetCapacity value as the target\n\t\t\tvalue for the metric. For more information, see Using managed scaling in the Amazon Elastic Container Service Developer Guide.

\n

If managed scaling is off, the user must manage the scaling of the Auto Scaling\n\t\t\tgroup.

" + "smithy.api#documentation": "

The managed scaling settings for the Auto Scaling group capacity provider.

\n

When managed scaling is turned on, Amazon ECS manages the scale-in and scale-out actions of the Auto\n\t\t\tScaling group. Amazon ECS manages a target tracking scaling policy using an Amazon ECS managed CloudWatch metric with\n\t\t\tthe specified targetCapacity value as the target value for the metric. For more\n\t\t\tinformation, see Using managed scaling in the Amazon Elastic Container Service Developer Guide.

\n

If managed scaling is off, the user must manage the scaling of the Auto Scaling group.

" } }, "com.amazonaws.ecs#ManagedScalingInstanceWarmupPeriod": { @@ -8384,7 +8425,7 @@ "kmsKeyId": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

Specify a Amazon Web Services Key Management Service key ID to encrypt the managed storage.

" + "smithy.api#documentation": "

Specify a Key Management Service key ID to encrypt the managed storage.

" } }, "fargateEphemeralStorageKmsKeyId": { @@ -8426,7 +8467,7 @@ } }, "traits": { - "smithy.api#documentation": "

Amazon ECS can't determine the current version of the Amazon ECS container agent on the\n\t\t\tcontainer instance and doesn't have enough information to proceed with an update. This\n\t\t\tcould be because the agent running on the container instance is a previous or custom\n\t\t\tversion that doesn't use our version information.

", + "smithy.api#documentation": "

Amazon ECS can't determine the current version of the Amazon ECS container agent on the container instance and\n\t\t\tdoesn't have enough information to proceed with an update. This could be because the agent running on\n\t\t\tthe container instance is a previous or custom version that doesn't use our version information.

", "smithy.api#error": "client" } }, @@ -8436,7 +8477,7 @@ "sourceVolume": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The name of the volume to mount. Must be a volume name referenced in the\n\t\t\t\tname parameter of task definition volume.

" + "smithy.api#documentation": "

The name of the volume to mount. Must be a volume name referenced in the name parameter\n\t\t\tof task definition volume.

" } }, "containerPath": { @@ -8448,7 +8489,7 @@ "readOnly": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

If this value is true, the container has read-only access to the volume.\n\t\t\tIf this value is false, then the container can write to the volume. The\n\t\t\tdefault value is false.

" + "smithy.api#documentation": "

If this value is true, the container has read-only access to the volume. If this value\n\t\t\tis false, then the container can write to the volume. The default value is\n\t\t\t\tfalse.

" } } }, @@ -8507,18 +8548,18 @@ "containerPortRange": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The port number range on the container that's bound to the dynamically mapped host\n\t\t\tport range.

\n

The following rules apply when you specify a containerPortRange:

\n \n

You can call \n DescribeTasks\n to view the hostPortRange which\n\t\t\tare the host ports that are bound to the container ports.

" + "smithy.api#documentation": "

The port number range on the container that's bound to the dynamically mapped host port range.

\n

The following rules apply when you specify a containerPortRange:

\n \n

You can call \n DescribeTasks\n to view the hostPortRange which\n\t\t\tare the host ports that are bound to the container ports.

" } }, "hostPortRange": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The port number range on the host that's used with the network binding. This is\n\t\t\tassigned is assigned by Docker and delivered by the Amazon ECS agent.

" + "smithy.api#documentation": "

The port number range on the host that's used with the network binding. This is assigned is assigned\n\t\t\tby Docker and delivered by the Amazon ECS agent.

" } } }, "traits": { - "smithy.api#documentation": "

Details on the network bindings between a container and its host container instance.\n\t\t\tAfter a task reaches the RUNNING status, manual and automatic host and\n\t\t\tcontainer port assignments are visible in the networkBindings section of\n\t\t\tDescribeTasks API responses.

" + "smithy.api#documentation": "

Details on the network bindings between a container and its host container instance. After a task\n\t\t\treaches the RUNNING status, manual and automatic host and container port assignments are\n\t\t\tvisible in the networkBindings section of DescribeTasks API\n\t\t\tresponses.

" } }, "com.amazonaws.ecs#NetworkBindings": { @@ -8564,7 +8605,7 @@ } }, "traits": { - "smithy.api#documentation": "

An object representing the elastic network interface for tasks that use the\n\t\t\t\tawsvpc network mode.

" + "smithy.api#documentation": "

An object representing the elastic network interface for tasks that use the awsvpc\n\t\t\tnetwork mode.

" } }, "com.amazonaws.ecs#NetworkInterfaces": { @@ -8613,7 +8654,7 @@ } }, "traits": { - "smithy.api#documentation": "

There's no update available for this Amazon ECS container agent. This might be because the\n\t\t\tagent is already running the latest version or because it's so old that there's no\n\t\t\tupdate path to the current version.

", + "smithy.api#documentation": "

There's no update available for this Amazon ECS container agent. This might be because the agent is\n\t\t\talready running the latest version or because it's so old that there's no update path to the current\n\t\t\tversion.

", "smithy.api#error": "client" } }, @@ -8693,18 +8734,18 @@ "type": { "target": "com.amazonaws.ecs#PlacementConstraintType", "traits": { - "smithy.api#documentation": "

The type of constraint. Use distinctInstance to ensure that each task in\n\t\t\ta particular group is running on a different container instance. Use\n\t\t\t\tmemberOf to restrict the selection to a group of valid\n\t\t\tcandidates.

" + "smithy.api#documentation": "

The type of constraint. Use distinctInstance to ensure that each task in a particular\n\t\t\tgroup is running on a different container instance. Use memberOf to restrict the selection\n\t\t\tto a group of valid candidates.

" } }, "expression": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

A cluster query language expression to apply to the constraint. The expression can\n\t\t\thave a maximum length of 2000 characters. You can't specify an expression if the\n\t\t\tconstraint type is distinctInstance. For more information, see Cluster query language in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

A cluster query language expression to apply to the constraint. The expression can have a maximum\n\t\t\tlength of 2000 characters. You can't specify an expression if the constraint type is\n\t\t\t\tdistinctInstance. For more information, see Cluster\n\t\t\t\tquery language in the Amazon Elastic Container Service Developer Guide.

" } } }, "traits": { - "smithy.api#documentation": "

An object representing a constraint on task placement. For more information, see\n\t\t\t\tTask placement constraints in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

\n \n

If you're using the Fargate launch type, task placement constraints\n\t\t\t\taren't supported.

\n
" + "smithy.api#documentation": "

An object representing a constraint on task placement. For more information, see Task\n\t\t\t\tplacement constraints in the Amazon Elastic Container Service Developer Guide.

\n \n

If you're using the Fargate launch type, task placement constraints aren't\n\t\t\t\tsupported.

\n
" } }, "com.amazonaws.ecs#PlacementConstraintType": { @@ -8742,18 +8783,18 @@ "type": { "target": "com.amazonaws.ecs#PlacementStrategyType", "traits": { - "smithy.api#documentation": "

The type of placement strategy. The random placement strategy randomly\n\t\t\tplaces tasks on available candidates. The spread placement strategy spreads\n\t\t\tplacement across available candidates evenly based on the field parameter.\n\t\t\tThe binpack strategy places tasks on available candidates that have the\n\t\t\tleast available amount of the resource that's specified with the field\n\t\t\tparameter. For example, if you binpack on memory, a task is placed on the instance with\n\t\t\tthe least amount of remaining memory but still enough to run the task.

" + "smithy.api#documentation": "

The type of placement strategy. The random placement strategy randomly places tasks on\n\t\t\tavailable candidates. The spread placement strategy spreads placement across available\n\t\t\tcandidates evenly based on the field parameter. The binpack strategy places\n\t\t\ttasks on available candidates that have the least available amount of the resource that's specified\n\t\t\twith the field parameter. For example, if you binpack on memory, a task is placed on the\n\t\t\tinstance with the least amount of remaining memory but still enough to run the task.

" } }, "field": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The field to apply the placement strategy against. For the spread\n\t\t\tplacement strategy, valid values are instanceId (or host,\n\t\t\twhich has the same effect), or any platform or custom attribute that's applied to a\n\t\t\tcontainer instance, such as attribute:ecs.availability-zone. For the\n\t\t\t\tbinpack placement strategy, valid values are cpu and\n\t\t\t\tmemory. For the random placement strategy, this field is\n\t\t\tnot used.

" + "smithy.api#documentation": "

The field to apply the placement strategy against. For the spread placement strategy,\n\t\t\tvalid values are instanceId (or host, which has the same effect), or any\n\t\t\tplatform or custom attribute that's applied to a container instance, such as\n\t\t\t\tattribute:ecs.availability-zone. For the binpack placement strategy,\n\t\t\tvalid values are cpu and memory. For the random placement\n\t\t\tstrategy, this field is not used.

" } } }, "traits": { - "smithy.api#documentation": "

The task placement strategy for a task or service. For more information, see Task placement strategies in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The task placement strategy for a task or service. For more information, see Task\n\t\t\t\tplacement strategies in the Amazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#PlacementStrategyType": { @@ -8785,20 +8826,20 @@ "id": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The ID for the GPUs on the container instance. The available GPU IDs can also be\n\t\t\tobtained on the container instance in the\n\t\t\t\t/var/lib/ecs/gpu/nvidia_gpu_info.json file.

", + "smithy.api#documentation": "

The ID for the GPUs on the container instance. The available GPU IDs can also be obtained on the\n\t\t\tcontainer instance in the /var/lib/ecs/gpu/nvidia_gpu_info.json file.

", "smithy.api#required": {} } }, "type": { "target": "com.amazonaws.ecs#PlatformDeviceType", "traits": { - "smithy.api#documentation": "

The type of device that's available on the container instance. The only supported\n\t\t\tvalue is GPU.

", + "smithy.api#documentation": "

The type of device that's available on the container instance. The only supported value is\n\t\t\t\tGPU.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

The devices that are available on the container instance. The only supported device\n\t\t\ttype is a GPU.

" + "smithy.api#documentation": "

The devices that are available on the container instance. The only supported device type is a\n\t\t\tGPU.

" } }, "com.amazonaws.ecs#PlatformDeviceType": { @@ -8854,42 +8895,42 @@ "containerPort": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The port number on the container that's bound to the user-specified or automatically\n\t\t\tassigned host port.

\n

For tasks that use the Fargate launch type or EC2 tasks that use the\n\t\t\t\tawsvpc network mode, you use containerPort to specify the\n\t\t\texposed ports.

\n

For Windows containers on Fargate, you can't use port 3150 for the\n\t\t\t\tcontainerPort. This is because it's reserved.

\n

Suppose that you're using containers in a task with the EC2 launch type\n\t\t\tand you specify a container port and not a host port. Then, your container automatically\n\t\t\treceives a host port in the ephemeral port range. For more information, see\n\t\t\t\thostPort. Port mappings that are automatically assigned in this way\n\t\t\tdon't count toward the 100 reserved ports quota of a container instance.

" + "smithy.api#documentation": "

The port number on the container that's bound to the user-specified or automatically assigned host\n\t\t\tport.

\n

If you use containers in a task with the awsvpc or host network mode,\n\t\t\tspecify the exposed ports using containerPort.

\n

If you use containers in a task with the bridge network mode and you specify a container\n\t\t\tport and not a host port, your container automatically receives a host port in the ephemeral port\n\t\t\trange. For more information, see hostPort. Port mappings that are automatically assigned\n\t\t\tin this way do not count toward the 100 reserved ports limit of a container instance.

" } }, "hostPort": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The port number on the container instance to reserve for your container.

\n

If you specify a containerPortRange, leave this field empty and the value\n\t\t\tof the hostPort is set as follows:

\n \n

If you use containers in a task with the awsvpc or host\n\t\t\tnetwork mode, the hostPort can either be left blank or set to the same\n\t\t\tvalue as the containerPort.

\n

If you use containers in a task with the bridge network mode, you can\n\t\t\tspecify a non-reserved host port for your container port mapping, or you can omit the\n\t\t\t\thostPort (or set it to 0) while specifying a\n\t\t\t\tcontainerPort and your container automatically receives a port in the\n\t\t\tephemeral port range for your container instance operating system and Docker\n\t\t\tversion.

\n

The default ephemeral port range for Docker version 1.6.0 and later is listed on the\n\t\t\tinstance under /proc/sys/net/ipv4/ip_local_port_range. If this kernel\n\t\t\tparameter is unavailable, the default ephemeral port range from 49153 through 65535\n\t\t\t(Linux) or 49152 through 65535 (Windows) is used. Do not attempt to specify a host port\n\t\t\tin the ephemeral port range as these are reserved for automatic assignment. In general,\n\t\t\tports below 32768 are outside of the ephemeral port range.

\n

The default reserved ports are 22 for SSH, the Docker ports 2375 and 2376, and the\n\t\t\tAmazon ECS container agent ports 51678-51680. Any host port that was previously specified in\n\t\t\ta running task is also reserved while the task is running. That is, after a task stops,\n\t\t\tthe host port is released. The current reserved ports are displayed in the\n\t\t\t\tremainingResources of DescribeContainerInstances output. A container instance can have up to 100\n\t\t\treserved ports at a time. This number includes the default reserved ports. Automatically\n\t\t\tassigned ports aren't included in the 100 reserved ports quota.

" + "smithy.api#documentation": "

The port number on the container instance to reserve for your container.

\n

If you specify a containerPortRange, leave this field empty and the value of the\n\t\t\t\thostPort is set as follows:

\n \n

If you use containers in a task with the awsvpc or host network mode, the\n\t\t\t\thostPort can either be left blank or set to the same value as the\n\t\t\t\tcontainerPort.

\n

If you use containers in a task with the bridge network mode, you can specify a\n\t\t\tnon-reserved host port for your container port mapping, or you can omit the hostPort (or\n\t\t\tset it to 0) while specifying a containerPort and your container\n\t\t\tautomatically receives a port in the ephemeral port range for your container instance operating system\n\t\t\tand Docker version.

\n

The default ephemeral port range for Docker version 1.6.0 and later is listed on the instance under\n\t\t\t\t/proc/sys/net/ipv4/ip_local_port_range. If this kernel parameter is unavailable, the\n\t\t\tdefault ephemeral port range from 49153 through 65535 (Linux) or 49152 through 65535 (Windows) is used.\n\t\t\tDo not attempt to specify a host port in the ephemeral port range as these are reserved for automatic\n\t\t\tassignment. In general, ports below 32768 are outside of the ephemeral port range.

\n

The default reserved ports are 22 for SSH, the Docker ports 2375 and 2376, and the Amazon ECS container\n\t\t\tagent ports 51678-51680. Any host port that was previously specified in a running task is also reserved\n\t\t\twhile the task is running. That is, after a task stops, the host port is released. The current reserved\n\t\t\tports are displayed in the remainingResources of DescribeContainerInstances output. A container instance can have up to 100 reserved ports\n\t\t\tat a time. This number includes the default reserved ports. Automatically assigned ports aren't\n\t\t\tincluded in the 100 reserved ports quota.

" } }, "protocol": { "target": "com.amazonaws.ecs#TransportProtocol", "traits": { - "smithy.api#documentation": "

The protocol used for the port mapping. Valid values are tcp and\n\t\t\t\tudp. The default is tcp. protocol is\n\t\t\timmutable in a Service Connect service. Updating this field requires a service deletion\n\t\t\tand redeployment.

" + "smithy.api#documentation": "

The protocol used for the port mapping. Valid values are tcp and udp. The\n\t\t\tdefault is tcp. protocol is immutable in a Service Connect service. Updating\n\t\t\tthis field requires a service deletion and redeployment.

" } }, "name": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The name that's used for the port mapping. This parameter only applies to\n\t\t\tService Connect. This parameter is the name that you use in the\n\t\t\t\tserviceConnectConfiguration of a service. The name can include up to 64\n\t\t\tcharacters. The characters can include lowercase letters, numbers, underscores (_), and\n\t\t\thyphens (-). The name can't start with a hyphen.

\n

For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The name that's used for the port mapping. This parameter is the name that you use in the \n\t\t\tserviceConnectConfiguration and the vpcLatticeConfigurations of a service. \n\t\t\tThe name can include up to 64 characters. The characters can include lowercase letters, numbers, \n\t\t\tunderscores (_), and hyphens (-). The name can't start with a hyphen.

" } }, "appProtocol": { "target": "com.amazonaws.ecs#ApplicationProtocol", "traits": { - "smithy.api#documentation": "

The application protocol that's used for the port mapping. This parameter only applies\n\t\t\tto Service Connect. We recommend that you set this parameter to be consistent with the\n\t\t\tprotocol that your application uses. If you set this parameter, Amazon ECS adds\n\t\t\tprotocol-specific connection handling to the Service Connect proxy. If you set this\n\t\t\tparameter, Amazon ECS adds protocol-specific telemetry in the Amazon ECS console and CloudWatch.

\n

If you don't set a value for this parameter, then TCP is used. However, Amazon ECS doesn't\n\t\t\tadd protocol-specific telemetry for TCP.

\n

\n appProtocol is immutable in a Service Connect service. Updating this\n\t\t\tfield requires a service deletion and redeployment.

\n

Tasks that run in a namespace can use short names to connect\n\tto services in the namespace. Tasks can connect to services across all of the clusters in the namespace.\n\tTasks connect through a managed proxy container\n\tthat collects logs and metrics for increased visibility.\n\tOnly the tasks that Amazon ECS services create are supported with Service Connect.\n\tFor more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The application protocol that's used for the port mapping. This parameter only applies to\n\t\t\tService Connect. We recommend that you set this parameter to be consistent with the protocol that your\n\t\t\tapplication uses. If you set this parameter, Amazon ECS adds protocol-specific connection handling to the\n\t\t\tService Connect proxy. If you set this parameter, Amazon ECS adds protocol-specific telemetry in the Amazon ECS\n\t\t\tconsole and CloudWatch.

\n

If you don't set a value for this parameter, then TCP is used. However, Amazon ECS doesn't add\n\t\t\tprotocol-specific telemetry for TCP.

\n

\n appProtocol is immutable in a Service Connect service. Updating this field requires a\n\t\t\tservice deletion and redeployment.

\n

Tasks that run in a namespace can use short names to connect\n\tto services in the namespace. Tasks can connect to services across all of the clusters in the namespace.\n\tTasks connect through a managed proxy container\n\tthat collects logs and metrics for increased visibility.\n\tOnly the tasks that Amazon ECS services create are supported with Service Connect.\n\tFor more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.

" } }, "containerPortRange": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The port number range on the container that's bound to the dynamically mapped host\n\t\t\tport range.

\n

The following rules apply when you specify a containerPortRange:

\n \n

You can call \n DescribeTasks\n to view the hostPortRange which\n\t\t\tare the host ports that are bound to the container ports.

" + "smithy.api#documentation": "

The port number range on the container that's bound to the dynamically mapped host port range.

\n

The following rules apply when you specify a containerPortRange:

\n \n

You can call \n DescribeTasks\n to view the hostPortRange which\n\t\t\tare the host ports that are bound to the container ports.

" } } }, "traits": { - "smithy.api#documentation": "

Port mappings expose your container's network ports to the outside world. this allows\n\t\t\tclients to access your application. It's also used for inter-container communication\n\t\t\twithin the same task.

\n

For task definitions (both the Fargate and EC2 launch type) that use the\n\t\t\t\tawsvpc network mode, only specify the containerPort. The\n\t\t\t\thostPort is always ignored, and the container port is automatically\n\t\t\tmapped to a random high-numbered port on the host.

\n

Most fields of this parameter (containerPort, hostPort,\n\t\t\tprotocol) maps to PortBindings in the docker container create command and the\n\t\t\t\t--publish option to docker\n\t\t\t\t\trun. If the network mode of a task definition is set to\n\t\t\t\thost, host ports must either be undefined or match the container port\n\t\t\tin the port mapping.

\n \n

You can't expose the same container port for multiple protocols. If you attempt\n\t\t\t\tthis, an error is returned.

\n
\n

After a task reaches the RUNNING status, manual and automatic host and\n\t\t\tcontainer port assignments are visible in the networkBindings section of\n\t\t\tDescribeTasks API responses.

" + "smithy.api#documentation": "

Port mappings allow containers to access ports on the host container instance to send or receive\n\t\t\ttraffic. Port mappings are specified as part of the container definition.

\n

If you use containers in a task with the awsvpc or host network mode,\n\t\t\tspecify the exposed ports using containerPort. The hostPort can be left blank\n\t\t\tor it must be the same value as the containerPort.

\n

Most fields of this parameter (containerPort, hostPort,\n\t\t\t\tprotocol) maps to PortBindings in the docker container create command and\n\t\t\tthe --publish option to docker run. If the network mode of a task definition\n\t\t\tis set to host, host ports must either be undefined or match the container port in the\n\t\t\tport mapping.

\n \n

You can't expose the same container port for multiple protocols. If you attempt this, an error is\n\t\t\t\treturned.

\n
\n

After a task reaches the RUNNING status, manual and automatic host and container port\n\t\t\tassignments are visible in the networkBindings section of DescribeTasks API\n\t\t\tresponses.

" } }, "com.amazonaws.ecs#PortMappingList": { @@ -8943,7 +8984,7 @@ "target": "com.amazonaws.ecs#Boolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

The protection status of the task. If scale-in protection is on for a task, the value\n\t\t\tis true. Otherwise, it is false.

" + "smithy.api#documentation": "

The protection status of the task. If scale-in protection is on for a task, the value is\n\t\t\t\ttrue. Otherwise, it is false.

" } }, "expirationDate": { @@ -8954,7 +8995,7 @@ } }, "traits": { - "smithy.api#documentation": "

An object representing the protection status details for a task. You can set the\n\t\t\tprotection status with the UpdateTaskProtection API and get the status\n\t\t\tof tasks with the GetTaskProtection API.

" + "smithy.api#documentation": "

An object representing the protection status details for a task. You can set the protection status\n\t\t\twith the UpdateTaskProtection API and get the status of tasks with the GetTaskProtection\n\t\t\tAPI.

" } }, "com.amazonaws.ecs#ProtectedTasks": { @@ -8982,12 +9023,12 @@ "properties": { "target": "com.amazonaws.ecs#ProxyConfigurationProperties", "traits": { - "smithy.api#documentation": "

The set of network configuration parameters to provide the Container Network Interface\n\t\t\t(CNI) plugin, specified as key-value pairs.

\n " + "smithy.api#documentation": "

The set of network configuration parameters to provide the Container Network Interface (CNI) plugin,\n\t\t\tspecified as key-value pairs.

\n " } } }, "traits": { - "smithy.api#documentation": "

The configuration details for the App Mesh proxy.

\n

For tasks that use the EC2 launch type, the container instances require\n\t\t\tat least version 1.26.0 of the container agent and at least version 1.26.0-1 of the\n\t\t\t\tecs-init package to use a proxy configuration. If your container\n\t\t\tinstances are launched from the Amazon ECS optimized AMI version 20190301 or\n\t\t\tlater, then they contain the required versions of the container agent and\n\t\t\t\tecs-init. For more information, see Amazon ECS-optimized Linux AMI\n

" + "smithy.api#documentation": "

The configuration details for the App Mesh proxy.

\n

For tasks that use the EC2 launch type, the container instances require at least\n\t\t\tversion 1.26.0 of the container agent and at least version 1.26.0-1 of the ecs-init\n\t\t\tpackage to use a proxy configuration. If your container instances are launched from the Amazon ECS optimized\n\t\t\tAMI version 20190301 or later, then they contain the required versions of the container\n\t\t\tagent and ecs-init. For more information, see Amazon ECS-optimized Linux AMI\n

" } }, "com.amazonaws.ecs#ProxyConfigurationProperties": { @@ -9027,7 +9068,7 @@ } ], "traits": { - "smithy.api#documentation": "

Modifies an account setting. Account settings are set on a per-Region basis.

\n

If you change the root user account setting, the default settings are reset for users and\n\t\t\troles that do not have specified individual account settings. For more information, see\n\t\t\t\tAccount\n\t\t\t\tSettings in the Amazon Elastic Container Service Developer Guide.

", + "smithy.api#documentation": "

Modifies an account setting. Account settings are set on a per-Region basis.

\n

If you change the root user account setting, the default settings are reset for users and roles that do\n\t\t\tnot have specified individual account settings. For more information, see Account Settings in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

", "smithy.api#examples": [ { "title": "To modify the account settings for a specific IAM user or IAM role", @@ -9083,7 +9124,7 @@ } ], "traits": { - "smithy.api#documentation": "

Modifies an account setting for all users on an account for whom no individual account\n\t\t\tsetting has been specified. Account settings are set on a per-Region basis.

", + "smithy.api#documentation": "

Modifies an account setting for all users on an account for whom no individual account setting has\n\t\t\tbeen specified. Account settings are set on a per-Region basis.

", "smithy.api#examples": [ { "title": "To modify the default account settings for all IAM users or roles on an account", @@ -9109,14 +9150,14 @@ "name": { "target": "com.amazonaws.ecs#SettingName", "traits": { - "smithy.api#documentation": "

The resource name for which to modify the account setting.

\n

The following are the valid values for the account setting name.

\n ", + "smithy.api#documentation": "

The resource name for which to modify the account setting.

\n

The following are the valid values for the account setting name.

\n ", "smithy.api#required": {} } }, "value": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The account setting value for the specified principal ARN. Accepted values are\n\t\t\t\tenabled, disabled, on, and\n\t\t\toff.

\n

When you specify fargateTaskRetirementWaitPeriod for the\n\t\t\t\tname, the following are the valid values:

\n ", + "smithy.api#documentation": "

The account setting value for the specified principal ARN. Accepted values are enabled,\n\t\t\t\tdisabled, on, and off.

\n

When you specify fargateTaskRetirementWaitPeriod for the name, the\n\t\t\tfollowing are the valid values:

\n ", "smithy.api#required": {} } } @@ -9145,21 +9186,21 @@ "name": { "target": "com.amazonaws.ecs#SettingName", "traits": { - "smithy.api#documentation": "

The Amazon ECS account setting name to modify.

\n

The following are the valid values for the account setting name.

\n ", + "smithy.api#documentation": "

The Amazon ECS account setting name to modify.

\n

The following are the valid values for the account setting name.

\n ", "smithy.api#required": {} } }, "value": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The account setting value for the specified principal ARN. Accepted values are\n\t\t\t\tenabled, disabled, on, and\n\t\t\toff.

\n

When you specify fargateTaskRetirementWaitPeriod for the\n\t\t\t\tname, the following are the valid values:

\n ", + "smithy.api#documentation": "

The account setting value for the specified principal ARN. Accepted values are enabled,\n\t\t\t\tdisabled, on, and off.

\n

When you specify fargateTaskRetirementWaitPeriod for the name, the\n\t\t\tfollowing are the valid values:

\n ", "smithy.api#required": {} } }, "principalArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The ARN of the principal, which can be a user, role, or the root user. If you specify\n\t\t\tthe root user, it modifies the account setting for all users, roles, and the root user of the\n\t\t\taccount unless a user or role explicitly overrides these settings. If this field is\n\t\t\tomitted, the setting is changed only for the authenticated user.

\n \n

You must use the root user when you set the Fargate wait time\n\t\t\t\t\t(fargateTaskRetirementWaitPeriod).

\n

Federated users assume the account setting of the root user and can't have explicit\n\t\t\t\taccount settings set for them.

\n
" + "smithy.api#documentation": "

The ARN of the principal, which can be a user, role, or the root user. If you specify the root user, it\n\t\t\tmodifies the account setting for all users, roles, and the root user of the account unless a user or role\n\t\t\texplicitly overrides these settings. If this field is omitted, the setting is changed only for the\n\t\t\tauthenticated user.

\n \n

You must use the root user when you set the Fargate wait time\n\t\t\t\t\t(fargateTaskRetirementWaitPeriod).

\n

Federated users assume the account setting of the root user and can't have explicit account settings\n\t\t\t\tset for them.

\n
" } } }, @@ -9204,7 +9245,7 @@ } ], "traits": { - "smithy.api#documentation": "

Create or update an attribute on an Amazon ECS resource. If the attribute doesn't exist,\n\t\t\tit's created. If the attribute exists, its value is replaced with the specified value.\n\t\t\tTo delete an attribute, use DeleteAttributes. For more information,\n\t\t\tsee Attributes in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

Create or update an attribute on an Amazon ECS resource. If the attribute doesn't exist, it's created. If\n\t\t\tthe attribute exists, its value is replaced with the specified value. To delete an attribute, use\n\t\t\t\tDeleteAttributes. For more information, see Attributes in the Amazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#PutAttributesRequest": { @@ -9213,13 +9254,13 @@ "cluster": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to apply\n\t\t\tattributes. If you do not specify a cluster, the default cluster is assumed.

" + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to apply attributes.\n\t\t\tIf you do not specify a cluster, the default cluster is assumed.

" } }, "attributes": { "target": "com.amazonaws.ecs#Attributes", "traits": { - "smithy.api#documentation": "

The attributes to apply to your resource. You can specify up to 10 custom attributes\n\t\t\tfor each resource. You can specify up to 10 attributes in a single call.

", + "smithy.api#documentation": "

The attributes to apply to your resource. You can specify up to 10 custom attributes for each\n\t\t\tresource. You can specify up to 10 attributes in a single call.

", "smithy.api#required": {} } } @@ -9271,7 +9312,7 @@ } ], "traits": { - "smithy.api#documentation": "

Modifies the available capacity providers and the default capacity provider strategy\n\t\t\tfor a cluster.

\n

You must specify both the available capacity providers and a default capacity provider\n\t\t\tstrategy for the cluster. If the specified cluster has existing capacity providers\n\t\t\tassociated with it, you must specify all existing capacity providers in addition to any\n\t\t\tnew ones you want to add. Any existing capacity providers that are associated with a\n\t\t\tcluster that are omitted from a PutClusterCapacityProviders API call\n\t\t\twill be disassociated with the cluster. You can only disassociate an existing capacity\n\t\t\tprovider from a cluster if it's not being used by any existing tasks.

\n

When creating a service or running a task on a cluster, if no capacity provider or\n\t\t\tlaunch type is specified, then the cluster's default capacity provider strategy is used.\n\t\t\tWe recommend that you define a default capacity provider strategy for your cluster.\n\t\t\tHowever, you must specify an empty array ([]) to bypass defining a default\n\t\t\tstrategy.

" + "smithy.api#documentation": "

Modifies the available capacity providers and the default capacity provider strategy for a\n\t\t\tcluster.

\n

You must specify both the available capacity providers and a default capacity provider strategy for\n\t\t\tthe cluster. If the specified cluster has existing capacity providers associated with it, you must\n\t\t\tspecify all existing capacity providers in addition to any new ones you want to add. Any existing\n\t\t\tcapacity providers that are associated with a cluster that are omitted from a PutClusterCapacityProviders API call will be disassociated with the cluster. You can only\n\t\t\tdisassociate an existing capacity provider from a cluster if it's not being used by any existing\n\t\t\ttasks.

\n

When creating a service or running a task on a cluster, if no capacity provider or launch type is\n\t\t\tspecified, then the cluster's default capacity provider strategy is used. We recommend that you define\n\t\t\ta default capacity provider strategy for your cluster. However, you must specify an empty array\n\t\t\t\t([]) to bypass defining a default strategy.

" } }, "com.amazonaws.ecs#PutClusterCapacityProvidersRequest": { @@ -9280,21 +9321,21 @@ "cluster": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster to modify the capacity provider\n\t\t\tsettings for. If you don't specify a cluster, the default cluster is assumed.

", + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster to modify the capacity provider settings for. If you\n\t\t\tdon't specify a cluster, the default cluster is assumed.

", "smithy.api#required": {} } }, "capacityProviders": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The name of one or more capacity providers to associate with the cluster.

\n

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation.

\n

To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

", + "smithy.api#documentation": "

The name of one or more capacity providers to associate with the cluster.

\n

If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must already\n\t\t\tbe created. New capacity providers can be created with the CreateCapacityProvider\n\t\t\tAPI operation.

\n

To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are available to all\n\t\t\taccounts and only need to be associated with a cluster to be used.

", "smithy.api#required": {} } }, "defaultCapacityProviderStrategy": { "target": "com.amazonaws.ecs#CapacityProviderStrategy", "traits": { - "smithy.api#documentation": "

The capacity provider strategy to use by default for the cluster.

\n

When creating a service or running a task on a cluster, if no capacity provider or\n\t\t\tlaunch type is specified then the default capacity provider strategy for the cluster is\n\t\t\tused.

\n

A capacity provider strategy consists of one or more capacity providers along with the\n\t\t\t\tbase and weight to assign to them. A capacity provider\n\t\t\tmust be associated with the cluster to be used in a capacity provider strategy. The\n\t\t\tPutClusterCapacityProviders API is used to associate a capacity\n\t\t\tprovider with a cluster. Only capacity providers with an ACTIVE or\n\t\t\t\tUPDATING status can be used.

\n

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation.

\n

To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

", + "smithy.api#documentation": "

The capacity provider strategy to use by default for the cluster.

\n

When creating a service or running a task on a cluster, if no capacity provider or launch type is\n\t\t\tspecified then the default capacity provider strategy for the cluster is used.

\n

A capacity provider strategy consists of one or more capacity providers along with the\n\t\t\t\tbase and weight to assign to them. A capacity provider must be associated\n\t\t\twith the cluster to be used in a capacity provider strategy. The PutClusterCapacityProviders API is used to associate a capacity provider with a cluster.\n\t\t\tOnly capacity providers with an ACTIVE or UPDATING status can be used.

\n

If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must already\n\t\t\tbe created. New capacity providers can be created with the CreateCapacityProvider\n\t\t\tAPI operation.

\n

To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are available to all\n\t\t\taccounts and only need to be associated with a cluster to be used.

", "smithy.api#required": {} } } @@ -9337,7 +9378,7 @@ } ], "traits": { - "smithy.api#documentation": "\n

This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent.

\n
\n

Registers an EC2 instance into the specified cluster. This instance becomes available\n\t\t\tto place containers on.

" + "smithy.api#documentation": "\n

This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent.

\n
\n

Registers an EC2 instance into the specified cluster. This instance becomes available to place\n\t\t\tcontainers on.

" } }, "com.amazonaws.ecs#RegisterContainerInstanceRequest": { @@ -9346,19 +9387,19 @@ "cluster": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster to register your container instance\n\t\t\twith. If you do not specify a cluster, the default cluster is assumed.

" + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster to register your container instance with.\n\t\t\tIf you do not specify a cluster, the default cluster is assumed.

" } }, "instanceIdentityDocument": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The instance identity document for the EC2 instance to register. This document can be\n\t\t\tfound by running the following command from the instance: curl\n\t\t\t\thttp://169.254.169.254/latest/dynamic/instance-identity/document/\n

" + "smithy.api#documentation": "

The instance identity document for the EC2 instance to register. This document can be found by\n\t\t\trunning the following command from the instance: curl\n\t\t\t\thttp://169.254.169.254/latest/dynamic/instance-identity/document/\n

" } }, "instanceIdentityDocumentSignature": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The instance identity document signature for the EC2 instance to register. This\n\t\t\tsignature can be found by running the following command from the instance: curl\n\t\t\t\thttp://169.254.169.254/latest/dynamic/instance-identity/signature/\n

" + "smithy.api#documentation": "

The instance identity document signature for the EC2 instance to register. This signature can be\n\t\t\tfound by running the following command from the instance: curl\n\t\t\t\thttp://169.254.169.254/latest/dynamic/instance-identity/signature/\n

" } }, "totalResources": { @@ -9370,7 +9411,7 @@ "versionInfo": { "target": "com.amazonaws.ecs#VersionInfo", "traits": { - "smithy.api#documentation": "

The version information for the Amazon ECS container agent and Docker daemon that runs on\n\t\t\tthe container instance.

" + "smithy.api#documentation": "

The version information for the Amazon ECS container agent and Docker daemon that runs on the container\n\t\t\tinstance.

" } }, "containerInstanceArn": { @@ -9388,13 +9429,13 @@ "platformDevices": { "target": "com.amazonaws.ecs#PlatformDevices", "traits": { - "smithy.api#documentation": "

The devices that are available on the container instance. The only supported device\n\t\t\ttype is a GPU.

" + "smithy.api#documentation": "

The devices that are available on the container instance. The only supported device type is a\n\t\t\tGPU.

" } }, "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the container instance to help you categorize and\n\t\t\torganize them. Each tag consists of a key and an optional value. You define both.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the container instance to help you categorize and organize them. Each\n\t\t\ttag consists of a key and an optional value. You define both.

\n

The following basic restrictions apply to tags:

\n " } } }, @@ -9436,7 +9477,7 @@ } ], "traits": { - "smithy.api#documentation": "

Registers a new task definition from the supplied family and\n\t\t\t\tcontainerDefinitions. Optionally, you can add data volumes to your\n\t\t\tcontainers with the volumes parameter. For more information about task\n\t\t\tdefinition parameters and defaults, see Amazon ECS Task\n\t\t\t\tDefinitions in the Amazon Elastic Container Service Developer Guide.

\n

You can specify a role for your task with the taskRoleArn parameter. When\n\t\t\tyou specify a role for a task, its containers can then use the latest versions of the\n\t\t\tCLI or SDKs to make API requests to the Amazon Web Services services that are specified in the\n\t\t\tpolicy that's associated with the role. For more information, see IAM\n\t\t\t\tRoles for Tasks in the Amazon Elastic Container Service Developer Guide.

\n

You can specify a Docker networking mode for the containers in your task definition\n\t\t\twith the networkMode parameter. If you specify the awsvpc\n\t\t\tnetwork mode, the task is allocated an elastic network interface, and you must specify a NetworkConfiguration when you create a service or run a task with\n\t\t\tthe task definition. For more information, see Task Networking\n\t\t\tin the Amazon Elastic Container Service Developer Guide.

", + "smithy.api#documentation": "

Registers a new task definition from the supplied family and\n\t\t\t\tcontainerDefinitions. Optionally, you can add data volumes to your containers with the\n\t\t\t\tvolumes parameter. For more information about task definition parameters and defaults,\n\t\t\tsee Amazon ECS Task\n\t\t\t\tDefinitions in the Amazon Elastic Container Service Developer Guide.

\n

You can specify a role for your task with the taskRoleArn parameter. When you specify a\n\t\t\trole for a task, its containers can then use the latest versions of the CLI or SDKs to make API\n\t\t\trequests to the Amazon Web Services services that are specified in the policy that's associated with the role. For\n\t\t\tmore information, see IAM Roles for Tasks in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

\n

You can specify a Docker networking mode for the containers in your task definition with the\n\t\t\t\tnetworkMode parameter. If you specify the awsvpc network mode, the task\n\t\t\tis allocated an elastic network interface, and you must specify a NetworkConfiguration when\n\t\t\tyou create a service or run a task with the task definition. For more information, see Task\n\t\t\t\tNetworking in the Amazon Elastic Container Service Developer Guide.

", "smithy.api#examples": [ { "title": "To register a task definition", @@ -9494,14 +9535,14 @@ "family": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

You must specify a family for a task definition. You can use it track\n\t\t\tmultiple versions of the same task definition. The family is used as a name\n\t\t\tfor your task definition. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.

", + "smithy.api#documentation": "

You must specify a family for a task definition. You can use it track multiple versions\n\t\t\tof the same task definition. The family is used as a name for your task definition.\n\t\t\tUp to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.

", "smithy.api#required": {} } }, "taskRoleArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the IAM role that containers in this task can\n\t\t\tassume. All containers in this task are granted the permissions that are specified in\n\t\t\tthis role. For more information, see IAM Roles for\n\t\t\t\tTasks in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the IAM role that containers in this task can assume. All\n\t\t\tcontainers in this task are granted the permissions that are specified in this role. For more\n\t\t\tinformation, see IAM Roles for Tasks in the Amazon Elastic Container Service Developer Guide.

" } }, "executionRoleArn": { @@ -9513,68 +9554,68 @@ "networkMode": { "target": "com.amazonaws.ecs#NetworkMode", "traits": { - "smithy.api#documentation": "

The Docker networking mode to use for the containers in the task. The valid values are\n none, bridge, awsvpc, and host.\n If no network mode is specified, the default is bridge.

\n

For Amazon ECS tasks on Fargate, the awsvpc network mode is required. \n For Amazon ECS tasks on Amazon EC2 Linux instances, any network mode can be used. For Amazon ECS tasks on Amazon EC2 Windows instances, or awsvpc can be used. If the network\n mode is set to none, you cannot specify port mappings in your container\n definitions, and the tasks containers do not have external connectivity. The\n host and awsvpc network modes offer the highest networking\n performance for containers because they use the EC2 network stack instead of the\n virtualized network stack provided by the bridge mode.

\n

With the host and awsvpc network modes, exposed container\n ports are mapped directly to the corresponding host port (for the host\n network mode) or the attached elastic network interface port (for the\n awsvpc network mode), so you cannot take advantage of dynamic host port\n mappings.

\n \n

When using the host network mode, you should not run\n containers using the root user (UID 0). It is considered best practice\n to use a non-root user.

\n
\n

If the network mode is awsvpc, the task is allocated an elastic network\n interface, and you must specify a NetworkConfiguration value when you create\n a service or run a task with the task definition. For more information, see Task Networking in the\n Amazon Elastic Container Service Developer Guide.

\n

If the network mode is host, you cannot run multiple instantiations of the\n same task on a single container instance when port mappings are used.

\n

For more information, see Network\n settings in the Docker run reference.

" + "smithy.api#documentation": "

The Docker networking mode to use for the containers in the task. The valid values are\n none, bridge, awsvpc, and host.\n If no network mode is specified, the default is bridge.

\n

For Amazon ECS tasks on Fargate, the awsvpc network mode is required. \n For Amazon ECS tasks on Amazon EC2 Linux instances, any network mode can be used. For Amazon ECS tasks on Amazon EC2 Windows instances, or awsvpc can be used. If the network\n mode is set to none, you cannot specify port mappings in your container\n definitions, and the tasks containers do not have external connectivity. The\n host and awsvpc network modes offer the highest networking\n performance for containers because they use the EC2 network stack instead of the\n virtualized network stack provided by the bridge mode.

\n

With the host and awsvpc network modes, exposed container\n ports are mapped directly to the corresponding host port (for the host\n network mode) or the attached elastic network interface port (for the\n awsvpc network mode), so you cannot take advantage of dynamic host port\n mappings.

\n \n

When using the host network mode, you should not run\n containers using the root user (UID 0). It is considered best practice\n to use a non-root user.

\n
\n

If the network mode is awsvpc, the task is allocated an elastic network\n interface, and you must specify a NetworkConfiguration value when you create\n a service or run a task with the task definition. For more information, see Task Networking in the\n Amazon Elastic Container Service Developer Guide.

\n

If the network mode is host, you cannot run multiple instantiations of the\n same task on a single container instance when port mappings are used.

" } }, "containerDefinitions": { "target": "com.amazonaws.ecs#ContainerDefinitions", "traits": { - "smithy.api#documentation": "

A list of container definitions in JSON format that describe the different containers\n\t\t\tthat make up your task.

", + "smithy.api#documentation": "

A list of container definitions in JSON format that describe the different containers that make up\n\t\t\tyour task.

", "smithy.api#required": {} } }, "volumes": { "target": "com.amazonaws.ecs#VolumeList", "traits": { - "smithy.api#documentation": "

A list of volume definitions in JSON format that containers in your task might\n\t\t\tuse.

" + "smithy.api#documentation": "

A list of volume definitions in JSON format that containers in your task might use.

" } }, "placementConstraints": { "target": "com.amazonaws.ecs#TaskDefinitionPlacementConstraints", "traits": { - "smithy.api#documentation": "

An array of placement constraint objects to use for the task. You can specify a\n\t\t\tmaximum of 10 constraints for each task. This limit includes constraints in the task\n\t\t\tdefinition and those specified at runtime.

" + "smithy.api#documentation": "

An array of placement constraint objects to use for the task. You can specify a maximum of 10\n\t\t\tconstraints for each task. This limit includes constraints in the task definition and those specified\n\t\t\tat runtime.

" } }, "requiresCompatibilities": { "target": "com.amazonaws.ecs#CompatibilityList", "traits": { - "smithy.api#documentation": "

The task launch type that Amazon ECS validates the task definition against. A client\n\t\t\texception is returned if the task definition doesn't validate against the\n\t\t\tcompatibilities specified. If no value is specified, the parameter is omitted from the\n\t\t\tresponse.

" + "smithy.api#documentation": "

The task launch type that Amazon ECS validates the task definition against. A client exception is returned\n\t\t\tif the task definition doesn't validate against the compatibilities specified. If no value is\n\t\t\tspecified, the parameter is omitted from the response.

" } }, "cpu": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The number of CPU units used by the task. It can be expressed as an integer using CPU\n\t\t\tunits (for example, 1024) or as a string using vCPUs (for example, 1\n\t\t\t\tvCPU or 1 vcpu) in a task definition. String values are\n\t\t\tconverted to an integer indicating the CPU units when the task definition is\n\t\t\tregistered.

\n \n

Task-level CPU and memory parameters are ignored for Windows containers. We\n\t\t\t\trecommend specifying container-level resources for Windows containers.

\n
\n

If you're using the EC2 launch type, this field is optional. Supported\n\t\t\tvalues are between 128 CPU units (0.125 vCPUs) and\n\t\t\t\t10240 CPU units (10 vCPUs). If you do not specify a value,\n\t\t\tthe parameter is ignored.

\n

If you're using the Fargate launch type, this field is required and you\n\t\t\tmust use one of the following values, which determines your range of supported values\n\t\t\tfor the memory parameter:

\n

The CPU units cannot be less than 1 vCPU when you use Windows containers on\n\t\t\tFargate.

\n " + "smithy.api#documentation": "

The number of CPU units used by the task. It can be expressed as an integer using CPU units (for\n\t\t\texample, 1024) or as a string using vCPUs (for example, 1 vCPU or 1\n\t\t\t\tvcpu) in a task definition. String values are converted to an integer indicating the CPU\n\t\t\tunits when the task definition is registered.

\n \n

Task-level CPU and memory parameters are ignored for Windows containers. We recommend specifying\n\t\t\t\tcontainer-level resources for Windows containers.

\n
\n

If you're using the EC2 launch type, this field is optional. Supported values are\n\t\t\tbetween 128 CPU units (0.125 vCPUs) and 10240 CPU units\n\t\t\t\t(10 vCPUs). If you do not specify a value, the parameter is ignored.

\n

If you're using the Fargate launch type, this field is required and you must use one of\n\t\t\tthe following values, which determines your range of supported values for the memory\n\t\t\tparameter:

\n

The CPU units cannot be less than 1 vCPU when you use Windows containers on\n\t\t\tFargate.

\n " } }, "memory": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The amount of memory (in MiB) used by the task. It can be expressed as an integer\n\t\t\tusing MiB (for example ,1024) or as a string using GB (for example,\n\t\t\t\t1GB or 1 GB) in a task definition. String values are\n\t\t\tconverted to an integer indicating the MiB when the task definition is\n\t\t\tregistered.

\n \n

Task-level CPU and memory parameters are ignored for Windows containers. We\n\t\t\t\trecommend specifying container-level resources for Windows containers.

\n
\n

If using the EC2 launch type, this field is optional.

\n

If using the Fargate launch type, this field is required and you must\n\t\t\tuse one of the following values. This determines your range of supported values for the\n\t\t\t\tcpu parameter.

\n

The CPU units cannot be less than 1 vCPU when you use Windows containers on\n\t\t\tFargate.

\n " + "smithy.api#documentation": "

The amount of memory (in MiB) used by the task. It can be expressed as an integer using MiB (for\n\t\t\texample ,1024) or as a string using GB (for example, 1GB or 1\n\t\t\tGB) in a task definition. String values are converted to an integer indicating the MiB when the\n\t\t\ttask definition is registered.

\n \n

Task-level CPU and memory parameters are ignored for Windows containers. We recommend specifying\n\t\t\t\tcontainer-level resources for Windows containers.

\n
\n

If using the EC2 launch type, this field is optional.

\n

If using the Fargate launch type, this field is required and you must use one of the\n\t\t\tfollowing values. This determines your range of supported values for the cpu\n\t\t\tparameter.

\n

The CPU units cannot be less than 1 vCPU when you use Windows containers on\n\t\t\tFargate.

\n " } }, "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the task definition to help you categorize and organize\n\t\t\tthem. Each tag consists of a key and an optional value. You define both of them.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the task definition to help you categorize and organize them. Each tag\n\t\t\tconsists of a key and an optional value. You define both of them.

\n

The following basic restrictions apply to tags:

\n " } }, "pidMode": { "target": "com.amazonaws.ecs#PidMode", "traits": { - "smithy.api#documentation": "

The process namespace to use for the containers in the task. The valid\n values are host or task. On Fargate for\n Linux containers, the only valid value is task. For\n example, monitoring sidecars might need pidMode to access\n information about other containers running in the same task.

\n

If host is specified, all containers within the tasks\n that specified the host PID mode on the same container\n instance share the same process namespace with the host Amazon EC2\n instance.

\n

If task is specified, all containers within the specified\n task share the same process namespace.

\n

If no value is specified, the\n default is a private namespace for each container. For more information,\n see PID settings in the Docker run\n reference.

\n

If the host PID mode is used, there's a heightened risk\n of undesired process namespace exposure. For more information, see\n Docker security.

\n \n

This parameter is not supported for Windows containers.

\n
\n \n

This parameter is only supported for tasks that are hosted on\n Fargate if the tasks are using platform version 1.4.0 or later\n (Linux). This isn't supported for Windows containers on\n Fargate.

\n
" + "smithy.api#documentation": "

The process namespace to use for the containers in the task. The valid\n values are host or task. On Fargate for\n Linux containers, the only valid value is task. For\n example, monitoring sidecars might need pidMode to access\n information about other containers running in the same task.

\n

If host is specified, all containers within the tasks\n that specified the host PID mode on the same container\n instance share the same process namespace with the host Amazon EC2\n instance.

\n

If task is specified, all containers within the specified\n task share the same process namespace.

\n

If no value is specified, the\n default is a private namespace for each container.

\n

If the host PID mode is used, there's a heightened risk\n of undesired process namespace exposure.

\n \n

This parameter is not supported for Windows containers.

\n
\n \n

This parameter is only supported for tasks that are hosted on\n Fargate if the tasks are using platform version 1.4.0 or later\n (Linux). This isn't supported for Windows containers on\n Fargate.

\n
" } }, "ipcMode": { "target": "com.amazonaws.ecs#IpcMode", "traits": { - "smithy.api#documentation": "

The IPC resource namespace to use for the containers in the task. The valid values are\n host, task, or none. If host is\n specified, then all containers within the tasks that specified the host IPC\n mode on the same container instance share the same IPC resources with the host Amazon EC2\n instance. If task is specified, all containers within the specified task\n share the same IPC resources. If none is specified, then IPC resources\n within the containers of a task are private and not shared with other containers in a\n task or on the container instance. If no value is specified, then the IPC resource\n namespace sharing depends on the Docker daemon setting on the container instance. For\n more information, see IPC\n settings in the Docker run reference.

\n

If the host IPC mode is used, be aware that there is a heightened risk of\n undesired IPC namespace expose. For more information, see Docker\n security.

\n

If you are setting namespaced kernel parameters using systemControls for\n the containers in the task, the following will apply to your IPC resource namespace. For\n more information, see System\n Controls in the Amazon Elastic Container Service Developer Guide.

\n \n \n

This parameter is not supported for Windows containers or tasks run on Fargate.

\n
" + "smithy.api#documentation": "

The IPC resource namespace to use for the containers in the task. The valid values are\n host, task, or none. If host is\n specified, then all containers within the tasks that specified the host IPC\n mode on the same container instance share the same IPC resources with the host Amazon EC2\n instance. If task is specified, all containers within the specified task\n share the same IPC resources. If none is specified, then IPC resources\n within the containers of a task are private and not shared with other containers in a\n task or on the container instance. If no value is specified, then the IPC resource\n namespace sharing depends on the Docker daemon setting on the container instance.

\n

If the host IPC mode is used, be aware that there is a heightened risk of\n undesired IPC namespace expose.

\n

If you are setting namespaced kernel parameters using systemControls for\n the containers in the task, the following will apply to your IPC resource namespace. For\n more information, see System\n Controls in the Amazon Elastic Container Service Developer Guide.

\n \n \n

This parameter is not supported for Windows containers or tasks run on Fargate.

\n
" } }, "proxyConfiguration": { "target": "com.amazonaws.ecs#ProxyConfiguration", "traits": { - "smithy.api#documentation": "

The configuration details for the App Mesh proxy.

\n

For tasks hosted on Amazon EC2 instances, the container instances require at least version\n\t\t\t\t1.26.0 of the container agent and at least version\n\t\t\t\t1.26.0-1 of the ecs-init package to use a proxy\n\t\t\tconfiguration. If your container instances are launched from the Amazon ECS-optimized\n\t\t\tAMI version 20190301 or later, then they contain the required versions of\n\t\t\tthe container agent and ecs-init. For more information, see Amazon ECS-optimized AMI versions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The configuration details for the App Mesh proxy.

\n

For tasks hosted on Amazon EC2 instances, the container instances require at least version\n\t\t\t\t1.26.0 of the container agent and at least version 1.26.0-1 of the\n\t\t\t\tecs-init package to use a proxy configuration. If your container instances are\n\t\t\tlaunched from the Amazon ECS-optimized AMI version 20190301 or later, then they contain\n\t\t\tthe required versions of the container agent and ecs-init. For more information, see\n\t\t\t\tAmazon ECS-optimized AMI versions in the Amazon Elastic Container Service Developer Guide.

" } }, "inferenceAccelerators": { @@ -9586,13 +9627,13 @@ "ephemeralStorage": { "target": "com.amazonaws.ecs#EphemeralStorage", "traits": { - "smithy.api#documentation": "

The amount of ephemeral storage to allocate for the task. This parameter is used to\n\t\t\texpand the total amount of ephemeral storage available, beyond the default amount, for\n\t\t\ttasks hosted on Fargate. For more information, see Using data volumes in\n\t\t\t\ttasks in the Amazon ECS Developer Guide.

\n \n

For tasks using the Fargate launch type, the task requires the\n\t\t\t\tfollowing platforms:

\n \n
" + "smithy.api#documentation": "

The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total\n\t\t\tamount of ephemeral storage available, beyond the default amount, for tasks hosted on Fargate. For\n\t\t\tmore information, see Using data volumes in tasks\n\t\t\tin the Amazon ECS Developer Guide.

\n \n

For tasks using the Fargate launch type, the task requires the following\n\t\t\t\tplatforms:

\n \n
" } }, "runtimePlatform": { "target": "com.amazonaws.ecs#RuntimePlatform", "traits": { - "smithy.api#documentation": "

The operating system that your tasks definitions run on. A platform family is\n\t\t\tspecified only for tasks using the Fargate launch type.

" + "smithy.api#documentation": "

The operating system that your tasks definitions run on. A platform family is specified only for\n\t\t\ttasks using the Fargate launch type.

" } } }, @@ -9626,7 +9667,7 @@ "credentialsParameter": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the secret containing the private repository\n\t\t\tcredentials.

\n \n

When you use the Amazon ECS API, CLI, or Amazon Web Services SDK, if the secret exists in the same\n\t\t\t\tRegion as the task that you're launching then you can use either the full ARN or\n\t\t\t\tthe name of the secret. When you use the Amazon Web Services Management Console, you must specify the full ARN\n\t\t\t\tof the secret.

\n
", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the secret containing the private repository credentials.

\n \n

When you use the Amazon ECS API, CLI, or Amazon Web Services SDK, if the secret exists in the same Region as the\n\t\t\t\ttask that you're launching then you can use either the full ARN or the name of the secret. When\n\t\t\t\tyou use the Amazon Web Services Management Console, you must specify the full ARN of the secret.

\n
", "smithy.api#required": {} } } @@ -9647,40 +9688,40 @@ "name": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The name of the resource, such as CPU, MEMORY,\n\t\t\t\tPORTS, PORTS_UDP, or a user-defined resource.

" + "smithy.api#documentation": "

The name of the resource, such as CPU, MEMORY, PORTS,\n\t\t\t\tPORTS_UDP, or a user-defined resource.

" } }, "type": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The type of the resource. Valid values: INTEGER, DOUBLE,\n\t\t\t\tLONG, or STRINGSET.

" + "smithy.api#documentation": "

The type of the resource. Valid values: INTEGER, DOUBLE, LONG,\n\t\t\tor STRINGSET.

" } }, "doubleValue": { "target": "com.amazonaws.ecs#Double", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

When the doubleValue type is set, the value of the resource must be a\n\t\t\tdouble precision floating-point type.

" + "smithy.api#documentation": "

When the doubleValue type is set, the value of the resource must be a double precision\n\t\t\tfloating-point type.

" } }, "longValue": { "target": "com.amazonaws.ecs#Long", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

When the longValue type is set, the value of the resource must be an\n\t\t\textended precision floating-point type.

" + "smithy.api#documentation": "

When the longValue type is set, the value of the resource must be an extended precision\n\t\t\tfloating-point type.

" } }, "integerValue": { "target": "com.amazonaws.ecs#Integer", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

When the integerValue type is set, the value of the resource must be an\n\t\t\tinteger.

" + "smithy.api#documentation": "

When the integerValue type is set, the value of the resource must be an integer.

" } }, "stringSetValue": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

When the stringSetValue type is set, the value of the resource must be a\n\t\t\tstring type.

" + "smithy.api#documentation": "

When the stringSetValue type is set, the value of the resource must be a string\n\t\t\ttype.

" } } }, @@ -9730,7 +9771,7 @@ "value": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The value for the specified resource type.

\n

When the type is GPU, the value is the number of physical GPUs the\n\t\t\tAmazon ECS container agent reserves for the container. The number of GPUs that's reserved for\n\t\t\tall containers in a task can't exceed the number of available GPUs on the container\n\t\t\tinstance that the task is launched on.

\n

When the type is InferenceAccelerator, the value matches\n\t\t\tthe deviceName for an InferenceAccelerator specified in a task definition.

", + "smithy.api#documentation": "

The value for the specified resource type.

\n

When the type is GPU, the value is the number of physical GPUs the Amazon ECS\n\t\t\tcontainer agent reserves for the container. The number of GPUs that's reserved for all containers in a\n\t\t\ttask can't exceed the number of available GPUs on the container instance that the task is launched\n\t\t\ton.

\n

When the type is InferenceAccelerator, the value matches the\n\t\t\t\tdeviceName for an InferenceAccelerator\n\t\t\tspecified in a task definition.

", "smithy.api#required": {} } }, @@ -9743,7 +9784,7 @@ } }, "traits": { - "smithy.api#documentation": "

The type and amount of a resource to assign to a container. The supported resource\n\t\t\ttypes are GPUs and Elastic Inference accelerators. For more information, see Working with\n\t\t\t\tGPUs on Amazon ECS or Working with Amazon Elastic\n\t\t\t\tInference on Amazon ECS in the Amazon Elastic Container Service Developer Guide\n

" + "smithy.api#documentation": "

The type and amount of a resource to assign to a container. The supported resource types are GPUs and\n\t\t\tElastic Inference accelerators. For more information, see Working with GPUs on Amazon ECS or Working with Amazon\n\t\t\t\tElastic Inference on Amazon ECS in the Amazon Elastic Container Service Developer Guide\n

" } }, "com.amazonaws.ecs#ResourceRequirements": { @@ -9793,7 +9834,7 @@ "serviceRevisionArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The ARN of the service revision deployed as part of the rollback.

\n

When the type is GPU, the value is the number of physical\n\t\t\t\tGPUs the Amazon ECS container agent reserves for the container. The number\n\t\t\tof GPUs that's reserved for all containers in a task can't exceed the number of\n\t\t\tavailable GPUs on the container instance that the task is launched on.

\n

When the type is InferenceAccelerator, the value matches the\n\t\t\t\tdeviceName for an InferenceAccelerator specified in a task definition.

" + "smithy.api#documentation": "

The ARN of the service revision deployed as part of the rollback.

\n

When the type is GPU, the value is the number of physical\n\t\t\tGPUs the Amazon ECS container agent reserves for the container. The number\n\t\t\tof GPUs that's reserved for all containers in a task can't exceed the number of\n\t\t\tavailable GPUs on the container instance that the task is launched on.

\n

When the type is InferenceAccelerator, the value matches the\n\t\t\tdeviceName for an InferenceAccelerator specified in a task definition.

" } } }, @@ -9842,7 +9883,7 @@ } ], "traits": { - "smithy.api#documentation": "

Starts a new task using the specified task definition.

\n \n

On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.

\n
\n \n

Amazon Elastic Inference (EI) is no longer available to customers.

\n
\n

You can allow Amazon ECS to place tasks for you, or you can customize how Amazon ECS places\n\t\t\ttasks using placement constraints and placement strategies. For more information, see\n\t\t\t\tScheduling Tasks in the Amazon Elastic Container Service Developer Guide.

\n

Alternatively, you can use StartTask to use your own scheduler or\n\t\t\tplace tasks manually on specific container instances.

\n

You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or\n\t\t\tupdating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

\n

The Amazon ECS API follows an eventual consistency model. This is because of the\n\t\t\tdistributed nature of the system supporting the API. This means that the result of an\n\t\t\tAPI command you run that affects your Amazon ECS resources might not be immediately visible\n\t\t\tto all subsequent commands you run. Keep this in mind when you carry out an API command\n\t\t\tthat immediately follows a previous API command.

\n

To manage eventual consistency, you can do the following:

\n ", + "smithy.api#documentation": "

Starts a new task using the specified task definition.

\n \n

On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.

\n
\n \n

Amazon Elastic Inference (EI) is no longer available to customers.

\n
\n

You can allow Amazon ECS to place tasks for you, or you can customize how Amazon ECS places tasks using\n\t\t\tplacement constraints and placement strategies. For more information, see Scheduling\n\t\t\t\tTasks in the Amazon Elastic Container Service Developer Guide.

\n

Alternatively, you can use StartTask to use your own scheduler or place tasks manually\n\t\t\ton specific container instances.

\n

You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or updating a\n\t\t\tservice. For more infomation, see Amazon EBS\n\t\t\t\tvolumes in the Amazon Elastic Container Service Developer Guide.

\n

The Amazon ECS API follows an eventual consistency model. This is because of the distributed nature of the\n\t\t\tsystem supporting the API. This means that the result of an API command you run that affects your Amazon ECS\n\t\t\tresources might not be immediately visible to all subsequent commands you run. Keep this in mind when\n\t\t\tyou carry out an API command that immediately follows a previous API command.

\n

To manage eventual consistency, you can do the following:

\n ", "smithy.api#examples": [ { "title": "To run a task on your default cluster", @@ -9887,81 +9928,81 @@ "capacityProviderStrategy": { "target": "com.amazonaws.ecs#CapacityProviderStrategy", "traits": { - "smithy.api#documentation": "

The capacity provider strategy to use for the task.

\n

If a capacityProviderStrategy is specified, the launchType\n\t\t\tparameter must be omitted. If no capacityProviderStrategy or\n\t\t\t\tlaunchType is specified, the\n\t\t\t\tdefaultCapacityProviderStrategy for the cluster is used.

\n

When you use cluster auto scaling, you must specify\n\t\t\t\tcapacityProviderStrategy and not launchType.

\n

A capacity provider strategy may contain a maximum of 6 capacity providers.

" + "smithy.api#documentation": "

The capacity provider strategy to use for the task.

\n

If a capacityProviderStrategy is specified, the launchType parameter must\n\t\t\tbe omitted. If no capacityProviderStrategy or launchType is specified, the\n\t\t\t\tdefaultCapacityProviderStrategy for the cluster is used.

\n

When you use cluster auto scaling, you must specify capacityProviderStrategy and not\n\t\t\t\tlaunchType.

\n

A capacity provider strategy may contain a maximum of 6 capacity providers.

" } }, "cluster": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster to run your task on.\n\t\t\tIf you do not specify a cluster, the default cluster is assumed.

" + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster to run your task on. If you do not specify a cluster, the default cluster is assumed.

" } }, "count": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The number of instantiations of the specified task to place on your cluster. You can\n\t\t\tspecify up to 10 tasks for each call.

" + "smithy.api#documentation": "

The number of instantiations of the specified task to place on your cluster. You can specify up to 10\n\t\t\ttasks for each call.

" } }, "enableECSManagedTags": { "target": "com.amazonaws.ecs#Boolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

Specifies whether to use Amazon ECS managed tags for the task. For more information, see\n\t\t\t\tTagging Your Amazon ECS\n\t\t\t\tResources in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

Specifies whether to use Amazon ECS managed tags for the task. For more information, see Tagging Your Amazon ECS\n\t\t\t\tResources in the Amazon Elastic Container Service Developer Guide.

" } }, "enableExecuteCommand": { "target": "com.amazonaws.ecs#Boolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

Determines whether to use the execute command functionality for the containers in this\n\t\t\ttask. If true, this enables execute command functionality on all containers\n\t\t\tin the task.

\n

If true, then the task definition must have a task role, or you must\n\t\t\tprovide one as an override.

" + "smithy.api#documentation": "

Determines whether to use the execute command functionality for the containers in this task. If\n\t\t\t\ttrue, this enables execute command functionality on all containers in the task.

\n

If true, then the task definition must have a task role, or you must provide one as an\n\t\t\toverride.

" } }, "group": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The name of the task group to associate with the task. The default value is the family\n\t\t\tname of the task definition (for example, family:my-family-name).

" + "smithy.api#documentation": "

The name of the task group to associate with the task. The default value is the family name of the\n\t\t\ttask definition (for example, family:my-family-name).

" } }, "launchType": { "target": "com.amazonaws.ecs#LaunchType", "traits": { - "smithy.api#documentation": "

The infrastructure to run your standalone task on. For more information, see Amazon ECS\n\t\t\t\tlaunch types in the Amazon Elastic Container Service Developer Guide.

\n

The FARGATE launch type runs your tasks on Fargate On-Demand\n\t\t\tinfrastructure.

\n \n

Fargate Spot infrastructure is available for use but a capacity provider\n\t\t\t\tstrategy must be used. For more information, see Fargate capacity providers in the\n\t\t\t\t\tAmazon ECS Developer Guide.

\n
\n

The EC2 launch type runs your tasks on Amazon EC2 instances registered to your\n\t\t\tcluster.

\n

The EXTERNAL launch type runs your tasks on your on-premises server or\n\t\t\tvirtual machine (VM) capacity registered to your cluster.

\n

A task can use either a launch type or a capacity provider strategy. If a\n\t\t\t\tlaunchType is specified, the capacityProviderStrategy\n\t\t\tparameter must be omitted.

\n

When you use cluster auto scaling, you must specify\n\t\t\t\tcapacityProviderStrategy and not launchType.

" + "smithy.api#documentation": "

The infrastructure to run your standalone task on. For more information, see Amazon ECS launch\n\t\t\t\ttypes in the Amazon Elastic Container Service Developer Guide.

\n

The FARGATE launch type runs your tasks on Fargate On-Demand infrastructure.

\n \n

Fargate Spot infrastructure is available for use but a capacity provider strategy must be used.\n\t\t\t\tFor more information, see Fargate capacity providers in the Amazon ECS Developer\n\t\t\t\tGuide.

\n
\n

The EC2 launch type runs your tasks on Amazon EC2 instances registered to your\n\t\t\tcluster.

\n

The EXTERNAL launch type runs your tasks on your on-premises server or virtual machine\n\t\t\t(VM) capacity registered to your cluster.

\n

A task can use either a launch type or a capacity provider strategy. If a launchType is\n\t\t\tspecified, the capacityProviderStrategy parameter must be omitted.

\n

When you use cluster auto scaling, you must specify capacityProviderStrategy and not\n\t\t\t\tlaunchType.

" } }, "networkConfiguration": { "target": "com.amazonaws.ecs#NetworkConfiguration", "traits": { - "smithy.api#documentation": "

The network configuration for the task. This parameter is required for task\n\t\t\tdefinitions that use the awsvpc network mode to receive their own elastic\n\t\t\tnetwork interface, and it isn't supported for other network modes. For more information,\n\t\t\tsee Task networking\n\t\t\tin the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The network configuration for the task. This parameter is required for task definitions that use the\n\t\t\t\tawsvpc network mode to receive their own elastic network interface, and it isn't\n\t\t\tsupported for other network modes. For more information, see Task networking in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

" } }, "overrides": { "target": "com.amazonaws.ecs#TaskOverride", "traits": { - "smithy.api#documentation": "

A list of container overrides in JSON format that specify the name of a container in\n\t\t\tthe specified task definition and the overrides it should receive. You can override the\n\t\t\tdefault command for a container (that's specified in the task definition or Docker\n\t\t\timage) with a command override. You can also override existing environment\n\t\t\tvariables (that are specified in the task definition or Docker image) on a container or\n\t\t\tadd new environment variables to it with an environment override.

\n

A total of 8192 characters are allowed for overrides. This limit includes the JSON\n\t\t\tformatting characters of the override structure.

" + "smithy.api#documentation": "

A list of container overrides in JSON format that specify the name of a container in the specified\n\t\t\ttask definition and the overrides it should receive. You can override the default command for a\n\t\t\tcontainer (that's specified in the task definition or Docker image) with a command\n\t\t\toverride. You can also override existing environment variables (that are specified in the task\n\t\t\tdefinition or Docker image) on a container or add new environment variables to it with an\n\t\t\t\tenvironment override.

\n

A total of 8192 characters are allowed for overrides. This limit includes the JSON formatting\n\t\t\tcharacters of the override structure.

" } }, "placementConstraints": { "target": "com.amazonaws.ecs#PlacementConstraints", "traits": { - "smithy.api#documentation": "

An array of placement constraint objects to use for the task. You can specify up to 10\n\t\t\tconstraints for each task (including constraints in the task definition and those\n\t\t\tspecified at runtime).

" + "smithy.api#documentation": "

An array of placement constraint objects to use for the task. You can specify up to 10 constraints\n\t\t\tfor each task (including constraints in the task definition and those specified at runtime).

" } }, "placementStrategy": { "target": "com.amazonaws.ecs#PlacementStrategies", "traits": { - "smithy.api#documentation": "

The placement strategy objects to use for the task. You can specify a maximum of 5\n\t\t\tstrategy rules for each task.

" + "smithy.api#documentation": "

The placement strategy objects to use for the task. You can specify a maximum of 5 strategy rules for\n\t\t\teach task.

" } }, "platformVersion": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The platform version the task uses. A platform version is only specified for tasks\n\t\t\thosted on Fargate. If one isn't specified, the LATEST\n\t\t\tplatform version is used. For more information, see Fargate platform\n\t\t\t\tversions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The platform version the task uses. A platform version is only specified for tasks hosted on\n\t\t\tFargate. If one isn't specified, the LATEST platform version is used. For\n\t\t\tmore information, see Fargate platform versions in\n\t\t\tthe Amazon Elastic Container Service Developer Guide.

" } }, "propagateTags": { "target": "com.amazonaws.ecs#PropagateTags", "traits": { - "smithy.api#documentation": "

Specifies whether to propagate the tags from the task definition to the task. If no\n\t\t\tvalue is specified, the tags aren't propagated. Tags can only be propagated to the task\n\t\t\tduring task creation. To add tags to a task after task creation, use theTagResource API action.

\n \n

An error will be received if you specify the SERVICE option when\n\t\t\t\trunning a task.

\n
" + "smithy.api#documentation": "

Specifies whether to propagate the tags from the task definition to the task. If no value is\n\t\t\tspecified, the tags aren't propagated. Tags can only be propagated to the task during task creation. To\n\t\t\tadd tags to a task after task creation, use theTagResource API action.

\n \n

An error will be received if you specify the SERVICE option when running a\n\t\t\t\ttask.

\n
" } }, "referenceId": { @@ -9973,33 +10014,33 @@ "startedBy": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

An optional tag specified when a task is started. For example, if you automatically\n\t\t\ttrigger a task to run a batch process job, you could apply a unique identifier for that\n\t\t\tjob to your task with the startedBy parameter. You can then identify which\n\t\t\ttasks belong to that job by filtering the results of a ListTasks call with\n\t\t\tthe startedBy value. Up to 128 letters (uppercase and lowercase), numbers,\n\t\t\thyphens (-), forward slash (/), and underscores (_) are allowed.

\n

If a task is started by an Amazon ECS service, then the startedBy parameter\n\t\t\tcontains the deployment ID of the service that starts it.

" + "smithy.api#documentation": "

An optional tag specified when a task is started. For example, if you automatically trigger a task to\n\t\t\trun a batch process job, you could apply a unique identifier for that job to your task with the\n\t\t\t\tstartedBy parameter. You can then identify which tasks belong to that job by filtering\n\t\t\tthe results of a ListTasks call with the startedBy value. Up to 128 letters (uppercase and\n\t\t\tlowercase), numbers, hyphens (-), forward slash (/), and underscores (_) are allowed.

\n

If a task is started by an Amazon ECS service, then the startedBy parameter contains the\n\t\t\tdeployment ID of the service that starts it.

" } }, "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the task to help you categorize and organize them. Each\n\t\t\ttag consists of a key and an optional value, both of which you define.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the task to help you categorize and organize them. Each tag consists\n\t\t\tof a key and an optional value, both of which you define.

\n

The following basic restrictions apply to tags:

\n " } }, "taskDefinition": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The family and revision (family:revision) or\n\t\t\tfull ARN of the task definition to run. If a revision isn't specified,\n\t\t\tthe latest ACTIVE revision is used.

\n

The full ARN value must match the value that you specified as the\n\t\t\t\tResource of the principal's permissions policy.

\n

When you specify a task definition, you must either specify a specific revision, or\n\t\t\tall revisions in the ARN.

\n

To specify a specific revision, include the revision number in the ARN. For example,\n\t\t\tto specify revision 2, use\n\t\t\t\tarn:aws:ecs:us-east-1:111122223333:task-definition/TaskFamilyName:2.

\n

To specify all revisions, use the wildcard (*) in the ARN. For example, to specify\n\t\t\tall revisions, use\n\t\t\t\tarn:aws:ecs:us-east-1:111122223333:task-definition/TaskFamilyName:*.

\n

For more information, see Policy Resources for Amazon ECS in the Amazon Elastic Container Service Developer Guide.

", + "smithy.api#documentation": "

The family and revision (family:revision) or full ARN of the\n\t\t\ttask definition to run. If a revision isn't specified, the latest ACTIVE\n\t\t\trevision is used.

\n

The full ARN value must match the value that you specified as the Resource of the\n\t\t\tprincipal's permissions policy.

\n

When you specify a task definition, you must either specify a specific revision, or all revisions in\n\t\t\tthe ARN.

\n

To specify a specific revision, include the revision number in the ARN. For example, to specify\n\t\t\trevision 2, use\n\t\t\tarn:aws:ecs:us-east-1:111122223333:task-definition/TaskFamilyName:2.

\n

To specify all revisions, use the wildcard (*) in the ARN. For example, to specify all revisions,\n\t\t\tuse arn:aws:ecs:us-east-1:111122223333:task-definition/TaskFamilyName:*.

\n

For more information, see Policy Resources for Amazon ECS in the Amazon Elastic Container Service Developer Guide.

", "smithy.api#required": {} } }, "clientToken": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

An identifier that you provide to ensure the idempotency of the request. It must be\n\t\t\tunique and is case sensitive. Up to 64 characters are allowed. The valid characters are\n\t\t\tcharacters in the range of 33-126, inclusive. For more information, see Ensuring idempotency.

", + "smithy.api#documentation": "

An identifier that you provide to ensure the idempotency of the request. It must be unique and is\n\t\t\tcase sensitive. Up to 64 characters are allowed. The valid characters are characters in the range of\n\t\t\t33-126, inclusive. For more information, see Ensuring\n\t\t\t\tidempotency.

", "smithy.api#idempotencyToken": {} } }, "volumeConfigurations": { "target": "com.amazonaws.ecs#TaskVolumeConfigurations", "traits": { - "smithy.api#documentation": "

The details of the volume that was configuredAtLaunch. You can configure\n\t\t\tthe size, volumeType, IOPS, throughput, snapshot and encryption in in TaskManagedEBSVolumeConfiguration. The name of the volume must\n\t\t\tmatch the name from the task definition.

" + "smithy.api#documentation": "

The details of the volume that was configuredAtLaunch. You can configure the size,\n\t\t\tvolumeType, IOPS, throughput, snapshot and encryption in in TaskManagedEBSVolumeConfiguration. The name of the volume must match the\n\t\t\t\tname from the task definition.

" } } }, @@ -10013,13 +10054,13 @@ "tasks": { "target": "com.amazonaws.ecs#Tasks", "traits": { - "smithy.api#documentation": "

A full description of the tasks that were run. The tasks that were successfully placed\n\t\t\ton your cluster are described here.

" + "smithy.api#documentation": "

A full description of the tasks that were run. The tasks that were successfully placed on your\n\t\t\tcluster are described here.

" } }, "failures": { "target": "com.amazonaws.ecs#Failures", "traits": { - "smithy.api#documentation": "

Any failures associated with the call.

\n

For information about how to address failures, see Service event messages and API failure\n\t\t\t\treasons in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

Any failures associated with the call.

\n

For information about how to address failures, see Service event messages and API failure reasons in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

" } } }, @@ -10033,13 +10074,13 @@ "cpuArchitecture": { "target": "com.amazonaws.ecs#CPUArchitecture", "traits": { - "smithy.api#documentation": "

The CPU architecture.

\n

You can run your Linux tasks on an ARM-based platform by setting the value to\n\t\t\t\tARM64. This option is available for tasks that run on Linux Amazon EC2\n\t\t\tinstance or Linux containers on Fargate.

\n

The default is X86_64.

" + "smithy.api#documentation": "

The CPU architecture.

\n

You can run your Linux tasks on an ARM-based platform by setting the value to ARM64.\n\t\t\tThis option is available for tasks that run on Linux Amazon EC2 instance or Linux containers on\n\t\t\tFargate.

" } }, "operatingSystemFamily": { "target": "com.amazonaws.ecs#OSFamily", "traits": { - "smithy.api#documentation": "

The operating system.

\n

The default is Linux.

" + "smithy.api#documentation": "

The operating system.

" } } }, @@ -10054,7 +10095,7 @@ "target": "com.amazonaws.ecs#Double", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The value, specified as a percent total of a service's desiredCount, to\n\t\t\tscale the task set. Accepted values are numbers between 0 and 100.

" + "smithy.api#documentation": "

The value, specified as a percent total of a service's desiredCount, to scale the task\n\t\t\tset. Accepted values are numbers between 0 and 100.

" } }, "unit": { @@ -10065,7 +10106,7 @@ } }, "traits": { - "smithy.api#documentation": "

A floating-point percentage of the desired number of tasks to place and keep running\n\t\t\tin the task set.

" + "smithy.api#documentation": "

A floating-point percentage of the desired number of tasks to place and keep running in the task\n\t\t\tset.

" } }, "com.amazonaws.ecs#ScaleUnit": { @@ -10126,13 +10167,13 @@ "valueFrom": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The secret to expose to the container. The supported values are either the full ARN\n\t\t\tof the Secrets Manager secret or the full ARN of the parameter in the SSM\n\t\t\tParameter Store.

\n

For information about the require Identity and Access Management permissions, see Required IAM permissions for Amazon ECS secrets (for Secrets Manager) or\n\t\t\t\tRequired IAM permissions for Amazon ECS secrets (for Systems Manager Parameter\n\t\t\tstore) in the Amazon Elastic Container Service Developer Guide.

\n \n

If the SSM Parameter Store parameter exists in the same Region as the task\n\t\t\t\tyou're launching, then you can use either the full ARN or name of the parameter.\n\t\t\t\tIf the parameter exists in a different Region, then the full ARN must be\n\t\t\t\tspecified.

\n
", + "smithy.api#documentation": "

The secret to expose to the container. The supported values are either the full ARN of the Secrets Manager secret or the full ARN of the parameter in the SSM Parameter Store.

\n

For information about the require Identity and Access Management permissions, see Required\n\t\t\t\tIAM permissions for Amazon ECS secrets (for Secrets Manager) or Required IAM\n\t\t\t\tpermissions for Amazon ECS secrets (for Systems Manager Parameter store) in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

\n \n

If the SSM Parameter Store parameter exists in the same Region as the task you're launching,\n\t\t\t\tthen you can use either the full ARN or name of the parameter. If the parameter exists in a\n\t\t\t\tdifferent Region, then the full ARN must be specified.

\n
", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

An object representing the secret to expose to your container. Secrets can be exposed\n\t\t\tto a container in the following ways:

\n \n

For more information, see Specifying\n\t\t\t\tsensitive data in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

An object representing the secret to expose to your container. Secrets can be exposed to a container\n\t\t\tin the following ways:

\n \n

For more information, see Specifying sensitive\n\t\t\t\tdata in the Amazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#SecretList": { @@ -10168,13 +10209,13 @@ "serviceArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The ARN that identifies the service. For more information about the ARN format,\n\t\t\tsee Amazon Resource Name (ARN) in the Amazon ECS Developer Guide.

" + "smithy.api#documentation": "

The ARN that identifies the service. For more information about the ARN format, see Amazon Resource Name (ARN)\n\t\t\tin the Amazon ECS Developer Guide.

" } }, "serviceName": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The name of your service. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. Service names must be unique within\n\t\t\ta cluster. However, you can have similarly named services in multiple clusters within a\n\t\t\tRegion or across multiple Regions.

" + "smithy.api#documentation": "

The name of your service. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. Service names must be unique within a cluster.\n\t\t\tHowever, you can have similarly named services in multiple clusters within a Region or across multiple\n\t\t\tRegions.

" } }, "clusterArn": { @@ -10186,26 +10227,26 @@ "loadBalancers": { "target": "com.amazonaws.ecs#LoadBalancers", "traits": { - "smithy.api#documentation": "

A list of Elastic Load Balancing load balancer objects. It contains the load balancer name, the\n\t\t\tcontainer name, and the container port to access from the load balancer. The container\n\t\t\tname is as it appears in a container definition.

" + "smithy.api#documentation": "

A list of Elastic Load Balancing load balancer objects. It contains the load balancer name, the container name, and\n\t\t\tthe container port to access from the load balancer. The container name is as it appears in a container\n\t\t\tdefinition.

" } }, "serviceRegistries": { "target": "com.amazonaws.ecs#ServiceRegistries", "traits": { - "smithy.api#documentation": "

The details for the service discovery registries to assign to this service. For more\n\t\t\tinformation, see Service\n\t\t\t\tDiscovery.

" + "smithy.api#documentation": "

The details for the service discovery registries to assign to this service. For more information, see\n\t\t\t\tService\n\t\t\t\tDiscovery.

" } }, "status": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The status of the service. The valid values are ACTIVE,\n\t\t\t\tDRAINING, or INACTIVE.

" + "smithy.api#documentation": "

The status of the service. The valid values are ACTIVE, DRAINING, or\n\t\t\t\tINACTIVE.

" } }, "desiredCount": { "target": "com.amazonaws.ecs#Integer", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The desired number of instantiations of the task definition to keep running on the\n\t\t\tservice. This value is specified when the service is created with CreateService , and it can be modified with UpdateService.

" + "smithy.api#documentation": "

The desired number of instantiations of the task definition to keep running on the service. This\n\t\t\tvalue is specified when the service is created with CreateService , and it can be\n\t\t\tmodified with UpdateService.

" } }, "runningCount": { @@ -10225,43 +10266,43 @@ "launchType": { "target": "com.amazonaws.ecs#LaunchType", "traits": { - "smithy.api#documentation": "

The launch type the service is using. When using the DescribeServices API, this field\n\t\t\tis omitted if the service was created using a capacity provider strategy.

" + "smithy.api#documentation": "

The launch type the service is using. When using the DescribeServices API, this field is omitted if\n\t\t\tthe service was created using a capacity provider strategy.

" } }, "capacityProviderStrategy": { "target": "com.amazonaws.ecs#CapacityProviderStrategy", "traits": { - "smithy.api#documentation": "

The capacity provider strategy the service uses. When using DescribeServices,\n\t\t\tthis field is omitted if the service was created using a launch type.

" + "smithy.api#documentation": "

The capacity provider strategy the service uses. When using the DescribeServices API, this field is\n\t\t\tomitted if the service was created using a launch type.

" } }, "platformVersion": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The platform version to run your service on. A platform version is only specified for\n\t\t\ttasks that are hosted on Fargate. If one isn't specified, the LATEST\n\t\t\tplatform version is used. For more information, see Fargate Platform\n\t\t\t\tVersions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The platform version to run your service on. A platform version is only specified for tasks that are\n\t\t\thosted on Fargate. If one isn't specified, the LATEST platform version is used. For more\n\t\t\tinformation, see Fargate Platform Versions in\n\t\t\tthe Amazon Elastic Container Service Developer Guide.

" } }, "platformFamily": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The operating system that your tasks in the service run on. A platform family is\n\t\t\tspecified only for tasks using the Fargate launch type.

\n

All tasks that run as part of this service must use the same\n\t\t\t\tplatformFamily value as the service (for example,\n\t\t\tLINUX).

" + "smithy.api#documentation": "

The operating system that your tasks in the service run on. A platform family is specified only for\n\t\t\ttasks using the Fargate launch type.

\n

All tasks that run as part of this service must use the same platformFamily value as\n\t\t\tthe service (for example, LINUX).

" } }, "taskDefinition": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The task definition to use for tasks in the service. This value is specified when the\n\t\t\tservice is created with CreateService, and it can be modified with\n\t\t\tUpdateService.

" + "smithy.api#documentation": "

The task definition to use for tasks in the service. This value is specified when the service is\n\t\t\tcreated with CreateService, and it can be modified with UpdateService.

" } }, "deploymentConfiguration": { "target": "com.amazonaws.ecs#DeploymentConfiguration", "traits": { - "smithy.api#documentation": "

Optional deployment parameters that control how many tasks run during the deployment\n\t\t\tand the ordering of stopping and starting tasks.

" + "smithy.api#documentation": "

Optional deployment parameters that control how many tasks run during the deployment and the ordering\n\t\t\tof stopping and starting tasks.

" } }, "taskSets": { "target": "com.amazonaws.ecs#TaskSets", "traits": { - "smithy.api#documentation": "

Information about a set of Amazon ECS tasks in either an CodeDeploy or an EXTERNAL\n\t\t\tdeployment. An Amazon ECS task set includes details such as the desired number of tasks, how\n\t\t\tmany tasks are running, and whether the task set serves production traffic.

" + "smithy.api#documentation": "

Information about a set of Amazon ECS tasks in either an CodeDeploy or an EXTERNAL deployment. An\n\t\t\tAmazon ECS task set includes details such as the desired number of tasks, how many tasks are running, and\n\t\t\twhether the task set serves production traffic.

" } }, "deployments": { @@ -10273,13 +10314,13 @@ "roleArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The ARN of the IAM role that's associated with the service. It allows the Amazon ECS\n\t\t\tcontainer agent to register container instances with an Elastic Load Balancing load balancer.

" + "smithy.api#documentation": "

The ARN of the IAM role that's associated with the service. It allows the Amazon ECS container agent\n\t\t\tto register container instances with an Elastic Load Balancing load balancer.

" } }, "events": { "target": "com.amazonaws.ecs#ServiceEvents", "traits": { - "smithy.api#documentation": "

The event stream for your service. A maximum of 100 of the latest events are\n\t\t\tdisplayed.

" + "smithy.api#documentation": "

The event stream for your service. A maximum of 100 of the latest events are displayed.

" } }, "createdAt": { @@ -10309,13 +10350,13 @@ "healthCheckGracePeriodSeconds": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy\n\t\t\tElastic Load Balancing target health checks after a task has first started.

" + "smithy.api#documentation": "

The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target\n\t\t\thealth checks after a task has first started.

" } }, "schedulingStrategy": { "target": "com.amazonaws.ecs#SchedulingStrategy", "traits": { - "smithy.api#documentation": "

The scheduling strategy to use for the service. For more information, see Services.

\n

There are two service scheduler strategies available.

\n " + "smithy.api#documentation": "

The scheduling strategy to use for the service. For more information, see Services.

\n

There are two service scheduler strategies available.

\n " } }, "deploymentController": { @@ -10327,7 +10368,7 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the service to help you categorize and organize them. Each\n\t\t\ttag consists of a key and an optional value. You define both the key and value.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the service to help you categorize and organize them. Each tag\n\t\t\tconsists of a key and an optional value. You define bot the key and value.

\n

The following basic restrictions apply to tags:

\n " } }, "createdBy": { @@ -10340,20 +10381,26 @@ "target": "com.amazonaws.ecs#Boolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

Determines whether to use Amazon ECS managed tags for the tasks in the service. For more\n\t\t\tinformation, see Tagging Your Amazon ECS\n\t\t\t\tResources in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

Determines whether to use Amazon ECS managed tags for the tasks in the service. For more information, see\n\t\t\t\tTagging Your\n\t\t\t\tAmazon ECS Resources in the Amazon Elastic Container Service Developer Guide.

" } }, "propagateTags": { "target": "com.amazonaws.ecs#PropagateTags", "traits": { - "smithy.api#documentation": "

Determines whether to propagate the tags from the task definition or the service to\n\t\t\tthe task. If no value is specified, the tags aren't propagated.

" + "smithy.api#documentation": "

Determines whether to propagate the tags from the task definition or the service to the task. If no\n\t\t\tvalue is specified, the tags aren't propagated.

" } }, "enableExecuteCommand": { "target": "com.amazonaws.ecs#Boolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

Determines whether the execute command functionality is turned on for the service. If\n\t\t\t\ttrue, the execute command functionality is turned on for all containers\n\t\t\tin tasks as part of the service.

" + "smithy.api#documentation": "

Determines whether the execute command functionality is turned on for the service. If\n\t\t\t\ttrue, the execute command functionality is turned on for all containers in tasks as\n\t\t\tpart of the service.

" + } + }, + "availabilityZoneRebalancing": { + "target": "com.amazonaws.ecs#AvailabilityZoneRebalancing", + "traits": { + "smithy.api#documentation": "

Indicates whether to use Availability Zone rebalancing for the service.

\n

For more information, see Balancing an Amazon ECS service across Availability Zones in\n\t\t\tthe Amazon Elastic Container Service Developer Guide.

" } } }, @@ -10367,19 +10414,19 @@ "port": { "target": "com.amazonaws.ecs#PortNumber", "traits": { - "smithy.api#documentation": "

The listening port number for the Service Connect proxy. This port is available\n\t\t\tinside of all of the tasks within the same namespace.

\n

To avoid changing your applications in client Amazon ECS services, set this to the same\n\t\t\tport that the client application uses by default. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.

", + "smithy.api#documentation": "

The listening port number for the Service Connect proxy. This port is available inside of all of the\n\t\t\ttasks within the same namespace.

\n

To avoid changing your applications in client Amazon ECS services, set this to the same port that the\n\t\t\tclient application uses by default. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.

", "smithy.api#required": {} } }, "dnsName": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The dnsName is the name that you use in the applications of client tasks\n\t\t\tto connect to this service. The name must be a valid DNS name but doesn't need to be\n\t\t\tfully-qualified. The name can include up to 127 characters. The name can include\n\t\t\tlowercase letters, numbers, underscores (_), hyphens (-), and periods (.). The name\n\t\t\tcan't start with a hyphen.

\n

If this parameter isn't specified, the default value of discoveryName.namespace is used. If the discoveryName isn't specified, the port mapping name from the task definition is used in portName.namespace.

\n

To avoid changing your applications in client Amazon ECS services, set this to the same\n\t\t\tname that the client application uses by default. For example, a few common names are\n\t\t\t\tdatabase, db, or the lowercase name of a database, such as\n\t\t\t\tmysql or redis. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The dnsName is the name that you use in the applications of client tasks to connect to\n\t\t\tthis service. The name must be a valid DNS name but doesn't need to be fully-qualified. The name can\n\t\t\tinclude up to 127 characters. The name can include lowercase letters, numbers, underscores (_), hyphens\n\t\t\t(-), and periods (.). The name can't start with a hyphen.

\n

If this parameter isn't specified, the default value of discoveryName.namespace is used. If the discoveryName isn't specified, the port mapping name from the task definition is used in portName.namespace.

\n

To avoid changing your applications in client Amazon ECS services, set this to the same name that the\n\t\t\tclient application uses by default. For example, a few common names are database,\n\t\t\t\tdb, or the lowercase name of a database, such as mysql or\n\t\t\t\tredis. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.

" } } }, "traits": { - "smithy.api#documentation": "

Each alias (\"endpoint\") is a fully-qualified name and port number that other tasks\n\t\t\t(\"clients\") can use to connect to this service.

\n

Each name and port mapping must be unique within the namespace.

\n

Tasks that run in a namespace can use short names to connect\n\tto services in the namespace. Tasks can connect to services across all of the clusters in the namespace.\n\tTasks connect through a managed proxy container\n\tthat collects logs and metrics for increased visibility.\n\tOnly the tasks that Amazon ECS services create are supported with Service Connect.\n\tFor more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

Each alias (\"endpoint\") is a fully-qualified name and port number that other tasks (\"clients\") can\n\t\t\tuse to connect to this service.

\n

Each name and port mapping must be unique within the namespace.

\n

Tasks that run in a namespace can use short names to connect\n\tto services in the namespace. Tasks can connect to services across all of the clusters in the namespace.\n\tTasks connect through a managed proxy container\n\tthat collects logs and metrics for increased visibility.\n\tOnly the tasks that Amazon ECS services create are supported with Service Connect.\n\tFor more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#ServiceConnectClientAliasList": { @@ -10402,13 +10449,13 @@ "namespace": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The namespace name or full Amazon Resource Name (ARN) of the Cloud Map namespace for use with Service Connect. The namespace must be in\n\t\t\tthe same Amazon Web Services Region as the Amazon ECS service and cluster. The type of namespace doesn't\n\t\t\taffect Service Connect. For more information about Cloud Map, see Working\n\t\t\t\twith Services in the Cloud Map Developer Guide.

" + "smithy.api#documentation": "

The namespace name or full Amazon Resource Name (ARN) of the Cloud Map namespace for use with Service Connect. The namespace must be in the same Amazon Web Services\n\t\t\tRegion as the Amazon ECS service and cluster. The type of namespace doesn't affect Service Connect. For\n\t\t\tmore information about Cloud Map, see Working with Services in the\n\t\t\tCloud Map Developer Guide.

" } }, "services": { "target": "com.amazonaws.ecs#ServiceConnectServiceList", "traits": { - "smithy.api#documentation": "

The list of Service Connect service objects. These are names and aliases (also known\n\t\t\tas endpoints) that are used by other Amazon ECS services to connect to this service.\n\t\t\t

\n

This field is not required for a \"client\" Amazon ECS service that's a member of a namespace\n\t\t\tonly to connect to other services within the namespace. An example of this would be a\n\t\t\tfrontend application that accepts incoming requests from either a load balancer that's\n\t\t\tattached to the service or by other means.

\n

An object selects a port from the task definition, assigns a name for the Cloud Map\n\t\t\tservice, and a list of aliases (endpoints) and ports for client applications to refer to\n\t\t\tthis service.

" + "smithy.api#documentation": "

The list of Service Connect service objects. These are names and aliases (also known as endpoints)\n\t\t\tthat are used by other Amazon ECS services to connect to this service.

\n

This field is not required for a \"client\" Amazon ECS service that's a member of a namespace only to\n\t\t\tconnect to other services within the namespace. An example of this would be a frontend application that\n\t\t\taccepts incoming requests from either a load balancer that's attached to the service or by other\n\t\t\tmeans.

\n

An object selects a port from the task definition, assigns a name for the Cloud Map service, and a\n\t\t\tlist of aliases (endpoints) and ports for client applications to refer to this service.

" } }, "logConfiguration": { @@ -10416,7 +10463,7 @@ } }, "traits": { - "smithy.api#documentation": "

The Service Connect configuration of your Amazon ECS service. The configuration for this\n\t\t\tservice to discover and connect to services, and be discovered by, and connected from,\n\t\t\tother services within a namespace.

\n

Tasks that run in a namespace can use short names to connect\n\tto services in the namespace. Tasks can connect to services across all of the clusters in the namespace.\n\tTasks connect through a managed proxy container\n\tthat collects logs and metrics for increased visibility.\n\tOnly the tasks that Amazon ECS services create are supported with Service Connect.\n\tFor more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The Service Connect configuration of your Amazon ECS service. The configuration for this service to\n\t\t\tdiscover and connect to services, and be discovered by, and connected from, other services within a\n\t\t\tnamespace.

\n

Tasks that run in a namespace can use short names to connect\n\tto services in the namespace. Tasks can connect to services across all of the clusters in the namespace.\n\tTasks connect through a managed proxy container\n\tthat collects logs and metrics for increased visibility.\n\tOnly the tasks that Amazon ECS services create are supported with Service Connect.\n\tFor more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#ServiceConnectService": { @@ -10425,7 +10472,7 @@ "portName": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The portName must match the name of one of the portMappings\n\t\t\tfrom all the containers in the task definition of this Amazon ECS service.

", + "smithy.api#documentation": "

The portName must match the name of one of the portMappings from all the\n\t\t\tcontainers in the task definition of this Amazon ECS service.

", "smithy.api#required": {} } }, @@ -10438,25 +10485,25 @@ "clientAliases": { "target": "com.amazonaws.ecs#ServiceConnectClientAliasList", "traits": { - "smithy.api#documentation": "

The list of client aliases for this Service Connect service. You use these to assign\n\t\t\tnames that can be used by client applications. The maximum number of client aliases that\n\t\t\tyou can have in this list is 1.

\n

Each alias (\"endpoint\") is a fully-qualified name and port number that other Amazon ECS\n\t\t\ttasks (\"clients\") can use to connect to this service.

\n

Each name and port mapping must be unique within the namespace.

\n

For each ServiceConnectService, you must provide at least one\n\t\t\t\tclientAlias with one port.

" + "smithy.api#documentation": "

The list of client aliases for this Service Connect service. You use these to assign names that can\n\t\t\tbe used by client applications. The maximum number of client aliases that you can have in this list is\n\t\t\t1.

\n

Each alias (\"endpoint\") is a fully-qualified name and port number that other Amazon ECS tasks (\"clients\")\n\t\t\tcan use to connect to this service.

\n

Each name and port mapping must be unique within the namespace.

\n

For each ServiceConnectService, you must provide at least one clientAlias\n\t\t\twith one port.

" } }, "ingressPortOverride": { "target": "com.amazonaws.ecs#PortNumber", "traits": { - "smithy.api#documentation": "

The port number for the Service Connect proxy to listen on.

\n

Use the value of this field to bypass the proxy for traffic on the port number\n\t\t\tspecified in the named portMapping in the task definition of this\n\t\t\tapplication, and then use it in your VPC security groups to allow traffic into the proxy\n\t\t\tfor this Amazon ECS service.

\n

In awsvpc mode and Fargate, the default value is the container port\n\t\t\tnumber. The container port number is in the portMapping in the task\n\t\t\tdefinition. In bridge mode, the default value is the ephemeral port of the\n\t\t\tService Connect proxy.

" + "smithy.api#documentation": "

The port number for the Service Connect proxy to listen on.

\n

Use the value of this field to bypass the proxy for traffic on the port number specified in the named\n\t\t\t\tportMapping in the task definition of this application, and then use it in your VPC\n\t\t\tsecurity groups to allow traffic into the proxy for this Amazon ECS service.

\n

In awsvpc mode and Fargate, the default value is the container port number. The\n\t\t\tcontainer port number is in the portMapping in the task definition. In bridge mode, the\n\t\t\tdefault value is the ephemeral port of the Service Connect proxy.

" } }, "timeout": { "target": "com.amazonaws.ecs#TimeoutConfiguration", "traits": { - "smithy.api#documentation": "

A reference to an object that represents the configured timeouts for\n\t\t\tService Connect.

" + "smithy.api#documentation": "

A reference to an object that represents the configured timeouts for Service Connect.

" } }, "tls": { "target": "com.amazonaws.ecs#ServiceConnectTlsConfiguration", "traits": { - "smithy.api#documentation": "

A reference to an object that represents a Transport Layer Security (TLS)\n\t\t\tconfiguration.

" + "smithy.api#documentation": "

A reference to an object that represents a Transport Layer Security (TLS) configuration.

" } } }, @@ -10482,12 +10529,12 @@ "discoveryArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the namespace in Cloud Map that matches the discovery name for this\n\t\t\tService Connect resource. You can use this ARN in other integrations with Cloud Map.\n\t\t\tHowever, Service Connect can't ensure connectivity outside of Amazon ECS.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the namespace in Cloud Map that matches the discovery name for this\n\t\t\tService Connect resource. You can use this ARN in other integrations with Cloud Map. However,\n\t\t\tService Connect can't ensure connectivity outside of Amazon ECS.

" } } }, "traits": { - "smithy.api#documentation": "

The Service Connect resource. Each configuration maps a discovery name to a\n\t\t\tCloud Map service name. The data is stored in Cloud Map as part of the\n\t\t\tService Connect configuration for each discovery name of this Amazon ECS service.

\n

A task can resolve the dnsName for each of the clientAliases\n\t\t\tof a service. However a task can't resolve the discovery names. If you want to connect\n\t\t\tto a service, refer to the ServiceConnectConfiguration of that service for\n\t\t\tthe list of clientAliases that you can use.

" + "smithy.api#documentation": "

The Service Connect resource. Each configuration maps a discovery name to a Cloud Map service name.\n\t\t\tThe data is stored in Cloud Map as part of the Service Connect configuration for each discovery name\n\t\t\tof this Amazon ECS service.

\n

A task can resolve the dnsName for each of the clientAliases of a service.\n\t\t\tHowever a task can't resolve the discovery names. If you want to connect to a service, refer to the\n\t\t\t\tServiceConnectConfiguration of that service for the list of clientAliases\n\t\t\tthat you can use.

" } }, "com.amazonaws.ecs#ServiceConnectServiceResourceList": { @@ -10751,7 +10798,7 @@ } }, "traits": { - "smithy.api#documentation": "

Information about the circuit breaker used to determine when a service deployment has\n\t\t\tfailed.

\n

The deployment circuit breaker is the rolling update mechanism that determines if the\n\t\t\ttasks reach a steady state. The deployment circuit breaker has an option that will\n\t\t\tautomatically roll back a failed deployment to the last cpompleted service\n\t\t\trevision. For more information, see How the Amazon ECS\n\t\t\tdeployment circuit breaker detects failures in the Amazon ECS Developer\n\t\t\t\tGuide.

" + "smithy.api#documentation": "

Information about the circuit breaker used to determine when a service deployment has\n\t\t\tfailed.

\n

The deployment circuit breaker is the rolling update mechanism that determines if the\n\t\t\ttasks reach a steady state. The deployment circuit breaker has an option that will\n\t\t\tautomatically roll back a failed deployment to the last cpompleted service\n\t\t\trevision. For more information, see How the Amazon ECS\n\t\t\t\tdeployment circuit breaker detects failures in the Amazon ECS Developer\n\t\t\t\t\tGuide.

" } }, "com.amazonaws.ecs#ServiceDeploymentRollbackMonitorsStatus": { @@ -10909,55 +10956,55 @@ "encrypted": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

Indicates whether the volume should be encrypted. If no value is specified, encryption\n\t\t\tis turned on by default. This parameter maps 1:1 with the Encrypted\n\t\t\tparameter of the CreateVolume API in\n\t\t\tthe Amazon EC2 API Reference.

" + "smithy.api#documentation": "

Indicates whether the volume should be encrypted. If no value is specified, encryption is turned on\n\t\t\tby default. This parameter maps 1:1 with the Encrypted parameter of the CreateVolume\n\t\t\t\tAPI in the Amazon EC2 API Reference.

" } }, "kmsKeyId": { "target": "com.amazonaws.ecs#EBSKMSKeyId", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) identifier of the Amazon Web Services Key Management Service key to use for Amazon EBS encryption. When\n\t\t\tencryption is turned on and no Amazon Web Services Key Management Service key is specified, the default Amazon Web Services managed key\n\t\t\tfor Amazon EBS volumes is used. This parameter maps 1:1 with the KmsKeyId\n\t\t\tparameter of the CreateVolume API in\n\t\t\tthe Amazon EC2 API Reference.

\n \n

Amazon Web Services authenticates the Amazon Web Services Key Management Service key asynchronously. Therefore, if you specify an\n\t\t\t\tID, alias, or ARN that is invalid, the action can appear to complete, but\n\t\t\t\teventually fails.

\n
" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) identifier of the Amazon Web Services Key Management Service key to use for Amazon EBS encryption. When encryption is turned\n\t\t\ton and no Amazon Web Services Key Management Service key is specified, the default Amazon Web Services managed key for Amazon EBS volumes is used. This\n\t\t\tparameter maps 1:1 with the KmsKeyId parameter of the CreateVolume API in the\n\t\t\t\tAmazon EC2 API Reference.

\n \n

Amazon Web Services authenticates the Amazon Web Services Key Management Service key asynchronously. Therefore, if you specify an ID, alias, or\n\t\t\t\tARN that is invalid, the action can appear to complete, but eventually fails.

\n
" } }, "volumeType": { "target": "com.amazonaws.ecs#EBSVolumeType", "traits": { - "smithy.api#documentation": "

The volume type. This parameter maps 1:1 with the VolumeType parameter of\n\t\t\tthe CreateVolume API in the Amazon EC2 API Reference. For more\n\t\t\tinformation, see Amazon EBS volume types in\n\t\t\tthe Amazon EC2 User Guide.

\n

The following are the supported volume types.

\n " + "smithy.api#documentation": "

The volume type. This parameter maps 1:1 with the VolumeType parameter of the CreateVolume\n\t\t\t\tAPI in the Amazon EC2 API Reference. For more information, see Amazon EBS volume types\n\t\t\tin the Amazon EC2 User Guide.

\n

The following are the supported volume types.

\n " } }, "sizeInGiB": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The size of the volume in GiB. You must specify either a volume size or a snapshot ID.\n\t\t\tIf you specify a snapshot ID, the snapshot size is used for the volume size by default.\n\t\t\tYou can optionally specify a volume size greater than or equal to the snapshot size.\n\t\t\tThis parameter maps 1:1 with the Size parameter of the CreateVolume API in the Amazon EC2 API Reference.

\n

The following are the supported volume size values for each volume type.

\n " + "smithy.api#documentation": "

The size of the volume in GiB. You must specify either a volume size or a snapshot ID. If you specify\n\t\t\ta snapshot ID, the snapshot size is used for the volume size by default. You can optionally specify a\n\t\t\tvolume size greater than or equal to the snapshot size. This parameter maps 1:1 with the\n\t\t\t\tSize parameter of the CreateVolume API in the\n\t\t\t\tAmazon EC2 API Reference.

\n

The following are the supported volume size values for each volume type.

\n " } }, "snapshotId": { "target": "com.amazonaws.ecs#EBSSnapshotId", "traits": { - "smithy.api#documentation": "

The snapshot that Amazon ECS uses to create the volume. You must specify either a snapshot\n\t\t\tID or a volume size. This parameter maps 1:1 with the SnapshotId parameter\n\t\t\tof the CreateVolume API in\n\t\t\tthe Amazon EC2 API Reference.

" + "smithy.api#documentation": "

The snapshot that Amazon ECS uses to create the volume. You must specify either a snapshot ID or a volume\n\t\t\tsize. This parameter maps 1:1 with the SnapshotId parameter of the CreateVolume\n\t\t\t\tAPI in the Amazon EC2 API Reference.

" } }, "iops": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The number of I/O operations per second (IOPS). For gp3,\n\t\t\tio1, and io2 volumes, this represents the number of IOPS that\n\t\t\tare provisioned for the volume. For gp2 volumes, this represents the\n\t\t\tbaseline performance of the volume and the rate at which the volume accumulates I/O\n\t\t\tcredits for bursting.

\n

The following are the supported values for each volume type.

\n \n

This parameter is required for io1 and io2 volume types. The\n\t\t\tdefault for gp3 volumes is 3,000 IOPS. This parameter is not\n\t\t\tsupported for st1, sc1, or standard volume\n\t\t\ttypes.

\n

This parameter maps 1:1 with the Iops parameter of the CreateVolume API in the Amazon EC2 API Reference.

" + "smithy.api#documentation": "

The number of I/O operations per second (IOPS). For gp3, io1, and\n\t\t\t\tio2 volumes, this represents the number of IOPS that are provisioned for the volume.\n\t\t\tFor gp2 volumes, this represents the baseline performance of the volume and the rate at\n\t\t\twhich the volume accumulates I/O credits for bursting.

\n

The following are the supported values for each volume type.

\n \n

This parameter is required for io1 and io2 volume types. The default for\n\t\t\t\tgp3 volumes is 3,000 IOPS. This parameter is not supported for\n\t\t\t\tst1, sc1, or standard volume types.

\n

This parameter maps 1:1 with the Iops parameter of the CreateVolume API in the\n\t\t\t\tAmazon EC2 API Reference.

" } }, "throughput": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The throughput to provision for a volume, in MiB/s, with a maximum of 1,000 MiB/s.\n\t\t\tThis parameter maps 1:1 with the Throughput parameter of the CreateVolume API in the Amazon EC2 API Reference.

\n \n

This parameter is only supported for the gp3 volume type.

\n
" + "smithy.api#documentation": "

The throughput to provision for a volume, in MiB/s, with a maximum of 1,000 MiB/s. This parameter\n\t\t\tmaps 1:1 with the Throughput parameter of the CreateVolume API in the\n\t\t\t\tAmazon EC2 API Reference.

\n \n

This parameter is only supported for the gp3 volume type.

\n
" } }, "tagSpecifications": { "target": "com.amazonaws.ecs#EBSTagSpecifications", "traits": { - "smithy.api#documentation": "

The tags to apply to the volume. Amazon ECS applies service-managed tags by default. This\n\t\t\tparameter maps 1:1 with the TagSpecifications.N parameter of the CreateVolume API in the Amazon EC2 API Reference.

" + "smithy.api#documentation": "

The tags to apply to the volume. Amazon ECS applies service-managed tags by default. This parameter maps\n\t\t\t1:1 with the TagSpecifications.N parameter of the CreateVolume API in the\n\t\t\t\tAmazon EC2 API Reference.

" } }, "roleArn": { "target": "com.amazonaws.ecs#IAMRoleArn", "traits": { - "smithy.api#documentation": "

The ARN of the IAM role to associate with this volume. This is the Amazon ECS\n\t\t\tinfrastructure IAM role that is used to manage your Amazon Web Services infrastructure. We recommend\n\t\t\tusing the Amazon ECS-managed AmazonECSInfrastructureRolePolicyForVolumes IAM\n\t\t\tpolicy with this role. For more information, see Amazon ECS\n\t\t\t\tinfrastructure IAM role in the Amazon ECS Developer\n\t\t\tGuide.

", + "smithy.api#documentation": "

The ARN of the IAM role to associate with this volume. This is the Amazon ECS infrastructure IAM role\n\t\t\tthat is used to manage your Amazon Web Services infrastructure. We recommend using the Amazon ECS-managed\n\t\t\t\tAmazonECSInfrastructureRolePolicyForVolumes IAM policy with this role. For more\n\t\t\tinformation, see Amazon ECS infrastructure IAM\n\t\t\t\trole in the Amazon ECS Developer Guide.

", "smithy.api#required": {} } }, @@ -10983,7 +11030,7 @@ } }, "traits": { - "smithy.api#documentation": "

The specified service isn't active. You can't update a service that's inactive. If you\n\t\t\thave previously deleted a service, you can re-create it with CreateService.

", + "smithy.api#documentation": "

The specified service isn't active. You can't update a service that's inactive. If you have\n\t\t\tpreviously deleted a service, you can re-create it with CreateService.

", "smithy.api#error": "client" } }, @@ -10998,7 +11045,7 @@ } }, "traits": { - "smithy.api#documentation": "

The specified service wasn't found. You can view your available services with ListServices. Amazon ECS services are cluster specific and Region\n\t\t\tspecific.

", + "smithy.api#documentation": "

The specified service wasn't found. You can view your available services with ListServices. Amazon ECS services are cluster specific and Region specific.

", "smithy.api#error": "client" } }, @@ -11014,30 +11061,30 @@ "registryArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the service registry. The currently supported service registry is\n\t\t\tCloud Map. For more information, see CreateService.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the service registry. The currently supported service registry is Cloud Map. For more\n\t\t\tinformation, see CreateService.

" } }, "port": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The port value used if your service discovery service specified an SRV record. This\n\t\t\tfield might be used if both the awsvpc network mode and SRV records are\n\t\t\tused.

" + "smithy.api#documentation": "

The port value used if your service discovery service specified an SRV record. This field might be\n\t\t\tused if both the awsvpc network mode and SRV records are used.

" } }, "containerName": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The container name value to be used for your service discovery service. It's already\n\t\t\tspecified in the task definition. If the task definition that your service task\n\t\t\tspecifies uses the bridge or host network mode, you must\n\t\t\tspecify a containerName and containerPort combination from the\n\t\t\ttask definition. If the task definition that your service task specifies uses the\n\t\t\t\tawsvpc network mode and a type SRV DNS record is used, you must specify\n\t\t\teither a containerName and containerPort combination or a\n\t\t\t\tport value. However, you can't specify both.

" + "smithy.api#documentation": "

The container name value to be used for your service discovery service. It's already specified in the\n\t\t\ttask definition. If the task definition that your service task specifies uses the bridge\n\t\t\tor host network mode, you must specify a containerName and\n\t\t\t\tcontainerPort combination from the task definition. If the task definition that your\n\t\t\tservice task specifies uses the awsvpc network mode and a type SRV DNS record is used, you\n\t\t\tmust specify either a containerName and containerPort combination or a\n\t\t\t\tport value. However, you can't specify both.

" } }, "containerPort": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The port value to be used for your service discovery service. It's already specified\n\t\t\tin the task definition. If the task definition your service task specifies uses the\n\t\t\t\tbridge or host network mode, you must specify a\n\t\t\t\tcontainerName and containerPort combination from the task\n\t\t\tdefinition. If the task definition your service task specifies uses the\n\t\t\t\tawsvpc network mode and a type SRV DNS record is used, you must specify\n\t\t\teither a containerName and containerPort combination or a\n\t\t\t\tport value. However, you can't specify both.

" + "smithy.api#documentation": "

The port value to be used for your service discovery service. It's already specified in the task\n\t\t\tdefinition. If the task definition your service task specifies uses the bridge or\n\t\t\t\thost network mode, you must specify a containerName and\n\t\t\t\tcontainerPort combination from the task definition. If the task definition your\n\t\t\tservice task specifies uses the awsvpc network mode and a type SRV DNS record is used, you\n\t\t\tmust specify either a containerName and containerPort combination or a\n\t\t\t\tport value. However, you can't specify both.

" } } }, "traits": { - "smithy.api#documentation": "

The details for the service registry.

\n

Each service may be associated with one service registry. Multiple service registries\n\t\t\tfor each service are not supported.

\n

When you add, update, or remove the service registries configuration, Amazon ECS starts a\n\t\t\tnew deployment. New tasks are registered and deregistered to the updated service\n\t\t\tregistry configuration.

" + "smithy.api#documentation": "

The details for the service registry.

\n

Each service may be associated with one service registry. Multiple service registries for each\n\t\t\tservice are not supported.

\n

When you add, update, or remove the service registries configuration, Amazon ECS starts a new deployment.\n\t\t\tNew tasks are registered and deregistered to the updated service registry configuration.

" } }, "com.amazonaws.ecs#ServiceRevision": { @@ -11136,6 +11183,12 @@ "traits": { "smithy.api#documentation": "

The time that the service revision was created. The format is yyyy-mm-dd HH:mm:ss.SSSSS.

" } + }, + "vpcLatticeConfigurations": { + "target": "com.amazonaws.ecs#VpcLatticeConfigurations", + "traits": { + "smithy.api#documentation": "

The VPC Lattice configuration for the service revision.

" + } } }, "traits": { @@ -11195,19 +11248,19 @@ "name": { "target": "com.amazonaws.ecs#ECSVolumeName", "traits": { - "smithy.api#documentation": "

The name of the volume. This value must match the volume name from the\n\t\t\t\tVolume object in the task definition.

", + "smithy.api#documentation": "

The name of the volume. This value must match the volume name from the Volume object in\n\t\t\tthe task definition.

", "smithy.api#required": {} } }, "managedEBSVolume": { "target": "com.amazonaws.ecs#ServiceManagedEBSVolumeConfiguration", "traits": { - "smithy.api#documentation": "

The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf.\n\t\t\tThese settings are used to create each Amazon EBS volume, with one volume created for each\n\t\t\ttask in the service. The Amazon EBS volumes are visible in your account in the Amazon EC2 console\n\t\t\tonce they are created.

" + "smithy.api#documentation": "

The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These settings\n\t\t\tare used to create each Amazon EBS volume, with one volume created for each task in the service. The Amazon EBS\n\t\t\tvolumes are visible in your account in the Amazon EC2 console once they are created.

" } } }, "traits": { - "smithy.api#documentation": "

The configuration for a volume specified in the task definition as a volume that is\n\t\t\tconfigured at launch time. Currently, the only supported volume type is an Amazon EBS\n\t\t\tvolume.

" + "smithy.api#documentation": "

The configuration for a volume specified in the task definition as a volume that is configured at\n\t\t\tlaunch time. Currently, the only supported volume type is an Amazon EBS volume.

" } }, "com.amazonaws.ecs#ServiceVolumeConfigurations": { @@ -11234,13 +11287,13 @@ "streamUrl": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

A URL to the managed agent on the container that the SSM Session Manager client uses\n\t\t\tto send commands and receive output from the container.

" + "smithy.api#documentation": "

A URL to the managed agent on the container that the SSM Session Manager client uses to send commands\n\t\t\tand receive output from the container.

" } }, "tokenValue": { "target": "com.amazonaws.ecs#SensitiveString", "traits": { - "smithy.api#documentation": "

An encrypted token value containing session and caller information. It's used to\n\t\t\tauthenticate the connection to the container.

" + "smithy.api#documentation": "

An encrypted token value containing session and caller information. It's used to authenticate the\n\t\t\tconnection to the container.

" } } }, @@ -11266,13 +11319,13 @@ "principalArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The ARN of the principal. It can be a user, role, or the root user. If this field is\n\t\t\tomitted, the authenticated user is assumed.

" + "smithy.api#documentation": "

The ARN of the principal. It can be a user, role, or the root user. If this field is omitted, the\n\t\t\tauthenticated user is assumed.

" } }, "type": { "target": "com.amazonaws.ecs#SettingType", "traits": { - "smithy.api#documentation": "

Indicates whether Amazon Web Services manages the account setting, or if the user manages it.

\n

\n aws_managed account settings are read-only, as Amazon Web Services manages such on the\n\t\t\tcustomer's behalf. Currently, the guardDutyActivate account setting is the\n\t\t\tonly one Amazon Web Services manages.

" + "smithy.api#documentation": "

Indicates whether Amazon Web Services manages the account setting, or if the user manages it.

\n

\n aws_managed account settings are read-only, as Amazon Web Services manages such on the customer's\n\t\t\tbehalf. Currently, the guardDutyActivate account setting is the only one Amazon Web Services\n\t\t\tmanages.

" } } }, @@ -11422,7 +11475,7 @@ } ], "traits": { - "smithy.api#documentation": "

Starts a new task from the specified task definition on the specified container\n\t\t\tinstance or instances.

\n \n

On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.

\n
\n \n

Amazon Elastic Inference (EI) is no longer available to customers.

\n
\n

Alternatively, you can useRunTask to place tasks for you. For more\n\t\t\tinformation, see Scheduling Tasks in the Amazon Elastic Container Service Developer Guide.

\n

You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or\n\t\t\tupdating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

Starts a new task from the specified task definition on the specified container instance or\n\t\t\tinstances.

\n \n

On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.

\n
\n \n

Amazon Elastic Inference (EI) is no longer available to customers.

\n
\n

Alternatively, you can useRunTask to place tasks for you. For more information, see\n\t\t\t\tScheduling\n\t\t\t\tTasks in the Amazon Elastic Container Service Developer Guide.

\n

You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or updating a\n\t\t\tservice. For more infomation, see Amazon EBS\n\t\t\t\tvolumes in the Amazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#StartTaskRequest": { @@ -11437,7 +11490,7 @@ "containerInstances": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The container instance IDs or full ARN entries for the container instances where you\n\t\t\twould like to place your task. You can specify up to 10 container instances.

", + "smithy.api#documentation": "

The container instance IDs or full ARN entries for the container instances where you would like to\n\t\t\tplace your task. You can specify up to 10 container instances.

", "smithy.api#required": {} } }, @@ -11445,20 +11498,20 @@ "target": "com.amazonaws.ecs#Boolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

Specifies whether to use Amazon ECS managed tags for the task. For more information, see\n\t\t\t\tTagging Your Amazon ECS\n\t\t\t\tResources in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

Specifies whether to use Amazon ECS managed tags for the task. For more information, see Tagging Your Amazon ECS\n\t\t\t\tResources in the Amazon Elastic Container Service Developer Guide.

" } }, "enableExecuteCommand": { "target": "com.amazonaws.ecs#Boolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

Whether or not the execute command functionality is turned on for the task. If\n\t\t\t\ttrue, this turns on the execute command functionality on all containers\n\t\t\tin the task.

" + "smithy.api#documentation": "

Whether or not the execute command functionality is turned on for the task. If true,\n\t\t\tthis turns on the execute command functionality on all containers in the task.

" } }, "group": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The name of the task group to associate with the task. The default value is the family\n\t\t\tname of the task definition (for example, family:my-family-name).

" + "smithy.api#documentation": "

The name of the task group to associate with the task. The default value is the family name of the\n\t\t\ttask definition (for example, family:my-family-name).

" } }, "networkConfiguration": { @@ -11470,13 +11523,13 @@ "overrides": { "target": "com.amazonaws.ecs#TaskOverride", "traits": { - "smithy.api#documentation": "

A list of container overrides in JSON format that specify the name of a container in\n\t\t\tthe specified task definition and the overrides it receives. You can override the\n\t\t\tdefault command for a container (that's specified in the task definition or Docker\n\t\t\timage) with a command override. You can also override existing environment\n\t\t\tvariables (that are specified in the task definition or Docker image) on a container or\n\t\t\tadd new environment variables to it with an environment override.

\n \n

A total of 8192 characters are allowed for overrides. This limit includes the JSON\n\t\t\t\tformatting characters of the override structure.

\n
" + "smithy.api#documentation": "

A list of container overrides in JSON format that specify the name of a container in the specified\n\t\t\ttask definition and the overrides it receives. You can override the default command for a container\n\t\t\t(that's specified in the task definition or Docker image) with a command override. You can\n\t\t\talso override existing environment variables (that are specified in the task definition or Docker\n\t\t\timage) on a container or add new environment variables to it with an environment\n\t\t\toverride.

\n \n

A total of 8192 characters are allowed for overrides. This limit includes the JSON formatting\n\t\t\t\tcharacters of the override structure.

\n
" } }, "propagateTags": { "target": "com.amazonaws.ecs#PropagateTags", "traits": { - "smithy.api#documentation": "

Specifies whether to propagate the tags from the task definition or the service to the\n\t\t\ttask. If no value is specified, the tags aren't propagated.

" + "smithy.api#documentation": "

Specifies whether to propagate the tags from the task definition or the service to the task. If no\n\t\t\tvalue is specified, the tags aren't propagated.

" } }, "referenceId": { @@ -11494,20 +11547,20 @@ "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the task to help you categorize and organize them. Each\n\t\t\ttag consists of a key and an optional value, both of which you define.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the task to help you categorize and organize them. Each tag consists\n\t\t\tof a key and an optional value, both of which you define.

\n

The following basic restrictions apply to tags:

\n " } }, "taskDefinition": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The family and revision (family:revision) or\n\t\t\tfull ARN of the task definition to start. If a revision isn't specified,\n\t\t\tthe latest ACTIVE revision is used.

", + "smithy.api#documentation": "

The family and revision (family:revision) or full ARN of the\n\t\t\ttask definition to start. If a revision isn't specified, the latest ACTIVE\n\t\t\trevision is used.

", "smithy.api#required": {} } }, "volumeConfigurations": { "target": "com.amazonaws.ecs#TaskVolumeConfigurations", "traits": { - "smithy.api#documentation": "

The details of the volume that was configuredAtLaunch. You can configure\n\t\t\tthe size, volumeType, IOPS, throughput, snapshot and encryption in TaskManagedEBSVolumeConfiguration. The name of the volume must\n\t\t\tmatch the name from the task definition.

" + "smithy.api#documentation": "

The details of the volume that was configuredAtLaunch. You can configure the size,\n\t\t\tvolumeType, IOPS, throughput, snapshot and encryption in TaskManagedEBSVolumeConfiguration. The name of the volume must match the\n\t\t\t\tname from the task definition.

" } } }, @@ -11521,7 +11574,7 @@ "tasks": { "target": "com.amazonaws.ecs#Tasks", "traits": { - "smithy.api#documentation": "

A full description of the tasks that were started. Each task that was successfully\n\t\t\tplaced on your container instances is described.

" + "smithy.api#documentation": "

A full description of the tasks that were started. Each task that was successfully placed on your\n\t\t\tcontainer instances is described.

" } }, "failures": { @@ -11564,7 +11617,7 @@ } ], "traits": { - "smithy.api#documentation": "

Stops a running task. Any tags associated with the task will be deleted.

\n

When you call StopTask on a task, the equivalent of docker\n\t\t\t\tstop is issued to the containers running in the task. This results in a\n\t\t\t\tSIGTERM value and a default 30-second timeout, after which the\n\t\t\t\tSIGKILL value is sent and the containers are forcibly stopped. If the\n\t\t\tcontainer handles the SIGTERM value gracefully and exits within 30 seconds\n\t\t\tfrom receiving it, no SIGKILL value is sent.

\n

For Windows containers, POSIX signals do not work and runtime stops the container by\n\t\t\tsending a CTRL_SHUTDOWN_EVENT. For more information, see Unable to react to graceful shutdown\n\t\t\t\tof (Windows) container #25982 on GitHub.

\n \n

The default 30-second timeout can be configured on the Amazon ECS container agent with\n\t\t\t\tthe ECS_CONTAINER_STOP_TIMEOUT variable. For more information, see\n\t\t\t\t\tAmazon ECS Container Agent Configuration in the\n\t\t\t\tAmazon Elastic Container Service Developer Guide.

\n
" + "smithy.api#documentation": "

Stops a running task. Any tags associated with the task will be deleted.

\n

When you call StopTask on a task, the equivalent of docker stop is issued\n\t\t\tto the containers running in the task. This results in a SIGTERM value and a default\n\t\t\t30-second timeout, after which the SIGKILL value is sent and the containers are forcibly\n\t\t\tstopped. If the container handles the SIGTERM value gracefully and exits within 30 seconds\n\t\t\tfrom receiving it, no SIGKILL value is sent.

\n

For Windows containers, POSIX signals do not work and runtime stops the container by sending a\n\t\t\t\tCTRL_SHUTDOWN_EVENT. For more information, see Unable to react to graceful shutdown of (Windows)\n\t\t\t\tcontainer #25982 on GitHub.

\n \n

The default 30-second timeout can be configured on the Amazon ECS container agent with the\n\t\t\t\t\tECS_CONTAINER_STOP_TIMEOUT variable. For more information, see Amazon ECS\n\t\t\t\t\tContainer Agent Configuration in the Amazon Elastic Container Service Developer Guide.

\n
" } }, "com.amazonaws.ecs#StopTaskRequest": { @@ -11586,7 +11639,7 @@ "reason": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

An optional message specified when a task is stopped. For example, if you're using a\n\t\t\tcustom scheduler, you can use this parameter to specify the reason for stopping the task\n\t\t\there, and the message appears in subsequent DescribeTasks> API\n\t\t\toperations on this task.

" + "smithy.api#documentation": "

An optional message specified when a task is stopped. For example, if you're using a custom\n\t\t\tscheduler, you can use this parameter to specify the reason for stopping the task here, and the message\n\t\t\tappears in subsequent DescribeTasks> API operations on\n\t\t\tthis task.

" } } }, @@ -11658,7 +11711,7 @@ "cluster": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full ARN of the cluster that hosts the container instance the\n\t\t\tattachment belongs to.

" + "smithy.api#documentation": "

The short name or full ARN of the cluster that hosts the container instance the attachment belongs\n\t\t\tto.

" } }, "attachments": { @@ -11900,12 +11953,12 @@ "value": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The namespaced kernel parameter to set a value for.

\n

Valid IPC namespace values: \"kernel.msgmax\" | \"kernel.msgmnb\" | \"kernel.msgmni\"\n\t\t\t\t| \"kernel.sem\" | \"kernel.shmall\" | \"kernel.shmmax\" | \"kernel.shmmni\" |\n\t\t\t\t\"kernel.shm_rmid_forced\", and Sysctls that start with\n\t\t\t\t\"fs.mqueue.*\"\n

\n

Valid network namespace values: Sysctls that start with\n\t\t\t\t\"net.*\"\n

\n

All of these values are supported by Fargate.

" + "smithy.api#documentation": "

The namespaced kernel parameter to set a value for.

\n

Valid IPC namespace values: \"kernel.msgmax\" | \"kernel.msgmnb\" | \"kernel.msgmni\" | \"kernel.sem\"\n\t\t\t\t| \"kernel.shmall\" | \"kernel.shmmax\" | \"kernel.shmmni\" | \"kernel.shm_rmid_forced\", and\n\t\t\t\tSysctls that start with \"fs.mqueue.*\"\n

\n

Valid network namespace values: Sysctls that start with \"net.*\"\n

\n

All of these values are supported by Fargate.

" } } }, "traits": { - "smithy.api#documentation": "

A list of namespaced kernel parameters to set in the container. This parameter maps to\n\t\t\tSysctls in the docker container create command and the --sysctl option to docker run. For example, you can configure\n\t\t\t\tnet.ipv4.tcp_keepalive_time setting to maintain longer lived\n\t\t\tconnections.

\n

We don't recommend that you specify network-related systemControls\n\t\t\tparameters for multiple containers in a single task that also uses either the\n\t\t\t\tawsvpc or host network mode. Doing this has the following\n\t\t\tdisadvantages:

\n \n

If you're setting an IPC resource namespace to use for the containers in the task, the\n\t\t\tfollowing conditions apply to your system controls. For more information, see IPC mode.

\n \n \n

This parameter is not supported for Windows containers.

\n
\n \n

This parameter is only supported for tasks that are hosted on\n Fargate if the tasks are using platform version 1.4.0 or later\n (Linux). This isn't supported for Windows containers on\n Fargate.

\n
" + "smithy.api#documentation": "

A list of namespaced kernel parameters to set in the container. This parameter maps to\n\t\t\t\tSysctls in the docker container create command and the --sysctl option to\n\t\t\tdocker run. For example, you can configure net.ipv4.tcp_keepalive_time setting to maintain\n\t\t\tlonger lived connections.

\n

We don't recommend that you specify network-related systemControls parameters for\n\t\t\tmultiple containers in a single task that also uses either the awsvpc or host\n\t\t\tnetwork mode. Doing this has the following disadvantages:

\n \n

If you're setting an IPC resource namespace to use for the containers in the task, the following\n\t\t\tconditions apply to your system controls. For more information, see IPC\n\t\t\t\tmode.

\n \n \n

This parameter is not supported for Windows containers.

\n
\n \n

This parameter is only supported for tasks that are hosted on\n Fargate if the tasks are using platform version 1.4.0 or later\n (Linux). This isn't supported for Windows containers on\n Fargate.

\n
" } }, "com.amazonaws.ecs#SystemControls": { @@ -11920,18 +11973,18 @@ "key": { "target": "com.amazonaws.ecs#TagKey", "traits": { - "smithy.api#documentation": "

One part of a key-value pair that make up a tag. A key is a general label\n\t\t\tthat acts like a category for more specific tag values.

" + "smithy.api#documentation": "

One part of a key-value pair that make up a tag. A key is a general label that acts like\n\t\t\ta category for more specific tag values.

" } }, "value": { "target": "com.amazonaws.ecs#TagValue", "traits": { - "smithy.api#documentation": "

The optional part of a key-value pair that make up a tag. A value acts as\n\t\t\ta descriptor within a tag category (key).

" + "smithy.api#documentation": "

The optional part of a key-value pair that make up a tag. A value acts as a descriptor\n\t\t\twithin a tag category (key).

" } } }, "traits": { - "smithy.api#documentation": "

The metadata that you apply to a resource to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value. You define them.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to a resource to help you categorize and organize them. Each tag consists\n\t\t\tof a key and an optional value. You define them.

\n

The following basic restrictions apply to tags:

\n " } }, "com.amazonaws.ecs#TagKey": { @@ -11976,7 +12029,7 @@ } ], "traits": { - "smithy.api#documentation": "

Associates the specified tags to a resource with the specified\n\t\t\t\tresourceArn. If existing tags on a resource aren't specified in the\n\t\t\trequest parameters, they aren't changed. When a resource is deleted, the tags that are\n\t\t\tassociated with that resource are deleted as well.

", + "smithy.api#documentation": "

Associates the specified tags to a resource with the specified resourceArn. If existing\n\t\t\ttags on a resource aren't specified in the request parameters, they aren't changed. When a resource is\n\t\t\tdeleted, the tags that are associated with that resource are deleted as well.

", "smithy.api#examples": [ { "title": "To tag a cluster.", @@ -12001,7 +12054,7 @@ "resourceArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource to add tags to. Currently, the supported resources are\n\t\t\tAmazon ECS capacity providers, tasks, services, task definitions, clusters, and container\n\t\t\tinstances.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource to add tags to. Currently, the supported resources are Amazon ECS capacity\n\t\t\tproviders, tasks, services, task definitions, clusters, and container instances.

", "smithy.api#required": {} } }, @@ -12057,7 +12110,7 @@ } }, "traits": { - "smithy.api#documentation": "

The execute command cannot run. This error can be caused by any of the following\n\t\t\tconfiguration issues:

\n \n

For information about how to troubleshoot the issues, see Troubleshooting issues with ECS\n\t\t\t\tExec in the Amazon Elastic Container Service Developer Guide.

", + "smithy.api#documentation": "

The execute command cannot run. This error can be caused by any of the following configuration\n\t\t\tissues:

\n \n

For information about how to troubleshoot the issues, see Troubleshooting issues with ECS Exec in\n\t\t\tthe Amazon Elastic Container Service Developer Guide.

", "smithy.api#error": "client" } }, @@ -12072,7 +12125,7 @@ } }, "traits": { - "smithy.api#documentation": "

The specified target wasn't found. You can view your available container instances\n\t\t\twith ListContainerInstances. Amazon ECS container instances are cluster-specific and\n\t\t\tRegion-specific.

", + "smithy.api#documentation": "

The specified target wasn't found. You can view your available container instances with ListContainerInstances. Amazon ECS container instances are cluster-specific and\n\t\t\tRegion-specific.

", "smithy.api#error": "client" } }, @@ -12093,7 +12146,7 @@ "attachments": { "target": "com.amazonaws.ecs#Attachments", "traits": { - "smithy.api#documentation": "

The Elastic Network Adapter that's associated with the task if the task uses the\n\t\t\t\tawsvpc network mode.

" + "smithy.api#documentation": "

The Elastic Network Adapter that's associated with the task if the task uses the awsvpc\n\t\t\tnetwork mode.

" } }, "attributes": { @@ -12129,7 +12182,7 @@ "connectivityAt": { "target": "com.amazonaws.ecs#Timestamp", "traits": { - "smithy.api#documentation": "

The Unix timestamp for the time when the task last went into CONNECTED\n\t\t\tstatus.

" + "smithy.api#documentation": "

The Unix timestamp for the time when the task last went into CONNECTED status.

" } }, "containerInstanceArn": { @@ -12147,26 +12200,26 @@ "cpu": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The number of CPU units used by the task as expressed in a task definition. It can be\n\t\t\texpressed as an integer using CPU units (for example, 1024). It can also be\n\t\t\texpressed as a string using vCPUs (for example, 1 vCPU or 1\n\t\t\t\tvcpu). String values are converted to an integer that indicates the CPU units\n\t\t\twhen the task definition is registered.

\n

If you use the EC2 launch type, this field is optional. Supported values\n\t\t\tare between 128 CPU units (0.125 vCPUs) and 10240\n\t\t\tCPU units (10 vCPUs).

\n

If you use the Fargate launch type, this field is required. You must use\n\t\t\tone of the following values. These values determine the range of supported values for\n\t\t\tthe memory parameter:

\n

The CPU units cannot be less than 1 vCPU when you use Windows containers on\n\t\t\tFargate.

\n " + "smithy.api#documentation": "

The number of CPU units used by the task as expressed in a task definition. It can be expressed as an\n\t\t\tinteger using CPU units (for example, 1024). It can also be expressed as a string using\n\t\t\tvCPUs (for example, 1 vCPU or 1 vcpu). String values are converted to an\n\t\t\tinteger that indicates the CPU units when the task definition is registered.

\n

If you use the EC2 launch type, this field is optional. Supported values are between\n\t\t\t\t128 CPU units (0.125 vCPUs) and 10240 CPU units\n\t\t\t\t(10 vCPUs).

\n

If you use the Fargate launch type, this field is required. You must use one of the\n\t\t\tfollowing values. These values determine the range of supported values for the memory\n\t\t\tparameter:

\n

The CPU units cannot be less than 1 vCPU when you use Windows containers on\n\t\t\tFargate.

\n " } }, "createdAt": { "target": "com.amazonaws.ecs#Timestamp", "traits": { - "smithy.api#documentation": "

The Unix timestamp for the time when the task was created. More specifically, it's for\n\t\t\tthe time when the task entered the PENDING state.

" + "smithy.api#documentation": "

The Unix timestamp for the time when the task was created. More specifically, it's for the time when\n\t\t\tthe task entered the PENDING state.

" } }, "desiredStatus": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The desired status of the task. For more information, see Task\n\t\t\tLifecycle.

" + "smithy.api#documentation": "

The desired status of the task. For more information, see Task Lifecycle.

" } }, "enableExecuteCommand": { "target": "com.amazonaws.ecs#Boolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

Determines whether execute command functionality is turned on for this task. If\n\t\t\t\ttrue, execute command functionality is turned on all the containers in\n\t\t\tthe task.

" + "smithy.api#documentation": "

Determines whether execute command functionality is turned on for this task. If true,\n\t\t\texecute command functionality is turned on all the containers in the task.

" } }, "executionStoppedAt": { @@ -12184,7 +12237,7 @@ "healthStatus": { "target": "com.amazonaws.ecs#HealthStatus", "traits": { - "smithy.api#documentation": "

The health status for the task. It's determined by the health of the essential\n\t\t\tcontainers in the task. If all essential containers in the task are reporting as\n\t\t\t\tHEALTHY, the task status also reports as HEALTHY. If any\n\t\t\tessential containers in the task are reporting as UNHEALTHY or\n\t\t\t\tUNKNOWN, the task status also reports as UNHEALTHY or\n\t\t\t\tUNKNOWN.

\n \n

The Amazon ECS container agent doesn't monitor or report on Docker health checks that\n\t\t\t\tare embedded in a container image and not specified in the container definition. For\n\t\t\t\texample, this includes those specified in a parent image or from the image's\n\t\t\t\tDockerfile. Health check parameters that are specified in a container definition\n\t\t\t\toverride any Docker health checks that are found in the container image.

\n
" + "smithy.api#documentation": "

The health status for the task. It's determined by the health of the essential containers in the\n\t\t\ttask. If all essential containers in the task are reporting as HEALTHY, the task status\n\t\t\talso reports as HEALTHY. If any essential containers in the task are reporting as\n\t\t\t\tUNHEALTHY or UNKNOWN, the task status also reports as\n\t\t\t\tUNHEALTHY or UNKNOWN.

\n \n

The Amazon ECS container agent doesn't monitor or report on Docker health checks that are embedded in\n\t\t\t\ta container image and not specified in the container definition. For example, this includes those\n\t\t\t\tspecified in a parent image or from the image's Dockerfile. Health check parameters that are\n\t\t\t\tspecified in a container definition override any Docker health checks that are found in the\n\t\t\t\tcontainer image.

\n
" } }, "inferenceAccelerators": { @@ -12196,19 +12249,19 @@ "lastStatus": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The last known status for the task. For more information, see Task\n\t\t\t\tLifecycle.

" + "smithy.api#documentation": "

The last known status for the task. For more information, see Task Lifecycle.

" } }, "launchType": { "target": "com.amazonaws.ecs#LaunchType", "traits": { - "smithy.api#documentation": "

The infrastructure where your task runs on. For more information, see Amazon ECS\n\t\t\t\tlaunch types in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The infrastructure where your task runs on. For more information, see Amazon ECS launch\n\t\t\t\ttypes in the Amazon Elastic Container Service Developer Guide.

" } }, "memory": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The amount of memory (in MiB) that the task uses as expressed in a task definition. It\n\t\t\tcan be expressed as an integer using MiB (for example, 1024). If it's\n\t\t\texpressed as a string using GB (for example, 1GB or 1 GB),\n\t\t\tit's converted to an integer indicating the MiB when the task definition is\n\t\t\tregistered.

\n

If you use the EC2 launch type, this field is optional.

\n

If you use the Fargate launch type, this field is required. You must use\n\t\t\tone of the following values. The value that you choose determines the range of supported\n\t\t\tvalues for the cpu parameter.

\n " + "smithy.api#documentation": "

The amount of memory (in MiB) that the task uses as expressed in a task definition. It can be\n\t\t\texpressed as an integer using MiB (for example, 1024). If it's expressed as a string using\n\t\t\tGB (for example, 1GB or 1 GB), it's converted to an integer indicating the\n\t\t\tMiB when the task definition is registered.

\n

If you use the EC2 launch type, this field is optional.

\n

If you use the Fargate launch type, this field is required. You must use one of the\n\t\t\tfollowing values. The value that you choose determines the range of supported values for the\n\t\t\t\tcpu parameter.

\n " } }, "overrides": { @@ -12220,13 +12273,13 @@ "platformVersion": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The platform version where your task runs on. A platform version is only specified for\n\t\t\ttasks that use the Fargate launch type. If you didn't specify one, the\n\t\t\t\tLATEST platform version is used. For more information, see Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The platform version where your task runs on. A platform version is only specified for tasks that use\n\t\t\tthe Fargate launch type. If you didn't specify one, the LATEST platform\n\t\t\tversion is used. For more information, see Fargate Platform Versions in\n\t\t\tthe Amazon Elastic Container Service Developer Guide.

" } }, "platformFamily": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The operating system that your tasks are running on. A platform family is specified\n\t\t\tonly for tasks that use the Fargate launch type.

\n

All tasks that run as part of this service must use the same\n\t\t\t\tplatformFamily value as the service (for example,\n\t\t\tLINUX.).

" + "smithy.api#documentation": "

The operating system that your tasks are running on. A platform family is specified only for tasks\n\t\t\tthat use the Fargate launch type.

\n

All tasks that run as part of this service must use the same platformFamily value as\n\t\t\tthe service (for example, LINUX.).

" } }, "pullStartedAt": { @@ -12244,7 +12297,7 @@ "startedAt": { "target": "com.amazonaws.ecs#Timestamp", "traits": { - "smithy.api#documentation": "

The Unix timestamp for the time when the task started. More specifically, it's for the\n\t\t\ttime when the task transitioned from the PENDING state to the\n\t\t\t\tRUNNING state.

" + "smithy.api#documentation": "

The Unix timestamp for the time when the task started. More specifically, it's for the time when the\n\t\t\ttask transitioned from the PENDING state to the RUNNING state.

" } }, "startedBy": { @@ -12256,13 +12309,13 @@ "stopCode": { "target": "com.amazonaws.ecs#TaskStopCode", "traits": { - "smithy.api#documentation": "

The stop code indicating why a task was stopped. The stoppedReason might\n\t\t\tcontain additional details.

\n

For more information about stop code, see Stopped tasks\n\t\t\t\terror codes in the Amazon ECS Developer Guide.

" + "smithy.api#documentation": "

The stop code indicating why a task was stopped. The stoppedReason might contain\n\t\t\tadditional details.

\n

For more information about stop code, see Stopped tasks error\n\t\t\t\tcodes in the Amazon ECS Developer Guide.

" } }, "stoppedAt": { "target": "com.amazonaws.ecs#Timestamp", "traits": { - "smithy.api#documentation": "

The Unix timestamp for the time when the task was stopped. More specifically, it's for\n\t\t\tthe time when the task transitioned from the RUNNING state to the\n\t\t\t\tSTOPPED state.

" + "smithy.api#documentation": "

The Unix timestamp for the time when the task was stopped. More specifically, it's for the time when\n\t\t\tthe task transitioned from the RUNNING state to the STOPPED state.

" } }, "stoppedReason": { @@ -12274,13 +12327,13 @@ "stoppingAt": { "target": "com.amazonaws.ecs#Timestamp", "traits": { - "smithy.api#documentation": "

The Unix timestamp for the time when the task stops. More specifically, it's for the\n\t\t\ttime when the task transitions from the RUNNING state to\n\t\t\t\tSTOPPING.

" + "smithy.api#documentation": "

The Unix timestamp for the time when the task stops. More specifically, it's for the time when the\n\t\t\ttask transitions from the RUNNING state to STOPPING.

" } }, "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the task to help you categorize and organize the task.\n\t\t\tEach tag consists of a key and an optional value. You define both the key and\n\t\t\tvalue.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the task to help you categorize and organize the task. Each tag\n\t\t\tconsists of a key and an optional value. You define both the key and value.

\n

The following basic restrictions apply to tags:

\n " } }, "taskArn": { @@ -12299,7 +12352,7 @@ "target": "com.amazonaws.ecs#Long", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The version counter for the task. Every time a task experiences a change that starts a\n\t\t\tCloudWatch event, the version counter is incremented. If you replicate your Amazon ECS task state\n\t\t\twith CloudWatch Events, you can compare the version of a task reported by the Amazon ECS API\n\t\t\tactions with the version reported in CloudWatch Events for the task (inside the\n\t\t\t\tdetail object) to verify that the version in your event stream is\n\t\t\tcurrent.

" + "smithy.api#documentation": "

The version counter for the task. Every time a task experiences a change that starts a CloudWatch event,\n\t\t\tthe version counter is incremented. If you replicate your Amazon ECS task state with CloudWatch Events, you can\n\t\t\tcompare the version of a task reported by the Amazon ECS API actions with the version reported in CloudWatch\n\t\t\tEvents for the task (inside the detail object) to verify that the version in your event\n\t\t\tstream is current.

" } }, "ephemeralStorage": { @@ -12331,19 +12384,19 @@ "containerDefinitions": { "target": "com.amazonaws.ecs#ContainerDefinitions", "traits": { - "smithy.api#documentation": "

A list of container definitions in JSON format that describe the different containers\n\t\t\tthat make up your task. For more information about container definition parameters and\n\t\t\tdefaults, see Amazon ECS Task\n\t\t\t\tDefinitions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

A list of container definitions in JSON format that describe the different containers that make up\n\t\t\tyour task. For more information about container definition parameters and defaults, see Amazon ECS Task\n\t\t\t\tDefinitions in the Amazon Elastic Container Service Developer Guide.

" } }, "family": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The name of a family that this task definition is registered to. Up to 255 characters\n\t\t\tare allowed. Letters (both uppercase and lowercase letters), numbers, hyphens (-), and\n\t\t\tunderscores (_) are allowed.

\n

A family groups multiple versions of a task definition. Amazon ECS gives the first task\n\t\t\tdefinition that you registered to a family a revision number of 1. Amazon ECS gives\n\t\t\tsequential revision numbers to each task definition that you add.

" + "smithy.api#documentation": "

The name of a family that this task definition is registered to. Up to 255 characters are allowed.\n\t\t\tLetters (both uppercase and lowercase letters), numbers, hyphens (-), and underscores (_) are\n\t\t\tallowed.

\n

A family groups multiple versions of a task definition. Amazon ECS gives the first task definition that\n\t\t\tyou registered to a family a revision number of 1. Amazon ECS gives sequential revision numbers to each task\n\t\t\tdefinition that you add.

" } }, "taskRoleArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the Identity and Access Management role that grants containers in the\n\t\t\ttask permission to call Amazon Web Services APIs on your behalf. For informationabout the required\n\t\t\tIAM roles for Amazon ECS, see IAM\n\t\t\t\troles for Amazon ECS in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the Identity and Access Management role that grants containers in the task permission\n\t\t\tto call Amazon Web Services APIs on your behalf. For informationabout the required IAM roles for Amazon ECS, see IAM roles for Amazon ECS in the Amazon Elastic Container Service Developer Guide.

" } }, "executionRoleArn": { @@ -12355,20 +12408,20 @@ "networkMode": { "target": "com.amazonaws.ecs#NetworkMode", "traits": { - "smithy.api#documentation": "

The Docker networking mode to use for the containers in the task. The valid values are\n none, bridge, awsvpc, and host.\n If no network mode is specified, the default is bridge.

\n

For Amazon ECS tasks on Fargate, the awsvpc network mode is required. \n For Amazon ECS tasks on Amazon EC2 Linux instances, any network mode can be used. For Amazon ECS tasks on Amazon EC2 Windows instances, or awsvpc can be used. If the network\n mode is set to none, you cannot specify port mappings in your container\n definitions, and the tasks containers do not have external connectivity. The\n host and awsvpc network modes offer the highest networking\n performance for containers because they use the EC2 network stack instead of the\n virtualized network stack provided by the bridge mode.

\n

With the host and awsvpc network modes, exposed container\n ports are mapped directly to the corresponding host port (for the host\n network mode) or the attached elastic network interface port (for the\n awsvpc network mode), so you cannot take advantage of dynamic host port\n mappings.

\n \n

When using the host network mode, you should not run\n containers using the root user (UID 0). It is considered best practice\n to use a non-root user.

\n
\n

If the network mode is awsvpc, the task is allocated an elastic network\n interface, and you must specify a NetworkConfiguration value when you create\n a service or run a task with the task definition. For more information, see Task Networking in the\n Amazon Elastic Container Service Developer Guide.

\n

If the network mode is host, you cannot run multiple instantiations of the\n same task on a single container instance when port mappings are used.

\n

For more information, see Network\n settings in the Docker run reference.

" + "smithy.api#documentation": "

The Docker networking mode to use for the containers in the task. The valid values are\n none, bridge, awsvpc, and host.\n If no network mode is specified, the default is bridge.

\n

For Amazon ECS tasks on Fargate, the awsvpc network mode is required. \n For Amazon ECS tasks on Amazon EC2 Linux instances, any network mode can be used. For Amazon ECS tasks on Amazon EC2 Windows instances, or awsvpc can be used. If the network\n mode is set to none, you cannot specify port mappings in your container\n definitions, and the tasks containers do not have external connectivity. The\n host and awsvpc network modes offer the highest networking\n performance for containers because they use the EC2 network stack instead of the\n virtualized network stack provided by the bridge mode.

\n

With the host and awsvpc network modes, exposed container\n ports are mapped directly to the corresponding host port (for the host\n network mode) or the attached elastic network interface port (for the\n awsvpc network mode), so you cannot take advantage of dynamic host port\n mappings.

\n \n

When using the host network mode, you should not run\n containers using the root user (UID 0). It is considered best practice\n to use a non-root user.

\n
\n

If the network mode is awsvpc, the task is allocated an elastic network\n interface, and you must specify a NetworkConfiguration value when you create\n a service or run a task with the task definition. For more information, see Task Networking in the\n Amazon Elastic Container Service Developer Guide.

\n

If the network mode is host, you cannot run multiple instantiations of the\n same task on a single container instance when port mappings are used.

" } }, "revision": { "target": "com.amazonaws.ecs#Integer", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The revision of the task in a particular family. The revision is a version number of a\n\t\t\ttask definition in a family. When you register a task definition for the first time, the\n\t\t\trevision is 1. Each time that you register a new revision of a task\n\t\t\tdefinition in the same family, the revision value always increases by one. This is even\n\t\t\tif you deregistered previous revisions in this family.

" + "smithy.api#documentation": "

The revision of the task in a particular family. The revision is a version number of a task\n\t\t\tdefinition in a family. When you register a task definition for the first time, the revision is\n\t\t\t\t1. Each time that you register a new revision of a task definition in the same family,\n\t\t\tthe revision value always increases by one. This is even if you deregistered previous revisions in this\n\t\t\tfamily.

" } }, "volumes": { "target": "com.amazonaws.ecs#VolumeList", "traits": { - "smithy.api#documentation": "

The list of data volume definitions for the task. For more information, see Using data volumes in tasks in the Amazon Elastic Container Service Developer Guide.

\n \n

The host and sourcePath parameters aren't supported for\n\t\t\t\ttasks run on Fargate.

\n
" + "smithy.api#documentation": "

The list of data volume definitions for the task. For more information, see Using data\n\t\t\t\tvolumes in tasks in the Amazon Elastic Container Service Developer Guide.

\n \n

The host and sourcePath parameters aren't supported for tasks run on\n\t\t\t\tFargate.

\n
" } }, "status": { @@ -12380,7 +12433,7 @@ "requiresAttributes": { "target": "com.amazonaws.ecs#RequiresAttributes", "traits": { - "smithy.api#documentation": "

The container instance attributes required by your task. When an Amazon EC2 instance is\n\t\t\tregistered to your cluster, the Amazon ECS container agent assigns some standard attributes\n\t\t\tto the instance. You can apply custom attributes. These are specified as key-value pairs\n\t\t\tusing the Amazon ECS console or the PutAttributes API. These attributes are\n\t\t\tused when determining task placement for tasks hosted on Amazon EC2 instances. For more\n\t\t\tinformation, see Attributes in the Amazon Elastic Container Service Developer Guide.

\n \n

This parameter isn't supported for tasks run on Fargate.

\n
" + "smithy.api#documentation": "

The container instance attributes required by your task. When an Amazon EC2 instance is registered to your\n\t\t\tcluster, the Amazon ECS container agent assigns some standard attributes to the instance. You can apply\n\t\t\tcustom attributes. These are specified as key-value pairs using the Amazon ECS console or the PutAttributes API. These attributes are used when determining task placement for tasks\n\t\t\thosted on Amazon EC2 instances. For more information, see Attributes\n\t\t\tin the Amazon Elastic Container Service Developer Guide.

\n \n

This parameter isn't supported for tasks run on Fargate.

\n
" } }, "placementConstraints": { @@ -12392,31 +12445,31 @@ "compatibilities": { "target": "com.amazonaws.ecs#CompatibilityList", "traits": { - "smithy.api#documentation": "

Amazon ECS validates the task definition parameters with those supported by the launch type. For\n\t\t\tmore information, see Amazon ECS launch types\n\t\t\tin the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

Amazon ECS validates the task definition parameters with those supported by the launch type. For more\n\t\t\tinformation, see Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide.

" } }, "runtimePlatform": { "target": "com.amazonaws.ecs#RuntimePlatform", "traits": { - "smithy.api#documentation": "

The operating system that your task definitions are running on. A platform family is\n\t\t\tspecified only for tasks using the Fargate launch type.

\n

When you specify a task in a service, this value must match the\n\t\t\t\truntimePlatform value of the service.

" + "smithy.api#documentation": "

The operating system that your task definitions are running on. A platform family is specified only\n\t\t\tfor tasks using the Fargate launch type.

\n

When you specify a task in a service, this value must match the runtimePlatform value of\n\t\t\tthe service.

" } }, "requiresCompatibilities": { "target": "com.amazonaws.ecs#CompatibilityList", "traits": { - "smithy.api#documentation": "

The task launch types the task definition was validated against. The valid values are\n\t\t\t\tEC2, FARGATE, and EXTERNAL. For more\n\t\t\tinformation, see Amazon ECS launch types\n\t\t\tin the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The task launch types the task definition was validated against. The valid values are\n\t\t\t\tEC2, FARGATE, and EXTERNAL. For more information, see Amazon ECS launch\n\t\t\t\ttypes in the Amazon Elastic Container Service Developer Guide.

" } }, "cpu": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The number of cpu units used by the task. If you use the EC2 launch type,\n\t\t\tthis field is optional. Any value can be used. If you use the Fargate launch type, this\n\t\t\tfield is required. You must use one of the following values. The value that you choose\n\t\t\tdetermines your range of valid values for the memory parameter.

\n

If you use the EC2 launch type, this field is optional. Supported values\n\t\t\tare between 128 CPU units (0.125 vCPUs) and 10240\n\t\t\tCPU units (10 vCPUs).

\n

The CPU units cannot be less than 1 vCPU when you use Windows containers on\n\t\t\tFargate.

\n " + "smithy.api#documentation": "

The number of cpu units used by the task. If you use the EC2 launch type, this field is\n\t\t\toptional. Any value can be used. If you use the Fargate launch type, this field is required. You must\n\t\t\tuse one of the following values. The value that you choose determines your range of valid values for\n\t\t\tthe memory parameter.

\n

If you use the EC2 launch type, this field is optional. Supported values are between\n\t\t\t\t128 CPU units (0.125 vCPUs) and 10240 CPU units\n\t\t\t\t(10 vCPUs).

\n

The CPU units cannot be less than 1 vCPU when you use Windows containers on\n\t\t\tFargate.

\n " } }, "memory": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The amount (in MiB) of memory used by the task.

\n

If your tasks runs on Amazon EC2 instances, you must specify either a task-level memory\n\t\t\tvalue or a container-level memory value. This field is optional and any value can be\n\t\t\tused. If a task-level memory value is specified, the container-level memory value is\n\t\t\toptional. For more information regarding container-level memory and memory reservation,\n\t\t\tsee ContainerDefinition.

\n

If your tasks runs on Fargate, this field is required. You must use one of the\n\t\t\tfollowing values. The value you choose determines your range of valid values for the\n\t\t\t\tcpu parameter.

\n " + "smithy.api#documentation": "

The amount (in MiB) of memory used by the task.

\n

If your tasks runs on Amazon EC2 instances, you must specify either a task-level memory value or a\n\t\t\tcontainer-level memory value. This field is optional and any value can be used. If a task-level memory\n\t\t\tvalue is specified, the container-level memory value is optional. For more information regarding\n\t\t\tcontainer-level memory and memory reservation, see ContainerDefinition.

\n

If your tasks runs on Fargate, this field is required. You must use one of the following values.\n\t\t\tThe value you choose determines your range of valid values for the cpu parameter.

\n " } }, "inferenceAccelerators": { @@ -12428,19 +12481,19 @@ "pidMode": { "target": "com.amazonaws.ecs#PidMode", "traits": { - "smithy.api#documentation": "

The process namespace to use for the containers in the task. The valid\n values are host or task. On Fargate for\n Linux containers, the only valid value is task. For\n example, monitoring sidecars might need pidMode to access\n information about other containers running in the same task.

\n

If host is specified, all containers within the tasks\n that specified the host PID mode on the same container\n instance share the same process namespace with the host Amazon EC2\n instance.

\n

If task is specified, all containers within the specified\n task share the same process namespace.

\n

If no value is specified, the\n default is a private namespace for each container. For more information,\n see PID settings in the Docker run\n reference.

\n

If the host PID mode is used, there's a heightened risk\n of undesired process namespace exposure. For more information, see\n Docker security.

\n \n

This parameter is not supported for Windows containers.

\n
\n \n

This parameter is only supported for tasks that are hosted on\n Fargate if the tasks are using platform version 1.4.0 or later\n (Linux). This isn't supported for Windows containers on\n Fargate.

\n
" + "smithy.api#documentation": "

The process namespace to use for the containers in the task. The valid\n values are host or task. On Fargate for\n Linux containers, the only valid value is task. For\n example, monitoring sidecars might need pidMode to access\n information about other containers running in the same task.

\n

If host is specified, all containers within the tasks\n that specified the host PID mode on the same container\n instance share the same process namespace with the host Amazon EC2\n instance.

\n

If task is specified, all containers within the specified\n task share the same process namespace.

\n

If no value is specified, the\n default is a private namespace for each container.

\n

If the host PID mode is used, there's a heightened risk\n of undesired process namespace exposure.

\n \n

This parameter is not supported for Windows containers.

\n
\n \n

This parameter is only supported for tasks that are hosted on\n Fargate if the tasks are using platform version 1.4.0 or later\n (Linux). This isn't supported for Windows containers on\n Fargate.

\n
" } }, "ipcMode": { "target": "com.amazonaws.ecs#IpcMode", "traits": { - "smithy.api#documentation": "

The IPC resource namespace to use for the containers in the task. The valid values are\n host, task, or none. If host is\n specified, then all containers within the tasks that specified the host IPC\n mode on the same container instance share the same IPC resources with the host Amazon EC2\n instance. If task is specified, all containers within the specified task\n share the same IPC resources. If none is specified, then IPC resources\n within the containers of a task are private and not shared with other containers in a\n task or on the container instance. If no value is specified, then the IPC resource\n namespace sharing depends on the Docker daemon setting on the container instance. For\n more information, see IPC\n settings in the Docker run reference.

\n

If the host IPC mode is used, be aware that there is a heightened risk of\n undesired IPC namespace expose. For more information, see Docker\n security.

\n

If you are setting namespaced kernel parameters using systemControls for\n the containers in the task, the following will apply to your IPC resource namespace. For\n more information, see System\n Controls in the Amazon Elastic Container Service Developer Guide.

\n \n \n

This parameter is not supported for Windows containers or tasks run on Fargate.

\n
" + "smithy.api#documentation": "

The IPC resource namespace to use for the containers in the task. The valid values are\n host, task, or none. If host is\n specified, then all containers within the tasks that specified the host IPC\n mode on the same container instance share the same IPC resources with the host Amazon EC2\n instance. If task is specified, all containers within the specified task\n share the same IPC resources. If none is specified, then IPC resources\n within the containers of a task are private and not shared with other containers in a\n task or on the container instance. If no value is specified, then the IPC resource\n namespace sharing depends on the Docker daemon setting on the container instance.

\n

If the host IPC mode is used, be aware that there is a heightened risk of\n undesired IPC namespace expose.

\n

If you are setting namespaced kernel parameters using systemControls for\n the containers in the task, the following will apply to your IPC resource namespace. For\n more information, see System\n Controls in the Amazon Elastic Container Service Developer Guide.

\n \n \n

This parameter is not supported for Windows containers or tasks run on Fargate.

\n
" } }, "proxyConfiguration": { "target": "com.amazonaws.ecs#ProxyConfiguration", "traits": { - "smithy.api#documentation": "

The configuration details for the App Mesh proxy.

\n

Your Amazon ECS container instances require at least version 1.26.0 of the container agent\n\t\t\tand at least version 1.26.0-1 of the ecs-init package to use a proxy\n\t\t\tconfiguration. If your container instances are launched from the Amazon ECS optimized AMI\n\t\t\tversion 20190301 or later, they contain the required versions of the\n\t\t\tcontainer agent and ecs-init. For more information, see Amazon ECS-optimized Linux AMI in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The configuration details for the App Mesh proxy.

\n

Your Amazon ECS container instances require at least version 1.26.0 of the container agent and at least\n\t\t\tversion 1.26.0-1 of the ecs-init package to use a proxy configuration. If your container\n\t\t\tinstances are launched from the Amazon ECS optimized AMI version 20190301 or later, they\n\t\t\tcontain the required versions of the container agent and ecs-init. For more information,\n\t\t\tsee Amazon ECS-optimized Linux AMI in the Amazon Elastic Container Service Developer Guide.

" } }, "registeredAt": { @@ -12469,7 +12522,7 @@ } }, "traits": { - "smithy.api#documentation": "

The details of a task definition which describes the container and volume definitions\n\t\t\tof an Amazon Elastic Container Service task. You can specify which Docker images to use, the required\n\t\t\tresources, and other configurations related to launching the task definition through an\n\t\t\tAmazon ECS service or task.

" + "smithy.api#documentation": "

The details of a task definition which describes the container and volume definitions of an Amazon Elastic Container Service\n\t\t\ttask. You can specify which Docker images to use, the required resources, and other configurations\n\t\t\trelated to launching the task definition through an Amazon ECS service or task.

" } }, "com.amazonaws.ecs#TaskDefinitionFamilyStatus": { @@ -12524,18 +12577,18 @@ "type": { "target": "com.amazonaws.ecs#TaskDefinitionPlacementConstraintType", "traits": { - "smithy.api#documentation": "

The type of constraint. The MemberOf constraint restricts selection to be\n\t\t\tfrom a group of valid candidates.

" + "smithy.api#documentation": "

The type of constraint. The MemberOf constraint restricts selection to be from a group\n\t\t\tof valid candidates.

" } }, "expression": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

A cluster query language expression to apply to the constraint. For more information,\n\t\t\tsee Cluster query language in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

A cluster query language expression to apply to the constraint. For more information, see Cluster\n\t\t\t\tquery language in the Amazon Elastic Container Service Developer Guide.

" } } }, "traits": { - "smithy.api#documentation": "

The constraint on task placement in the task definition. For more information, see\n\t\t\t\tTask placement constraints in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

\n \n

Task placement constraints aren't supported for tasks run on Fargate.

\n
" + "smithy.api#documentation": "

The constraint on task placement in the task definition. For more information, see Task\n\t\t\t\tplacement constraints in the Amazon Elastic Container Service Developer Guide.

\n \n

Task placement constraints aren't supported for tasks run on Fargate.

\n
" } }, "com.amazonaws.ecs#TaskDefinitionPlacementConstraintType": { @@ -12585,13 +12638,13 @@ "target": "com.amazonaws.ecs#Integer", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The total amount, in GiB, of the ephemeral storage to set for the task. The minimum\n\t\t\tsupported value is 20 GiB and the maximum supported value is\u2028\n\t\t\t\t200 GiB.

" + "smithy.api#documentation": "

The total amount, in GiB, of the ephemeral storage to set for the task. The minimum supported value\n\t\t\tis 20 GiB and the maximum supported value is\u2028 200 GiB.

" } }, "kmsKeyId": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

Specify an Amazon Web Services Key Management Service key ID to encrypt the ephemeral storage for the\n\t\t\ttask.

" + "smithy.api#documentation": "

Specify an Key Management Service key ID to encrypt the ephemeral storage for the task.

" } } }, @@ -12651,73 +12704,73 @@ "encrypted": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

Indicates whether the volume should be encrypted. If no value is specified, encryption\n\t\t\tis turned on by default. This parameter maps 1:1 with the Encrypted\n\t\t\tparameter of the CreateVolume API in\n\t\t\tthe Amazon EC2 API Reference.

" + "smithy.api#documentation": "

Indicates whether the volume should be encrypted. If no value is specified, encryption is turned on\n\t\t\tby default. This parameter maps 1:1 with the Encrypted parameter of the CreateVolume\n\t\t\t\tAPI in the Amazon EC2 API Reference.

" } }, "kmsKeyId": { "target": "com.amazonaws.ecs#EBSKMSKeyId", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) identifier of the Amazon Web Services Key Management Service key to use for Amazon EBS encryption. When\n\t\t\tencryption is turned on and no Amazon Web Services Key Management Service key is specified, the default Amazon Web Services managed key\n\t\t\tfor Amazon EBS volumes is used. This parameter maps 1:1 with the KmsKeyId\n\t\t\tparameter of the CreateVolume API in\n\t\t\tthe Amazon EC2 API Reference.

\n \n

Amazon Web Services authenticates the Amazon Web Services Key Management Service key asynchronously. Therefore, if you specify an\n\t\t\t\tID, alias, or ARN that is invalid, the action can appear to complete, but\n\t\t\t\teventually fails.

\n
" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) identifier of the Amazon Web Services Key Management Service key to use for Amazon EBS encryption. When encryption is turned\n\t\t\ton and no Amazon Web Services Key Management Service key is specified, the default Amazon Web Services managed key for Amazon EBS volumes is used. This\n\t\t\tparameter maps 1:1 with the KmsKeyId parameter of the CreateVolume API in the\n\t\t\t\tAmazon EC2 API Reference.

\n \n

Amazon Web Services authenticates the Amazon Web Services Key Management Service key asynchronously. Therefore, if you specify an ID, alias, or\n\t\t\t\tARN that is invalid, the action can appear to complete, but eventually fails.

\n
" } }, "volumeType": { "target": "com.amazonaws.ecs#EBSVolumeType", "traits": { - "smithy.api#documentation": "

The volume type. This parameter maps 1:1 with the VolumeType parameter of\n\t\t\tthe CreateVolume API in the Amazon EC2 API Reference. For more\n\t\t\tinformation, see Amazon EBS volume types in\n\t\t\tthe Amazon EC2 User Guide.

\n

The following are the supported volume types.

\n " + "smithy.api#documentation": "

The volume type. This parameter maps 1:1 with the VolumeType parameter of the CreateVolume\n\t\t\t\tAPI in the Amazon EC2 API Reference. For more information, see Amazon EBS volume types\n\t\t\tin the Amazon EC2 User Guide.

\n

The following are the supported volume types.

\n " } }, "sizeInGiB": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The size of the volume in GiB. You must specify either a volume size or a snapshot ID.\n\t\t\tIf you specify a snapshot ID, the snapshot size is used for the volume size by default.\n\t\t\tYou can optionally specify a volume size greater than or equal to the snapshot size.\n\t\t\tThis parameter maps 1:1 with the Size parameter of the CreateVolume API in the Amazon EC2 API Reference.

\n

The following are the supported volume size values for each volume type.

\n " + "smithy.api#documentation": "

The size of the volume in GiB. You must specify either a volume size or a snapshot ID. If you specify\n\t\t\ta snapshot ID, the snapshot size is used for the volume size by default. You can optionally specify a\n\t\t\tvolume size greater than or equal to the snapshot size. This parameter maps 1:1 with the\n\t\t\t\tSize parameter of the CreateVolume API in the\n\t\t\t\tAmazon EC2 API Reference.

\n

The following are the supported volume size values for each volume type.

\n " } }, "snapshotId": { "target": "com.amazonaws.ecs#EBSSnapshotId", "traits": { - "smithy.api#documentation": "

The snapshot that Amazon ECS uses to create the volume. You must specify either a snapshot\n\t\t\tID or a volume size. This parameter maps 1:1 with the SnapshotId parameter\n\t\t\tof the CreateVolume API in\n\t\t\tthe Amazon EC2 API Reference.

" + "smithy.api#documentation": "

The snapshot that Amazon ECS uses to create the volume. You must specify either a snapshot ID or a volume\n\t\t\tsize. This parameter maps 1:1 with the SnapshotId parameter of the CreateVolume\n\t\t\t\tAPI in the Amazon EC2 API Reference.

" } }, "iops": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The number of I/O operations per second (IOPS). For gp3,\n\t\t\tio1, and io2 volumes, this represents the number of IOPS that\n\t\t\tare provisioned for the volume. For gp2 volumes, this represents the\n\t\t\tbaseline performance of the volume and the rate at which the volume accumulates I/O\n\t\t\tcredits for bursting.

\n

The following are the supported values for each volume type.

\n \n

This parameter is required for io1 and io2 volume types. The\n\t\t\tdefault for gp3 volumes is 3,000 IOPS. This parameter is not\n\t\t\tsupported for st1, sc1, or standard volume\n\t\t\ttypes.

\n

This parameter maps 1:1 with the Iops parameter of the CreateVolume API in the Amazon EC2 API Reference.

" + "smithy.api#documentation": "

The number of I/O operations per second (IOPS). For gp3, io1, and\n\t\t\t\tio2 volumes, this represents the number of IOPS that are provisioned for the volume.\n\t\t\tFor gp2 volumes, this represents the baseline performance of the volume and the rate at\n\t\t\twhich the volume accumulates I/O credits for bursting.

\n

The following are the supported values for each volume type.

\n \n

This parameter is required for io1 and io2 volume types. The default for\n\t\t\t\tgp3 volumes is 3,000 IOPS. This parameter is not supported for\n\t\t\t\tst1, sc1, or standard volume types.

\n

This parameter maps 1:1 with the Iops parameter of the CreateVolume API in the\n\t\t\t\tAmazon EC2 API Reference.

" } }, "throughput": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The throughput to provision for a volume, in MiB/s, with a maximum of 1,000 MiB/s.\n\t\t\tThis parameter maps 1:1 with the Throughput parameter of the CreateVolume API in the Amazon EC2 API Reference.

\n \n

This parameter is only supported for the gp3 volume type.

\n
" + "smithy.api#documentation": "

The throughput to provision for a volume, in MiB/s, with a maximum of 1,000 MiB/s. This parameter\n\t\t\tmaps 1:1 with the Throughput parameter of the CreateVolume API in the\n\t\t\t\tAmazon EC2 API Reference.

\n \n

This parameter is only supported for the gp3 volume type.

\n
" } }, "tagSpecifications": { "target": "com.amazonaws.ecs#EBSTagSpecifications", "traits": { - "smithy.api#documentation": "

The tags to apply to the volume. Amazon ECS applies service-managed tags by default. This\n\t\t\tparameter maps 1:1 with the TagSpecifications.N parameter of the CreateVolume API in the Amazon EC2 API Reference.

" + "smithy.api#documentation": "

The tags to apply to the volume. Amazon ECS applies service-managed tags by default. This parameter maps\n\t\t\t1:1 with the TagSpecifications.N parameter of the CreateVolume API in the\n\t\t\t\tAmazon EC2 API Reference.

" } }, "roleArn": { "target": "com.amazonaws.ecs#IAMRoleArn", "traits": { - "smithy.api#documentation": "

The ARN of the IAM role to associate with this volume. This is the Amazon ECS\n\t\t\tinfrastructure IAM role that is used to manage your Amazon Web Services infrastructure. We recommend\n\t\t\tusing the Amazon ECS-managed AmazonECSInfrastructureRolePolicyForVolumes IAM\n\t\t\tpolicy with this role. For more information, see Amazon ECS\n\t\t\t\tinfrastructure IAM role in the Amazon ECS Developer\n\t\t\tGuide.

", + "smithy.api#documentation": "

The ARN of the IAM role to associate with this volume. This is the Amazon ECS infrastructure IAM role\n\t\t\tthat is used to manage your Amazon Web Services infrastructure. We recommend using the Amazon ECS-managed\n\t\t\t\tAmazonECSInfrastructureRolePolicyForVolumes IAM policy with this role. For more\n\t\t\tinformation, see Amazon ECS infrastructure IAM\n\t\t\t\trole in the Amazon ECS Developer Guide.

", "smithy.api#required": {} } }, "terminationPolicy": { "target": "com.amazonaws.ecs#TaskManagedEBSVolumeTerminationPolicy", "traits": { - "smithy.api#documentation": "

The termination policy for the volume when the task exits. This provides a way to\n\t\t\tcontrol whether Amazon ECS terminates the Amazon EBS volume when the task stops.

" + "smithy.api#documentation": "

The termination policy for the volume when the task exits. This provides a way to control whether\n\t\t\tAmazon ECS terminates the Amazon EBS volume when the task stops.

" } }, "filesystemType": { "target": "com.amazonaws.ecs#TaskFilesystemType", "traits": { - "smithy.api#documentation": "

The Linux filesystem type for the volume. For volumes created from a snapshot, you\n\t\t\tmust specify the same filesystem type that the volume was using when the snapshot was\n\t\t\tcreated. If there is a filesystem type mismatch, the task will fail to start.

\n

The available filesystem types are\u2028 ext3, ext4, and\n\t\t\t\txfs. If no value is specified, the xfs filesystem type is\n\t\t\tused by default.

" + "smithy.api#documentation": "

The Linux filesystem type for the volume. For volumes created from a snapshot, you must specify the\n\t\t\tsame filesystem type that the volume was using when the snapshot was created. If there is a filesystem\n\t\t\ttype mismatch, the task will fail to start.

\n

The available filesystem types are\u2028 ext3, ext4, and xfs. If no\n\t\t\tvalue is specified, the xfs filesystem type is used by default.

" } } }, "traits": { - "smithy.api#documentation": "

The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf.\n\t\t\tThese settings are used to create each Amazon EBS volume, with one volume created for each\n\t\t\ttask.

" + "smithy.api#documentation": "

The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These settings\n\t\t\tare used to create each Amazon EBS volume, with one volume created for each task.

" } }, "com.amazonaws.ecs#TaskManagedEBSVolumeTerminationPolicy": { @@ -12726,13 +12779,13 @@ "deleteOnTermination": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

Indicates whether the volume should be deleted on when the task stops. If a value of\n\t\t\t\ttrue is specified, \u2028Amazon ECS deletes the Amazon EBS volume on your behalf when\n\t\t\tthe task goes into the STOPPED state. If no value is specified, the\n\t\t\t\u2028default value is true is used. When set to false, Amazon ECS\n\t\t\tleaves the volume in your \u2028account.

", + "smithy.api#documentation": "

Indicates whether the volume should be deleted on when the task stops. If a value of\n\t\t\t\ttrue is specified, \u2028Amazon ECS deletes the Amazon EBS volume on your behalf when the task goes\n\t\t\tinto the STOPPED state. If no value is specified, the \u2028default value is true\n\t\t\tis used. When set to false, Amazon ECS leaves the volume in your \u2028account.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

The termination policy for the Amazon EBS volume when the task exits. For more information,\n\t\t\tsee Amazon ECS volume termination policy.

" + "smithy.api#documentation": "

The termination policy for the Amazon EBS volume when the task exits. For more information, see Amazon ECS\n\t\t\t\tvolume termination policy.

" } }, "com.amazonaws.ecs#TaskOverride": { @@ -12759,7 +12812,7 @@ "executionRoleArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the task execution role override for the task. For more information,\n\t\t\tsee Amazon ECS task\n\t\t\t\texecution IAM role in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the task execution role override for the task. For more information, see Amazon ECS task\n\t\t\t\texecution IAM role in the Amazon Elastic Container Service Developer Guide.

" } }, "memory": { @@ -12771,13 +12824,13 @@ "taskRoleArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the role that containers in this task can assume. All containers in\n\t\t\tthis task are granted the permissions that are specified in this role. For more\n\t\t\tinformation, see IAM Role for Tasks\n\t\t\tin the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the role that containers in this task can assume. All containers in this task are\n\t\t\tgranted the permissions that are specified in this role. For more information, see IAM Role for\n\t\t\t\tTasks in the Amazon Elastic Container Service Developer Guide.

" } }, "ephemeralStorage": { "target": "com.amazonaws.ecs#EphemeralStorage", "traits": { - "smithy.api#documentation": "

The ephemeral storage setting override for the task.

\n \n

This parameter is only supported for tasks hosted on Fargate that\n\t\t\t\tuse the following platform versions:

\n \n
" + "smithy.api#documentation": "

The ephemeral storage setting override for the task.

\n \n

This parameter is only supported for tasks hosted on Fargate that use the following\n\t\t\t\tplatform versions:

\n \n
" } } }, @@ -12809,25 +12862,25 @@ "clusterArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the cluster that the service that hosts the task set exists\n\t\t\tin.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the cluster that the service that hosts the task set exists in.

" } }, "startedBy": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The tag specified when a task set is started. If an CodeDeploy deployment created the task\n\t\t\tset, the startedBy parameter is CODE_DEPLOY. If an external\n\t\t\tdeployment created the task set, the startedBy field isn't used.

" + "smithy.api#documentation": "

The tag specified when a task set is started. If an CodeDeploy deployment created the task set, the\n\t\t\t\tstartedBy parameter is CODE_DEPLOY. If an external deployment created the\n\t\t\ttask set, the startedBy field isn't used.

" } }, "externalId": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The external ID associated with the task set.

\n

If an CodeDeploy deployment created a task set, the externalId parameter\n\t\t\tcontains the CodeDeploy deployment ID.

\n

If a task set is created for an external deployment and is associated with a service\n\t\t\tdiscovery registry, the externalId parameter contains the\n\t\t\t\tECS_TASK_SET_EXTERNAL_ID Cloud Map attribute.

" + "smithy.api#documentation": "

The external ID associated with the task set.

\n

If an CodeDeploy deployment created a task set, the externalId parameter contains the CodeDeploy\n\t\t\tdeployment ID.

\n

If a task set is created for an external deployment and is associated with a service discovery\n\t\t\tregistry, the externalId parameter contains the ECS_TASK_SET_EXTERNAL_ID\n\t\t\tCloud Map attribute.

" } }, "status": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The status of the task set. The following describes each state.

\n
\n
PRIMARY
\n
\n

The task set is serving production traffic.

\n
\n
ACTIVE
\n
\n

The task set isn't serving production traffic.

\n
\n
DRAINING
\n
\n

The tasks in the task set are being stopped, and their corresponding\n\t\t\t\t\t\ttargets are being deregistered from their target group.

\n
\n
" + "smithy.api#documentation": "

The status of the task set. The following describes each state.

\n
\n
PRIMARY
\n
\n

The task set is serving production traffic.

\n
\n
ACTIVE
\n
\n

The task set isn't serving production traffic.

\n
\n
DRAINING
\n
\n

The tasks in the task set are being stopped, and their corresponding targets are being\n\t\t\t\t\t\tderegistered from their target group.

\n
\n
" } }, "taskDefinition": { @@ -12840,21 +12893,21 @@ "target": "com.amazonaws.ecs#Integer", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The computed desired count for the task set. This is calculated by multiplying the\n\t\t\tservice's desiredCount by the task set's scale percentage. The\n\t\t\tresult is always rounded up. For example, if the computed desired count is 1.2, it\n\t\t\trounds up to 2 tasks.

" + "smithy.api#documentation": "

The computed desired count for the task set. This is calculated by multiplying the service's\n\t\t\t\tdesiredCount by the task set's scale percentage. The result is always\n\t\t\trounded up. For example, if the computed desired count is 1.2, it rounds up to 2 tasks.

" } }, "pendingCount": { "target": "com.amazonaws.ecs#Integer", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The number of tasks in the task set that are in the PENDING status during\n\t\t\ta deployment. A task in the PENDING state is preparing to enter the\n\t\t\t\tRUNNING state. A task set enters the PENDING status when\n\t\t\tit launches for the first time or when it's restarted after being in the\n\t\t\t\tSTOPPED state.

" + "smithy.api#documentation": "

The number of tasks in the task set that are in the PENDING status during a deployment.\n\t\t\tA task in the PENDING state is preparing to enter the RUNNING state. A task\n\t\t\tset enters the PENDING status when it launches for the first time or when it's restarted\n\t\t\tafter being in the STOPPED state.

" } }, "runningCount": { "target": "com.amazonaws.ecs#Integer", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The number of tasks in the task set that are in the RUNNING status during\n\t\t\ta deployment. A task in the RUNNING state is running and ready for\n\t\t\tuse.

" + "smithy.api#documentation": "

The number of tasks in the task set that are in the RUNNING status during a deployment.\n\t\t\tA task in the RUNNING state is running and ready for use.

" } }, "createdAt": { @@ -12872,7 +12925,7 @@ "launchType": { "target": "com.amazonaws.ecs#LaunchType", "traits": { - "smithy.api#documentation": "

The launch type the tasks in the task set are using. For more information, see Amazon ECS\n\t\t\t\tlaunch types in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The launch type the tasks in the task set are using. For more information, see Amazon ECS launch\n\t\t\t\ttypes in the Amazon Elastic Container Service Developer Guide.

" } }, "capacityProviderStrategy": { @@ -12884,13 +12937,13 @@ "platformVersion": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Fargate platform version where the tasks in the task set are running. A platform\n\t\t\tversion is only specified for tasks run on Fargate. For more information, see Fargate platform versions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The Fargate platform version where the tasks in the task set are running. A platform version is\n\t\t\tonly specified for tasks run on Fargate. For more information, see Fargate platform versions in\n\t\t\tthe Amazon Elastic Container Service Developer Guide.

" } }, "platformFamily": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The operating system that your tasks in the set are running on. A platform family is\n\t\t\tspecified only for tasks that use the Fargate launch type.

\n

All tasks in the set must have the same value.

" + "smithy.api#documentation": "

The operating system that your tasks in the set are running on. A platform family is specified only\n\t\t\tfor tasks that use the Fargate launch type.

\n

All tasks in the set must have the same value.

" } }, "networkConfiguration": { @@ -12908,31 +12961,31 @@ "serviceRegistries": { "target": "com.amazonaws.ecs#ServiceRegistries", "traits": { - "smithy.api#documentation": "

The details for the service discovery registries to assign to this task set. For more\n\t\t\tinformation, see Service\n\t\t\t\tdiscovery.

" + "smithy.api#documentation": "

The details for the service discovery registries to assign to this task set. For more information,\n\t\t\tsee Service\n\t\t\t\tdiscovery.

" } }, "scale": { "target": "com.amazonaws.ecs#Scale", "traits": { - "smithy.api#documentation": "

A floating-point percentage of your desired number of tasks to place and keep running\n\t\t\tin the task set.

" + "smithy.api#documentation": "

A floating-point percentage of your desired number of tasks to place and keep running in the task\n\t\t\tset.

" } }, "stabilityStatus": { "target": "com.amazonaws.ecs#StabilityStatus", "traits": { - "smithy.api#documentation": "

The stability status. This indicates whether the task set has reached a steady state.\n\t\t\tIf the following conditions are met, the task set are in\n\t\t\tSTEADY_STATE:

\n \n

If any of those conditions aren't met, the stability status returns\n\t\t\t\tSTABILIZING.

" + "smithy.api#documentation": "

The stability status. This indicates whether the task set has reached a steady state. If the\n\t\t\tfollowing conditions are met, the task set are in STEADY_STATE:

\n \n

If any of those conditions aren't met, the stability status returns STABILIZING.

" } }, "stabilityStatusAt": { "target": "com.amazonaws.ecs#Timestamp", "traits": { - "smithy.api#documentation": "

The Unix timestamp for the time when the task set stability status was\n\t\t\tretrieved.

" + "smithy.api#documentation": "

The Unix timestamp for the time when the task set stability status was retrieved.

" } }, "tags": { "target": "com.amazonaws.ecs#Tags", "traits": { - "smithy.api#documentation": "

The metadata that you apply to the task set to help you categorize and organize them.\n\t\t\tEach tag consists of a key and an optional value. You define both.

\n

The following basic restrictions apply to tags:

\n " + "smithy.api#documentation": "

The metadata that you apply to the task set to help you categorize and organize them. Each tag\n\t\t\tconsists of a key and an optional value. You define both.

\n

The following basic restrictions apply to tags:

\n " } }, "fargateEphemeralStorage": { @@ -12943,7 +12996,7 @@ } }, "traits": { - "smithy.api#documentation": "

Information about a set of Amazon ECS tasks in either an CodeDeploy or an EXTERNAL\n\t\t\tdeployment. An Amazon ECS task set includes details such as the desired number of tasks, how\n\t\t\tmany tasks are running, and whether the task set serves production traffic.

" + "smithy.api#documentation": "

Information about a set of Amazon ECS tasks in either an CodeDeploy or an EXTERNAL deployment. An\n\t\t\tAmazon ECS task set includes details such as the desired number of tasks, how many tasks are running, and\n\t\t\twhether the task set serves production traffic.

" } }, "com.amazonaws.ecs#TaskSetField": { @@ -12974,7 +13027,7 @@ } }, "traits": { - "smithy.api#documentation": "

The specified task set wasn't found. You can view your available task sets with DescribeTaskSets. Task sets are specific to each cluster, service and\n\t\t\tRegion.

", + "smithy.api#documentation": "

The specified task set wasn't found. You can view your available task sets with DescribeTaskSets. Task sets are specific to each cluster, service and Region.

", "smithy.api#error": "client" } }, @@ -13031,19 +13084,19 @@ "name": { "target": "com.amazonaws.ecs#ECSVolumeName", "traits": { - "smithy.api#documentation": "

The name of the volume. This value must match the volume name from the\n\t\t\t\tVolume object in the task definition.

", + "smithy.api#documentation": "

The name of the volume. This value must match the volume name from the Volume object in\n\t\t\tthe task definition.

", "smithy.api#required": {} } }, "managedEBSVolume": { "target": "com.amazonaws.ecs#TaskManagedEBSVolumeConfiguration", "traits": { - "smithy.api#documentation": "

The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf.\n\t\t\tThese settings are used to create each Amazon EBS volume, with one volume created for each\n\t\t\ttask. The Amazon EBS volumes are visible in your account in the Amazon EC2 console once they are\n\t\t\tcreated.

" + "smithy.api#documentation": "

The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These settings\n\t\t\tare used to create each Amazon EBS volume, with one volume created for each task. The Amazon EBS volumes are\n\t\t\tvisible in your account in the Amazon EC2 console once they are created.

" } } }, "traits": { - "smithy.api#documentation": "

Configuration settings for the task volume that was configuredAtLaunch\n\t\t\tthat weren't set during RegisterTaskDef.

" + "smithy.api#documentation": "

Configuration settings for the task volume that was configuredAtLaunch that weren't set\n\t\t\tduring RegisterTaskDef.

" } }, "com.amazonaws.ecs#TaskVolumeConfigurations": { @@ -13064,18 +13117,18 @@ "idleTimeoutSeconds": { "target": "com.amazonaws.ecs#Duration", "traits": { - "smithy.api#documentation": "

The amount of time in seconds a connection will stay active while idle. A value of\n\t\t\t\t0 can be set to disable idleTimeout.

\n

The idleTimeout default for\n\t\t\t\tHTTP/HTTP2/GRPC is 5 minutes.

\n

The idleTimeout default for TCP is 1 hour.

" + "smithy.api#documentation": "

The amount of time in seconds a connection will stay active while idle. A value of 0 can\n\t\t\tbe set to disable idleTimeout.

\n

The idleTimeout default for HTTP/HTTP2/GRPC is 5\n\t\t\tminutes.

\n

The idleTimeout default for TCP is 1 hour.

" } }, "perRequestTimeoutSeconds": { "target": "com.amazonaws.ecs#Duration", "traits": { - "smithy.api#documentation": "

The amount of time waiting for the upstream to respond with a complete response per\n\t\t\trequest. A value of 0 can be set to disable perRequestTimeout.\n\t\t\t\tperRequestTimeout can only be set if Service Connect\n\t\t\t\tappProtocol isn't TCP. Only idleTimeout is\n\t\t\tallowed for TCP\n appProtocol.

" + "smithy.api#documentation": "

The amount of time waiting for the upstream to respond with a complete response per request. A value\n\t\t\tof 0 can be set to disable perRequestTimeout. perRequestTimeout\n\t\t\tcan only be set if Service Connect appProtocol isn't TCP. Only\n\t\t\t\tidleTimeout is allowed for TCP\n appProtocol.

" } } }, "traits": { - "smithy.api#documentation": "

An object that represents the timeout configurations for Service Connect.

\n \n

If idleTimeout is set to a time that is less than\n\t\t\t\t\tperRequestTimeout, the connection will close when the\n\t\t\t\t\tidleTimeout is reached and not the\n\t\t\t\tperRequestTimeout.

\n
" + "smithy.api#documentation": "

An object that represents the timeout configurations for Service Connect.

\n \n

If idleTimeout is set to a time that is less than perRequestTimeout,\n\t\t\t\tthe connection will close when the idleTimeout is reached and not the\n\t\t\t\t\tperRequestTimeout.

\n
" } }, "com.amazonaws.ecs#Timestamp": { @@ -13102,7 +13155,7 @@ "mountOptions": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The list of tmpfs volume mount options.

\n

Valid values: \"defaults\" | \"ro\" | \"rw\" | \"suid\" | \"nosuid\" | \"dev\" | \"nodev\" |\n\t\t\t\t\"exec\" | \"noexec\" | \"sync\" | \"async\" | \"dirsync\" | \"remount\" | \"mand\" | \"nomand\" |\n\t\t\t\t\"atime\" | \"noatime\" | \"diratime\" | \"nodiratime\" | \"bind\" | \"rbind\" | \"unbindable\" |\n\t\t\t\t\"runbindable\" | \"private\" | \"rprivate\" | \"shared\" | \"rshared\" | \"slave\" | \"rslave\" |\n\t\t\t\t\"relatime\" | \"norelatime\" | \"strictatime\" | \"nostrictatime\" | \"mode\" | \"uid\" | \"gid\"\n\t\t\t\t| \"nr_inodes\" | \"nr_blocks\" | \"mpol\"\n

" + "smithy.api#documentation": "

The list of tmpfs volume mount options.

\n

Valid values: \"defaults\" | \"ro\" | \"rw\" | \"suid\" | \"nosuid\" | \"dev\" | \"nodev\" | \"exec\" |\n\t\t\t\t\"noexec\" | \"sync\" | \"async\" | \"dirsync\" | \"remount\" | \"mand\" | \"nomand\" | \"atime\" | \"noatime\" |\n\t\t\t\t\"diratime\" | \"nodiratime\" | \"bind\" | \"rbind\" | \"unbindable\" | \"runbindable\" | \"private\" |\n\t\t\t\t\"rprivate\" | \"shared\" | \"rshared\" | \"slave\" | \"rslave\" | \"relatime\" | \"norelatime\" | \"strictatime\"\n\t\t\t\t| \"nostrictatime\" | \"mode\" | \"uid\" | \"gid\" | \"nr_inodes\" | \"nr_blocks\" | \"mpol\"\n

" } } }, @@ -13147,7 +13200,7 @@ "target": "com.amazonaws.ecs#Integer", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The soft limit for the ulimit type. The value can be specified in bytes, seconds, or as a count, depending on the type of the ulimit.

", + "smithy.api#documentation": "

The soft limit for the ulimit type. The value can be specified in bytes, seconds, or as\n\t\t\ta count, depending on the type of the ulimit.

", "smithy.api#required": {} } }, @@ -13155,13 +13208,13 @@ "target": "com.amazonaws.ecs#Integer", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The hard limit for the ulimit type. The value can be specified in bytes, seconds, or as a count, depending on the type of the ulimit.

", + "smithy.api#documentation": "

The hard limit for the ulimit type. The value can be specified in bytes, seconds, or as\n\t\t\ta count, depending on the type of the ulimit.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

The ulimit settings to pass to the container.

\n

Amazon ECS tasks hosted on Fargate use the default\n\t\t\t\t\t\t\tresource limit values set by the operating system with the exception of\n\t\t\t\t\t\t\tthe nofile resource limit parameter which Fargate\n\t\t\t\t\t\t\toverrides. The nofile resource limit sets a restriction on\n\t\t\t\t\t\t\tthe number of open files that a container can use. The default\n\t\t\t\t\t\t\t\tnofile soft limit is 65535 and the default hard limit\n\t\t\t\t\t\t\tis 65535.

\n

You can specify the ulimit settings for a container in a task\n\t\t\tdefinition.

" + "smithy.api#documentation": "

The ulimit settings to pass to the container.

\n

Amazon ECS tasks hosted on Fargate use the default\n\t\t\t\t\t\t\tresource limit values set by the operating system with the exception of\n\t\t\t\t\t\t\tthe nofile resource limit parameter which Fargate\n\t\t\t\t\t\t\toverrides. The nofile resource limit sets a restriction on\n\t\t\t\t\t\t\tthe number of open files that a container can use. The default\n\t\t\t\t\t\t\t\tnofile soft limit is 65535 and the default hard limit\n\t\t\t\t\t\t\tis 65535.

\n

You can specify the ulimit settings for a container in a task definition.

" } }, "com.amazonaws.ecs#UlimitList": { @@ -13328,7 +13381,7 @@ "resourceArn": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource to delete tags from. Currently, the supported resources\n\t\t\tare Amazon ECS capacity providers, tasks, services, task definitions, clusters, and container\n\t\t\tinstances.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource to delete tags from. Currently, the supported resources are Amazon ECS\n\t\t\tcapacity providers, tasks, services, task definitions, clusters, and container instances.

", "smithy.api#required": {} } }, @@ -13525,7 +13578,7 @@ "settings": { "target": "com.amazonaws.ecs#ClusterSettings", "traits": { - "smithy.api#documentation": "

The setting to use by default for a cluster. This parameter is used to turn on CloudWatch\n\t\t\tContainer Insights for a cluster. If this value is specified, it overrides the\n\t\t\tcontainerInsights value set with PutAccountSetting or\n\t\t\tPutAccountSettingDefault.

\n \n

Currently, if you delete an existing cluster that does not have Container Insights\n\t\t\t\tturned on, and then create a new cluster with the same name with Container Insights\n\t\t\t\ttuned on, Container Insights will not actually be turned on. If you want to preserve\n\t\t\t\tthe same name for your existing cluster and turn on Container Insights, you must\n\t\t\t\twait 7 days before you can re-create it.

\n
", + "smithy.api#documentation": "

The setting to use by default for a cluster. This parameter is used to turn on CloudWatch Container\n\t\t\tInsights for a cluster. If this value is specified, it overrides the containerInsights\n\t\t\tvalue set with PutAccountSetting or PutAccountSettingDefault.

\n \n

Currently, if you delete an existing cluster that does not have Container Insights turned on, and\n\t\t\t\tthen create a new cluster with the same name with Container Insights tuned on, Container Insights\n\t\t\t\twill not actually be turned on. If you want to preserve the same name for your existing cluster and\n\t\t\t\tturn on Container Insights, you must wait 7 days before you can re-create it.

\n
", "smithy.api#required": {} } } @@ -13580,7 +13633,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the Amazon ECS container agent on a specified container instance. Updating the\n\t\t\tAmazon ECS container agent doesn't interrupt running tasks or services on the container\n\t\t\tinstance. The process for updating the agent differs depending on whether your container\n\t\t\tinstance was launched with the Amazon ECS-optimized AMI or another operating system.

\n \n

The UpdateContainerAgent API isn't supported for container instances\n\t\t\t\tusing the Amazon ECS-optimized Amazon Linux 2 (arm64) AMI. To update the container agent,\n\t\t\t\tyou can update the ecs-init package. This updates the agent. For more\n\t\t\t\tinformation, see Updating the\n\t\t\t\t\tAmazon ECS container agent in the Amazon Elastic Container Service Developer Guide.

\n
\n \n

Agent updates with the UpdateContainerAgent API operation do not\n\t\t\t\tapply to Windows container instances. We recommend that you launch new container\n\t\t\t\tinstances to update the agent version in your Windows clusters.

\n
\n

The UpdateContainerAgent API requires an Amazon ECS-optimized AMI or Amazon\n\t\t\tLinux AMI with the ecs-init service installed and running. For help\n\t\t\tupdating the Amazon ECS container agent on other operating systems, see Manually updating the Amazon ECS container agent in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

Updates the Amazon ECS container agent on a specified container instance. Updating the Amazon ECS container\n\t\t\tagent doesn't interrupt running tasks or services on the container instance. The process for updating\n\t\t\tthe agent differs depending on whether your container instance was launched with the Amazon ECS-optimized\n\t\t\tAMI or another operating system.

\n \n

The UpdateContainerAgent API isn't supported for container instances using the\n\t\t\t\tAmazon ECS-optimized Amazon Linux 2 (arm64) AMI. To update the container agent, you can update the\n\t\t\t\t\tecs-init package. This updates the agent. For more information, see Updating\n\t\t\t\t\tthe Amazon ECS container agent in the Amazon Elastic Container Service Developer Guide.

\n
\n \n

Agent updates with the UpdateContainerAgent API operation do not apply to Windows\n\t\t\t\tcontainer instances. We recommend that you launch new container instances to update the agent\n\t\t\t\tversion in your Windows clusters.

\n
\n

The UpdateContainerAgent API requires an Amazon ECS-optimized AMI or Amazon Linux AMI with\n\t\t\tthe ecs-init service installed and running. For help updating the Amazon ECS container agent on\n\t\t\tother operating systems, see Manually updating\n\t\t\t\tthe Amazon ECS container agent in the Amazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#UpdateContainerAgentRequest": { @@ -13589,13 +13642,13 @@ "cluster": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that your container instance is\n\t\t\trunning on. If you do not specify a cluster, the default cluster is assumed.

" + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that your container instance is running on.\n\t\t\tIf you do not specify a cluster, the default cluster is assumed.

" } }, "containerInstance": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The container instance ID or full ARN entries for the container instance where you\n\t\t\twould like to update the Amazon ECS container agent.

", + "smithy.api#documentation": "

The container instance ID or full ARN entries for the container instance where you would like to\n\t\t\tupdate the Amazon ECS container agent.

", "smithy.api#required": {} } } @@ -13641,7 +13694,7 @@ } ], "traits": { - "smithy.api#documentation": "

Modifies the status of an Amazon ECS container instance.

\n

Once a container instance has reached an ACTIVE state, you can change the\n\t\t\tstatus of a container instance to DRAINING to manually remove an instance\n\t\t\tfrom a cluster, for example to perform system updates, update the Docker daemon, or\n\t\t\tscale down the cluster size.

\n \n

A container instance can't be changed to DRAINING until it has\n\t\t\t\treached an ACTIVE status. If the instance is in any other status, an\n\t\t\t\terror will be received.

\n
\n

When you set a container instance to DRAINING, Amazon ECS prevents new tasks\n\t\t\tfrom being scheduled for placement on the container instance and replacement service\n\t\t\ttasks are started on other container instances in the cluster if the resources are\n\t\t\tavailable. Service tasks on the container instance that are in the PENDING\n\t\t\tstate are stopped immediately.

\n

Service tasks on the container instance that are in the RUNNING state are\n\t\t\tstopped and replaced according to the service's deployment configuration parameters,\n\t\t\t\tminimumHealthyPercent and maximumPercent. You can change\n\t\t\tthe deployment configuration of your service using UpdateService.

\n \n

Any PENDING or RUNNING tasks that do not belong to a service\n\t\t\taren't affected. You must wait for them to finish or stop them manually.

\n

A container instance has completed draining when it has no more RUNNING\n\t\t\ttasks. You can verify this using ListTasks.

\n

When a container instance has been drained, you can set a container instance to\n\t\t\t\tACTIVE status and once it has reached that status the Amazon ECS scheduler\n\t\t\tcan begin scheduling tasks on the instance again.

" + "smithy.api#documentation": "

Modifies the status of an Amazon ECS container instance.

\n

Once a container instance has reached an ACTIVE state, you can change the status of a\n\t\t\tcontainer instance to DRAINING to manually remove an instance from a cluster, for example\n\t\t\tto perform system updates, update the Docker daemon, or scale down the cluster size.

\n \n

A container instance can't be changed to DRAINING until it has reached an\n\t\t\t\t\tACTIVE status. If the instance is in any other status, an error will be\n\t\t\t\treceived.

\n
\n

When you set a container instance to DRAINING, Amazon ECS prevents new tasks from being\n\t\t\tscheduled for placement on the container instance and replacement service tasks are started on other\n\t\t\tcontainer instances in the cluster if the resources are available. Service tasks on the container\n\t\t\tinstance that are in the PENDING state are stopped immediately.

\n

Service tasks on the container instance that are in the RUNNING state are stopped and\n\t\t\treplaced according to the service's deployment configuration parameters,\n\t\t\t\tminimumHealthyPercent and maximumPercent. You can change the deployment\n\t\t\tconfiguration of your service using UpdateService.

\n \n

Any PENDING or RUNNING tasks that do not belong to a service aren't\n\t\t\taffected. You must wait for them to finish or stop them manually.

\n

A container instance has completed draining when it has no more RUNNING tasks. You can\n\t\t\tverify this using ListTasks.

\n

When a container instance has been drained, you can set a container instance to ACTIVE\n\t\t\tstatus and once it has reached that status the Amazon ECS scheduler can begin scheduling tasks on the\n\t\t\tinstance again.

" } }, "com.amazonaws.ecs#UpdateContainerInstancesStateRequest": { @@ -13650,7 +13703,7 @@ "cluster": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instance to\n\t\t\tupdate. If you do not specify a cluster, the default cluster is assumed.

" + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instance to update.\n\t\t\tIf you do not specify a cluster, the default cluster is assumed.

" } }, "containerInstances": { @@ -13663,7 +13716,7 @@ "status": { "target": "com.amazonaws.ecs#ContainerInstanceStatus", "traits": { - "smithy.api#documentation": "

The container instance state to update the container instance with. The only valid\n\t\t\tvalues for this action are ACTIVE and DRAINING. A container\n\t\t\tinstance can only be updated to DRAINING status once it has reached an\n\t\t\t\tACTIVE state. If a container instance is in REGISTERING,\n\t\t\t\tDEREGISTERING, or REGISTRATION_FAILED state you can\n\t\t\tdescribe the container instance but can't update the container instance state.

", + "smithy.api#documentation": "

The container instance state to update the container instance with. The only valid values for this\n\t\t\taction are ACTIVE and DRAINING. A container instance can only be updated to\n\t\t\t\tDRAINING status once it has reached an ACTIVE state. If a container\n\t\t\tinstance is in REGISTERING, DEREGISTERING, or\n\t\t\t\tREGISTRATION_FAILED state you can describe the container instance but can't update the\n\t\t\tcontainer instance state.

", "smithy.api#required": {} } } @@ -13703,7 +13756,7 @@ } }, "traits": { - "smithy.api#documentation": "

There's already a current Amazon ECS container agent update in progress on the container\n\t\t\tinstance that's specified. If the container agent becomes disconnected while it's in a\n\t\t\ttransitional stage, such as PENDING or STAGING, the update\n\t\t\tprocess can get stuck in that state. However, when the agent reconnects, it resumes\n\t\t\twhere it stopped previously.

", + "smithy.api#documentation": "

There's already a current Amazon ECS container agent update in progress on the container instance that's\n\t\t\tspecified. If the container agent becomes disconnected while it's in a transitional stage, such as\n\t\t\t\tPENDING or STAGING, the update process can get stuck in that state.\n\t\t\tHowever, when the agent reconnects, it resumes where it stopped previously.

", "smithy.api#error": "client" } }, @@ -13751,7 +13804,7 @@ } ], "traits": { - "smithy.api#documentation": "

Modifies the parameters of a service.

\n \n

On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.

\n
\n

For services using the rolling update (ECS) you can update the desired\n\t\t\tcount, deployment configuration, network configuration, load balancers, service\n\t\t\tregistries, enable ECS managed tags option, propagate tags option, task placement\n\t\t\tconstraints and strategies, and task definition. When you update any of these\n\t\t\tparameters, Amazon ECS starts new tasks with the new configuration.

\n

You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when starting or\n\t\t\trunning a task, or when creating or updating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide. You can update\n\t\t\tyour volume configurations and trigger a new deployment.\n\t\t\t\tvolumeConfigurations is only supported for REPLICA service and not\n\t\t\tDAEMON service. If you leave volumeConfigurations\n null, it doesn't trigger a new deployment. For more infomation on volumes,\n\t\t\tsee Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

\n

For services using the blue/green (CODE_DEPLOY) deployment controller,\n\t\t\tonly the desired count, deployment configuration, health check grace period, task\n\t\t\tplacement constraints and strategies, enable ECS managed tags option, and propagate tags\n\t\t\tcan be updated using this API. If the network configuration, platform version, task\n\t\t\tdefinition, or load balancer need to be updated, create a new CodeDeploy deployment. For more\n\t\t\tinformation, see CreateDeployment in the CodeDeploy API Reference.

\n

For services using an external deployment controller, you can update only the desired\n\t\t\tcount, task placement constraints and strategies, health check grace period, enable ECS\n\t\t\tmanaged tags option, and propagate tags option, using this API. If the launch type, load\n\t\t\tbalancer, network configuration, platform version, or task definition need to be\n\t\t\tupdated, create a new task set For more information, see CreateTaskSet.

\n

You can add to or subtract from the number of instantiations of a task definition in a\n\t\t\tservice by specifying the cluster that the service is running in and a new\n\t\t\t\tdesiredCount parameter.

\n

You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when starting or\n\t\t\trunning a task, or when creating or updating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

\n

If you have updated the container image of your application, you can create a new task\n\t\t\tdefinition with that image and deploy it to your service. The service scheduler uses the\n\t\t\tminimum healthy percent and maximum percent parameters (in the service's deployment\n\t\t\tconfiguration) to determine the deployment strategy.

\n \n

If your updated Docker image uses the same tag as what is in the existing task\n\t\t\t\tdefinition for your service (for example, my_image:latest), you don't\n\t\t\t\tneed to create a new revision of your task definition. You can update the service\n\t\t\t\tusing the forceNewDeployment option. The new tasks launched by the\n\t\t\t\tdeployment pull the current image/tag combination from your repository when they\n\t\t\t\tstart.

\n
\n

You can also update the deployment configuration of a service. When a deployment is\n\t\t\ttriggered by updating the task definition of a service, the service scheduler uses the\n\t\t\tdeployment configuration parameters, minimumHealthyPercent and\n\t\t\t\tmaximumPercent, to determine the deployment strategy.

\n \n

When UpdateService stops a task during a deployment, the equivalent\n\t\t\tof docker stop is issued to the containers running in the task. This\n\t\t\tresults in a SIGTERM and a 30-second timeout. After this,\n\t\t\t\tSIGKILL is sent and the containers are forcibly stopped. If the\n\t\t\tcontainer handles the SIGTERM gracefully and exits within 30 seconds from\n\t\t\treceiving it, no SIGKILL is sent.

\n

When the service scheduler launches new tasks, it determines task placement in your\n\t\t\tcluster with the following logic.

\n \n

When the service scheduler stops running tasks, it attempts to maintain balance across\n\t\t\tthe Availability Zones in your cluster using the following logic:

\n \n \n

You must have a service-linked role when you update any of the following service\n\t\t\t\tproperties:

\n \n

For more information about the role see the CreateService request\n\t\t\t\tparameter \n role\n .

\n
", + "smithy.api#documentation": "

Modifies the parameters of a service.

\n \n

On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.

\n
\n

For services using the rolling update (ECS) you can update the desired count, deployment\n\t\t\tconfiguration, network configuration, load balancers, service registries, enable ECS managed tags\n\t\t\toption, propagate tags option, task placement constraints and strategies, and task definition. When you\n\t\t\tupdate any of these parameters, Amazon ECS starts new tasks with the new configuration.

\n

You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when starting or running a\n\t\t\ttask, or when creating or updating a service. For more infomation, see Amazon EBS\n\t\t\t\tvolumes in the Amazon Elastic Container Service Developer Guide. You can update your volume configurations and trigger a new\n\t\t\tdeployment. volumeConfigurations is only supported for REPLICA service and not DAEMON\n\t\t\tservice. If you leave volumeConfigurations\n null, it doesn't trigger a new deployment. For more infomation on volumes, see Amazon EBS\n\t\t\t\tvolumes in the Amazon Elastic Container Service Developer Guide.

\n

For services using the blue/green (CODE_DEPLOY) deployment controller, only the desired\n\t\t\tcount, deployment configuration, health check grace period, task placement constraints and strategies,\n\t\t\tenable ECS managed tags option, and propagate tags can be updated using this API. If the network\n\t\t\tconfiguration, platform version, task definition, or load balancer need to be updated, create a new\n\t\t\tCodeDeploy deployment. For more information, see CreateDeployment in the\n\t\t\tCodeDeploy API Reference.

\n

For services using an external deployment controller, you can update only the desired count, task\n\t\t\tplacement constraints and strategies, health check grace period, enable ECS managed tags option, and\n\t\t\tpropagate tags option, using this API. If the launch type, load balancer, network configuration,\n\t\t\tplatform version, or task definition need to be updated, create a new task set For more information,\n\t\t\tsee CreateTaskSet.

\n

You can add to or subtract from the number of instantiations of a task definition in a service by\n\t\t\tspecifying the cluster that the service is running in and a new desiredCount\n\t\t\tparameter.

\n

You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when starting or running a\n\t\t\ttask, or when creating or updating a service. For more infomation, see Amazon EBS\n\t\t\t\tvolumes in the Amazon Elastic Container Service Developer Guide.

\n

If you have updated the container image of your application, you can create a new task definition\n\t\t\twith that image and deploy it to your service. The service scheduler uses the minimum healthy percent\n\t\t\tand maximum percent parameters (in the service's deployment configuration) to determine the deployment\n\t\t\tstrategy.

\n \n

If your updated Docker image uses the same tag as what is in the existing task definition for\n\t\t\t\tyour service (for example, my_image:latest), you don't need to create a new revision\n\t\t\t\tof your task definition. You can update the service using the forceNewDeployment\n\t\t\t\toption. The new tasks launched by the deployment pull the current image/tag combination from your\n\t\t\t\trepository when they start.

\n
\n

You can also update the deployment configuration of a service. When a deployment is triggered by\n\t\t\tupdating the task definition of a service, the service scheduler uses the deployment configuration\n\t\t\tparameters, minimumHealthyPercent and maximumPercent, to determine the\n\t\t\tdeployment strategy.

\n \n

When UpdateService stops a task during a deployment, the equivalent of docker stop\n\t\t\tis issued to the containers running in the task. This results in a SIGTERM and a 30-second\n\t\t\ttimeout. After this, SIGKILL is sent and the containers are forcibly stopped. If the\n\t\t\tcontainer handles the SIGTERM gracefully and exits within 30 seconds from receiving it, no\n\t\t\t\tSIGKILL is sent.

\n

When the service scheduler launches new tasks, it determines task placement in your cluster with the\n\t\t\tfollowing logic.

\n \n

When the service scheduler stops running tasks, it attempts to maintain balance across the\n\t\t\tAvailability Zones in your cluster using the following logic:

\n \n \n

You must have a service-linked role when you update any of the following service\n\t\t\t\tproperties:

\n \n

For more information about the role see the CreateService request parameter \n role\n .

\n
", "smithy.api#examples": [ { "title": "To change the number of tasks in a service", @@ -13812,7 +13865,7 @@ } ], "traits": { - "smithy.api#documentation": "

Modifies which task set in a service is the primary task set. Any parameters that are\n\t\t\tupdated on the primary task set in a service will transition to the service. This is\n\t\t\tused when a service uses the EXTERNAL deployment controller type. For more\n\t\t\tinformation, see Amazon ECS Deployment\n\t\t\t\tTypes in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

Modifies which task set in a service is the primary task set. Any parameters that are updated on the\n\t\t\tprimary task set in a service will transition to the service. This is used when a service uses the\n\t\t\t\tEXTERNAL deployment controller type. For more information, see Amazon ECS Deployment\n\t\t\t\tTypes in the Amazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#UpdateServicePrimaryTaskSetRequest": { @@ -13821,7 +13874,7 @@ "cluster": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task\n\t\t\tset exists in.

", + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task set exists\n\t\t\tin.

", "smithy.api#required": {} } }, @@ -13877,25 +13930,31 @@ "desiredCount": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The number of instantiations of the task to place and keep running in your\n\t\t\tservice.

" + "smithy.api#documentation": "

The number of instantiations of the task to place and keep running in your service.

" } }, "taskDefinition": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The family and revision (family:revision) or\n\t\t\tfull ARN of the task definition to run in your service. If a revision is\n\t\t\tnot specified, the latest ACTIVE revision is used. If you modify the task\n\t\t\tdefinition with UpdateService, Amazon ECS spawns a task with the new version of\n\t\t\tthe task definition and then stops an old task after the new version is running.

" + "smithy.api#documentation": "

The family and revision (family:revision) or full ARN of the\n\t\t\ttask definition to run in your service. If a revision is not specified, the latest\n\t\t\t\tACTIVE revision is used. If you modify the task definition with\n\t\t\t\tUpdateService, Amazon ECS spawns a task with the new version of the task definition and\n\t\t\tthen stops an old task after the new version is running.

" } }, "capacityProviderStrategy": { "target": "com.amazonaws.ecs#CapacityProviderStrategy", "traits": { - "smithy.api#documentation": "

The capacity provider strategy to update the service to use.

\n

if the service uses the default capacity provider strategy for the cluster, the\n\t\t\tservice can be updated to use one or more capacity providers as opposed to the default\n\t\t\tcapacity provider strategy. However, when a service is using a capacity provider\n\t\t\tstrategy that's not the default capacity provider strategy, the service can't be updated\n\t\t\tto use the cluster's default capacity provider strategy.

\n

A capacity provider strategy consists of one or more capacity providers along with the\n\t\t\t\tbase and weight to assign to them. A capacity provider\n\t\t\tmust be associated with the cluster to be used in a capacity provider strategy. The\n\t\t\tPutClusterCapacityProviders API is used to associate a capacity\n\t\t\tprovider with a cluster. Only capacity providers with an ACTIVE or\n\t\t\t\tUPDATING status can be used.

\n

If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New capacity providers can be created with the CreateClusterCapacityProvider API operation.

\n

To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.

\n

The PutClusterCapacityProvidersAPI operation is used to update the\n\t\t\tlist of available capacity providers for a cluster after the cluster is created.

\n

" + "smithy.api#documentation": "

The capacity provider strategy to update the service to use.

\n

if the service uses the default capacity provider strategy for the cluster, the service can be\n\t\t\tupdated to use one or more capacity providers as opposed to the default capacity provider strategy.\n\t\t\tHowever, when a service is using a capacity provider strategy that's not the default capacity provider\n\t\t\tstrategy, the service can't be updated to use the cluster's default capacity provider strategy.

\n

A capacity provider strategy consists of one or more capacity providers along with the\n\t\t\t\tbase and weight to assign to them. A capacity provider must be associated\n\t\t\twith the cluster to be used in a capacity provider strategy. The PutClusterCapacityProviders API is used to associate a capacity provider with a cluster.\n\t\t\tOnly capacity providers with an ACTIVE or UPDATING status can be used.

\n

If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must already\n\t\t\tbe created. New capacity providers can be created with the CreateClusterCapacityProvider API operation.

\n

To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are available to all\n\t\t\taccounts and only need to be associated with a cluster to be used.

\n

The PutClusterCapacityProvidersAPI operation is used to update the list of available capacity\n\t\t\tproviders for a cluster after the cluster is created.

\n

" } }, "deploymentConfiguration": { "target": "com.amazonaws.ecs#DeploymentConfiguration", "traits": { - "smithy.api#documentation": "

Optional deployment parameters that control how many tasks run during the deployment and the\n\t\t\tfailure detection methods.

" + "smithy.api#documentation": "

Optional deployment parameters that control how many tasks run during the deployment and the ordering\n\t\t\tof stopping and starting tasks.

" + } + }, + "availabilityZoneRebalancing": { + "target": "com.amazonaws.ecs#AvailabilityZoneRebalancing", + "traits": { + "smithy.api#documentation": "

Indicates whether to use Availability Zone rebalancing for the service.

\n

For more information, see Balancing an Amazon ECS service across Availability Zones in\n\t\t\tthe Amazon Elastic Container Service Developer Guide.

" } }, "networkConfiguration": { @@ -13907,62 +13966,62 @@ "placementConstraints": { "target": "com.amazonaws.ecs#PlacementConstraints", "traits": { - "smithy.api#documentation": "

An array of task placement constraint objects to update the service to use. If no\n\t\t\tvalue is specified, the existing placement constraints for the service will remain\n\t\t\tunchanged. If this value is specified, it will override any existing placement\n\t\t\tconstraints defined for the service. To remove all existing placement constraints,\n\t\t\tspecify an empty array.

\n

You can specify a maximum of 10 constraints for each task. This limit includes\n\t\t\tconstraints in the task definition and those specified at runtime.

" + "smithy.api#documentation": "

An array of task placement constraint objects to update the service to use. If no value is specified,\n\t\t\tthe existing placement constraints for the service will remain unchanged. If this value is specified,\n\t\t\tit will override any existing placement constraints defined for the service. To remove all existing\n\t\t\tplacement constraints, specify an empty array.

\n

You can specify a maximum of 10 constraints for each task. This limit includes constraints in the\n\t\t\ttask definition and those specified at runtime.

" } }, "placementStrategy": { "target": "com.amazonaws.ecs#PlacementStrategies", "traits": { - "smithy.api#documentation": "

The task placement strategy objects to update the service to use. If no value is\n\t\t\tspecified, the existing placement strategy for the service will remain unchanged. If\n\t\t\tthis value is specified, it will override the existing placement strategy defined for\n\t\t\tthe service. To remove an existing placement strategy, specify an empty object.

\n

You can specify a maximum of five strategy rules for each service.

" + "smithy.api#documentation": "

The task placement strategy objects to update the service to use. If no value is specified, the\n\t\t\texisting placement strategy for the service will remain unchanged. If this value is specified, it will\n\t\t\toverride the existing placement strategy defined for the service. To remove an existing placement\n\t\t\tstrategy, specify an empty object.

\n

You can specify a maximum of five strategy rules for each service.

" } }, "platformVersion": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The platform version that your tasks in the service run on. A platform version is only\n\t\t\tspecified for tasks using the Fargate launch type. If a platform version\n\t\t\tis not specified, the LATEST platform version is used. For more\n\t\t\tinformation, see Fargate Platform\n\t\t\t\tVersions in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The platform version that your tasks in the service run on. A platform version is only specified for\n\t\t\ttasks using the Fargate launch type. If a platform version is not specified, the\n\t\t\t\tLATEST platform version is used. For more information, see Fargate Platform Versions in\n\t\t\tthe Amazon Elastic Container Service Developer Guide.

" } }, "forceNewDeployment": { "target": "com.amazonaws.ecs#Boolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

Determines whether to force a new deployment of the service. By default, deployments\n\t\t\taren't forced. You can use this option to start a new deployment with no service\n\t\t\tdefinition changes. For example, you can update a service's tasks to use a newer Docker\n\t\t\timage with the same image/tag combination (my_image:latest) or to roll\n\t\t\tFargate tasks onto a newer platform version.

" + "smithy.api#documentation": "

Determines whether to force a new deployment of the service. By default, deployments aren't forced.\n\t\t\tYou can use this option to start a new deployment with no service definition changes. For example, you\n\t\t\tcan update a service's tasks to use a newer Docker image with the same image/tag combination\n\t\t\t\t(my_image:latest) or to roll Fargate tasks onto a newer platform version.

" } }, "healthCheckGracePeriodSeconds": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy\n\t\t\tElastic Load Balancing target health checks after a task has first started. This is only valid if your\n\t\t\tservice is configured to use a load balancer. If your service's tasks take a while to\n\t\t\tstart and respond to Elastic Load Balancing health checks, you can specify a health check grace period of\n\t\t\tup to 2,147,483,647 seconds. During that time, the Amazon ECS service scheduler ignores\n\t\t\tthe Elastic Load Balancing health check status. This grace period can prevent the ECS service scheduler\n\t\t\tfrom marking tasks as unhealthy and stopping them before they have time to come\n\t\t\tup.

" + "smithy.api#documentation": "

The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing, VPC Lattice, and container \n\t\t\thealth checks after a task has first started. If you don't specify a health check grace\n\t\t\tperiod value, the default value of 0 is used. If you don't use any of the health checks, \n\t\t\tthen healthCheckGracePeriodSeconds is unused.

\n

If your service's tasks take a while to start and respond to health checks, you can specify a\n\t\t\thealth check grace period of up to 2,147,483,647 seconds (about 69 years). During that time, the Amazon ECS\n\t\t\tservice scheduler ignores health check status. This grace period can prevent the service scheduler from\n\t\t\tmarking tasks as unhealthy and stopping them before they have time to come up.

" } }, "enableExecuteCommand": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

If true, this enables execute command functionality on all task\n\t\t\tcontainers.

\n

If you do not want to override the value that was set when the service was created,\n\t\t\tyou can set this to null when performing this action.

" + "smithy.api#documentation": "

If true, this enables execute command functionality on all task containers.

\n

If you do not want to override the value that was set when the service was created, you can set this\n\t\t\tto null when performing this action.

" } }, "enableECSManagedTags": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

Determines whether to turn on Amazon ECS managed tags for the tasks in the service. For\n\t\t\tmore information, see Tagging Your Amazon ECS\n\t\t\t\tResources in the Amazon Elastic Container Service Developer Guide.

\n

Only tasks launched after the update will reflect the update. To update the tags on\n\t\t\tall tasks, set forceNewDeployment to true, so that Amazon ECS\n\t\t\tstarts new tasks with the updated tags.

" + "smithy.api#documentation": "

Determines whether to turn on Amazon ECS managed tags for the tasks in the service. For more information,\n\t\t\tsee Tagging Your\n\t\t\t\tAmazon ECS Resources in the Amazon Elastic Container Service Developer Guide.

\n

Only tasks launched after the update will reflect the update. To update the tags on all tasks, set\n\t\t\t\tforceNewDeployment to true, so that Amazon ECS starts new tasks with the\n\t\t\tupdated tags.

" } }, "loadBalancers": { "target": "com.amazonaws.ecs#LoadBalancers", "traits": { - "smithy.api#documentation": "

A list of Elastic Load Balancing load balancer objects. It contains the load balancer name, the\n\t\t\tcontainer name, and the container port to access from the load balancer. The container\n\t\t\tname is as it appears in a container definition.

\n

When you add, update, or remove a load balancer configuration, Amazon ECS starts new tasks\n\t\t\twith the updated Elastic Load Balancing configuration, and then stops the old tasks when the new tasks\n\t\t\tare running.

\n

For services that use rolling updates, you can add, update, or remove Elastic Load Balancing target\n\t\t\tgroups. You can update from a single target group to multiple target groups and from\n\t\t\tmultiple target groups to a single target group.

\n

For services that use blue/green deployments, you can update Elastic Load Balancing target groups by\n\t\t\tusing \n CreateDeployment\n through CodeDeploy. Note that multiple target groups\n\t\t\tare not supported for blue/green deployments. For more information see Register\n\t\t\t\tmultiple target groups with a service in the Amazon Elastic Container Service Developer Guide.

\n

For services that use the external deployment controller, you can add, update, or\n\t\t\tremove load balancers by using CreateTaskSet.\n\t\t\tNote that multiple target groups are not supported for external deployments. For more\n\t\t\tinformation see Register\n\t\t\t\tmultiple target groups with a service in the Amazon Elastic Container Service Developer Guide.

\n

You can remove existing loadBalancers by passing an empty list.

" + "smithy.api#documentation": "

A list of Elastic Load Balancing load balancer objects. It contains the load balancer name, the container name, and\n\t\t\tthe container port to access from the load balancer. The container name is as it appears in a container\n\t\t\tdefinition.

\n

When you add, update, or remove a load balancer configuration, Amazon ECS starts new tasks with the\n\t\t\tupdated Elastic Load Balancing configuration, and then stops the old tasks when the new tasks are running.

\n

For services that use rolling updates, you can add, update, or remove Elastic Load Balancing target groups. You can\n\t\t\tupdate from a single target group to multiple target groups and from multiple target groups to a single\n\t\t\ttarget group.

\n

For services that use blue/green deployments, you can update Elastic Load Balancing target groups by using\n\t\t\t\t\t\n CreateDeployment\n \n\t\t\tthrough CodeDeploy. Note that multiple target groups are not supported for blue/green deployments. For more\n\t\t\tinformation see Register multiple target\n\t\t\t\tgroups with a service in the Amazon Elastic Container Service Developer Guide.

\n

For services that use the external deployment controller, you can add, update, or remove load\n\t\t\tbalancers by using CreateTaskSet. Note that\n\t\t\tmultiple target groups are not supported for external deployments. For more information see Register multiple target groups with a service in the Amazon Elastic Container Service Developer Guide.

\n

You can remove existing loadBalancers by passing an empty list.

" } }, "propagateTags": { "target": "com.amazonaws.ecs#PropagateTags", "traits": { - "smithy.api#documentation": "

Determines whether to propagate the tags from the task definition or the service to\n\t\t\tthe task. If no value is specified, the tags aren't propagated.

\n

Only tasks launched after the update will reflect the update. To update the tags on\n\t\t\tall tasks, set forceNewDeployment to true, so that Amazon ECS\n\t\t\tstarts new tasks with the updated tags.

" + "smithy.api#documentation": "

Determines whether to propagate the tags from the task definition or the service to the task. If no\n\t\t\tvalue is specified, the tags aren't propagated.

\n

Only tasks launched after the update will reflect the update. To update the tags on all tasks, set\n\t\t\t\tforceNewDeployment to true, so that Amazon ECS starts new tasks with the\n\t\t\tupdated tags.

" } }, "serviceRegistries": { "target": "com.amazonaws.ecs#ServiceRegistries", "traits": { - "smithy.api#documentation": "

The details for the service discovery registries to assign to this service. For more\n\t\t\tinformation, see Service\n\t\t\t\tDiscovery.

\n

When you add, update, or remove the service registries configuration, Amazon ECS starts new\n\t\t\ttasks with the updated service registries configuration, and then stops the old tasks\n\t\t\twhen the new tasks are running.

\n

You can remove existing serviceRegistries by passing an empty\n\t\t\tlist.

" + "smithy.api#documentation": "

The details for the service discovery registries to assign to this service. For more information, see\n\t\t\t\tService\n\t\t\t\tDiscovery.

\n

When you add, update, or remove the service registries configuration, Amazon ECS starts new tasks with the\n\t\t\tupdated service registries configuration, and then stops the old tasks when the new tasks are\n\t\t\trunning.

\n

You can remove existing serviceRegistries by passing an empty list.

" } }, "serviceConnectConfiguration": { @@ -13974,7 +14033,13 @@ "volumeConfigurations": { "target": "com.amazonaws.ecs#ServiceVolumeConfigurations", "traits": { - "smithy.api#documentation": "

The details of the volume that was configuredAtLaunch. You can configure\n\t\t\tthe size, volumeType, IOPS, throughput, snapshot and encryption in ServiceManagedEBSVolumeConfiguration. The name of the volume\n\t\t\tmust match the name from the task definition. If set to null, no new\n\t\t\tdeployment is triggered. Otherwise, if this configuration differs from the existing one,\n\t\t\tit triggers a new deployment.

" + "smithy.api#documentation": "

The details of the volume that was configuredAtLaunch. You can configure the size,\n\t\t\tvolumeType, IOPS, throughput, snapshot and encryption in ServiceManagedEBSVolumeConfiguration. The name of the volume must match the\n\t\t\t\tname from the task definition. If set to null, no new deployment is triggered.\n\t\t\tOtherwise, if this configuration differs from the existing one, it triggers a new deployment.

" + } + }, + "vpcLatticeConfigurations": { + "target": "com.amazonaws.ecs#VpcLatticeConfigurations", + "traits": { + "smithy.api#documentation": "

An object representing the VPC Lattice configuration for the service being updated.

" } } }, @@ -14028,7 +14093,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates the protection status of a task. You can set protectionEnabled to\n\t\t\t\ttrue to protect your task from termination during scale-in events from\n\t\t\t\tService\n\t\t\t\tAutoscaling or deployments.

\n

Task-protection, by default, expires after 2 hours at which point Amazon ECS clears the\n\t\t\t\tprotectionEnabled property making the task eligible for termination by\n\t\t\ta subsequent scale-in event.

\n

You can specify a custom expiration period for task protection from 1 minute to up to\n\t\t\t2,880 minutes (48 hours). To specify the custom expiration period, set the\n\t\t\t\texpiresInMinutes property. The expiresInMinutes property\n\t\t\tis always reset when you invoke this operation for a task that already has\n\t\t\t\tprotectionEnabled set to true. You can keep extending the\n\t\t\tprotection expiration period of a task by invoking this operation repeatedly.

\n

To learn more about Amazon ECS task protection, see Task scale-in\n\t\t\t\tprotection in the \n Amazon Elastic Container Service Developer Guide\n .

\n \n

This operation is only supported for tasks belonging to an Amazon ECS service. Invoking\n\t\t\t\tthis operation for a standalone task will result in an TASK_NOT_VALID\n\t\t\t\tfailure. For more information, see API failure\n\t\t\t\t\treasons.

\n
\n \n

If you prefer to set task protection from within the container, we recommend using\n\t\t\t\tthe Task scale-in protection endpoint.

\n
", + "smithy.api#documentation": "

Updates the protection status of a task. You can set protectionEnabled to\n\t\t\t\ttrue to protect your task from termination during scale-in events from Service\n\t\t\t\tAutoscaling or deployments.

\n

Task-protection, by default, expires after 2 hours at which point Amazon ECS clears the\n\t\t\t\tprotectionEnabled property making the task eligible for termination by a subsequent\n\t\t\tscale-in event.

\n

You can specify a custom expiration period for task protection from 1 minute to up to 2,880 minutes\n\t\t\t(48 hours). To specify the custom expiration period, set the expiresInMinutes property.\n\t\t\tThe expiresInMinutes property is always reset when you invoke this operation for a task\n\t\t\tthat already has protectionEnabled set to true. You can keep extending the\n\t\t\tprotection expiration period of a task by invoking this operation repeatedly.

\n

To learn more about Amazon ECS task protection, see Task scale-in\n\t\t\t\tprotection in the \n Amazon Elastic Container Service Developer Guide\n .

\n \n

This operation is only supported for tasks belonging to an Amazon ECS service. Invoking this operation\n\t\t\t\tfor a standalone task will result in an TASK_NOT_VALID failure. For more information,\n\t\t\t\tsee API failure reasons.

\n
\n \n

If you prefer to set task protection from within the container, we recommend using the Task scale-in\n\t\t\t\t\tprotection endpoint.

\n
", "smithy.api#examples": [ { "title": "To remove task scale-in protection", @@ -14102,7 +14167,7 @@ "cluster": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task\n\t\t\tsets exist in.

", + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task sets exist\n\t\t\tin.

", "smithy.api#required": {} } }, @@ -14117,14 +14182,14 @@ "target": "com.amazonaws.ecs#Boolean", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

Specify true to mark a task for protection and false to\n\t\t\tunset protection, making it eligible for termination.

", + "smithy.api#documentation": "

Specify true to mark a task for protection and false to unset protection,\n\t\t\tmaking it eligible for termination.

", "smithy.api#required": {} } }, "expiresInMinutes": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

If you set protectionEnabled to true, you can specify the\n\t\t\tduration for task protection in minutes. You can specify a value from 1 minute to up to\n\t\t\t2,880 minutes (48 hours). During this time, your task will not be terminated by scale-in\n\t\t\tevents from Service Auto Scaling or deployments. After this time period lapses,\n\t\t\t\tprotectionEnabled will be reset to false.

\n

If you don’t specify the time, then the task is automatically protected for 120\n\t\t\tminutes (2 hours).

" + "smithy.api#documentation": "

If you set protectionEnabled to true, you can specify the duration for task\n\t\t\tprotection in minutes. You can specify a value from 1 minute to up to 2,880 minutes (48 hours). During\n\t\t\tthis time, your task will not be terminated by scale-in events from Service Auto Scaling or\n\t\t\tdeployments. After this time period lapses, protectionEnabled will be reset to\n\t\t\t\tfalse.

\n

If you don’t specify the time, then the task is automatically protected for 120 minutes (2\n\t\t\thours).

" } } }, @@ -14138,7 +14203,7 @@ "protectedTasks": { "target": "com.amazonaws.ecs#ProtectedTasks", "traits": { - "smithy.api#documentation": "

A list of tasks with the following information.

\n " + "smithy.api#documentation": "

A list of tasks with the following information.

\n " } }, "failures": { @@ -14190,7 +14255,7 @@ } ], "traits": { - "smithy.api#documentation": "

Modifies a task set. This is used when a service uses the EXTERNAL\n\t\t\tdeployment controller type. For more information, see Amazon ECS Deployment\n\t\t\t\tTypes in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

Modifies a task set. This is used when a service uses the EXTERNAL deployment controller\n\t\t\ttype. For more information, see Amazon ECS Deployment Types in the\n\t\t\tAmazon Elastic Container Service Developer Guide.

" } }, "com.amazonaws.ecs#UpdateTaskSetRequest": { @@ -14199,7 +14264,7 @@ "cluster": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task\n\t\t\tset is found in.

", + "smithy.api#documentation": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task set is found\n\t\t\tin.

", "smithy.api#required": {} } }, @@ -14220,7 +14285,7 @@ "scale": { "target": "com.amazonaws.ecs#Scale", "traits": { - "smithy.api#documentation": "

A floating-point percentage of the desired number of tasks to place and keep running\n\t\t\tin the task set.

", + "smithy.api#documentation": "

A floating-point percentage of the desired number of tasks to place and keep running in the task\n\t\t\tset.

", "smithy.api#required": {} } } @@ -14243,6 +14308,23 @@ "smithy.api#output": {} } }, + "com.amazonaws.ecs#VersionConsistency": { + "type": "enum", + "members": { + "ENABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "enabled" + } + }, + "DISABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "disabled" + } + } + } + }, "com.amazonaws.ecs#VersionInfo": { "type": "structure", "members": { @@ -14255,7 +14337,7 @@ "agentHash": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Git commit hash for the Amazon ECS container agent build on the amazon-ecs-agent\n\t\t\t GitHub repository.

" + "smithy.api#documentation": "

The Git commit hash for the Amazon ECS container agent build on the amazon-ecs-agent GitHub\n\t\t\trepository.

" } }, "dockerVersion": { @@ -14266,7 +14348,7 @@ } }, "traits": { - "smithy.api#documentation": "

The Docker and Amazon ECS container agent version information about a container\n\t\t\tinstance.

" + "smithy.api#documentation": "

The Docker and Amazon ECS container agent version information about a container instance.

" } }, "com.amazonaws.ecs#Volume": { @@ -14275,42 +14357,42 @@ "name": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.

\n

When using a volume configured at launch, the name is required and must\n\t\t\talso be specified as the volume name in the ServiceVolumeConfiguration or\n\t\t\t\tTaskVolumeConfiguration parameter when creating your service or\n\t\t\tstandalone task.

\n

For all other types of volumes, this name is referenced in the\n\t\t\t\tsourceVolume parameter of the mountPoints object in the\n\t\t\tcontainer definition.

\n

When a volume is using the efsVolumeConfiguration, the name is\n\t\t\trequired.

" + "smithy.api#documentation": "

The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.

\n

When using a volume configured at launch, the name is required and must also be\n\t\t\tspecified as the volume name in the ServiceVolumeConfiguration or\n\t\t\t\tTaskVolumeConfiguration parameter when creating your service or standalone\n\t\t\ttask.

\n

For all other types of volumes, this name is referenced in the sourceVolume parameter of\n\t\t\tthe mountPoints object in the container definition.

\n

When a volume is using the efsVolumeConfiguration, the name is required.

" } }, "host": { "target": "com.amazonaws.ecs#HostVolumeProperties", "traits": { - "smithy.api#documentation": "

This parameter is specified when you use bind mount host volumes. The contents of the\n\t\t\t\thost parameter determine whether your bind mount host volume persists\n\t\t\ton the host container instance and where it's stored. If the host parameter\n\t\t\tis empty, then the Docker daemon assigns a host path for your data volume. However, the\n\t\t\tdata isn't guaranteed to persist after the containers that are associated with it stop\n\t\t\trunning.

\n

Windows containers can mount whole directories on the same drive as\n\t\t\t\t$env:ProgramData. Windows containers can't mount directories on a\n\t\t\tdifferent drive, and mount point can't be across drives. For example, you can mount\n\t\t\t\tC:\\my\\path:C:\\my\\path and D:\\:D:\\, but not\n\t\t\t\tD:\\my\\path:C:\\my\\path or D:\\:C:\\my\\path.

" + "smithy.api#documentation": "

This parameter is specified when you use bind mount host volumes. The contents of the\n\t\t\t\thost parameter determine whether your bind mount host volume persists on the host\n\t\t\tcontainer instance and where it's stored. If the host parameter is empty, then the Docker\n\t\t\tdaemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after\n\t\t\tthe containers that are associated with it stop running.

\n

Windows containers can mount whole directories on the same drive as $env:ProgramData.\n\t\t\tWindows containers can't mount directories on a different drive, and mount point can't be across\n\t\t\tdrives. For example, you can mount C:\\my\\path:C:\\my\\path and D:\\:D:\\, but not\n\t\t\t\tD:\\my\\path:C:\\my\\path or D:\\:C:\\my\\path.

" } }, "dockerVolumeConfiguration": { "target": "com.amazonaws.ecs#DockerVolumeConfiguration", "traits": { - "smithy.api#documentation": "

This parameter is specified when you use Docker volumes.

\n

Windows containers only support the use of the local driver. To use bind\n\t\t\tmounts, specify the host parameter instead.

\n \n

Docker volumes aren't supported by tasks run on Fargate.

\n
" + "smithy.api#documentation": "

This parameter is specified when you use Docker volumes.

\n

Windows containers only support the use of the local driver. To use bind mounts, specify\n\t\t\tthe host parameter instead.

\n \n

Docker volumes aren't supported by tasks run on Fargate.

\n
" } }, "efsVolumeConfiguration": { "target": "com.amazonaws.ecs#EFSVolumeConfiguration", "traits": { - "smithy.api#documentation": "

This parameter is specified when you use an Amazon Elastic File System file system for task\n\t\t\tstorage.

" + "smithy.api#documentation": "

This parameter is specified when you use an Amazon Elastic File System file system for task storage.

" } }, "fsxWindowsFileServerVolumeConfiguration": { "target": "com.amazonaws.ecs#FSxWindowsFileServerVolumeConfiguration", "traits": { - "smithy.api#documentation": "

This parameter is specified when you use Amazon FSx for Windows File Server file system for task\n\t\t\tstorage.

" + "smithy.api#documentation": "

This parameter is specified when you use Amazon FSx for Windows File Server file system for task storage.

" } }, "configuredAtLaunch": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

Indicates whether the volume should be configured at launch time. This is used to\n\t\t\tcreate Amazon EBS volumes for standalone tasks or tasks created as part of a service. Each\n\t\t\ttask definition revision may only have one volume configured at launch in the volume\n\t\t\tconfiguration.

\n

To configure a volume at launch time, use this task definition revision and specify a\n\t\t\t\tvolumeConfigurations object when calling the\n\t\t\tCreateService, UpdateService, RunTask or\n\t\t\t\tStartTask APIs.

" + "smithy.api#documentation": "

Indicates whether the volume should be configured at launch time. This is used to create Amazon EBS\n\t\t\tvolumes for standalone tasks or tasks created as part of a service. Each task definition revision may\n\t\t\tonly have one volume configured at launch in the volume configuration.

\n

To configure a volume at launch time, use this task definition revision and specify a\n\t\t\t\tvolumeConfigurations object when calling the CreateService,\n\t\t\t\tUpdateService, RunTask or StartTask APIs.

" } } }, "traits": { - "smithy.api#documentation": "

The data volume configuration for tasks launched using this task definition.\n\t\t\tSpecifying a volume configuration in a task definition is optional. The volume\n\t\t\tconfiguration may contain multiple volumes but only one volume configured at launch is\n\t\t\tsupported. Each volume defined in the volume configuration may only specify a\n\t\t\t\tname and one of either configuredAtLaunch,\n\t\t\t\tdockerVolumeConfiguration, efsVolumeConfiguration,\n\t\t\t\tfsxWindowsFileServerVolumeConfiguration, or host. If an\n\t\t\tempty volume configuration is specified, by default Amazon ECS uses a host volume. For more\n\t\t\tinformation, see Using data volumes in\n\t\t\t\ttasks.

" + "smithy.api#documentation": "

The data volume configuration for tasks launched using this task definition. Specifying a volume\n\t\t\tconfiguration in a task definition is optional. The volume configuration may contain multiple volumes\n\t\t\tbut only one volume configured at launch is supported. Each volume defined in the volume configuration\n\t\t\tmay only specify a name and one of either configuredAtLaunch,\n\t\t\t\tdockerVolumeConfiguration, efsVolumeConfiguration,\n\t\t\t\tfsxWindowsFileServerVolumeConfiguration, or host. If an empty volume\n\t\t\tconfiguration is specified, by default Amazon ECS uses a host volume. For more information, see Using data\n\t\t\t\tvolumes in tasks.

" } }, "com.amazonaws.ecs#VolumeFrom": { @@ -14319,13 +14401,13 @@ "sourceContainer": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The name of another container within the same task definition to mount volumes\n\t\t\tfrom.

" + "smithy.api#documentation": "

The name of another container within the same task definition to mount volumes from.

" } }, "readOnly": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

If this value is true, the container has read-only access to the volume.\n\t\t\tIf this value is false, then the container can write to the volume. The\n\t\t\tdefault value is false.

" + "smithy.api#documentation": "

If this value is true, the container has read-only access to the volume. If this value\n\t\t\tis false, then the container can write to the volume. The default value is\n\t\t\t\tfalse.

" } } }, @@ -14344,6 +14426,41 @@ "member": { "target": "com.amazonaws.ecs#Volume" } + }, + "com.amazonaws.ecs#VpcLatticeConfiguration": { + "type": "structure", + "members": { + "roleArn": { + "target": "com.amazonaws.ecs#IAMRoleArn", + "traits": { + "smithy.api#documentation": "

The ARN of the IAM role to associate with this VPC Lattice configuration. This is the Amazon ECS\u2028\n\t\t\tinfrastructure IAM role that is used to manage your VPC Lattice infrastructure.

", + "smithy.api#required": {} + } + }, + "targetGroupArn": { + "target": "com.amazonaws.ecs#String", + "traits": { + "smithy.api#documentation": "

The full Amazon Resource Name (ARN) of the target group or groups associated with the VPC Lattice\n\t\t\tconfiguration that the Amazon ECS tasks will be registered to.

", + "smithy.api#required": {} + } + }, + "portName": { + "target": "com.amazonaws.ecs#String", + "traits": { + "smithy.api#documentation": "

The name of the port mapping to register in the VPC Lattice target group. This is the \n\t\t\tname of the portMapping you defined in your task definition.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The VPC Lattice configuration for your service that holds the information for the target group(s) \n\t\t\tAmazon ECS tasks will be registered to.

" + } + }, + "com.amazonaws.ecs#VpcLatticeConfigurations": { + "type": "list", + "member": { + "target": "com.amazonaws.ecs#VpcLatticeConfiguration" + } } } } diff --git a/codegen/sdk-codegen/aws-models/efs.json b/codegen/sdk-codegen/aws-models/efs.json index c4eb1a8c297..68696e8d6b2 100644 --- a/codegen/sdk-codegen/aws-models/efs.json +++ b/codegen/sdk-codegen/aws-models/efs.json @@ -418,7 +418,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new, empty file system. The operation requires a creation token in the\n request that Amazon EFS uses to ensure idempotent creation (calling the operation with same\n creation token has no effect). If a file system does not currently exist that is owned by the\n caller's Amazon Web Services account with the specified creation token, this operation does the\n following:

\n \n

Otherwise, this operation returns a FileSystemAlreadyExists error with the\n ID of the existing file system.

\n \n

For basic use cases, you can use a randomly generated UUID for the creation\n token.

\n
\n

The idempotent operation allows you to retry a CreateFileSystem call without\n risk of creating an extra file system. This can happen when an initial call fails in a way\n that leaves it uncertain whether or not a file system was actually created. An example might\n be that a transport level timeout occurred or your connection was reset. As long as you use\n the same creation token, if the initial call had succeeded in creating a file system, the\n client can learn of its existence from the FileSystemAlreadyExists error.

\n

For more information, see \n Creating a file system\n in the Amazon EFS User Guide.

\n \n

The CreateFileSystem call returns while the file system's lifecycle\n state is still creating. You can check the file system creation status by\n calling the DescribeFileSystems operation, which among other things returns the file\n system state.

\n
\n

This operation accepts an optional PerformanceMode parameter that you choose\n for your file system. We recommend generalPurpose performance mode for all file\n systems. File systems using the maxIO mode is a previous generation performance type that is designed for highly parallelized workloads that can tolerate higher latencies\n than the General Purpose mode. Max I/O mode is not supported for One Zone file systems or\n file systems that use Elastic throughput.

\n \n

Due to the higher per-operation latencies with Max I/O, we recommend using General Purpose performance mode for all file systems.

\n
\n

The performance mode can't be changed after\n the file system has been created. For more information, see Amazon EFS performance\n modes.

\n

You can set the throughput mode for the file system using the ThroughputMode parameter.

\n

After the file system is fully created, Amazon EFS sets its lifecycle state to\n available, at which point you can create one or more mount targets for the file\n system in your VPC. For more information, see CreateMountTarget. You mount your Amazon EFS file system on an EC2 instances in\n your VPC by using the mount target. For more information, see Amazon EFS: How it Works.

\n

This operation requires permissions for the\n elasticfilesystem:CreateFileSystem action.

\n

File systems can be tagged on creation. If tags are specified in the creation action, IAM\n performs additional authorization on the elasticfilesystem:TagResource action to\n verify if users have permissions to create tags. Therefore, you must grant explicit\n permissions to use the elasticfilesystem:TagResource action. For more\n information, see Granting permissions to tag resources during creation.

", + "smithy.api#documentation": "

Creates a new, empty file system. The operation requires a creation token in the\n request that Amazon EFS uses to ensure idempotent creation (calling the operation with same\n creation token has no effect). If a file system does not currently exist that is owned by the\n caller's Amazon Web Services account with the specified creation token, this operation does the\n following:

\n \n

Otherwise, this operation returns a FileSystemAlreadyExists error with the\n ID of the existing file system.

\n \n

For basic use cases, you can use a randomly generated UUID for the creation\n token.

\n
\n

The idempotent operation allows you to retry a CreateFileSystem call without\n risk of creating an extra file system. This can happen when an initial call fails in a way\n that leaves it uncertain whether or not a file system was actually created. An example might\n be that a transport level timeout occurred or your connection was reset. As long as you use\n the same creation token, if the initial call had succeeded in creating a file system, the\n client can learn of its existence from the FileSystemAlreadyExists error.

\n

For more information, see \n Creating a file system\n in the Amazon EFS User Guide.

\n \n

The CreateFileSystem call returns while the file system's lifecycle\n state is still creating. You can check the file system creation status by\n calling the DescribeFileSystems operation, which among other things returns the file\n system state.

\n
\n

This operation accepts an optional PerformanceMode parameter that you choose\n for your file system. We recommend generalPurpose\n PerformanceMode for all file\n systems. The maxIO mode is a previous generation performance type that is designed for highly parallelized workloads that can tolerate higher latencies\n than the generalPurpose mode. MaxIO mode is not supported for One Zone file systems or\n file systems that use Elastic throughput.

\n

The PerformanceMode can't be changed after the file system has been\n created. For more information, see Amazon EFS performance\n modes.

\n

You can set the throughput mode for the file system using the ThroughputMode\n parameter.

\n

After the file system is fully created, Amazon EFS sets its lifecycle state to\n available, at which point you can create one or more mount targets for the file\n system in your VPC. For more information, see CreateMountTarget. You mount your Amazon EFS file system on an EC2 instances in\n your VPC by using the mount target. For more information, see Amazon EFS: How it Works.

\n

This operation requires permissions for the\n elasticfilesystem:CreateFileSystem action.

\n

File systems can be tagged on creation. If tags are specified in the creation action, IAM\n performs additional authorization on the elasticfilesystem:TagResource action to\n verify if users have permissions to create tags. Therefore, you must grant explicit\n permissions to use the elasticfilesystem:TagResource action. For more\n information, see Granting permissions to tag resources during creation.

", "smithy.api#http": { "method": "POST", "uri": "/2015-02-01/file-systems", @@ -440,7 +440,7 @@ "PerformanceMode": { "target": "com.amazonaws.efs#PerformanceMode", "traits": { - "smithy.api#documentation": "

The Performance mode of the file system. We recommend generalPurpose\n performance mode for all file systems. File systems using the maxIO performance\n mode can scale to higher levels of aggregate throughput and operations per second with a\n tradeoff of slightly higher latencies for most file operations. The performance mode\n can't be changed after the file system has been created. The maxIO mode is\n not supported on One Zone file systems.

\n \n

Due to the higher per-operation latencies with Max I/O, we recommend using General Purpose performance mode for all file systems.

\n
\n

Default is generalPurpose.

" + "smithy.api#documentation": "

The performance mode of the file system. We recommend generalPurpose\n performance mode for all file systems. File systems using the maxIO performance\n mode can scale to higher levels of aggregate throughput and operations per second with a\n tradeoff of slightly higher latencies for most file operations. The performance mode\n can't be changed after the file system has been created. The maxIO mode is\n not supported on One Zone file systems.

\n \n

Due to the higher per-operation latencies with Max I/O, we recommend using General Purpose performance mode for all file systems.

\n
\n

Default is generalPurpose.

" } }, "Encrypted": { @@ -470,7 +470,7 @@ "AvailabilityZoneName": { "target": "com.amazonaws.efs#AvailabilityZoneName", "traits": { - "smithy.api#documentation": "

Used to create a One Zone file system. It specifies the Amazon Web Services\n Availability Zone in which to create the file system. Use the format us-east-1a to\n specify the Availability Zone. For more information about One Zone file systems, see\n Using EFS storage\n classes in the Amazon EFS User Guide.

\n \n

One Zone file systems are not available in all Availability Zones in Amazon Web Services Regions where Amazon EFS is available.

\n
" + "smithy.api#documentation": "

For One Zone file systems, specify the Amazon Web Services\n Availability Zone in which to create the file system. Use the format us-east-1a to\n specify the Availability Zone. For more information about One Zone file systems, see\n EFS file system types in the Amazon EFS User Guide.

\n \n

One Zone file systems are not available in all Availability Zones in Amazon Web Services Regions where Amazon EFS is available.

\n
" } }, "Backup": { @@ -646,7 +646,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a replication configuration that replicates an existing EFS file system\n to a new, read-only file system. For more information, see Amazon EFS replication in the\n Amazon EFS User Guide. The replication configuration\n specifies the following:

\n \n \n

After the file system is created, you cannot change the KMS key.

\n
\n

For new destination file systems, the following properties are set by default:

\n \n \n

For more information, see Amazon EFS replication in the\n Amazon EFS User Guide.

", + "smithy.api#documentation": "

Creates a replication configuration to either a new or existing EFS file system.\n For more information, see Amazon EFS replication in the Amazon EFS User\n Guide. The replication configuration specifies the following:

\n \n

This operation requires permissions for the elasticfilesystem:CreateReplicationConfiguration\n action. Additionally, other permissions are required depending on how you are replicating file systems.\n For more information, see Required permissions for replication\n in the Amazon EFS User\n Guide.

", "smithy.api#http": { "method": "POST", "uri": "/2015-02-01/file-systems/{SourceFileSystemId}/replication-configuration", @@ -853,7 +853,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes a file system, permanently severing access to its contents. Upon return, the\n file system no longer exists and you can't access any contents of the deleted file\n system.

\n

You need to manually delete mount targets attached to a file system before you can delete\n an EFS file system. This step is performed for you when you use the Amazon Web Services console \n to delete a file system.

\n \n

You cannot delete a file system that is part of an EFS Replication configuration. \n You need to delete the replication configuration first.

\n
\n

You can't delete a file system that is in use. That is, if the file system has\n any mount targets, you must first delete them. For more information, see DescribeMountTargets and DeleteMountTarget.

\n \n

The DeleteFileSystem call returns while the file system state is still\n deleting. You can check the file system deletion status by calling the DescribeFileSystems operation, which returns a list of file systems in your\n account. If you pass file system ID or creation token for the deleted file system, the DescribeFileSystems returns a 404 FileSystemNotFound\n error.

\n
\n

This operation requires permissions for the\n elasticfilesystem:DeleteFileSystem action.

", + "smithy.api#documentation": "

Deletes a file system, permanently severing access to its contents. Upon return, the\n file system no longer exists and you can't access any contents of the deleted file\n system.

\n

You need to manually delete mount targets attached to a file system before you can delete\n an EFS file system. This step is performed for you when you use the Amazon Web Services console \n to delete a file system.

\n \n

You cannot delete a file system that is part of an EFS replication configuration. \n You need to delete the replication configuration first.

\n
\n

You can't delete a file system that is in use. That is, if the file system has\n any mount targets, you must first delete them. For more information, see DescribeMountTargets and DeleteMountTarget.

\n \n

The DeleteFileSystem call returns while the file system state is still\n deleting. You can check the file system deletion status by calling the DescribeFileSystems operation, which returns a list of file systems in your\n account. If you pass file system ID or creation token for the deleted file system, the DescribeFileSystems returns a 404 FileSystemNotFound\n error.

\n
\n

This operation requires permissions for the\n elasticfilesystem:DeleteFileSystem action.

", "smithy.api#examples": [ { "title": "To delete a file system", @@ -1032,6 +1032,13 @@ "smithy.api#httpLabel": {}, "smithy.api#required": {} } + }, + "DeletionMode": { + "target": "com.amazonaws.efs#DeletionMode", + "traits": { + "smithy.api#documentation": "

When replicating across Amazon Web Services accounts or across Amazon Web Services Regions, \n Amazon EFS deletes the replication configuration from both the source \n and destination account or Region (ALL_CONFIGURATIONS) by default. \n If there's a configuration or permissions issue that prevents Amazon EFS from deleting the \n replication configuration from both sides, you can use the LOCAL_CONFIGURATION_ONLY mode\n to delete the replication configuration from only the local side (the account\n or Region from which the delete is performed).

\n \n

Only use the LOCAL_CONFIGURATION_ONLY mode in the case that Amazon EFS is unable\n to delete the replication configuration in both the source and destination account or Region. \n Deleting the local configuration \n leaves the configuration in the other account or Region unrecoverable.

\n

Additionally, do not use this mode for same-account, same-region replication as doing so results in a \n BadRequest exception error.

\n
", + "smithy.api#httpQuery": "deletionMode" + } } }, "traits": { @@ -1105,6 +1112,23 @@ "smithy.api#input": {} } }, + "com.amazonaws.efs#DeletionMode": { + "type": "enum", + "members": { + "ALL_CONFIGURATIONS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ALL_CONFIGURATIONS" + } + }, + "LOCAL_CONFIGURATION_ONLY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LOCAL_CONFIGURATION_ONLY" + } + } + } + }, "com.amazonaws.efs#DependencyTimeout": { "type": "structure", "members": { @@ -1506,7 +1530,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns the current LifecycleConfiguration object for the specified Amazon\n EFS file system. Lifecycle management uses the LifecycleConfiguration object\n to identify when to move files between storage classes. For a file system without a\n LifecycleConfiguration object, the call returns an empty array in the\n response.

\n

This operation requires permissions for the\n elasticfilesystem:DescribeLifecycleConfiguration operation.

", + "smithy.api#documentation": "

Returns the current LifecycleConfiguration object for the specified Amazon\n EFS file system. Lifecycle management uses the LifecycleConfiguration object to\n identify when to move files between storage classes. For a file system without a\n LifecycleConfiguration object, the call returns an empty array in the\n response.

\n

This operation requires permissions for the\n elasticfilesystem:DescribeLifecycleConfiguration operation.

", "smithy.api#examples": [ { "title": "To describe the lifecycle configuration for a file system", @@ -1802,7 +1826,7 @@ "FileSystemId": { "target": "com.amazonaws.efs#FileSystemId", "traits": { - "smithy.api#documentation": "

You can retrieve the replication configuration for a specific file system by providing its\n file system ID.

", + "smithy.api#documentation": "

You can retrieve the replication configuration for a specific file system by providing its\n file system ID. For cross-account,cross-region replication, an account can only describe the replication\n configuration for a file system in its own Region.

", "smithy.api#httpQuery": "FileSystemId" } }, @@ -1964,7 +1988,7 @@ "Status": { "target": "com.amazonaws.efs#ReplicationStatus", "traits": { - "smithy.api#documentation": "

Describes the status of the destination EFS file system.

\n ", + "smithy.api#documentation": "

Describes the status of the replication configuration. For more information \n about replication status, see Viewing\n replication details in the Amazon EFS User Guide. \n

", "smithy.api#required": {} } }, @@ -1987,6 +2011,24 @@ "traits": { "smithy.api#documentation": "

The time when the most recent sync was successfully completed on the destination file\n system. Any changes to data on the source file system that occurred before this time have been\n successfully replicated to the destination file system. Any changes that occurred after this\n time might not be fully replicated.

" } + }, + "OwnerId": { + "target": "com.amazonaws.efs#AwsAccountId", + "traits": { + "smithy.api#documentation": "

ID of the Amazon Web Services account in which the destination file system resides.

" + } + }, + "StatusMessage": { + "target": "com.amazonaws.efs#StatusMessage", + "traits": { + "smithy.api#documentation": "

Message that provides details about the PAUSED or ERRROR state \n of the replication destination configuration. For more information \n about replication status messages, see Viewing\n replication details in the Amazon EFS User Guide. \n

" + } + }, + "RoleArn": { + "target": "com.amazonaws.efs#RoleArn", + "traits": { + "smithy.api#documentation": "

Amazon Resource Name (ARN) of the IAM role in the source account that allows Amazon EFS\n to perform replication on its behalf. This is optional for same-account \n replication and required for cross-account replication.

" + } } }, "traits": { @@ -1999,7 +2041,7 @@ "Region": { "target": "com.amazonaws.efs#RegionName", "traits": { - "smithy.api#documentation": "

To create a file system that uses Regional storage, specify the Amazon Web Services Region in which to create the destination file system.

" + "smithy.api#documentation": "

To create a file system that uses Regional storage, specify the Amazon Web Services Region in which to create the destination file system. The Region must be enabled\n for the Amazon Web Services account that owns the source file system. For more information, see\n Managing Amazon Web Services Regions in the Amazon Web Services General\n Reference Reference Guide.

" } }, "AvailabilityZoneName": { @@ -2011,18 +2053,24 @@ "KmsKeyId": { "target": "com.amazonaws.efs#KmsKeyId", "traits": { - "smithy.api#documentation": "

Specify the Key Management Service (KMS) key that you want to use to\n encrypt the destination file system. If you do not specify a KMS key, Amazon EFS uses your default KMS key for Amazon EFS,\n /aws/elasticfilesystem. This ID can be in one of the following formats:

\n " + "smithy.api#documentation": "

Specify the Key Management Service (KMS) key that you want to use to\n encrypt the destination file system. If you do not specify a KMS key, Amazon EFS uses your default KMS key for Amazon EFS,\n /aws/elasticfilesystem. This ID can be in one of the following formats:

\n " } }, "FileSystemId": { "target": "com.amazonaws.efs#FileSystemId", "traits": { - "smithy.api#documentation": "

The ID of the file system to use for the destination. The file system's replication\n overwrite replication must be disabled. If you do not provide an ID, then EFS creates a new\n file system for the replication destination.

" + "smithy.api#documentation": "

The ID or ARN of the file system to use for the destination. \n For cross-account replication, this must be an ARN. The file system's \n replication overwrite replication must be disabled. If no ID or ARN is \n specified, then a new file system is created.

" + } + }, + "RoleArn": { + "target": "com.amazonaws.efs#RoleArn", + "traits": { + "smithy.api#documentation": "

Amazon Resource Name (ARN) of the IAM role in the source account that allows Amazon EFS\n to perform replication on its behalf. This is optional for same-account \n replication and required for cross-account replication.

" } } }, "traits": { - "smithy.api#documentation": "

Describes the new or existing destination file system for the replication\n configuration.

" + "smithy.api#documentation": "

Describes the new or existing destination file system for the replication\n configuration.

\n " } }, "com.amazonaws.efs#Destinations": { @@ -2151,7 +2199,7 @@ "PerformanceMode": { "target": "com.amazonaws.efs#PerformanceMode", "traits": { - "smithy.api#documentation": "

The Performance mode of the file system.

", + "smithy.api#documentation": "

The performance mode of the file system.

", "smithy.api#required": {} } }, @@ -2592,12 +2640,12 @@ "TransitionToArchive": { "target": "com.amazonaws.efs#TransitionToArchiveRules", "traits": { - "smithy.api#documentation": "

The number of days after files were last accessed in primary storage (the\n Standard storage class) files at which to move them to Archive\n storage. Metadata operations such as listing the contents of a directory don't count as\n file access events.

" + "smithy.api#documentation": "

The number of days after files were last accessed in primary storage (the\n Standard storage class) at which to move them to Archive\n storage. Metadata operations such as listing the contents of a directory don't count as\n file access events.

" } } }, "traits": { - "smithy.api#documentation": "

Describes a policy used by Lifecycle management that specifies when to transition files\n into and out of storage classes. For more information, see Managing file system\n storage.

\n \n

When using the put-lifecycle-configuration CLI command or the\n PutLifecycleConfiguration API action, Amazon EFS requires that each\n LifecyclePolicy object have only a single transition. This means that in a\n request body, LifecyclePolicies must be structured as an array of\n LifecyclePolicy objects, one object for each transition. For more\n information, see the request examples in PutLifecycleConfiguration.

\n
" + "smithy.api#documentation": "

Describes a policy used by lifecycle management that specifies when to transition files\n into and out of storage classes. For more information, see Managing file system\n storage.

\n \n

When using the put-lifecycle-configuration CLI command or the\n PutLifecycleConfiguration API action, Amazon EFS requires that each\n LifecyclePolicy object have only a single transition. This means that in a\n request body, LifecyclePolicies must be structured as an array of\n LifecyclePolicy objects, one object for each transition. For more\n information, see the request examples in PutLifecycleConfiguration.

\n
" } }, "com.amazonaws.efs#ListTagsForResource": { @@ -4556,7 +4604,7 @@ } ], "traits": { - "smithy.api#documentation": "

Applies an Amazon EFS\n FileSystemPolicy to an Amazon EFS file system. A file system policy is an\n IAM resource-based policy and can contain multiple policy statements. A file system always has\n exactly one file system policy, which can be the default policy or an explicit policy set or\n updated using this API operation. EFS file system policies have a 20,000 character\n limit. When an explicit policy is set, it overrides the default policy. For more information\n about the default file system policy, see Default EFS\n File System Policy.

\n \n

EFS file system policies have a 20,000 character limit.

\n
\n

This operation requires permissions for the elasticfilesystem:PutFileSystemPolicy action.

", + "smithy.api#documentation": "

Applies an Amazon EFS\n FileSystemPolicy to an Amazon EFS file system. A file system policy is an\n IAM resource-based policy and can contain multiple policy statements. A file system always has\n exactly one file system policy, which can be the default policy or an explicit policy set or\n updated using this API operation. EFS file system policies have a 20,000 character\n limit. When an explicit policy is set, it overrides the default policy. For more information\n about the default file system policy, see \n Default EFS file system policy.

\n \n

EFS file system policies have a 20,000 character limit.

\n
\n

This operation requires permissions for the elasticfilesystem:PutFileSystemPolicy action.

", "smithy.api#http": { "method": "PUT", "uri": "/2015-02-01/file-systems/{FileSystemId}/policy", @@ -4578,7 +4626,7 @@ "Policy": { "target": "com.amazonaws.efs#Policy", "traits": { - "smithy.api#documentation": "

The FileSystemPolicy that you're creating. Accepts a JSON formatted\n policy definition. EFS file system policies have a 20,000 character limit. To find\n out more about the elements that make up a file system policy, see EFS Resource-based Policies.

", + "smithy.api#documentation": "

The FileSystemPolicy that you're creating. Accepts a JSON formatted\n policy definition. EFS file system policies have a 20,000 character limit. To find\n out more about the elements that make up a file system policy, see Resource-based policies within Amazon EFS.

", "smithy.api#required": {} } }, @@ -4617,7 +4665,7 @@ } ], "traits": { - "smithy.api#documentation": "

Use this action to manage storage for your file system. A\n LifecycleConfiguration consists of one or more LifecyclePolicy\n objects that define the following:

\n \n \n

For more information, see Managing file system\n storage.

\n

Each Amazon EFS file system supports one lifecycle configuration, which applies to\n all files in the file system. If a LifecycleConfiguration object already exists\n for the specified file system, a PutLifecycleConfiguration call modifies the\n existing configuration. A PutLifecycleConfiguration call with an empty\n LifecyclePolicies array in the request body deletes any existing\n LifecycleConfiguration. In the request, specify the following:

\n \n

This operation requires permissions for the elasticfilesystem:PutLifecycleConfiguration operation.

\n

To apply a LifecycleConfiguration object to an encrypted file system, you\n need the same Key Management Service permissions as when you created the encrypted file system.

", + "smithy.api#documentation": "

Use this action to manage storage for your file system. A\n LifecycleConfiguration consists of one or more LifecyclePolicy\n objects that define the following:

\n \n \n

For more information, see Managing file system\n storage.

\n

Each Amazon EFS file system supports one lifecycle configuration, which applies to\n all files in the file system. If a LifecycleConfiguration object already exists\n for the specified file system, a PutLifecycleConfiguration call modifies the\n existing configuration. A PutLifecycleConfiguration call with an empty\n LifecyclePolicies array in the request body deletes any existing\n LifecycleConfiguration. In the request, specify the following:

\n \n

This operation requires permissions for the elasticfilesystem:PutLifecycleConfiguration operation.

\n

To apply a LifecycleConfiguration object to an encrypted file system, you\n need the same Key Management Service permissions as when you created the encrypted file system.

", "smithy.api#examples": [ { "title": "Creates a new lifecycleconfiguration object for a file system", @@ -4660,7 +4708,7 @@ "LifecyclePolicies": { "target": "com.amazonaws.efs#LifecyclePolicies", "traits": { - "smithy.api#documentation": "

An array of LifecyclePolicy objects that define the file system's\n LifecycleConfiguration object. A LifecycleConfiguration object\n informs EFS Lifecycle management of the following:

\n \n \n

When using the put-lifecycle-configuration CLI command or the\n PutLifecycleConfiguration API action, Amazon EFS requires that each\n LifecyclePolicy object have only a single transition. This means that in a\n request body, LifecyclePolicies must be structured as an array of\n LifecyclePolicy objects, one object for each storage transition. See the example\n requests in the following section for more information.

\n
", + "smithy.api#documentation": "

An array of LifecyclePolicy objects that define the file system's\n LifecycleConfiguration object. A LifecycleConfiguration object\n informs lifecycle management of the following:

\n \n \n

When using the put-lifecycle-configuration CLI command or the\n PutLifecycleConfiguration API action, Amazon EFS requires that each\n LifecyclePolicy object have only a single transition. This means that in a\n request body, LifecyclePolicies must be structured as an array of\n LifecyclePolicy objects, one object for each storage transition. See the example\n requests in the following section for more information.

\n
", "smithy.api#required": {} } } @@ -4739,6 +4787,12 @@ "smithy.api#documentation": "

An array of destination objects. Only one destination object is supported.

", "smithy.api#required": {} } + }, + "SourceFileSystemOwnerId": { + "target": "com.amazonaws.efs#AwsAccountId", + "traits": { + "smithy.api#documentation": "

ID of the Amazon Web Services account in which the source file system resides.

" + } } }, "traits": { @@ -4913,6 +4967,16 @@ "smithy.api#documentation": "EFS resources to which a preference applies to." } }, + "com.amazonaws.efs#RoleArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 2048 + }, + "smithy.api#pattern": "^arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+$" + } + }, "com.amazonaws.efs#RootDirectory": { "type": "structure", "members": { @@ -4930,7 +4994,7 @@ } }, "traits": { - "smithy.api#documentation": "

Specifies the directory on the Amazon EFS file system that the access point provides access to. \n The access point exposes the specified file system path as\n the root directory of your file system to applications using the access point. \n NFS clients using the access point can only access data in the access point's RootDirectory and it's subdirectories.

" + "smithy.api#documentation": "

Specifies the directory on the Amazon EFS file system that the access point\n provides access to. The access point exposes the specified file system path as the root\n directory of your file system to applications using the access point. NFS clients using the\n access point can only access data in the access point's RootDirectory and its\n subdirectories.

" } }, "com.amazonaws.efs#SecondaryGids": { @@ -5034,6 +5098,9 @@ } } }, + "com.amazonaws.efs#StatusMessage": { + "type": "string" + }, "com.amazonaws.efs#SubnetId": { "type": "string", "traits": { @@ -5578,7 +5645,7 @@ "ReplicationOverwriteProtection": { "target": "com.amazonaws.efs#ReplicationOverwriteProtection", "traits": { - "smithy.api#documentation": "

The status of the file system's replication overwrite protection.

\n \n

If the replication configuration is deleted, the file system's replication overwrite\n protection is re-enabled, the file system becomes writeable.

" + "smithy.api#documentation": "

The status of the file system's replication overwrite protection.

\n \n

If the replication configuration is deleted, the file system's replication overwrite\n protection is re-enabled and the file system becomes writeable.

" } } }, diff --git a/codegen/sdk-codegen/aws-models/elastic-load-balancing-v2.json b/codegen/sdk-codegen/aws-models/elastic-load-balancing-v2.json index 25f52d8f257..dddf0aa9af3 100644 --- a/codegen/sdk-codegen/aws-models/elastic-load-balancing-v2.json +++ b/codegen/sdk-codegen/aws-models/elastic-load-balancing-v2.json @@ -813,6 +813,112 @@ "com.amazonaws.elasticloadbalancingv2#CanonicalHostedZoneId": { "type": "string" }, + "com.amazonaws.elasticloadbalancingv2#CapacityDecreaseRequestsLimitExceededException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.elasticloadbalancingv2#ErrorDescription" + } + }, + "traits": { + "aws.protocols#awsQueryError": { + "code": "CapacityDecreaseRequestLimitExceeded", + "httpResponseCode": 400 + }, + "smithy.api#documentation": "

You've exceeded the daily capacity decrease limit for this reservation.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.elasticloadbalancingv2#CapacityReservationPendingException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.elasticloadbalancingv2#ErrorDescription" + } + }, + "traits": { + "aws.protocols#awsQueryError": { + "code": "CapacityReservationPending", + "httpResponseCode": 400 + }, + "smithy.api#documentation": "

There is a pending capacity reservation.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.elasticloadbalancingv2#CapacityReservationStateEnum": { + "type": "enum", + "members": { + "PROVISIONED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "provisioned" + } + }, + "PENDING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "pending" + } + }, + "REBALANCING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "rebalancing" + } + }, + "FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "failed" + } + } + } + }, + "com.amazonaws.elasticloadbalancingv2#CapacityReservationStatus": { + "type": "structure", + "members": { + "Code": { + "target": "com.amazonaws.elasticloadbalancingv2#CapacityReservationStateEnum", + "traits": { + "smithy.api#documentation": "

The status code.

" + } + }, + "Reason": { + "target": "com.amazonaws.elasticloadbalancingv2#StateReason", + "traits": { + "smithy.api#documentation": "

The reason code for the status.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The status of a capacity reservation.

" + } + }, + "com.amazonaws.elasticloadbalancingv2#CapacityUnits": { + "type": "integer" + }, + "com.amazonaws.elasticloadbalancingv2#CapacityUnitsDouble": { + "type": "double" + }, + "com.amazonaws.elasticloadbalancingv2#CapacityUnitsLimitExceededException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.elasticloadbalancingv2#ErrorDescription" + } + }, + "traits": { + "aws.protocols#awsQueryError": { + "code": "CapacityUnitsLimitExceeded", + "httpResponseCode": 400 + }, + "smithy.api#documentation": "

You've exceeded the capacity units limit.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, "com.amazonaws.elasticloadbalancingv2#Certificate": { "type": "structure", "members": { @@ -1810,6 +1916,9 @@ "com.amazonaws.elasticloadbalancingv2#DNSName": { "type": "string" }, + "com.amazonaws.elasticloadbalancingv2#DecreaseRequestsRemaining": { + "type": "integer" + }, "com.amazonaws.elasticloadbalancingv2#Default": { "type": "boolean" }, @@ -2262,6 +2371,71 @@ "smithy.api#output": {} } }, + "com.amazonaws.elasticloadbalancingv2#DescribeCapacityReservation": { + "type": "operation", + "input": { + "target": "com.amazonaws.elasticloadbalancingv2#DescribeCapacityReservationInput" + }, + "output": { + "target": "com.amazonaws.elasticloadbalancingv2#DescribeCapacityReservationOutput" + }, + "errors": [ + { + "target": "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException" + } + ], + "traits": { + "smithy.api#documentation": "

Describes the capacity reservation status for the specified load balancer.

" + } + }, + "com.amazonaws.elasticloadbalancingv2#DescribeCapacityReservationInput": { + "type": "structure", + "members": { + "LoadBalancerArn": { + "target": "com.amazonaws.elasticloadbalancingv2#LoadBalancerArn", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the load balancer.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.elasticloadbalancingv2#DescribeCapacityReservationOutput": { + "type": "structure", + "members": { + "LastModifiedTime": { + "target": "com.amazonaws.elasticloadbalancingv2#LastModifiedTime", + "traits": { + "smithy.api#documentation": "

The last time the capacity reservation was modified.

" + } + }, + "DecreaseRequestsRemaining": { + "target": "com.amazonaws.elasticloadbalancingv2#DecreaseRequestsRemaining", + "traits": { + "smithy.api#documentation": "

The amount of daily capacity decreases remaining.

" + } + }, + "MinimumLoadBalancerCapacity": { + "target": "com.amazonaws.elasticloadbalancingv2#MinimumLoadBalancerCapacity", + "traits": { + "smithy.api#documentation": "

The requested minimum capacity reservation for the load balancer

" + } + }, + "CapacityReservationState": { + "target": "com.amazonaws.elasticloadbalancingv2#ZonalCapacityReservationStates", + "traits": { + "smithy.api#documentation": "

The state of the capacity reservation.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.elasticloadbalancingv2#DescribeListenerAttributes": { "type": "operation", "input": { @@ -3921,6 +4095,9 @@ { "target": "com.amazonaws.elasticloadbalancingv2#DescribeAccountLimits" }, + { + "target": "com.amazonaws.elasticloadbalancingv2#DescribeCapacityReservation" + }, { "target": "com.amazonaws.elasticloadbalancingv2#DescribeListenerAttributes" }, @@ -3972,6 +4149,9 @@ { "target": "com.amazonaws.elasticloadbalancingv2#GetTrustStoreRevocationContent" }, + { + "target": "com.amazonaws.elasticloadbalancingv2#ModifyCapacityReservation" + }, { "target": "com.amazonaws.elasticloadbalancingv2#ModifyListener" }, @@ -5458,6 +5638,23 @@ "smithy.api#httpError": 400 } }, + "com.amazonaws.elasticloadbalancingv2#InsufficientCapacityException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.elasticloadbalancingv2#ErrorDescription" + } + }, + "traits": { + "aws.protocols#awsQueryError": { + "code": "InsufficientCapacity", + "httpResponseCode": 500 + }, + "smithy.api#documentation": "

There is insufficient capacity to reserve.

", + "smithy.api#error": "server", + "smithy.api#httpError": 500 + } + }, "com.amazonaws.elasticloadbalancingv2#InvalidCaCertificatesBundleException": { "type": "structure", "members": { @@ -5623,6 +5820,9 @@ "com.amazonaws.elasticloadbalancingv2#IsDefault": { "type": "boolean" }, + "com.amazonaws.elasticloadbalancingv2#LastModifiedTime": { + "type": "timestamp" + }, "com.amazonaws.elasticloadbalancingv2#Limit": { "type": "structure", "members": { @@ -6140,6 +6340,20 @@ "com.amazonaws.elasticloadbalancingv2#Max": { "type": "string" }, + "com.amazonaws.elasticloadbalancingv2#MinimumLoadBalancerCapacity": { + "type": "structure", + "members": { + "CapacityUnits": { + "target": "com.amazonaws.elasticloadbalancingv2#CapacityUnits", + "traits": { + "smithy.api#documentation": "

The number of capacity units.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The minimum capacity for a load balancer.

" + } + }, "com.amazonaws.elasticloadbalancingv2#MitigationInEffectEnum": { "type": "enum", "members": { @@ -6160,6 +6374,104 @@ "com.amazonaws.elasticloadbalancingv2#Mode": { "type": "string" }, + "com.amazonaws.elasticloadbalancingv2#ModifyCapacityReservation": { + "type": "operation", + "input": { + "target": "com.amazonaws.elasticloadbalancingv2#ModifyCapacityReservationInput" + }, + "output": { + "target": "com.amazonaws.elasticloadbalancingv2#ModifyCapacityReservationOutput" + }, + "errors": [ + { + "target": "com.amazonaws.elasticloadbalancingv2#CapacityDecreaseRequestsLimitExceededException" + }, + { + "target": "com.amazonaws.elasticloadbalancingv2#CapacityReservationPendingException" + }, + { + "target": "com.amazonaws.elasticloadbalancingv2#CapacityUnitsLimitExceededException" + }, + { + "target": "com.amazonaws.elasticloadbalancingv2#InsufficientCapacityException" + }, + { + "target": "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException" + }, + { + "target": "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException" + }, + { + "target": "com.amazonaws.elasticloadbalancingv2#OperationNotPermittedException" + }, + { + "target": "com.amazonaws.elasticloadbalancingv2#PriorRequestNotCompleteException" + } + ], + "traits": { + "smithy.api#documentation": "

Modifies the capacity reservation of the specified load balancer.

\n

When modifying capacity reservation, you must include at least one MinimumLoadBalancerCapacity \n or ResetCapacityReservation.

" + } + }, + "com.amazonaws.elasticloadbalancingv2#ModifyCapacityReservationInput": { + "type": "structure", + "members": { + "LoadBalancerArn": { + "target": "com.amazonaws.elasticloadbalancingv2#LoadBalancerArn", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the load balancer.

", + "smithy.api#required": {} + } + }, + "MinimumLoadBalancerCapacity": { + "target": "com.amazonaws.elasticloadbalancingv2#MinimumLoadBalancerCapacity", + "traits": { + "smithy.api#documentation": "

The minimum load balancer capacity reserved.

" + } + }, + "ResetCapacityReservation": { + "target": "com.amazonaws.elasticloadbalancingv2#ResetCapacityReservation", + "traits": { + "smithy.api#documentation": "

Resets the capacity reservation.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.elasticloadbalancingv2#ModifyCapacityReservationOutput": { + "type": "structure", + "members": { + "LastModifiedTime": { + "target": "com.amazonaws.elasticloadbalancingv2#LastModifiedTime", + "traits": { + "smithy.api#documentation": "

The last time the capacity reservation was modified.

" + } + }, + "DecreaseRequestsRemaining": { + "target": "com.amazonaws.elasticloadbalancingv2#DecreaseRequestsRemaining", + "traits": { + "smithy.api#documentation": "

The amount of daily capacity decreases remaining.

" + } + }, + "MinimumLoadBalancerCapacity": { + "target": "com.amazonaws.elasticloadbalancingv2#MinimumLoadBalancerCapacity", + "traits": { + "smithy.api#documentation": "

The requested minimum capacity reservation for the load balancer

" + } + }, + "CapacityReservationState": { + "target": "com.amazonaws.elasticloadbalancingv2#ZonalCapacityReservationStates", + "traits": { + "smithy.api#documentation": "

The state of the capacity reservation.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.elasticloadbalancingv2#ModifyListener": { "type": "operation", "input": { @@ -7150,6 +7462,23 @@ } } }, + "com.amazonaws.elasticloadbalancingv2#PriorRequestNotCompleteException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.elasticloadbalancingv2#ErrorDescription" + } + }, + "traits": { + "aws.protocols#awsQueryError": { + "code": "PriorRequestNotComplete", + "httpResponseCode": 429 + }, + "smithy.api#documentation": "

This operation is not allowed while a prior request has not been completed.

", + "smithy.api#error": "client", + "smithy.api#httpError": 429 + } + }, "com.amazonaws.elasticloadbalancingv2#PriorityInUseException": { "type": "structure", "members": { @@ -7630,6 +7959,9 @@ "smithy.api#output": {} } }, + "com.amazonaws.elasticloadbalancingv2#ResetCapacityReservation": { + "type": "boolean" + }, "com.amazonaws.elasticloadbalancingv2#ResourceArn": { "type": "string" }, @@ -8223,6 +8555,9 @@ { "target": "com.amazonaws.elasticloadbalancingv2#AvailabilityZoneNotSupportedException" }, + { + "target": "com.amazonaws.elasticloadbalancingv2#CapacityReservationPendingException" + }, { "target": "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException" }, @@ -9636,6 +9971,38 @@ "com.amazonaws.elasticloadbalancingv2#VpcId": { "type": "string" }, + "com.amazonaws.elasticloadbalancingv2#ZonalCapacityReservationState": { + "type": "structure", + "members": { + "State": { + "target": "com.amazonaws.elasticloadbalancingv2#CapacityReservationStatus", + "traits": { + "smithy.api#documentation": "

The state of the capacity reservation.

" + } + }, + "AvailabilityZone": { + "target": "com.amazonaws.elasticloadbalancingv2#ZoneName", + "traits": { + "smithy.api#documentation": "

Information about the availability zone.

" + } + }, + "EffectiveCapacityUnits": { + "target": "com.amazonaws.elasticloadbalancingv2#CapacityUnitsDouble", + "traits": { + "smithy.api#documentation": "

The number of effective capacity units.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The capacity reservation status for each availability zone.

" + } + }, + "com.amazonaws.elasticloadbalancingv2#ZonalCapacityReservationStates": { + "type": "list", + "member": { + "target": "com.amazonaws.elasticloadbalancingv2#ZonalCapacityReservationState" + } + }, "com.amazonaws.elasticloadbalancingv2#ZoneName": { "type": "string" } diff --git a/codegen/sdk-codegen/aws-models/glue.json b/codegen/sdk-codegen/aws-models/glue.json index 62eb3e594e1..7c32536a47b 100644 --- a/codegen/sdk-codegen/aws-models/glue.json +++ b/codegen/sdk-codegen/aws-models/glue.json @@ -10478,7 +10478,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new table optimizer for a specific function. compaction is the only currently supported optimizer type.

" + "smithy.api#documentation": "

Creates a new table optimizer for a specific function.

" } }, "com.amazonaws.glue#CreateTableOptimizerRequest": { @@ -10508,7 +10508,7 @@ "Type": { "target": "com.amazonaws.glue#TableOptimizerType", "traits": { - "smithy.api#documentation": "

The type of table optimizer. Currently, the only valid value is compaction.

", + "smithy.api#documentation": "

The type of table optimizer.

", "smithy.api#required": {} } }, @@ -26445,7 +26445,7 @@ "Type": { "target": "com.amazonaws.glue#TableOptimizerType", "traits": { - "smithy.api#documentation": "

The type of table optimizer. Currently, the only valid value is compaction.

", + "smithy.api#documentation": "

The type of table optimizer.

", "smithy.api#required": {} } }, @@ -36005,6 +36005,12 @@ "smithy.api#documentation": "

Whether table optimization is enabled.

" } }, + "vpcConfiguration": { + "target": "com.amazonaws.glue#TableOptimizerVpcConfiguration", + "traits": { + "smithy.api#documentation": "

A TableOptimizerVpcConfiguration object representing the VPC configuration for a table optimizer.

\n

This configuration is necessary to perform optimization on tables that are in a customer VPC.

" + } + }, "retentionConfiguration": { "target": "com.amazonaws.glue#RetentionConfiguration", "traits": { @@ -36142,6 +36148,20 @@ } } }, + "com.amazonaws.glue#TableOptimizerVpcConfiguration": { + "type": "union", + "members": { + "glueConnectionName": { + "target": "com.amazonaws.glue#glueConnectionNameString", + "traits": { + "smithy.api#documentation": "

The name of the Glue connection used for the VPC for the table optimizer.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

An object that describes the VPC configuration for a table optimizer.

\n

This configuration is necessary to perform optimization on tables that are in a customer VPC.

" + } + }, "com.amazonaws.glue#TablePrefix": { "type": "string", "traits": { @@ -39395,7 +39415,7 @@ "Type": { "target": "com.amazonaws.glue#TableOptimizerType", "traits": { - "smithy.api#documentation": "

The type of table optimizer. Currently, the only valid value is compaction.

", + "smithy.api#documentation": "

The type of table optimizer.

", "smithy.api#required": {} } }, @@ -40773,6 +40793,14 @@ "smithy.api#default": 0 } }, + "com.amazonaws.glue#glueConnectionNameString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1 + } + } + }, "com.amazonaws.glue#metricCounts": { "type": "long", "traits": { diff --git a/codegen/sdk-codegen/aws-models/iotsitewise.json b/codegen/sdk-codegen/aws-models/iotsitewise.json index c894af6deff..cdfbb572c3a 100644 --- a/codegen/sdk-codegen/aws-models/iotsitewise.json +++ b/codegen/sdk-codegen/aws-models/iotsitewise.json @@ -85,6 +85,9 @@ { "target": "com.amazonaws.iotsitewise#CreateDashboard" }, + { + "target": "com.amazonaws.iotsitewise#CreateDataset" + }, { "target": "com.amazonaws.iotsitewise#CreateGateway" }, @@ -109,6 +112,9 @@ { "target": "com.amazonaws.iotsitewise#DeleteDashboard" }, + { + "target": "com.amazonaws.iotsitewise#DeleteDataset" + }, { "target": "com.amazonaws.iotsitewise#DeleteGateway" }, @@ -148,6 +154,9 @@ { "target": "com.amazonaws.iotsitewise#DescribeDashboard" }, + { + "target": "com.amazonaws.iotsitewise#DescribeDataset" + }, { "target": "com.amazonaws.iotsitewise#DescribeDefaultEncryptionConfiguration" }, @@ -196,6 +205,9 @@ { "target": "com.amazonaws.iotsitewise#GetInterpolatedAssetPropertyValues" }, + { + "target": "com.amazonaws.iotsitewise#InvokeAssistant" + }, { "target": "com.amazonaws.iotsitewise#ListAccessPolicies" }, @@ -232,6 +244,9 @@ { "target": "com.amazonaws.iotsitewise#ListDashboards" }, + { + "target": "com.amazonaws.iotsitewise#ListDatasets" + }, { "target": "com.amazonaws.iotsitewise#ListGateways" }, @@ -283,6 +298,9 @@ { "target": "com.amazonaws.iotsitewise#UpdateDashboard" }, + { + "target": "com.amazonaws.iotsitewise#UpdateDataset" + }, { "target": "com.amazonaws.iotsitewise#UpdateGateway" }, @@ -1430,7 +1448,7 @@ "type": "structure", "members": { "alarmRoleArn": { - "target": "com.amazonaws.iotsitewise#ARN", + "target": "com.amazonaws.iotsitewise#IamArn", "traits": { "smithy.api#documentation": "

The ARN of the IAM role that allows the alarm to perform actions and access Amazon Web Services\n resources and services, such as IoT Events.

", "smithy.api#required": {} @@ -1986,7 +2004,7 @@ "dataType": { "target": "com.amazonaws.iotsitewise#PropertyDataType", "traits": { - "smithy.api#documentation": "

The data type of the asset model property.

", + "smithy.api#documentation": "

The data type of the asset model property.

\n

If you specify STRUCT, you must also specify dataTypeSpec to\n identify the type of the structure for this property.

", "smithy.api#required": {} } }, @@ -4365,6 +4383,32 @@ } } }, + "com.amazonaws.iotsitewise#Citation": { + "type": "structure", + "members": { + "reference": { + "target": "com.amazonaws.iotsitewise#Reference", + "traits": { + "smithy.api#documentation": "

Contains information about the data source.

" + } + }, + "content": { + "target": "com.amazonaws.iotsitewise#Content", + "traits": { + "smithy.api#documentation": "

Contains the cited text from the data source.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains text content to which the SiteWise Assistant refers to, and generate the final response. \n It also contains information about the source.

" + } + }, + "com.amazonaws.iotsitewise#Citations": { + "type": "list", + "member": { + "target": "com.amazonaws.iotsitewise#Citation" + } + }, "com.amazonaws.iotsitewise#ClientToken": { "type": "string", "traits": { @@ -4696,6 +4740,30 @@ "smithy.api#httpError": 409 } }, + "com.amazonaws.iotsitewise#Content": { + "type": "structure", + "members": { + "text": { + "target": "com.amazonaws.iotsitewise#String", + "traits": { + "smithy.api#documentation": "

The cited text from the data source.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains the cited text from the data source.

" + } + }, + "com.amazonaws.iotsitewise#ConversationId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 36, + "max": 36 + }, + "smithy.api#pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" + } + }, "com.amazonaws.iotsitewise#CoreDeviceThingName": { "type": "string", "traits": { @@ -5432,7 +5500,7 @@ "dashboardDefinition": { "target": "com.amazonaws.iotsitewise#DashboardDefinition", "traits": { - "smithy.api#documentation": "

The dashboard definition specified in a JSON literal. For detailed information, see\n Creating dashboards (CLI) in the IoT SiteWise User Guide.

", + "smithy.api#documentation": "

The dashboard definition specified in a JSON literal.

\n \n

in the IoT SiteWise User Guide\n

", "smithy.api#required": {} } }, @@ -5476,6 +5544,125 @@ "smithy.api#output": {} } }, + "com.amazonaws.iotsitewise#CreateDataset": { + "type": "operation", + "input": { + "target": "com.amazonaws.iotsitewise#CreateDatasetRequest" + }, + "output": { + "target": "com.amazonaws.iotsitewise#CreateDatasetResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iotsitewise#ConflictingOperationException" + }, + { + "target": "com.amazonaws.iotsitewise#InternalFailureException" + }, + { + "target": "com.amazonaws.iotsitewise#InvalidRequestException" + }, + { + "target": "com.amazonaws.iotsitewise#LimitExceededException" + }, + { + "target": "com.amazonaws.iotsitewise#ResourceAlreadyExistsException" + }, + { + "target": "com.amazonaws.iotsitewise#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.iotsitewise#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a dataset to connect an external datasource.

", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "POST", + "uri": "/datasets", + "code": 202 + } + } + }, + "com.amazonaws.iotsitewise#CreateDatasetRequest": { + "type": "structure", + "members": { + "datasetId": { + "target": "com.amazonaws.iotsitewise#ID", + "traits": { + "smithy.api#documentation": "

The ID of the dataset.

" + } + }, + "datasetName": { + "target": "com.amazonaws.iotsitewise#RestrictedName", + "traits": { + "smithy.api#documentation": "

The name of the dataset.

", + "smithy.api#required": {} + } + }, + "datasetDescription": { + "target": "com.amazonaws.iotsitewise#RestrictedDescription", + "traits": { + "smithy.api#documentation": "

A description about the dataset, and its functionality.

" + } + }, + "datasetSource": { + "target": "com.amazonaws.iotsitewise#DatasetSource", + "traits": { + "smithy.api#documentation": "

The data source for the dataset.

", + "smithy.api#required": {} + } + }, + "clientToken": { + "target": "com.amazonaws.iotsitewise#ClientToken", + "traits": { + "smithy.api#documentation": "

A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

", + "smithy.api#idempotencyToken": {} + } + }, + "tags": { + "target": "com.amazonaws.iotsitewise#TagMap", + "traits": { + "smithy.api#documentation": "

A list of key-value pairs that contain metadata for the access policy. For more\n information, see Tagging your\n IoT SiteWise resources in the IoT SiteWise User Guide.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.iotsitewise#CreateDatasetResponse": { + "type": "structure", + "members": { + "datasetId": { + "target": "com.amazonaws.iotsitewise#ID", + "traits": { + "smithy.api#documentation": "

The ID of the dataset.

", + "smithy.api#required": {} + } + }, + "datasetArn": { + "target": "com.amazonaws.iotsitewise#ARN", + "traits": { + "smithy.api#documentation": "

The ARN of the dataset. \n The format is arn:${Partition}:iotsitewise:${Region}:${Account}:dataset/${DatasetId}.

", + "smithy.api#required": {} + } + }, + "datasetStatus": { + "target": "com.amazonaws.iotsitewise#DatasetStatus", + "traits": { + "smithy.api#documentation": "

The status of the dataset. This contains the state and any error messages. \n State is CREATING after a successfull call to this API, and any associated error message. The state is \n ACTIVE when ready to use.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.iotsitewise#CreateGateway": { "type": "operation", "input": { @@ -5637,7 +5824,7 @@ } }, "roleArn": { - "target": "com.amazonaws.iotsitewise#ARN", + "target": "com.amazonaws.iotsitewise#IamArn", "traits": { "smithy.api#documentation": "

The ARN of a service role that allows the portal's users to access your IoT SiteWise\n resources on your behalf. For more information, see Using service roles for IoT SiteWise Monitor in the\n IoT SiteWise User Guide.

", "smithy.api#required": {} @@ -5666,6 +5853,18 @@ "traits": { "smithy.api#documentation": "

Contains the configuration information of an alarm created in an IoT SiteWise Monitor portal.\n You can use the alarm to monitor an asset property and get notified when the asset property value is outside a specified range.\n For more information, see Monitoring with alarms in the IoT SiteWise Application Guide.

" } + }, + "portalType": { + "target": "com.amazonaws.iotsitewise#PortalType", + "traits": { + "smithy.api#documentation": "

Define the type of portal. The value for IoT SiteWise Monitor (Classic) is SITEWISE_PORTAL_V1. The value for IoT SiteWise Monitor (AI-aware) is SITEWISE_PORTAL_V2.

" + } + }, + "portalTypeConfiguration": { + "target": "com.amazonaws.iotsitewise#PortalTypeConfiguration", + "traits": { + "smithy.api#documentation": "

The configuration entry associated with the specific portal type. The value for IoT SiteWise Monitor (Classic) is SITEWISE_PORTAL_V1. The value for IoT SiteWise Monitor (AI-aware) is SITEWISE_PORTAL_V2.

" + } } }, "traits": { @@ -5918,96 +6117,282 @@ "smithy.api#documentation": "

Contains a dashboard summary.

" } }, - "com.amazonaws.iotsitewise#Datum": { + "com.amazonaws.iotsitewise#DataSetReference": { "type": "structure", "members": { - "scalarValue": { - "target": "com.amazonaws.iotsitewise#ScalarValue", + "datasetArn": { + "target": "com.amazonaws.iotsitewise#String", "traits": { - "smithy.api#documentation": "

Indicates if the data point is a scalar value such as integer, string, double, or Boolean.\n

" + "smithy.api#documentation": "

The ARN of the dataset. \n The format is arn:${Partition}:iotsitewise:${Region}:${Account}:dataset/${DatasetId}.

" } }, - "arrayValue": { - "target": "com.amazonaws.iotsitewise#DatumList", + "source": { + "target": "com.amazonaws.iotsitewise#Source", "traits": { - "smithy.api#documentation": "

Indicates if the data point is an array.

" + "smithy.api#documentation": "

The data source for the dataset.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains information about the dataset use and it's source.

" + } + }, + "com.amazonaws.iotsitewise#DatasetSource": { + "type": "structure", + "members": { + "sourceType": { + "target": "com.amazonaws.iotsitewise#DatasetSourceType", + "traits": { + "smithy.api#documentation": "

The type of data source for the dataset.

", + "smithy.api#required": {} } }, - "rowValue": { - "target": "com.amazonaws.iotsitewise#Row", + "sourceFormat": { + "target": "com.amazonaws.iotsitewise#DatasetSourceFormat", "traits": { - "smithy.api#documentation": "

Indicates if the data point is a row.

" + "smithy.api#documentation": "

The format of the dataset source associated with the dataset.

", + "smithy.api#required": {} } }, - "nullValue": { - "target": "com.amazonaws.iotsitewise#NullableBoolean", + "sourceDetail": { + "target": "com.amazonaws.iotsitewise#SourceDetail", "traits": { - "smithy.api#documentation": "

Indicates if the data point is null.

" + "smithy.api#documentation": "

The details of the dataset source associated with the dataset.

" } } }, "traits": { - "smithy.api#documentation": "

Represents a single data point in a query result.

" + "smithy.api#documentation": "

The data source for the dataset.

" } }, - "com.amazonaws.iotsitewise#DatumList": { - "type": "list", - "member": { - "target": "com.amazonaws.iotsitewise#Datum" + "com.amazonaws.iotsitewise#DatasetSourceFormat": { + "type": "enum", + "members": { + "KNOWLEDGE_BASE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "KNOWLEDGE_BASE" + } + } } }, - "com.amazonaws.iotsitewise#DefaultValue": { - "type": "string", - "traits": { - "smithy.api#pattern": "^[^\\u0000-\\u001F\\u007F]+$" + "com.amazonaws.iotsitewise#DatasetSourceType": { + "type": "enum", + "members": { + "KENDRA": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "KENDRA" + } + } } }, - "com.amazonaws.iotsitewise#DeleteAccessPolicy": { - "type": "operation", - "input": { - "target": "com.amazonaws.iotsitewise#DeleteAccessPolicyRequest" - }, - "output": { - "target": "com.amazonaws.iotsitewise#DeleteAccessPolicyResponse" - }, - "errors": [ - { - "target": "com.amazonaws.iotsitewise#InternalFailureException" + "com.amazonaws.iotsitewise#DatasetState": { + "type": "enum", + "members": { + "CREATING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CREATING" + } }, - { - "target": "com.amazonaws.iotsitewise#InvalidRequestException" + "ACTIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ACTIVE" + } }, - { - "target": "com.amazonaws.iotsitewise#ResourceNotFoundException" + "UPDATING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UPDATING" + } }, - { - "target": "com.amazonaws.iotsitewise#ThrottlingException" - } - ], - "traits": { - "smithy.api#documentation": "

Deletes an access policy that grants the specified identity access to the specified\n IoT SiteWise Monitor resource. You can use this operation to revoke access to an IoT SiteWise Monitor\n resource.

", - "smithy.api#endpoint": { - "hostPrefix": "monitor." + "DELETING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DELETING" + } }, - "smithy.api#http": { - "method": "DELETE", - "uri": "/access-policies/{accessPolicyId}", - "code": 204 + "FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FAILED" + } } } }, - "com.amazonaws.iotsitewise#DeleteAccessPolicyRequest": { + "com.amazonaws.iotsitewise#DatasetStatus": { "type": "structure", "members": { - "accessPolicyId": { - "target": "com.amazonaws.iotsitewise#ID", + "state": { + "target": "com.amazonaws.iotsitewise#DatasetState", "traits": { - "smithy.api#documentation": "

The ID of the access policy to be deleted.

", - "smithy.api#httpLabel": {}, + "smithy.api#documentation": "

The current status of the dataset.

", "smithy.api#required": {} } }, - "clientToken": { + "error": { + "target": "com.amazonaws.iotsitewise#ErrorDetails" + } + }, + "traits": { + "smithy.api#documentation": "

The status of the dataset. This contains the state and any error messages. The state is \n ACTIVE when ready to use.

" + } + }, + "com.amazonaws.iotsitewise#DatasetSummaries": { + "type": "list", + "member": { + "target": "com.amazonaws.iotsitewise#DatasetSummary" + } + }, + "com.amazonaws.iotsitewise#DatasetSummary": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.iotsitewise#ID", + "traits": { + "smithy.api#documentation": "

The ID of the dataset.

", + "smithy.api#required": {} + } + }, + "arn": { + "target": "com.amazonaws.iotsitewise#ARN", + "traits": { + "smithy.api#documentation": "

The ARN of the dataset. \n The format is arn:${Partition}:iotsitewise:${Region}:${Account}:dataset/${DatasetId}.

", + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.iotsitewise#RestrictedName", + "traits": { + "smithy.api#documentation": "

The name of the dataset.

", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.iotsitewise#RestrictedDescription", + "traits": { + "smithy.api#documentation": "

A description about the dataset, and its functionality.

", + "smithy.api#required": {} + } + }, + "creationDate": { + "target": "com.amazonaws.iotsitewise#Timestamp", + "traits": { + "smithy.api#documentation": "

The dataset creation date, in Unix epoch time.

", + "smithy.api#required": {} + } + }, + "lastUpdateDate": { + "target": "com.amazonaws.iotsitewise#Timestamp", + "traits": { + "smithy.api#documentation": "

The date the dataset was last updated, in Unix epoch time.

", + "smithy.api#required": {} + } + }, + "status": { + "target": "com.amazonaws.iotsitewise#DatasetStatus", + "traits": { + "smithy.api#documentation": "

The status of the dataset. This contains the state and any error messages. The state is \n ACTIVE when ready to use.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The summary details for the dataset.

" + } + }, + "com.amazonaws.iotsitewise#Datum": { + "type": "structure", + "members": { + "scalarValue": { + "target": "com.amazonaws.iotsitewise#ScalarValue", + "traits": { + "smithy.api#documentation": "

Indicates if the data point is a scalar value such as integer, string, double, or Boolean.\n

" + } + }, + "arrayValue": { + "target": "com.amazonaws.iotsitewise#DatumList", + "traits": { + "smithy.api#documentation": "

Indicates if the data point is an array.

" + } + }, + "rowValue": { + "target": "com.amazonaws.iotsitewise#Row", + "traits": { + "smithy.api#documentation": "

Indicates if the data point is a row.

" + } + }, + "nullValue": { + "target": "com.amazonaws.iotsitewise#NullableBoolean", + "traits": { + "smithy.api#documentation": "

Indicates if the data point is null.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a single data point in a query result.

" + } + }, + "com.amazonaws.iotsitewise#DatumList": { + "type": "list", + "member": { + "target": "com.amazonaws.iotsitewise#Datum" + } + }, + "com.amazonaws.iotsitewise#DefaultValue": { + "type": "string", + "traits": { + "smithy.api#pattern": "^[^\\u0000-\\u001F\\u007F]+$" + } + }, + "com.amazonaws.iotsitewise#DeleteAccessPolicy": { + "type": "operation", + "input": { + "target": "com.amazonaws.iotsitewise#DeleteAccessPolicyRequest" + }, + "output": { + "target": "com.amazonaws.iotsitewise#DeleteAccessPolicyResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iotsitewise#InternalFailureException" + }, + { + "target": "com.amazonaws.iotsitewise#InvalidRequestException" + }, + { + "target": "com.amazonaws.iotsitewise#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.iotsitewise#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes an access policy that grants the specified identity access to the specified\n IoT SiteWise Monitor resource. You can use this operation to revoke access to an IoT SiteWise Monitor\n resource.

", + "smithy.api#endpoint": { + "hostPrefix": "monitor." + }, + "smithy.api#http": { + "method": "DELETE", + "uri": "/access-policies/{accessPolicyId}", + "code": 204 + } + } + }, + "com.amazonaws.iotsitewise#DeleteAccessPolicyRequest": { + "type": "structure", + "members": { + "accessPolicyId": { + "target": "com.amazonaws.iotsitewise#ID", + "traits": { + "smithy.api#documentation": "

The ID of the access policy to be deleted.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "clientToken": { "target": "com.amazonaws.iotsitewise#ClientToken", "traits": { "smithy.api#documentation": "

A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

", @@ -6375,6 +6760,82 @@ "smithy.api#output": {} } }, + "com.amazonaws.iotsitewise#DeleteDataset": { + "type": "operation", + "input": { + "target": "com.amazonaws.iotsitewise#DeleteDatasetRequest" + }, + "output": { + "target": "com.amazonaws.iotsitewise#DeleteDatasetResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iotsitewise#ConflictingOperationException" + }, + { + "target": "com.amazonaws.iotsitewise#InternalFailureException" + }, + { + "target": "com.amazonaws.iotsitewise#InvalidRequestException" + }, + { + "target": "com.amazonaws.iotsitewise#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.iotsitewise#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes a dataset. This cannot be undone.

", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "DELETE", + "uri": "/datasets/{datasetId}", + "code": 202 + } + } + }, + "com.amazonaws.iotsitewise#DeleteDatasetRequest": { + "type": "structure", + "members": { + "datasetId": { + "target": "com.amazonaws.iotsitewise#CustomID", + "traits": { + "smithy.api#documentation": "

The ID of the dataset.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "clientToken": { + "target": "com.amazonaws.iotsitewise#ClientToken", + "traits": { + "smithy.api#documentation": "

A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

", + "smithy.api#httpQuery": "clientToken", + "smithy.api#idempotencyToken": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.iotsitewise#DeleteDatasetResponse": { + "type": "structure", + "members": { + "datasetStatus": { + "target": "com.amazonaws.iotsitewise#DatasetStatus", + "traits": { + "smithy.api#documentation": "

The status of the dataset. This contains the state and any error messages. \n State is DELETING after a successfull call to this API, and any associated error message.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.iotsitewise#DeleteFilesAfterImport": { "type": "boolean" }, @@ -7400,7 +7861,7 @@ "eTag": { "target": "com.amazonaws.iotsitewise#ETag", "traits": { - "smithy.api#documentation": "

The entity tag (ETag) is a hash of the retrieved version of the asset model. It's used to make\n concurrent updates safely to the resource. See Optimistic locking for asset model writes\n in the IoT SiteWise User Guide.\n

\n

See \n Optimistic locking for asset model writes \n in the IoT SiteWise User Guide.

", + "smithy.api#documentation": "

The entity tag (ETag) is a hash of the retrieved version of the asset model. It's used to make\n concurrent updates safely to the resource. See Optimistic locking for asset model writes\n in the IoT SiteWise User Guide.\n

\n

See Optimistic locking for asset\n model writes in the IoT SiteWise User Guide.

", "smithy.api#httpHeader": "ETag" } } @@ -7879,6 +8340,126 @@ "smithy.api#output": {} } }, + "com.amazonaws.iotsitewise#DescribeDataset": { + "type": "operation", + "input": { + "target": "com.amazonaws.iotsitewise#DescribeDatasetRequest" + }, + "output": { + "target": "com.amazonaws.iotsitewise#DescribeDatasetResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iotsitewise#InternalFailureException" + }, + { + "target": "com.amazonaws.iotsitewise#InvalidRequestException" + }, + { + "target": "com.amazonaws.iotsitewise#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.iotsitewise#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Retrieves information about a dataset.

", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "GET", + "uri": "/datasets/{datasetId}", + "code": 200 + } + } + }, + "com.amazonaws.iotsitewise#DescribeDatasetRequest": { + "type": "structure", + "members": { + "datasetId": { + "target": "com.amazonaws.iotsitewise#CustomID", + "traits": { + "smithy.api#documentation": "

The ID of the dataset.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.iotsitewise#DescribeDatasetResponse": { + "type": "structure", + "members": { + "datasetId": { + "target": "com.amazonaws.iotsitewise#ID", + "traits": { + "smithy.api#documentation": "

The ID of the dataset.

", + "smithy.api#required": {} + } + }, + "datasetArn": { + "target": "com.amazonaws.iotsitewise#ARN", + "traits": { + "smithy.api#documentation": "

The ARN of the dataset. \n The format is arn:${Partition}:iotsitewise:${Region}:${Account}:dataset/${DatasetId}.

", + "smithy.api#required": {} + } + }, + "datasetName": { + "target": "com.amazonaws.iotsitewise#RestrictedName", + "traits": { + "smithy.api#documentation": "

The name of the dataset.

", + "smithy.api#required": {} + } + }, + "datasetDescription": { + "target": "com.amazonaws.iotsitewise#RestrictedDescription", + "traits": { + "smithy.api#documentation": "

A description about the dataset, and its functionality.

", + "smithy.api#required": {} + } + }, + "datasetSource": { + "target": "com.amazonaws.iotsitewise#DatasetSource", + "traits": { + "smithy.api#documentation": "

The data source for the dataset.

", + "smithy.api#required": {} + } + }, + "datasetStatus": { + "target": "com.amazonaws.iotsitewise#DatasetStatus", + "traits": { + "smithy.api#documentation": "

The status of the dataset. This contains the state and any error messages. \n State is CREATING after a successfull call to this API, and any associated error message. The state is \n ACTIVE when ready to use.

", + "smithy.api#required": {} + } + }, + "datasetCreationDate": { + "target": "com.amazonaws.iotsitewise#Timestamp", + "traits": { + "smithy.api#documentation": "

The dataset creation date, in Unix epoch time.

", + "smithy.api#required": {} + } + }, + "datasetLastUpdateDate": { + "target": "com.amazonaws.iotsitewise#Timestamp", + "traits": { + "smithy.api#documentation": "

The date the dataset was last updated, in Unix epoch time.

", + "smithy.api#required": {} + } + }, + "datasetVersion": { + "target": "com.amazonaws.iotsitewise#Version", + "traits": { + "smithy.api#documentation": "

The version of the dataset.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.iotsitewise#DescribeDefaultEncryptionConfiguration": { "type": "operation", "input": { @@ -8064,7 +8645,7 @@ "capabilitySyncStatus": { "target": "com.amazonaws.iotsitewise#CapabilitySyncStatus", "traits": { - "smithy.api#documentation": "

The synchronization status of the capability configuration. The sync status can be one of the following:

\n ", + "smithy.api#documentation": "

The synchronization status of the capability configuration. The sync status can be one of the following:

\n ", "smithy.api#required": {} } } @@ -8358,7 +8939,7 @@ } }, "roleArn": { - "target": "com.amazonaws.iotsitewise#ARN", + "target": "com.amazonaws.iotsitewise#IamArn", "traits": { "smithy.api#documentation": "

The ARN of the service role that allows the portal's users to access your IoT SiteWise\n resources on your behalf. For more information, see Using service roles for IoT SiteWise Monitor in the\n IoT SiteWise User Guide.

" } @@ -8380,6 +8961,18 @@ "traits": { "smithy.api#documentation": "

Contains the configuration information of an alarm created in an IoT SiteWise Monitor portal.

" } + }, + "portalType": { + "target": "com.amazonaws.iotsitewise#PortalType", + "traits": { + "smithy.api#documentation": "

Define the type of portal. The value for IoT SiteWise Monitor (Classic) is SITEWISE_PORTAL_V1. The value for IoT SiteWise Monitor (AI-aware) is SITEWISE_PORTAL_V2.

" + } + }, + "portalTypeConfiguration": { + "target": "com.amazonaws.iotsitewise#PortalTypeConfiguration", + "traits": { + "smithy.api#documentation": "

The configuration entry associated with the specific portal type. The value for IoT SiteWise Monitor (Classic) is SITEWISE_PORTAL_V1. The value for IoT SiteWise Monitor (AI-aware) is SITEWISE_PORTAL_V2.

" + } } }, "traits": { @@ -8964,7 +9557,8 @@ "min": 1, "max": 255 }, - "smithy.api#pattern": "^[^@]+@[^@]+$" + "smithy.api#pattern": "^[a-zA-Z0-9_\\-\\.\\+]+@[a-zA-Z0-9_\\-\\.\\+]+\\.[a-zA-Z]{2,}$", + "smithy.api#sensitive": {} } }, "com.amazonaws.iotsitewise#EncryptionType": { @@ -9250,6 +9844,13 @@ "traits": { "smithy.api#documentation": "

The maximum number of results to return at one time. The default is 25.

" } + }, + "clientToken": { + "target": "com.amazonaws.iotsitewise#ClientToken", + "traits": { + "smithy.api#documentation": "

A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

", + "smithy.api#idempotencyToken": {} + } } }, "traits": { @@ -9434,7 +10035,7 @@ "capabilitySyncStatus": { "target": "com.amazonaws.iotsitewise#CapabilitySyncStatus", "traits": { - "smithy.api#documentation": "

The synchronization status of the capability configuration. The sync status can be one of the following:

\n ", + "smithy.api#documentation": "

The synchronization status of the capability configuration. The sync status can be one of the following:

\n ", "smithy.api#required": {} } } @@ -10131,7 +10732,7 @@ "type": "structure", "members": { "arn": { - "target": "com.amazonaws.iotsitewise#ARN", + "target": "com.amazonaws.iotsitewise#IamArn", "traits": { "smithy.api#documentation": "

The ARN of the IAM role. For more information, see IAM ARNs in the\n IAM User Guide.

", "smithy.api#required": {} @@ -10146,7 +10747,7 @@ "type": "structure", "members": { "arn": { - "target": "com.amazonaws.iotsitewise#ARN", + "target": "com.amazonaws.iotsitewise#IamArn", "traits": { "smithy.api#documentation": "

The ARN of the IAM user. For more information, see IAM ARNs in the\n IAM User Guide.

\n \n

If you delete the IAM user, access policies that contain this identity include an\n empty arn. You can delete the access policy for the IAM user that no longer\n exists.

\n
", "smithy.api#required": {} @@ -10179,6 +10780,16 @@ } } }, + "com.amazonaws.iotsitewise#IamArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1600 + }, + "smithy.api#pattern": "^arn:aws(-cn|-us-gov)?:[a-zA-Z0-9-:\\/_\\.\\+=,@]+$" + } + }, "com.amazonaws.iotsitewise#Identity": { "type": "structure", "members": { @@ -10419,6 +11030,120 @@ "smithy.api#httpError": 400 } }, + "com.amazonaws.iotsitewise#InvocationOutput": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.iotsitewise#String", + "traits": { + "smithy.api#documentation": "

The text message of the SiteWise Assistant's response.

" + } + }, + "citations": { + "target": "com.amazonaws.iotsitewise#Citations", + "traits": { + "smithy.api#documentation": "

A list of citations, and related information for the SiteWise Assistant's response.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

This contains the SiteWise Assistant's response and the corresponding citation.

" + } + }, + "com.amazonaws.iotsitewise#InvokeAssistant": { + "type": "operation", + "input": { + "target": "com.amazonaws.iotsitewise#InvokeAssistantRequest" + }, + "output": { + "target": "com.amazonaws.iotsitewise#InvokeAssistantResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iotsitewise#AccessDeniedException" + }, + { + "target": "com.amazonaws.iotsitewise#ConflictingOperationException" + }, + { + "target": "com.amazonaws.iotsitewise#InternalFailureException" + }, + { + "target": "com.amazonaws.iotsitewise#InvalidRequestException" + }, + { + "target": "com.amazonaws.iotsitewise#LimitExceededException" + }, + { + "target": "com.amazonaws.iotsitewise#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.iotsitewise#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Invokes SiteWise Assistant to start or continue a conversation.

", + "smithy.api#endpoint": { + "hostPrefix": "data." + }, + "smithy.api#http": { + "method": "POST", + "uri": "/assistant/invocation", + "code": 200 + } + } + }, + "com.amazonaws.iotsitewise#InvokeAssistantRequest": { + "type": "structure", + "members": { + "conversationId": { + "target": "com.amazonaws.iotsitewise#ConversationId", + "traits": { + "smithy.api#documentation": "

The ID assigned to a conversation. IoT SiteWise automatically generates a unique ID for you, and this parameter is never required. \n However, if you prefer to have your own ID, you must specify it here in UUID format. If you specify your own ID, it must be globally unique.

" + } + }, + "message": { + "target": "com.amazonaws.iotsitewise#MessageInput", + "traits": { + "smithy.api#documentation": "

A text message sent to the SiteWise Assistant by the user.

", + "smithy.api#required": {} + } + }, + "enableTrace": { + "target": "smithy.api#PrimitiveBoolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

Specifies if to turn trace on or not. It is used to track the SiteWise Assistant's \n reasoning, and data access process.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.iotsitewise#InvokeAssistantResponse": { + "type": "structure", + "members": { + "body": { + "target": "com.amazonaws.iotsitewise#ResponseStream", + "traits": { + "smithy.api#httpPayload": {}, + "smithy.api#required": {} + } + }, + "conversationId": { + "target": "com.amazonaws.iotsitewise#ConversationId", + "traits": { + "smithy.api#documentation": "

The ID of the conversation, in UUID format. This ID uniquely identifies the conversation within IoT SiteWise.

", + "smithy.api#httpHeader": "x-amz-iotsitewise-assistant-conversation-id", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.iotsitewise#IotCoreThingName": { "type": "string", "traits": { @@ -10520,6 +11245,28 @@ "smithy.api#documentation": "

Contains the job summary information.

" } }, + "com.amazonaws.iotsitewise#KendraSourceDetail": { + "type": "structure", + "members": { + "knowledgeBaseArn": { + "target": "com.amazonaws.iotsitewise#ARN", + "traits": { + "smithy.api#documentation": "

The knowledgeBaseArn details for the Kendra dataset source.

", + "smithy.api#required": {} + } + }, + "roleArn": { + "target": "com.amazonaws.iotsitewise#ARN", + "traits": { + "smithy.api#documentation": "

The roleARN details for the Kendra dataset source.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The source details for the Kendra dataset source.

" + } + }, "com.amazonaws.iotsitewise#KmsKeyId": { "type": "string", "traits": { @@ -10614,7 +11361,7 @@ } }, "iamArn": { - "target": "com.amazonaws.iotsitewise#ARN", + "target": "com.amazonaws.iotsitewise#IamArn", "traits": { "smithy.api#documentation": "

The ARN of the IAM user. For more information, see IAM ARNs in the\n IAM User Guide. This parameter is required if you specify\n IAM for identityType.

", "smithy.api#httpQuery": "iamArn" @@ -11017,7 +11764,7 @@ "assetModelTypes": { "target": "com.amazonaws.iotsitewise#ListAssetModelsTypeFilter", "traits": { - "smithy.api#documentation": "

The type of asset model. If you don't provide an assetModelTypes, all types of asset models are returned.

\n ", + "smithy.api#documentation": "

The type of asset model. If you don't provide an assetModelTypes, all types\n of asset models are returned.

\n ", "smithy.api#httpQuery": "assetModelTypes" } }, @@ -11456,7 +12203,7 @@ "hierarchyId": { "target": "com.amazonaws.iotsitewise#CustomID", "traits": { - "smithy.api#documentation": "

(Optional) If you don't provide a hierarchyId, all the immediate assets in the traversalDirection will be returned.

\n

\n The ID of the hierarchy by which child assets are associated to the asset. (This can be either the actual ID in UUID format, or else externalId: followed by the external ID, if it has one.\n For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.)

\n

For more information, see Asset hierarchies in the IoT SiteWise User Guide.

", + "smithy.api#documentation": "

(Optional) If you don't provide a hierarchyId, all the immediate assets in\n the traversalDirection will be returned.

\n

The ID of the hierarchy by which child assets are associated to the asset.\n (This can be either the actual ID in UUID format, or else externalId: followed by the external ID, if it has one.\n For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.)

\n

For more information, see Asset hierarchies in the IoT SiteWise User Guide.

", "smithy.api#httpQuery": "hierarchyId" } }, @@ -11761,39 +12508,127 @@ }, "smithy.api#http": { "method": "GET", - "uri": "/dashboards", + "uri": "/dashboards", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "items": "dashboardSummaries", + "pageSize": "maxResults" + } + } + }, + "com.amazonaws.iotsitewise#ListDashboardsRequest": { + "type": "structure", + "members": { + "projectId": { + "target": "com.amazonaws.iotsitewise#ID", + "traits": { + "smithy.api#documentation": "

The ID of the project.

", + "smithy.api#httpQuery": "projectId", + "smithy.api#required": {} + } + }, + "nextToken": { + "target": "com.amazonaws.iotsitewise#NextToken", + "traits": { + "smithy.api#documentation": "

The token to be used for the next set of paginated results.

", + "smithy.api#httpQuery": "nextToken" + } + }, + "maxResults": { + "target": "com.amazonaws.iotsitewise#MaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of results to return for each paginated request.

\n

Default: 50

", + "smithy.api#httpQuery": "maxResults" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.iotsitewise#ListDashboardsResponse": { + "type": "structure", + "members": { + "dashboardSummaries": { + "target": "com.amazonaws.iotsitewise#DashboardSummaries", + "traits": { + "smithy.api#documentation": "

A list that summarizes each dashboard in the project.

", + "smithy.api#required": {} + } + }, + "nextToken": { + "target": "com.amazonaws.iotsitewise#NextToken", + "traits": { + "smithy.api#documentation": "

The token for the next set of results, or null if there are no additional results.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.iotsitewise#ListDatasets": { + "type": "operation", + "input": { + "target": "com.amazonaws.iotsitewise#ListDatasetsRequest" + }, + "output": { + "target": "com.amazonaws.iotsitewise#ListDatasetsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iotsitewise#InternalFailureException" + }, + { + "target": "com.amazonaws.iotsitewise#InvalidRequestException" + }, + { + "target": "com.amazonaws.iotsitewise#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Retrieves a paginated list of datasets for a specific target resource.

", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "GET", + "uri": "/datasets", "code": 200 }, "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", - "items": "dashboardSummaries", + "items": "datasetSummaries", "pageSize": "maxResults" } } }, - "com.amazonaws.iotsitewise#ListDashboardsRequest": { + "com.amazonaws.iotsitewise#ListDatasetsRequest": { "type": "structure", "members": { - "projectId": { - "target": "com.amazonaws.iotsitewise#ID", + "sourceType": { + "target": "com.amazonaws.iotsitewise#DatasetSourceType", "traits": { - "smithy.api#documentation": "

The ID of the project.

", - "smithy.api#httpQuery": "projectId", + "smithy.api#documentation": "

The type of data source for the dataset.

", + "smithy.api#httpQuery": "sourceType", "smithy.api#required": {} } }, "nextToken": { "target": "com.amazonaws.iotsitewise#NextToken", "traits": { - "smithy.api#documentation": "

The token to be used for the next set of paginated results.

", + "smithy.api#documentation": "

The token for the next set of results, or null if there are no additional results.

", "smithy.api#httpQuery": "nextToken" } }, "maxResults": { "target": "com.amazonaws.iotsitewise#MaxResults", "traits": { - "smithy.api#documentation": "

The maximum number of results to return for each paginated request.

\n

Default: 50

", + "smithy.api#documentation": "

The maximum number of results to return for each paginated request.

", "smithy.api#httpQuery": "maxResults" } } @@ -11802,13 +12637,13 @@ "smithy.api#input": {} } }, - "com.amazonaws.iotsitewise#ListDashboardsResponse": { + "com.amazonaws.iotsitewise#ListDatasetsResponse": { "type": "structure", "members": { - "dashboardSummaries": { - "target": "com.amazonaws.iotsitewise#DashboardSummaries", + "datasetSummaries": { + "target": "com.amazonaws.iotsitewise#DatasetSummaries", "traits": { - "smithy.api#documentation": "

A list that summarizes each dashboard in the project.

", + "smithy.api#documentation": "

A list that summarizes the dataset response.

", "smithy.api#required": {} } }, @@ -12352,6 +13187,20 @@ } } }, + "com.amazonaws.iotsitewise#Location": { + "type": "structure", + "members": { + "uri": { + "target": "com.amazonaws.iotsitewise#String", + "traits": { + "smithy.api#documentation": "

The URI of the location.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains location information about the cited text and where it's stored.

" + } + }, "com.amazonaws.iotsitewise#LoggingLevel": { "type": "enum", "members": { @@ -12446,6 +13295,16 @@ "smithy.api#documentation": "

The processing configuration for the given measurement property.\n You can configure measurements to be kept at the edge or forwarded to the Amazon Web Services Cloud.\n By default, measurements are forwarded to the cloud.

" } }, + "com.amazonaws.iotsitewise#MessageInput": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10000 + }, + "smithy.api#sensitive": {} + } + }, "com.amazonaws.iotsitewise#Metric": { "type": "structure", "members": { @@ -12678,6 +13537,12 @@ "smithy.api#enumValue": "CREATING" } }, + "PENDING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PENDING" + } + }, "UPDATING": { "target": "smithy.api#Unit", "traits": { @@ -12774,7 +13639,7 @@ } }, "roleArn": { - "target": "com.amazonaws.iotsitewise#ARN", + "target": "com.amazonaws.iotsitewise#IamArn", "traits": { "smithy.api#documentation": "

The ARN of the service role that allows the portal's users to access your IoT SiteWise\n resources on your behalf. For more information, see Using service roles for IoT SiteWise Monitor in the\n IoT SiteWise User Guide.

" } @@ -12784,12 +13649,73 @@ "traits": { "smithy.api#required": {} } + }, + "portalType": { + "target": "com.amazonaws.iotsitewise#PortalType", + "traits": { + "smithy.api#documentation": "

Define the type of portal. The value for IoT SiteWise Monitor (Classic) is SITEWISE_PORTAL_V1. The value for IoT SiteWise Monitor (AI-aware) is SITEWISE_PORTAL_V2.

" + } } }, "traits": { "smithy.api#documentation": "

Contains a portal summary.

" } }, + "com.amazonaws.iotsitewise#PortalTools": { + "type": "list", + "member": { + "target": "com.amazonaws.iotsitewise#Name" + } + }, + "com.amazonaws.iotsitewise#PortalType": { + "type": "enum", + "members": { + "SITEWISE_PORTAL_V1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SITEWISE_PORTAL_V1" + } + }, + "SITEWISE_PORTAL_V2": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SITEWISE_PORTAL_V2" + } + } + } + }, + "com.amazonaws.iotsitewise#PortalTypeConfiguration": { + "type": "map", + "key": { + "target": "com.amazonaws.iotsitewise#PortalTypeKey" + }, + "value": { + "target": "com.amazonaws.iotsitewise#PortalTypeEntry" + } + }, + "com.amazonaws.iotsitewise#PortalTypeEntry": { + "type": "structure", + "members": { + "portalTools": { + "target": "com.amazonaws.iotsitewise#PortalTools", + "traits": { + "smithy.api#documentation": "

The array of tools associated with the specified portal type. The possible values are ASSISTANT and DASHBOARD.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The configuration entry associated with the specific portal type. The portalTypeConfiguration is a map of the portalTypeKey to the \n PortalTypeEntry.

" + } + }, + "com.amazonaws.iotsitewise#PortalTypeKey": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + } + } + }, "com.amazonaws.iotsitewise#PreconditionFailedException": { "type": "structure", "members": { @@ -12815,7 +13741,7 @@ } }, "traits": { - "smithy.api#documentation": "

The precondition in one or more of the request-header fields evaluated to FALSE.

", + "smithy.api#documentation": "

The precondition in one or more of the request-header fields evaluated to\n FALSE.

", "smithy.api#error": "client", "smithy.api#httpError": 412 } @@ -13467,6 +14393,20 @@ "smithy.api#httpError": 400 } }, + "com.amazonaws.iotsitewise#Reference": { + "type": "structure", + "members": { + "dataset": { + "target": "com.amazonaws.iotsitewise#DataSetReference", + "traits": { + "smithy.api#documentation": "

Contains the dataset reference information.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains the reference information.

" + } + }, "com.amazonaws.iotsitewise#Resolution": { "type": "string", "traits": { @@ -13566,6 +14506,68 @@ } } }, + "com.amazonaws.iotsitewise#ResponseStream": { + "type": "union", + "members": { + "trace": { + "target": "com.amazonaws.iotsitewise#Trace", + "traits": { + "smithy.api#documentation": "

Contains tracing information of the SiteWise Assistant's reasoning and data access.

" + } + }, + "output": { + "target": "com.amazonaws.iotsitewise#InvocationOutput", + "traits": { + "smithy.api#documentation": "

Contains the SiteWise Assistant's response.

" + } + }, + "accessDeniedException": { + "target": "com.amazonaws.iotsitewise#AccessDeniedException" + }, + "conflictingOperationException": { + "target": "com.amazonaws.iotsitewise#ConflictingOperationException" + }, + "internalFailureException": { + "target": "com.amazonaws.iotsitewise#InternalFailureException" + }, + "invalidRequestException": { + "target": "com.amazonaws.iotsitewise#InvalidRequestException" + }, + "limitExceededException": { + "target": "com.amazonaws.iotsitewise#LimitExceededException" + }, + "resourceNotFoundException": { + "target": "com.amazonaws.iotsitewise#ResourceNotFoundException" + }, + "throttlingException": { + "target": "com.amazonaws.iotsitewise#ThrottlingException" + } + }, + "traits": { + "smithy.api#documentation": "

Contains the response, citation, and trace from the SiteWise Assistant.

", + "smithy.api#streaming": {} + } + }, + "com.amazonaws.iotsitewise#RestrictedDescription": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + }, + "smithy.api#pattern": "^[a-zA-Z0-9 _\\-#$*!@]+$" + } + }, + "com.amazonaws.iotsitewise#RestrictedName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[a-zA-Z0-9 _\\-#$*!@]+$" + } + }, "com.amazonaws.iotsitewise#RetentionPeriod": { "type": "structure", "members": { @@ -13689,7 +14691,41 @@ } }, "traits": { - "smithy.api#documentation": "

Contains details for a SiteWise Edge gateway that runs on a Siemens Industrial Edge Device.

" + "smithy.api#documentation": "

Contains details for a SiteWise Edge gateway that runs on a Siemens Industrial Edge\n Device.

" + } + }, + "com.amazonaws.iotsitewise#Source": { + "type": "structure", + "members": { + "arn": { + "target": "com.amazonaws.iotsitewise#String", + "traits": { + "smithy.api#documentation": "

Contains the ARN of the dataset. If the source is Kendra, it's the ARN of the Kendra index.

" + } + }, + "location": { + "target": "com.amazonaws.iotsitewise#Location", + "traits": { + "smithy.api#documentation": "

Contains the location information where the cited text is originally stored. \n For example, if the data source is Kendra, and the text synchronized is from an S3 bucket, then the location refers to an S3 object.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The data source for the dataset.

" + } + }, + "com.amazonaws.iotsitewise#SourceDetail": { + "type": "structure", + "members": { + "kendra": { + "target": "com.amazonaws.iotsitewise#KendraSourceDetail", + "traits": { + "smithy.api#documentation": "

Contains details about the Kendra dataset source.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The details of the dataset source associated with the dataset.

" } }, "com.amazonaws.iotsitewise#StorageType": { @@ -14032,6 +15068,20 @@ "smithy.api#httpError": 400 } }, + "com.amazonaws.iotsitewise#Trace": { + "type": "structure", + "members": { + "text": { + "target": "com.amazonaws.iotsitewise#String", + "traits": { + "smithy.api#documentation": "

The cited text from the data source.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains tracing information of the SiteWise Assistant's reasoning and data access.

" + } + }, "com.amazonaws.iotsitewise#Transform": { "type": "structure", "members": { @@ -14835,7 +15885,7 @@ "dashboardDefinition": { "target": "com.amazonaws.iotsitewise#DashboardDefinition", "traits": { - "smithy.api#documentation": "

The new dashboard definition, as specified in a JSON literal. For detailed information,\n see Creating dashboards (CLI) in the IoT SiteWise User Guide.

", + "smithy.api#documentation": "

The new dashboard definition, as specified in a JSON literal.

\n \n

in the IoT SiteWise User Guide\n

", "smithy.api#required": {} } }, @@ -14858,6 +15908,115 @@ "smithy.api#output": {} } }, + "com.amazonaws.iotsitewise#UpdateDataset": { + "type": "operation", + "input": { + "target": "com.amazonaws.iotsitewise#UpdateDatasetRequest" + }, + "output": { + "target": "com.amazonaws.iotsitewise#UpdateDatasetResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iotsitewise#ConflictingOperationException" + }, + { + "target": "com.amazonaws.iotsitewise#InternalFailureException" + }, + { + "target": "com.amazonaws.iotsitewise#InvalidRequestException" + }, + { + "target": "com.amazonaws.iotsitewise#LimitExceededException" + }, + { + "target": "com.amazonaws.iotsitewise#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.iotsitewise#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Updates a dataset.

", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "PUT", + "uri": "/datasets/{datasetId}", + "code": 202 + } + } + }, + "com.amazonaws.iotsitewise#UpdateDatasetRequest": { + "type": "structure", + "members": { + "datasetId": { + "target": "com.amazonaws.iotsitewise#CustomID", + "traits": { + "smithy.api#documentation": "

The ID of the dataset.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "datasetName": { + "target": "com.amazonaws.iotsitewise#RestrictedName", + "traits": { + "smithy.api#documentation": "

The name of the dataset.

", + "smithy.api#required": {} + } + }, + "datasetDescription": { + "target": "com.amazonaws.iotsitewise#RestrictedDescription", + "traits": { + "smithy.api#documentation": "

A description about the dataset, and its functionality.

" + } + }, + "datasetSource": { + "target": "com.amazonaws.iotsitewise#DatasetSource", + "traits": { + "smithy.api#documentation": "

The data source for the dataset.

", + "smithy.api#required": {} + } + }, + "clientToken": { + "target": "com.amazonaws.iotsitewise#ClientToken", + "traits": { + "smithy.api#documentation": "

A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

", + "smithy.api#idempotencyToken": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.iotsitewise#UpdateDatasetResponse": { + "type": "structure", + "members": { + "datasetId": { + "target": "com.amazonaws.iotsitewise#CustomID", + "traits": { + "smithy.api#documentation": "

The ID of the dataset.

" + } + }, + "datasetArn": { + "target": "com.amazonaws.iotsitewise#ARN", + "traits": { + "smithy.api#documentation": "

The ARN of the dataset. \n The format is arn:${Partition}:iotsitewise:${Region}:${Account}:dataset/${DatasetId}.

" + } + }, + "datasetStatus": { + "target": "com.amazonaws.iotsitewise#DatasetStatus", + "traits": { + "smithy.api#documentation": "

The status of the dataset. This contains the state and any error messages. \n State is UPDATING after a successfull call to this API, and any associated error message. The state is \n ACTIVE when ready to use.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.iotsitewise#UpdateGateway": { "type": "operation", "input": { @@ -14978,7 +16137,7 @@ "capabilitySyncStatus": { "target": "com.amazonaws.iotsitewise#CapabilitySyncStatus", "traits": { - "smithy.api#documentation": "

The synchronization status of the capability configuration. The sync status can be one of the following:

\n \n

After you update a capability configuration, its sync status is OUT_OF_SYNC\n until the gateway receives and applies or rejects the updated configuration.

", + "smithy.api#documentation": "

The synchronization status of the capability configuration. The sync status can be one of the following:

\n \n

After you update a capability configuration, its sync status is OUT_OF_SYNC\n until the gateway receives and applies or rejects the updated configuration.

", "smithy.api#required": {} } } @@ -15082,7 +16241,7 @@ "target": "com.amazonaws.iotsitewise#Image" }, "roleArn": { - "target": "com.amazonaws.iotsitewise#ARN", + "target": "com.amazonaws.iotsitewise#IamArn", "traits": { "smithy.api#documentation": "

The ARN of a service role that allows the portal's users to access your IoT SiteWise\n resources on your behalf. For more information, see Using service roles for IoT SiteWise Monitor in the\n IoT SiteWise User Guide.

", "smithy.api#required": {} @@ -15106,6 +16265,18 @@ "traits": { "smithy.api#documentation": "

Contains the configuration information of an alarm created in an IoT SiteWise Monitor portal.\n You can use the alarm to monitor an asset property and get notified when the asset property value is outside a specified range.\n For more information, see Monitoring with alarms in the IoT SiteWise Application Guide.

" } + }, + "portalType": { + "target": "com.amazonaws.iotsitewise#PortalType", + "traits": { + "smithy.api#documentation": "

Define the type of portal. The value for IoT SiteWise Monitor (Classic) is SITEWISE_PORTAL_V1. The value for IoT SiteWise Monitor (AI-aware) is SITEWISE_PORTAL_V2.

" + } + }, + "portalTypeConfiguration": { + "target": "com.amazonaws.iotsitewise#PortalTypeConfiguration", + "traits": { + "smithy.api#documentation": "

The configuration entry associated with the specific portal type. The value for IoT SiteWise Monitor (Classic) is SITEWISE_PORTAL_V1. The value for IoT SiteWise Monitor (AI-aware) is SITEWISE_PORTAL_V2.

" + } } }, "traits": { diff --git a/codegen/sdk-codegen/aws-models/keyspaces.json b/codegen/sdk-codegen/aws-models/keyspaces.json index 652acb659bc..b35628be07d 100644 --- a/codegen/sdk-codegen/aws-models/keyspaces.json +++ b/codegen/sdk-codegen/aws-models/keyspaces.json @@ -518,7 +518,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n The CreateType operation creates a new user-defined type in the specified keyspace.\n

\n

For more information, see User-defined types (UDTs) in the Amazon Keyspaces Developer\n Guide.

" + "smithy.api#documentation": "

\n The CreateType operation creates a new user-defined type in the specified keyspace.\n

\n

To configure the required permissions, see Permissions to create a UDT\n in the Amazon Keyspaces Developer Guide.

\n

For more information, see User-defined types (UDTs) in the Amazon Keyspaces Developer\n Guide.

" } }, "com.amazonaws.keyspaces#CreateTypeRequest": { @@ -713,7 +713,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n The DeleteType operation deletes a user-defined type (UDT). You can only delete a type that is not used in a table\n or another UDT.\n

" + "smithy.api#documentation": "

\n The DeleteType operation deletes a user-defined type (UDT). You can only delete a type that is not used in a table\n or another UDT.\n

\n

To configure the required permissions, see Permissions to delete a UDT\n in the Amazon Keyspaces Developer Guide.

" } }, "com.amazonaws.keyspaces#DeleteTypeRequest": { @@ -874,7 +874,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns the name and the Amazon Resource Name (ARN) of the specified table.

" + "smithy.api#documentation": "

Returns the name of the specified keyspace, the Amazon Resource Name (ARN), the replication strategy, the Amazon Web Services Regions of \n a multi-Region keyspace, and the status of newly added Regions after an UpdateKeyspace operation.

" } }, "com.amazonaws.keyspaces#GetKeyspaceRequest": { @@ -918,6 +918,12 @@ "traits": { "smithy.api#documentation": "

\n If the replicationStrategy of the keyspace is MULTI_REGION, a list of replication Regions is returned. \n

" } + }, + "replicationGroupStatuses": { + "target": "com.amazonaws.keyspaces#ReplicationGroupStatusList", + "traits": { + "smithy.api#documentation": "

\n A list of all Regions the keyspace is replicated in after the update keyspace operation and their status.\n

" + } } } }, @@ -1179,7 +1185,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n The GetType operation returns information about the type, for example the field definitions, the timestamp when the type\n was last modified, the level of nesting, the status, and details about if the type is used in other types and tables.\n

\n

To read keyspace metadata using GetType, the \n IAM principal needs Select action \n permissions for the system keyspace.

" + "smithy.api#documentation": "

\n The GetType operation returns information about the type, for example the field definitions, the timestamp when the type\n was last modified, the level of nesting, the status, and details about if the type is used in other types and tables.\n

\n

To read keyspace metadata using GetType, the \n IAM principal needs Select action \n permissions for the system keyspace. To configure the required permissions, see Permissions to view a UDT\n in the Amazon Keyspaces Developer Guide.

" } }, "com.amazonaws.keyspaces#GetTypeRequest": { @@ -1306,6 +1312,29 @@ "smithy.api#pattern": "^[a-zA-Z0-9][a-zA-Z0-9_]{0,47}$" } }, + "com.amazonaws.keyspaces#KeyspaceStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "ACTIVE", + "name": "ACTIVE" + }, + { + "value": "CREATING", + "name": "CREATING" + }, + { + "value": "UPDATING", + "name": "UPDATING" + }, + { + "value": "DELETING", + "name": "DELETING" + } + ] + } + }, "com.amazonaws.keyspaces#KeyspaceSummary": { "type": "structure", "members": { @@ -1402,6 +1431,9 @@ { "target": "com.amazonaws.keyspaces#UntagResource" }, + { + "target": "com.amazonaws.keyspaces#UpdateKeyspace" + }, { "target": "com.amazonaws.keyspaces#UpdateTable" } @@ -2583,7 +2615,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n The ListTypes operation returns a list of types for a specified keyspace.\n

\n

To read keyspace metadata using ListTypes, the \n IAM principal needs Select action \n permissions for the system keyspace.

", + "smithy.api#documentation": "

\n The ListTypes operation returns a list of types for a specified keyspace.\n

\n

To read keyspace metadata using ListTypes, the \n IAM principal needs Select action \n permissions for the system keyspace. To configure the required permissions, see Permissions to view a UDT\n in the Amazon Keyspaces Developer Guide.

", "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", @@ -2850,6 +2882,46 @@ } } }, + "com.amazonaws.keyspaces#ReplicationGroupStatus": { + "type": "structure", + "members": { + "region": { + "target": "com.amazonaws.keyspaces#region", + "traits": { + "smithy.api#documentation": "

\n The name of the Region that was added to the keyspace.\n

", + "smithy.api#required": {} + } + }, + "keyspaceStatus": { + "target": "com.amazonaws.keyspaces#KeyspaceStatus", + "traits": { + "smithy.api#documentation": "

\n The status of the keyspace.\n

", + "smithy.api#required": {} + } + }, + "tablesReplicationProgress": { + "target": "com.amazonaws.keyspaces#TablesReplicationProgress", + "traits": { + "smithy.api#documentation": "

\n This shows the replication progress of tables in the keyspace. The value is expressed as a percentage of the newly replicated tables \n with status Active compared to the total number of tables in the keyspace. \n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\n This shows the summary status of the keyspace after a new Amazon Web Services Region was added.\n

" + } + }, + "com.amazonaws.keyspaces#ReplicationGroupStatusList": { + "type": "list", + "member": { + "target": "com.amazonaws.keyspaces#ReplicationGroupStatus" + }, + "traits": { + "smithy.api#length": { + "min": 2, + "max": 6 + } + } + }, "com.amazonaws.keyspaces#ReplicationSpecification": { "type": "structure", "members": { @@ -2883,7 +2955,7 @@ "resourceArn": { "target": "com.amazonaws.keyspaces#ARN", "traits": { - "smithy.api#documentation": "

The unique identifier in the format of Amazon Resource Name (ARN) for the resource could't be found.

" + "smithy.api#documentation": "

The unique identifier in the format of Amazon Resource Name (ARN) for the resource couldn’t be found.

" } } }, @@ -3192,6 +3264,16 @@ "target": "com.amazonaws.keyspaces#TableSummary" } }, + "com.amazonaws.keyspaces#TablesReplicationProgress": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 2, + "max": 7 + }, + "smithy.api#pattern": "^[0-9]{1,3}(?:[.][0-9]{1,2})?%$" + } + }, "com.amazonaws.keyspaces#Tag": { "type": "structure", "members": { @@ -3473,6 +3555,77 @@ "type": "structure", "members": {} }, + "com.amazonaws.keyspaces#UpdateKeyspace": { + "type": "operation", + "input": { + "target": "com.amazonaws.keyspaces#UpdateKeyspaceRequest" + }, + "output": { + "target": "com.amazonaws.keyspaces#UpdateKeyspaceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.keyspaces#AccessDeniedException" + }, + { + "target": "com.amazonaws.keyspaces#ConflictException" + }, + { + "target": "com.amazonaws.keyspaces#InternalServerException" + }, + { + "target": "com.amazonaws.keyspaces#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.keyspaces#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.keyspaces#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

\n Adds a new Amazon Web Services Region to the keyspace. You can add a new Region to a keyspace that is either a single or a multi-Region keyspace.\n The new replica Region is applied to all tables in the keyspace. For more information, see Add an Amazon Web Services Region to a keyspace in Amazon Keyspaces in the Amazon Keyspaces Developer\n Guide.\n

\n

To change a single-Region to a multi-Region keyspace, you have to enable client-side timestamps\n for all tables in the keyspace. For more information, see\n Client-side timestamps in Amazon Keyspaces in the Amazon Keyspaces Developer\n Guide.

" + } + }, + "com.amazonaws.keyspaces#UpdateKeyspaceRequest": { + "type": "structure", + "members": { + "keyspaceName": { + "target": "com.amazonaws.keyspaces#KeyspaceName", + "traits": { + "smithy.api#documentation": "

\n The name of the keyspace.\n

", + "smithy.api#required": {} + } + }, + "replicationSpecification": { + "target": "com.amazonaws.keyspaces#ReplicationSpecification", + "traits": { + "smithy.api#required": {} + } + }, + "clientSideTimestamps": { + "target": "com.amazonaws.keyspaces#ClientSideTimestamps" + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.keyspaces#UpdateKeyspaceResponse": { + "type": "structure", + "members": { + "resourceArn": { + "target": "com.amazonaws.keyspaces#ARN", + "traits": { + "smithy.api#documentation": "

\n The unique identifier of the keyspace in the format of an Amazon Resource Name (ARN).\n

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.keyspaces#UpdateTable": { "type": "operation", "input": { diff --git a/codegen/sdk-codegen/aws-models/lambda.json b/codegen/sdk-codegen/aws-models/lambda.json index ec739162d52..49eb6ab3803 100644 --- a/codegen/sdk-codegen/aws-models/lambda.json +++ b/codegen/sdk-codegen/aws-models/lambda.json @@ -11262,6 +11262,12 @@ "traits": { "smithy.api#enumValue": "python3.13" } + }, + "nodejs22x": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "nodejs22.x" + } } } }, diff --git a/codegen/sdk-codegen/aws-models/mediaconvert.json b/codegen/sdk-codegen/aws-models/mediaconvert.json index d3a6c258089..9ca11269d6e 100644 --- a/codegen/sdk-codegen/aws-models/mediaconvert.json +++ b/codegen/sdk-codegen/aws-models/mediaconvert.json @@ -5735,6 +5735,13 @@ "com.amazonaws.mediaconvert#CreateQueueRequest": { "type": "structure", "members": { + "ConcurrentJobs": { + "target": "com.amazonaws.mediaconvert#__integer", + "traits": { + "smithy.api#documentation": "Specify the maximum number of jobs your queue can process concurrently. For on-demand queues, the value you enter is constrained by your service quotas for Maximum concurrent jobs, per on-demand queue and Maximum concurrent jobs, per account. For reserved queues, specify the number of jobs you can process concurrently in your reservation plan instead.", + "smithy.api#jsonName": "concurrentJobs" + } + }, "Description": { "target": "com.amazonaws.mediaconvert#__string", "traits": { @@ -16063,6 +16070,20 @@ "smithy.api#documentation": "List of queues.", "smithy.api#jsonName": "queues" } + }, + "TotalConcurrentJobs": { + "target": "com.amazonaws.mediaconvert#__integer", + "traits": { + "smithy.api#documentation": "The maximum number of jobs that MediaConvert can process at one time, across all of your on-demand queues in the current AWS Region.", + "smithy.api#jsonName": "totalConcurrentJobs" + } + }, + "UnallocatedConcurrentJobs": { + "target": "com.amazonaws.mediaconvert#__integer", + "traits": { + "smithy.api#documentation": "The remaining number of concurrent jobs that are not associated with a queue and are available to allocate to a queue. You can allocate these jobs when you create or update a queue.", + "smithy.api#jsonName": "unallocatedConcurrentJobs" + } } }, "traits": { @@ -21519,6 +21540,13 @@ "smithy.api#jsonName": "arn" } }, + "ConcurrentJobs": { + "target": "com.amazonaws.mediaconvert#__integer", + "traits": { + "smithy.api#documentation": "The maximum number of jobs your queue can process concurrently.", + "smithy.api#jsonName": "concurrentJobs" + } + }, "CreatedAt": { "target": "com.amazonaws.mediaconvert#__timestampUnix", "traits": { @@ -21570,6 +21598,13 @@ "smithy.api#jsonName": "reservationPlan" } }, + "ServiceOverrides": { + "target": "com.amazonaws.mediaconvert#__listOfServiceOverride", + "traits": { + "smithy.api#documentation": "A list of any service overrides applied by MediaConvert to the settings that you have configured. If you see any overrides, we recommend that you contact AWS Support.", + "smithy.api#jsonName": "serviceOverrides" + } + }, "Status": { "target": "com.amazonaws.mediaconvert#QueueStatus", "traits": { @@ -22376,6 +22411,42 @@ "smithy.api#output": {} } }, + "com.amazonaws.mediaconvert#ServiceOverride": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.mediaconvert#__string", + "traits": { + "smithy.api#documentation": "Details about the service override that MediaConvert has applied.", + "smithy.api#jsonName": "message" + } + }, + "Name": { + "target": "com.amazonaws.mediaconvert#__string", + "traits": { + "smithy.api#documentation": "The name of the setting that MediaConvert has applied an override to.", + "smithy.api#jsonName": "name" + } + }, + "OverrideValue": { + "target": "com.amazonaws.mediaconvert#__string", + "traits": { + "smithy.api#documentation": "The current value of the service override that MediaConvert has applied.", + "smithy.api#jsonName": "overrideValue" + } + }, + "Value": { + "target": "com.amazonaws.mediaconvert#__string", + "traits": { + "smithy.api#documentation": "The value of the setting that you configured, prior to any overrides that MediaConvert has applied.", + "smithy.api#jsonName": "value" + } + } + }, + "traits": { + "smithy.api#documentation": "A service override applied by MediaConvert to the settings that you have configured. If you see any overrides, we recommend that you contact AWS Support." + } + }, "com.amazonaws.mediaconvert#SimulateReservedQueue": { "type": "enum", "members": { @@ -23666,6 +23737,13 @@ "com.amazonaws.mediaconvert#UpdateQueueRequest": { "type": "structure", "members": { + "ConcurrentJobs": { + "target": "com.amazonaws.mediaconvert#__integer", + "traits": { + "smithy.api#documentation": "Specify the maximum number of jobs your queue can process concurrently. For on-demand queues, the value you enter is constrained by your service quotas for Maximum concurrent jobs, per on-demand queue and Maximum concurrent jobs, per account. For reserved queues, update your reservation plan instead in order to increase your yearly commitment.", + "smithy.api#jsonName": "concurrentJobs" + } + }, "Description": { "target": "com.amazonaws.mediaconvert#__string", "traits": { @@ -27262,6 +27340,12 @@ "target": "com.amazonaws.mediaconvert#QueueTransition" } }, + "com.amazonaws.mediaconvert#__listOfServiceOverride": { + "type": "list", + "member": { + "target": "com.amazonaws.mediaconvert#ServiceOverride" + } + }, "com.amazonaws.mediaconvert#__listOfTeletextPageType": { "type": "list", "member": { diff --git a/codegen/sdk-codegen/aws-models/mediapackagev2.json b/codegen/sdk-codegen/aws-models/mediapackagev2.json index 430f33117da..4d8a04d92af 100644 --- a/codegen/sdk-codegen/aws-models/mediapackagev2.json +++ b/codegen/sdk-codegen/aws-models/mediapackagev2.json @@ -752,6 +752,18 @@ "smithy.api#documentation": "

Enter any descriptive text that helps you to identify the channel.

" } }, + "InputSwitchConfiguration": { + "target": "com.amazonaws.mediapackagev2#InputSwitchConfiguration", + "traits": { + "smithy.api#documentation": "

The configuration for input switching based on the media quality confidence score (MQCS) as provided from AWS Elemental MediaLive. This setting is valid only when InputType is CMAF.

" + } + }, + "OutputHeaderConfiguration": { + "target": "com.amazonaws.mediapackagev2#OutputHeaderConfiguration", + "traits": { + "smithy.api#documentation": "

The settings for what common media server data (CMSD) headers AWS Elemental MediaPackage includes in responses to the CDN. This setting is valid only when InputType is CMAF.

" + } + }, "Tags": { "target": "com.amazonaws.mediapackagev2#TagMap", "traits": { @@ -831,6 +843,18 @@ "aws.cloudformation#cfnExcludeProperty": {}, "smithy.api#documentation": "

The comma-separated list of tag key:value pairs assigned to the channel.

" } + }, + "InputSwitchConfiguration": { + "target": "com.amazonaws.mediapackagev2#InputSwitchConfiguration", + "traits": { + "smithy.api#documentation": "

The configuration for input switching based on the media quality confidence score (MQCS) as provided from AWS Elemental MediaLive. This setting is valid only when InputType is CMAF.

" + } + }, + "OutputHeaderConfiguration": { + "target": "com.amazonaws.mediapackagev2#OutputHeaderConfiguration", + "traits": { + "smithy.api#documentation": "

The settings for what common media server data (CMSD) headers AWS Elemental MediaPackage includes in responses to the CDN. This setting is valid only when InputType is CMAF.

" + } } }, "traits": { @@ -1282,7 +1306,7 @@ "ProgramDateTimeIntervalSeconds": { "target": "smithy.api#Integer", "traits": { - "smithy.api#documentation": "

Inserts EXT-X-PROGRAM-DATE-TIME tags in the output manifest at the interval that you specify. If you don't enter an interval,\n EXT-X-PROGRAM-DATE-TIME tags aren't included in the manifest.\n The tags sync the stream to the wall clock so that viewers can seek to a specific time in the playback timeline on the player.\n ID3Timed metadata messages generate every 5 seconds whenever the content is ingested.

\n

Irrespective of this parameter, if any ID3Timed metadata is in the HLS input, it is passed through to the HLS output.

", + "smithy.api#documentation": "

Inserts EXT-X-PROGRAM-DATE-TIME tags in the output manifest at the interval that you specify. If you don't enter an interval,\n EXT-X-PROGRAM-DATE-TIME tags aren't included in the manifest.\n The tags sync the stream to the wall clock so that viewers can seek to a specific time in the playback timeline on the player.

\n

Irrespective of this parameter, if any ID3Timed metadata is in the HLS input, it is passed through to the HLS output.

", "smithy.api#range": { "min": 1, "max": 1209600 @@ -1337,7 +1361,7 @@ "ProgramDateTimeIntervalSeconds": { "target": "smithy.api#Integer", "traits": { - "smithy.api#documentation": "

Inserts EXT-X-PROGRAM-DATE-TIME tags in the output manifest at the interval that you specify. If you don't enter an interval,\n EXT-X-PROGRAM-DATE-TIME tags aren't included in the manifest.\n The tags sync the stream to the wall clock so that viewers can seek to a specific time in the playback timeline on the player.\n ID3Timed metadata messages generate every 5 seconds whenever the content is ingested.

\n

Irrespective of this parameter, if any ID3Timed metadata is in the HLS input, it is passed through to the HLS output.

", + "smithy.api#documentation": "

Inserts EXT-X-PROGRAM-DATE-TIME tags in the output manifest at the interval that you specify. If you don't enter an interval,\n EXT-X-PROGRAM-DATE-TIME tags aren't included in the manifest.\n The tags sync the stream to the wall clock so that viewers can seek to a specific time in the playback timeline on the player.

\n

Irrespective of this parameter, if any ID3Timed metadata is in the HLS input, it is passed through to the HLS output.

", "smithy.api#range": { "min": 1, "max": 1209600 @@ -3240,6 +3264,18 @@ "aws.cloudformation#cfnExcludeProperty": {}, "smithy.api#documentation": "

The comma-separated list of tag key:value pairs assigned to the channel.

" } + }, + "InputSwitchConfiguration": { + "target": "com.amazonaws.mediapackagev2#InputSwitchConfiguration", + "traits": { + "smithy.api#documentation": "

The configuration for input switching based on the media quality confidence score (MQCS) as provided from AWS Elemental MediaLive. This setting is valid only when InputType is CMAF.

" + } + }, + "OutputHeaderConfiguration": { + "target": "com.amazonaws.mediapackagev2#OutputHeaderConfiguration", + "traits": { + "smithy.api#documentation": "

The settings for what common media server data (CMSD) headers AWS Elemental MediaPackage includes in responses to the CDN. This setting is valid only when InputType is CMAF.

" + } } }, "traits": { @@ -3662,7 +3698,7 @@ "ProgramDateTimeIntervalSeconds": { "target": "smithy.api#Integer", "traits": { - "smithy.api#documentation": "

Inserts EXT-X-PROGRAM-DATE-TIME tags in the output manifest at the interval that you specify. If you don't enter an interval,\n EXT-X-PROGRAM-DATE-TIME tags aren't included in the manifest.\n The tags sync the stream to the wall clock so that viewers can seek to a specific time in the playback timeline on the player.\n ID3Timed metadata messages generate every 5 seconds whenever the content is ingested.

\n

Irrespective of this parameter, if any ID3Timed metadata is in the HLS input, it is passed through to the HLS output.

" + "smithy.api#documentation": "

Inserts EXT-X-PROGRAM-DATE-TIME tags in the output manifest at the interval that you specify. If you don't enter an interval,\n EXT-X-PROGRAM-DATE-TIME tags aren't included in the manifest.\n The tags sync the stream to the wall clock so that viewers can seek to a specific time in the playback timeline on the player.

\n

Irrespective of this parameter, if any ID3Timed metadata is in the HLS input, it is passed through to the HLS output.

" } }, "ScteHls": { @@ -3717,7 +3753,7 @@ "ProgramDateTimeIntervalSeconds": { "target": "smithy.api#Integer", "traits": { - "smithy.api#documentation": "

Inserts EXT-X-PROGRAM-DATE-TIME tags in the output manifest at the interval that you specify. If you don't enter an interval,\n EXT-X-PROGRAM-DATE-TIME tags aren't included in the manifest.\n The tags sync the stream to the wall clock so that viewers can seek to a specific time in the playback timeline on the player.\n ID3Timed metadata messages generate every 5 seconds whenever the content is ingested.

\n

Irrespective of this parameter, if any ID3Timed metadata is in the HLS input, it is passed through to the HLS output.

" + "smithy.api#documentation": "

Inserts EXT-X-PROGRAM-DATE-TIME tags in the output manifest at the interval that you specify. If you don't enter an interval,\n EXT-X-PROGRAM-DATE-TIME tags aren't included in the manifest.\n The tags sync the stream to the wall clock so that viewers can seek to a specific time in the playback timeline on the player.

\n

Irrespective of this parameter, if any ID3Timed metadata is in the HLS input, it is passed through to the HLS output.

" } }, "ScteHls": { @@ -4483,6 +4519,20 @@ "smithy.api#documentation": "

The list of ingest endpoints.

" } }, + "com.amazonaws.mediapackagev2#InputSwitchConfiguration": { + "type": "structure", + "members": { + "MQCSInputSwitching": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

When true, AWS Elemental MediaPackage performs input switching based on the MQCS. Default is true. This setting is valid only when InputType is CMAF.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The configuration for input switching based on the media quality confidence score (MQCS) as provided from AWS Elemental MediaLive.

" + } + }, "com.amazonaws.mediapackagev2#InputType": { "type": "enum", "members": { @@ -5736,6 +5786,20 @@ "target": "com.amazonaws.mediapackagev2#OriginEndpointListConfiguration" } }, + "com.amazonaws.mediapackagev2#OutputHeaderConfiguration": { + "type": "structure", + "members": { + "PublishMQCS": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

When true, AWS Elemental MediaPackage includes the MQCS in responses to the CDN. This setting is valid only when InputType is CMAF.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The settings for what common media server data (CMSD) headers AWS Elemental MediaPackage includes in responses to the CDN.

" + } + }, "com.amazonaws.mediapackagev2#PolicyText": { "type": "string", "traits": { @@ -6840,6 +6904,18 @@ "traits": { "smithy.api#documentation": "

Any descriptive information that you want to add to the channel for future identification purposes.

" } + }, + "InputSwitchConfiguration": { + "target": "com.amazonaws.mediapackagev2#InputSwitchConfiguration", + "traits": { + "smithy.api#documentation": "

The configuration for input switching based on the media quality confidence score (MQCS) as provided from AWS Elemental MediaLive. This setting is valid only when InputType is CMAF.

" + } + }, + "OutputHeaderConfiguration": { + "target": "com.amazonaws.mediapackagev2#OutputHeaderConfiguration", + "traits": { + "smithy.api#documentation": "

The settings for what common media server data (CMSD) headers AWS Elemental MediaPackage includes in responses to the CDN. This setting is valid only when InputType is CMAF.

" + } } }, "traits": { @@ -6913,6 +6989,18 @@ "smithy.api#documentation": "

The comma-separated list of tag key:value pairs assigned to the channel.

", "smithy.api#jsonName": "tags" } + }, + "InputSwitchConfiguration": { + "target": "com.amazonaws.mediapackagev2#InputSwitchConfiguration", + "traits": { + "smithy.api#documentation": "

The configuration for input switching based on the media quality confidence score (MQCS) as provided from AWS Elemental MediaLive. This setting is valid only when InputType is CMAF.

" + } + }, + "OutputHeaderConfiguration": { + "target": "com.amazonaws.mediapackagev2#OutputHeaderConfiguration", + "traits": { + "smithy.api#documentation": "

The settings for what common media server data (CMSD) headers AWS Elemental MediaPackage includes in responses to the CDN. This setting is valid only when InputType is CMAF.

" + } } }, "traits": { @@ -7725,6 +7813,18 @@ "traits": { "smithy.api#enumValue": "START_TAG_TIME_OFFSET_INVALID" } + }, + "ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_INPUT_SWITCHING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_INPUT_SWITCHING" + } + }, + "ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_OUTPUT_CONFIGURATION": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_OUTPUT_CONFIGURATION" + } } } }, diff --git a/codegen/sdk-codegen/aws-models/mwaa.json b/codegen/sdk-codegen/aws-models/mwaa.json index 93ea5952908..161364d6708 100644 --- a/codegen/sdk-codegen/aws-models/mwaa.json +++ b/codegen/sdk-codegen/aws-models/mwaa.json @@ -1118,7 +1118,7 @@ "EnvironmentClass": { "target": "com.amazonaws.mwaa#EnvironmentClass", "traits": { - "smithy.api#documentation": "

The environment class type. Valid values: mw1.small, mw1.medium, mw1.large, mw1.xlarge, and mw1.2xlarge. For more information, see Amazon MWAA environment class.

" + "smithy.api#documentation": "

The environment class type. Valid values: mw1.micro, mw1.small, mw1.medium, mw1.large, mw1.xlarge, and mw1.2xlarge. For more information, see Amazon MWAA environment class.

" } }, "MaxWorkers": { @@ -1172,7 +1172,7 @@ "Schedulers": { "target": "com.amazonaws.mwaa#Schedulers", "traits": { - "smithy.api#documentation": "

The number of Apache Airflow schedulers to run in your environment. Valid values:

\n " + "smithy.api#documentation": "

The number of Apache Airflow schedulers to run in your environment. Valid values:

\n " } }, "EndpointManagement": { @@ -1184,13 +1184,13 @@ "MinWebservers": { "target": "com.amazonaws.mwaa#MinWebservers", "traits": { - "smithy.api#documentation": "

\n The minimum number of web servers that you want to run in your environment.\n Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for MaxWebservers\n when you interact with your Apache Airflow environment using Apache Airflow REST API, or\n the Apache Airflow CLI. As the transaction-per-second rate, and the network load, decrease,\n Amazon MWAA disposes of the additional web servers, and scales down to the number set in MinxWebserers.\n

\n

Valid values: Accepts between 2 and 5. Defaults to 2.

" + "smithy.api#documentation": "

\n The minimum number of web servers that you want to run in your environment.\n Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for MaxWebservers\n when you interact with your Apache Airflow environment using Apache Airflow REST API, or\n the Apache Airflow CLI. As the transaction-per-second rate, and the network load, decrease,\n Amazon MWAA disposes of the additional web servers, and scales down to the number set in MinxWebserers.\n

\n

Valid values: For environments larger than mw1.micro, accepts values from\n 2 to 5. Defaults to 2 for all environment\n sizes except mw1.micro, which defaults to 1.

" } }, "MaxWebservers": { "target": "com.amazonaws.mwaa#MaxWebservers", "traits": { - "smithy.api#documentation": "

\n The maximum number of web servers that you want to run in your environment.\n Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for MaxWebservers\n when you interact with your Apache Airflow environment using Apache Airflow REST API, or\n the Apache Airflow CLI. For example, in scenarios where your workload requires network calls to the Apache Airflow REST API with a high transaction-per-second (TPS)\n rate, Amazon MWAA will increase the number of web servers up to the number set in MaxWebserers. As TPS rates decrease\n Amazon MWAA disposes of the additional web servers, and scales down to the number set in MinxWebserers.\n

\n

Valid values: Accepts between 2 and 5. Defaults to 2.

" + "smithy.api#documentation": "

\n The maximum number of web servers that you want to run in your environment.\n Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for MaxWebservers\n when you interact with your Apache Airflow environment using Apache Airflow REST API, or\n the Apache Airflow CLI. For example, in scenarios where your workload requires network calls to the Apache Airflow REST API with a high transaction-per-second (TPS)\n rate, Amazon MWAA will increase the number of web servers up to the number set in MaxWebserers. As TPS rates decrease\n Amazon MWAA disposes of the additional web servers, and scales down to the number set in MinxWebserers.\n

\n

Valid values: For environments larger than mw1.micro, accepts values from\n 2 to 5. Defaults to 2 for all environment\n sizes except mw1.micro, which defaults to 1.

" } } }, @@ -1503,7 +1503,7 @@ "EnvironmentClass": { "target": "com.amazonaws.mwaa#EnvironmentClass", "traits": { - "smithy.api#documentation": "

The environment class type. Valid values: mw1.small, mw1.medium, mw1.large, mw1.xlarge, and mw1.2xlarge. For more information, see Amazon MWAA environment class.

" + "smithy.api#documentation": "

The environment class type. Valid values: mw1.micro, mw1.small, mw1.medium, mw1.large, mw1.xlarge, and mw1.2xlarge. For more information, see Amazon MWAA environment class.

" } }, "MaxWorkers": { @@ -1587,13 +1587,13 @@ "MinWebservers": { "target": "com.amazonaws.mwaa#MinWebservers", "traits": { - "smithy.api#documentation": "

\n The minimum number of web servers that you want to run in your environment.\n Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for MaxWebservers\n when you interact with your Apache Airflow environment using Apache Airflow REST API, or\n the Apache Airflow CLI. As the transaction-per-second rate, and the network load, decrease,\n Amazon MWAA disposes of the additional web servers, and scales down to the number set in MinxWebserers.\n

\n

Valid values: Accepts between 2 and 5. Defaults to 2.

" + "smithy.api#documentation": "

\n The minimum number of web servers that you want to run in your environment.\n Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for MaxWebservers\n when you interact with your Apache Airflow environment using Apache Airflow REST API, or\n the Apache Airflow CLI. As the transaction-per-second rate, and the network load, decrease,\n Amazon MWAA disposes of the additional web servers, and scales down to the number set in MinxWebserers.\n

\n

Valid values: For environments larger than mw1.micro, accepts values from\n 2 to 5. Defaults to 2 for all environment\n sizes except mw1.micro, which defaults to 1.

" } }, "MaxWebservers": { "target": "com.amazonaws.mwaa#MaxWebservers", "traits": { - "smithy.api#documentation": "

\n The maximum number of web servers that you want to run in your environment.\n Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for MaxWebservers\n when you interact with your Apache Airflow environment using Apache Airflow REST API, or\n the Apache Airflow CLI. For example, in scenarios where your workload requires network calls to the Apache Airflow REST API with a high transaction-per-second (TPS)\n rate, Amazon MWAA will increase the number of web servers up to the number set in MaxWebserers. As TPS rates decrease\n Amazon MWAA disposes of the additional web servers, and scales down to the number set in MinxWebserers.\n

\n

Valid values: Accepts between 2 and 5. Defaults to 2.

" + "smithy.api#documentation": "

\n The maximum number of web servers that you want to run in your environment.\n Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for MaxWebservers\n when you interact with your Apache Airflow environment using Apache Airflow REST API, or\n the Apache Airflow CLI. For example, in scenarios where your workload requires network calls to the Apache Airflow REST API with a high transaction-per-second (TPS)\n rate, Amazon MWAA will increase the number of web servers up to the number set in MaxWebserers. As TPS rates decrease\n Amazon MWAA disposes of the additional web servers, and scales down to the number set in MinxWebserers.\n

\n

Valid values: For environments larger than mw1.micro, accepts values from\n 2 to 5. Defaults to 2 for all environment\n sizes except mw1.micro, which defaults to 1.

" } } }, @@ -2206,7 +2206,7 @@ "type": "integer", "traits": { "smithy.api#range": { - "min": 2 + "min": 1 } } }, @@ -2282,7 +2282,7 @@ "type": "integer", "traits": { "smithy.api#range": { - "min": 2 + "min": 1 } } }, @@ -3049,7 +3049,7 @@ "EnvironmentClass": { "target": "com.amazonaws.mwaa#EnvironmentClass", "traits": { - "smithy.api#documentation": "

The environment class type. Valid values: mw1.small, mw1.medium, mw1.large, mw1.xlarge, and mw1.2xlarge. For more information, see Amazon MWAA environment class.

" + "smithy.api#documentation": "

The environment class type. Valid values: mw1.micro,\n mw1.small, mw1.medium, mw1.large,\n mw1.xlarge, and mw1.2xlarge. For more information, see\n Amazon MWAA environment class.

" } }, "MaxWorkers": { @@ -3097,13 +3097,13 @@ "MinWebservers": { "target": "com.amazonaws.mwaa#MinWebservers", "traits": { - "smithy.api#documentation": "

\n The minimum number of web servers that you want to run in your environment.\n Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for MaxWebservers\n when you interact with your Apache Airflow environment using Apache Airflow REST API, or\n the Apache Airflow CLI. As the transaction-per-second rate, and the network load, decrease,\n Amazon MWAA disposes of the additional web servers, and scales down to the number set in MinxWebserers.\n

\n

Valid values: Accepts between 2 and 5. Defaults to 2.

" + "smithy.api#documentation": "

\n The minimum number of web servers that you want to run in your environment.\n Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for MaxWebservers\n when you interact with your Apache Airflow environment using Apache Airflow REST API, or\n the Apache Airflow CLI. As the transaction-per-second rate, and the network load, decrease,\n Amazon MWAA disposes of the additional web servers, and scales down to the number set in MinxWebserers.\n

\n

Valid values: For environments larger than mw1.micro, accepts values from\n 2 to 5. Defaults to 2 for all environment\n sizes except mw1.micro, which defaults to 1.

" } }, "MaxWebservers": { "target": "com.amazonaws.mwaa#MaxWebservers", "traits": { - "smithy.api#documentation": "

\n The maximum number of web servers that you want to run in your environment.\n Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for MaxWebservers\n when you interact with your Apache Airflow environment using Apache Airflow REST API, or\n the Apache Airflow CLI. For example, in scenarios where your workload requires network calls to the Apache Airflow REST API with a high transaction-per-second (TPS)\n rate, Amazon MWAA will increase the number of web servers up to the number set in MaxWebserers. As TPS rates decrease\n Amazon MWAA disposes of the additional web servers, and scales down to the number set in MinxWebserers.\n

\n

Valid values: Accepts between 2 and 5. Defaults to 2.

" + "smithy.api#documentation": "

\n The maximum number of web servers that you want to run in your environment.\n Amazon MWAA scales the number of Apache Airflow web servers up to the number you specify for MaxWebservers\n when you interact with your Apache Airflow environment using Apache Airflow REST API, or\n the Apache Airflow CLI. For example, in scenarios where your workload requires network calls to the Apache Airflow REST API with a high transaction-per-second (TPS)\n rate, Amazon MWAA will increase the number of web servers up to the number set in MaxWebserers. As TPS rates decrease\n Amazon MWAA disposes of the additional web servers, and scales down to the number set in MinxWebserers.\n

\n

Valid values: For environments larger than mw1.micro, accepts values from\n 2 to 5. Defaults to 2 for all environment\n sizes except mw1.micro, which defaults to 1.

" } } } diff --git a/codegen/sdk-codegen/aws-models/omics.json b/codegen/sdk-codegen/aws-models/omics.json index d28c1aef313..3aceb914bcf 100644 --- a/codegen/sdk-codegen/aws-models/omics.json +++ b/codegen/sdk-codegen/aws-models/omics.json @@ -795,6 +795,16 @@ "smithy.api#uniqueItems": {} } }, + "com.amazonaws.omics#AwsAccountId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 12, + "max": 12 + }, + "smithy.api#pattern": "^[0-9]+$" + } + }, "com.amazonaws.omics#BatchDeleteReadSet": { "type": "operation", "input": { @@ -873,6 +883,25 @@ "smithy.api#output": {} } }, + "com.amazonaws.omics#CacheBehavior": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "name": "CACHE_ON_FAILURE", + "value": "CACHE_ON_FAILURE" + }, + { + "name": "CACHE_ALWAYS", + "value": "CACHE_ALWAYS" + } + ], + "smithy.api#length": { + "min": 1, + "max": 64 + } + } + }, "com.amazonaws.omics#CancelAnnotationImportJob": { "type": "operation", "input": { @@ -1871,6 +1900,137 @@ "smithy.api#output": {} } }, + "com.amazonaws.omics#CreateRunCache": { + "type": "operation", + "input": { + "target": "com.amazonaws.omics#CreateRunCacheRequest" + }, + "output": { + "target": "com.amazonaws.omics#CreateRunCacheResponse" + }, + "errors": [ + { + "target": "com.amazonaws.omics#AccessDeniedException" + }, + { + "target": "com.amazonaws.omics#ConflictException" + }, + { + "target": "com.amazonaws.omics#InternalServerException" + }, + { + "target": "com.amazonaws.omics#RequestTimeoutException" + }, + { + "target": "com.amazonaws.omics#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.omics#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.omics#ThrottlingException" + }, + { + "target": "com.amazonaws.omics#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

You can create a run cache to save the task outputs from completed tasks in a run for a private workflow. \n Subsequent runs use the task outputs from the cache, rather than computing the task outputs again.\n You specify an Amazon S3 location where HealthOmics saves the cached data. This data must be \n immediately accessible (not in an archived state).

\n

For more information, see Creating a run cache in the AWS HealthOmics User Guide.

", + "smithy.api#endpoint": { + "hostPrefix": "workflows-" + }, + "smithy.api#http": { + "method": "POST", + "uri": "/runCache", + "code": 201 + } + } + }, + "com.amazonaws.omics#CreateRunCacheRequest": { + "type": "structure", + "members": { + "cacheBehavior": { + "target": "com.amazonaws.omics#CacheBehavior", + "traits": { + "smithy.api#documentation": "

Default cache behavior for runs that use this cache. Supported values are:

\n

\n CACHE_ON_FAILURE: Caches task outputs from completed tasks for runs that fail. This setting is \n useful if you're debugging a workflow that fails after several\n tasks completed successfully. The subsequent run uses the cache outputs for previously-completed tasks if the task definition,\n inputs, and container in ECR are identical to the prior run.

\n

\n CACHE_ALWAYS: Caches task outputs from completed tasks for all runs. This setting\n is useful in development mode, but do not use it in a production setting.

\n

If you don't specify a value, the default behavior is CACHE_ON_FAILURE.\n When you start a run that uses this cache, you can override the default cache behavior.

\n

For more information, see Run cache behavior in the AWS HealthOmics User Guide.

" + } + }, + "cacheS3Location": { + "target": "com.amazonaws.omics#S3UriForBucketOrObject", + "traits": { + "smithy.api#documentation": "

Specify the S3 location for storing the cached task outputs.\n This data must be immediately accessible (not in an archived state).

", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.omics#UserCustomDescription", + "traits": { + "smithy.api#documentation": "

Enter a description of the run cache.

" + } + }, + "name": { + "target": "com.amazonaws.omics#UserCustomName", + "traits": { + "smithy.api#documentation": "

Enter a user-friendly name for the run cache.

" + } + }, + "requestId": { + "target": "com.amazonaws.omics#RunCacheRequestId", + "traits": { + "smithy.api#documentation": "

A unique request token, to ensure idempotency. If you don't specify a token, \n HealthOmics automatically generates a universally unique identifier (UUID) for the request.

", + "smithy.api#idempotencyToken": {}, + "smithy.api#required": {} + } + }, + "tags": { + "target": "com.amazonaws.omics#TagMap", + "traits": { + "smithy.api#documentation": "

Specify one or more tags to associate with this run cache.

" + } + }, + "cacheBucketOwnerId": { + "target": "com.amazonaws.omics#AwsAccountId", + "traits": { + "smithy.api#documentation": "

The AWS account ID of the expected owner of the S3 bucket for the run cache.\n If not provided, your account ID is set as the owner of the bucket.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.omics#CreateRunCacheResponse": { + "type": "structure", + "members": { + "arn": { + "target": "com.amazonaws.omics#RunCacheArn", + "traits": { + "smithy.api#documentation": "

Unique resource identifier for the run cache.

" + } + }, + "id": { + "target": "com.amazonaws.omics#RunCacheId", + "traits": { + "smithy.api#documentation": "

Identifier for the run cache.

" + } + }, + "status": { + "target": "com.amazonaws.omics#RunCacheStatus", + "traits": { + "smithy.api#documentation": "

Run cache status.

" + } + }, + "tags": { + "target": "com.amazonaws.omics#TagMap", + "traits": { + "smithy.api#documentation": "

The tags associated with this run cache.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.omics#CreateRunGroup": { "type": "operation", "input": { @@ -2940,6 +3100,69 @@ "smithy.api#idempotent": {} } }, + "com.amazonaws.omics#DeleteRunCache": { + "type": "operation", + "input": { + "target": "com.amazonaws.omics#DeleteRunCacheRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.amazonaws.omics#AccessDeniedException" + }, + { + "target": "com.amazonaws.omics#ConflictException" + }, + { + "target": "com.amazonaws.omics#InternalServerException" + }, + { + "target": "com.amazonaws.omics#RequestTimeoutException" + }, + { + "target": "com.amazonaws.omics#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.omics#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.omics#ThrottlingException" + }, + { + "target": "com.amazonaws.omics#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Delete a run cache. This action removes the cache metadata stored in the service account, \n but doesn't delete the data in Amazon S3. \n You can access the cache data in Amazon S3, for inspection or to troubleshoot issues. \n You can remove old cache data using standard S3 Delete operations.\n

\n

For more information, see Deleting a run cache in the AWS HealthOmics User Guide.

", + "smithy.api#endpoint": { + "hostPrefix": "workflows-" + }, + "smithy.api#http": { + "method": "DELETE", + "uri": "/runCache/{id}", + "code": 202 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.omics#DeleteRunCacheRequest": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.omics#RunCacheId", + "traits": { + "smithy.api#documentation": "

Run cache identifier for the cache you want to delete.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, "com.amazonaws.omics#DeleteRunGroup": { "type": "operation", "input": { @@ -3431,6 +3654,12 @@ "smithy.api#pattern": "^[\\p{L}||\\p{M}||\\p{Z}||\\p{S}||\\p{N}||\\p{P}]+$" } }, + "com.amazonaws.omics#EngineVersion": { + "type": "string", + "traits": { + "smithy.api#pattern": "^[0-9]{2}.[0-9]{2}.[0-9]$" + } + }, "com.amazonaws.omics#EscapeChar": { "type": "string", "traits": { @@ -5987,7 +6216,7 @@ } ], "traits": { - "smithy.api#documentation": "

Gets information about a workflow run.

\n

If a workflow is shared with you, you cannot export information about the run.

", + "smithy.api#documentation": "

Gets information about a workflow run.

\n

If a workflow is shared with you, you cannot export information about the run.

\n

HealthOmics stores a fixed number of runs that are available to the console and API. If \n GetRun doesn't return the requested run, you can find run logs \n for all runs in the CloudWatch logs. For more information about viewing the run logs, see CloudWatch logs \n in the AWS HealthOmics User Guide.

", "smithy.api#endpoint": { "hostPrefix": "workflows-" }, @@ -6125,6 +6354,137 @@ } } }, + "com.amazonaws.omics#GetRunCache": { + "type": "operation", + "input": { + "target": "com.amazonaws.omics#GetRunCacheRequest" + }, + "output": { + "target": "com.amazonaws.omics#GetRunCacheResponse" + }, + "errors": [ + { + "target": "com.amazonaws.omics#AccessDeniedException" + }, + { + "target": "com.amazonaws.omics#ConflictException" + }, + { + "target": "com.amazonaws.omics#InternalServerException" + }, + { + "target": "com.amazonaws.omics#RequestTimeoutException" + }, + { + "target": "com.amazonaws.omics#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.omics#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.omics#ThrottlingException" + }, + { + "target": "com.amazonaws.omics#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Retrieve the details for the specified run cache.

\n

For more information, see Call caching for HealthOmics runs in the AWS HealthOmics User Guide.

", + "smithy.api#endpoint": { + "hostPrefix": "workflows-" + }, + "smithy.api#http": { + "method": "GET", + "uri": "/runCache/{id}", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.omics#GetRunCacheRequest": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.omics#RunCacheId", + "traits": { + "smithy.api#documentation": "

The identifier of the run cache to retrieve.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.omics#GetRunCacheResponse": { + "type": "structure", + "members": { + "arn": { + "target": "com.amazonaws.omics#RunCacheArn", + "traits": { + "smithy.api#documentation": "

Unique resource identifier for the run cache.

" + } + }, + "cacheBehavior": { + "target": "com.amazonaws.omics#CacheBehavior", + "traits": { + "smithy.api#documentation": "

The default cache behavior for runs using this cache.

" + } + }, + "cacheBucketOwnerId": { + "target": "com.amazonaws.omics#AwsAccountId", + "traits": { + "smithy.api#documentation": "

The identifier of the bucket owner.

" + } + }, + "cacheS3Uri": { + "target": "com.amazonaws.omics#S3UriForBucketOrObject", + "traits": { + "smithy.api#documentation": "

The S3 URI where the cache data is stored.

" + } + }, + "creationTime": { + "target": "com.amazonaws.omics#RunCacheTimestamp", + "traits": { + "smithy.api#documentation": "

Creation time of the run cache (an ISO 8601 formatted string).

" + } + }, + "description": { + "target": "com.amazonaws.omics#UserCustomDescription", + "traits": { + "smithy.api#documentation": "

The run cache description.

" + } + }, + "id": { + "target": "com.amazonaws.omics#RunCacheId", + "traits": { + "smithy.api#documentation": "

The run cache ID.

" + } + }, + "name": { + "target": "com.amazonaws.omics#UserCustomName", + "traits": { + "smithy.api#documentation": "

The run cache name.

" + } + }, + "status": { + "target": "com.amazonaws.omics#RunCacheStatus", + "traits": { + "smithy.api#documentation": "

The run cache status.

" + } + }, + "tags": { + "target": "com.amazonaws.omics#TagMap", + "traits": { + "smithy.api#documentation": "

The tags associated with the run cache.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.omics#GetRunGroup": { "type": "operation", "input": { @@ -6304,6 +6664,24 @@ "smithy.api#documentation": "

The run's ID.

" } }, + "cacheId": { + "target": "com.amazonaws.omics#NumericIdInArn", + "traits": { + "smithy.api#documentation": "

The run cache associated with the run.

" + } + }, + "cacheBehavior": { + "target": "com.amazonaws.omics#CacheBehavior", + "traits": { + "smithy.api#documentation": "

The run cache behavior for the run.

" + } + }, + "engineVersion": { + "target": "com.amazonaws.omics#EngineVersion", + "traits": { + "smithy.api#documentation": "

The workflow engine version.

" + } + }, "status": { "target": "com.amazonaws.omics#RunStatus", "traits": { @@ -6718,6 +7096,18 @@ } } }, + "cacheHit": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Set to true if AWS HealthOmics found a matching entry in the run cache for this task.

" + } + }, + "cacheS3Uri": { + "target": "com.amazonaws.omics#S3UriForBucketOrObject", + "traits": { + "smithy.api#documentation": "

The S3 URI of the cache location.

" + } + }, "memory": { "target": "smithy.api#Integer", "traits": { @@ -9398,10 +9788,110 @@ "smithy.api#httpQuery": "nextToken" } }, - "filter": { - "target": "com.amazonaws.omics#ReferenceFilter", + "filter": { + "target": "com.amazonaws.omics#ReferenceFilter", + "traits": { + "smithy.api#documentation": "

A filter to apply to the list.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.omics#ListReferencesResponse": { + "type": "structure", + "members": { + "nextToken": { + "target": "com.amazonaws.omics#NextToken", + "traits": { + "smithy.api#documentation": "

A pagination token that's included if more results are available.

" + } + }, + "references": { + "target": "com.amazonaws.omics#ReferenceList", + "traits": { + "smithy.api#documentation": "

A list of references.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.omics#ListRunCaches": { + "type": "operation", + "input": { + "target": "com.amazonaws.omics#ListRunCachesRequest" + }, + "output": { + "target": "com.amazonaws.omics#ListRunCachesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.omics#AccessDeniedException" + }, + { + "target": "com.amazonaws.omics#ConflictException" + }, + { + "target": "com.amazonaws.omics#InternalServerException" + }, + { + "target": "com.amazonaws.omics#RequestTimeoutException" + }, + { + "target": "com.amazonaws.omics#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.omics#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.omics#ThrottlingException" + }, + { + "target": "com.amazonaws.omics#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Retrieves a list of your run caches.

", + "smithy.api#endpoint": { + "hostPrefix": "workflows-" + }, + "smithy.api#http": { + "method": "GET", + "uri": "/runCache", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "startingToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "items" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.omics#ListRunCachesRequest": { + "type": "structure", + "members": { + "maxResults": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

The maximum number of results to return.

", + "smithy.api#httpQuery": "maxResults", + "smithy.api#range": { + "min": 1, + "max": 100 + } + } + }, + "startingToken": { + "target": "com.amazonaws.omics#ListToken", "traits": { - "smithy.api#documentation": "

A filter to apply to the list.

" + "smithy.api#documentation": "

Optional pagination token returned from a prior call to the ListRunCaches API operation.

", + "smithy.api#httpQuery": "startingToken" } } }, @@ -9409,20 +9899,19 @@ "smithy.api#input": {} } }, - "com.amazonaws.omics#ListReferencesResponse": { + "com.amazonaws.omics#ListRunCachesResponse": { "type": "structure", "members": { - "nextToken": { - "target": "com.amazonaws.omics#NextToken", + "items": { + "target": "com.amazonaws.omics#RunCacheList", "traits": { - "smithy.api#documentation": "

A pagination token that's included if more results are available.

" + "smithy.api#documentation": "

Details about each run cache in the response.

" } }, - "references": { - "target": "com.amazonaws.omics#ReferenceList", + "nextToken": { + "target": "com.amazonaws.omics#ListToken", "traits": { - "smithy.api#documentation": "

A list of references.

", - "smithy.api#required": {} + "smithy.api#documentation": "

Pagination token to retrieve additional run caches. If the response does not have a \n nextTokenvalue, you have reached to the end of the list.

" } } }, @@ -9685,7 +10174,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves a list of runs.

", + "smithy.api#documentation": "

Retrieves a list of runs.

\n

HealthOmics stores a fixed number of runs that are available to the console and API. If \n the ListRuns response doesn't include specific runs that you expected, you can find run logs \n for all runs in the CloudWatch logs. For more information about viewing the run logs, see CloudWatch logs \n in the AWS HealthOmics User Guide.

", "smithy.api#endpoint": { "hostPrefix": "workflows-" }, @@ -10051,6 +10540,16 @@ "smithy.api#output": {} } }, + "com.amazonaws.omics#ListToken": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + }, + "smithy.api#pattern": "^[\\p{L}||\\p{M}||\\p{Z}||\\p{S}||\\p{N}||\\p{P}]+$" + } + }, "com.amazonaws.omics#ListVariantImportJobs": { "type": "operation", "input": { @@ -10546,6 +11045,16 @@ "smithy.api#httpError": 405 } }, + "com.amazonaws.omics#NumericIdInArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 18 + }, + "smithy.api#pattern": "^[0-9]+$" + } + }, "com.amazonaws.omics#Omics": { "type": "service", "version": "2022-11-28", @@ -10562,6 +11071,9 @@ { "target": "com.amazonaws.omics#ReferenceStoreResource" }, + { + "target": "com.amazonaws.omics#RunCacheResource" + }, { "target": "com.amazonaws.omics#RunGroupResource" }, @@ -12691,6 +13203,159 @@ "smithy.api#pattern": "^arn:.+$" } }, + "com.amazonaws.omics#RunCacheArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + }, + "smithy.api#pattern": "^arn:.+$" + } + }, + "com.amazonaws.omics#RunCacheId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 18 + }, + "smithy.api#pattern": "^[0-9]+$" + } + }, + "com.amazonaws.omics#RunCacheList": { + "type": "list", + "member": { + "target": "com.amazonaws.omics#RunCacheListItem" + } + }, + "com.amazonaws.omics#RunCacheListItem": { + "type": "structure", + "members": { + "arn": { + "target": "com.amazonaws.omics#RunCacheArn", + "traits": { + "smithy.api#documentation": "

Unique resource identifier for the run cache.

" + } + }, + "cacheBehavior": { + "target": "com.amazonaws.omics#CacheBehavior", + "traits": { + "smithy.api#documentation": "

Default cache behavior for the run cache.

" + } + }, + "cacheS3Uri": { + "target": "com.amazonaws.omics#S3UriForBucketOrObject", + "traits": { + "smithy.api#documentation": "

The S3 uri for the run cache data.

" + } + }, + "creationTime": { + "target": "com.amazonaws.omics#RunCacheTimestamp", + "traits": { + "smithy.api#documentation": "

The time that this run cache was created (an ISO 8601 formatted string).

" + } + }, + "id": { + "target": "com.amazonaws.omics#RunCacheId", + "traits": { + "smithy.api#documentation": "

The identifier for this run cache.

" + } + }, + "name": { + "target": "com.amazonaws.omics#UserCustomName", + "traits": { + "smithy.api#documentation": "

The name of the run cache.

" + } + }, + "status": { + "target": "com.amazonaws.omics#RunCacheStatus", + "traits": { + "smithy.api#documentation": "

The run cache status.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

List entry for one run cache.

" + } + }, + "com.amazonaws.omics#RunCacheRequestId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + }, + "smithy.api#pattern": "^[\\p{L}||\\p{M}||\\p{Z}||\\p{S}||\\p{N}||\\p{P}]+$" + } + }, + "com.amazonaws.omics#RunCacheResource": { + "type": "resource", + "identifiers": { + "id": { + "target": "com.amazonaws.omics#RunCacheId" + } + }, + "create": { + "target": "com.amazonaws.omics#CreateRunCache" + }, + "read": { + "target": "com.amazonaws.omics#GetRunCache" + }, + "update": { + "target": "com.amazonaws.omics#UpdateRunCache" + }, + "delete": { + "target": "com.amazonaws.omics#DeleteRunCache" + }, + "list": { + "target": "com.amazonaws.omics#ListRunCaches" + }, + "traits": { + "aws.api#arn": { + "template": "runCache/{id}" + }, + "aws.cloudformation#cfnResource": { + "name": "RunCache" + }, + "aws.iam#conditionKeys": [ + "aws:ResourceTag/${TagKey}" + ], + "aws.iam#disableConditionKeyInference": {}, + "aws.iam#iamResource": { + "name": "runCache" + } + } + }, + "com.amazonaws.omics#RunCacheStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "name": "ACTIVE", + "value": "ACTIVE" + }, + { + "name": "DELETED", + "value": "DELETED" + }, + { + "name": "FAILED", + "value": "FAILED" + } + ], + "smithy.api#length": { + "min": 1, + "max": 64 + } + } + }, + "com.amazonaws.omics#RunCacheTimestamp": { + "type": "timestamp", + "traits": { + "smithy.api#timestampFormat": "date-time" + } + }, "com.amazonaws.omics#RunExport": { "type": "string", "traits": { @@ -13296,6 +13961,13 @@ "smithy.api#pattern": "^s3://([a-z0-9][a-z0-9-.]{1,61}[a-z0-9])/(.{1,1024})$" } }, + "com.amazonaws.omics#S3UriForBucketOrObject": { + "type": "string", + "traits": { + "smithy.api#documentation": "Uri to a S3 object or bucket", + "smithy.api#pattern": "^s3://([a-z0-9][a-z0-9-.]{1,61}[a-z0-9])(/(.{0,1024}))?$" + } + }, "com.amazonaws.omics#SampleId": { "type": "string", "traits": { @@ -14657,7 +15329,7 @@ } ], "traits": { - "smithy.api#documentation": "

Starts a workflow run. To duplicate a run, specify the run's ID and a role ARN. The\n remaining parameters are copied from the previous run.

\n

StartRun will not support re-run for a workflow that is shared with you.

\n

The total number of runs in your account is subject to a quota per Region. To avoid\n needing to delete runs manually, you can set the retention mode to REMOVE.\n Runs with this setting are deleted automatically when the run quoata is exceeded.

\n

By default, the run uses STATIC storage. For STATIC storage, set the storageCapacity field. \n You can set the storage type to DYNAMIC. You do not set storageCapacity,\n because HealthOmics dynamically scales the storage up or down as required.\n For more information about static and dynamic storage, see Running workflows \n in the AWS HealthOmics User Guide.

", + "smithy.api#documentation": "

Starts a workflow run. To duplicate a run, specify the run's ID and a role ARN. The\n remaining parameters are copied from the previous run.

\n

StartRun will not support re-run for a workflow that is shared with you.

\n

HealthOmics stores a fixed number of runs that are available to the console and API.\n By default, HealthOmics doesn't any remove any runs. If HealthOmics reaches the maximum \n number of runs, you must manually remove runs. To have older runs removed automatically,\n set the retention mode to REMOVE.

\n

By default, the run uses STATIC storage. For STATIC storage, set the storageCapacity field. \n You can set the storage type to DYNAMIC. You do not set storageCapacity,\n because HealthOmics dynamically scales the storage up or down as required.\n For more information about static and dynamic storage, see Running workflows \n in the AWS HealthOmics User Guide.

", "smithy.api#endpoint": { "hostPrefix": "workflows-" }, @@ -14702,6 +15374,18 @@ "smithy.api#documentation": "

A name for the run.

" } }, + "cacheId": { + "target": "com.amazonaws.omics#NumericIdInArn", + "traits": { + "smithy.api#documentation": "

Identifier of the cache associated with this run. If you don't specify a cache ID, no task outputs are cached \n for this run.

" + } + }, + "cacheBehavior": { + "target": "com.amazonaws.omics#CacheBehavior", + "traits": { + "smithy.api#documentation": "

The cache behavior for the run. You specify this value if you want to override\n the default behavior for the cache. You had set the default value when you created the cache.\n For more information, see Run cache behavior in the AWS HealthOmics User Guide.

" + } + }, "runGroupId": { "target": "com.amazonaws.omics#RunGroupId", "traits": { @@ -14763,7 +15447,7 @@ "retentionMode": { "target": "com.amazonaws.omics#RunRetentionMode", "traits": { - "smithy.api#documentation": "

The retention mode for the run.

" + "smithy.api#documentation": "

The retention mode for the run. The default value is RETAIN.

\n

HealthOmics stores a fixed number of runs that are available to the console and API. \n In the default mode (RETAIN), you need to remove runs manually when the number of run exceeds the maximum.\n If you set the retention mode to REMOVE, HealthOmics automatically \n removes runs (that have mode set to REMOVE) when the number of run exceeds the maximum.\n All run logs are available in CloudWatch logs, if you need information about a run that is no longer available to the API.

\n

For more information about retention mode, see Specifying run retention mode \n in the AWS HealthOmics User Guide.

" } }, "storageType": { @@ -14789,7 +15473,7 @@ "arn": { "target": "com.amazonaws.omics#RunArn", "traits": { - "smithy.api#documentation": "

The run's ARN.

" + "smithy.api#documentation": "

Unique resource identifier for the run.

" } }, "id": { @@ -15269,6 +15953,18 @@ } } }, + "cacheHit": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Set to true if AWS HealthOmics found a matching entry in the run cache for this task.

" + } + }, + "cacheS3Uri": { + "target": "com.amazonaws.omics#S3UriForBucketOrObject", + "traits": { + "smithy.api#documentation": "

The S3 URI of the cache location.

" + } + }, "memory": { "target": "smithy.api#Integer", "traits": { @@ -15858,6 +16554,86 @@ "smithy.api#output": {} } }, + "com.amazonaws.omics#UpdateRunCache": { + "type": "operation", + "input": { + "target": "com.amazonaws.omics#UpdateRunCacheRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.amazonaws.omics#AccessDeniedException" + }, + { + "target": "com.amazonaws.omics#ConflictException" + }, + { + "target": "com.amazonaws.omics#InternalServerException" + }, + { + "target": "com.amazonaws.omics#RequestTimeoutException" + }, + { + "target": "com.amazonaws.omics#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.omics#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.omics#ThrottlingException" + }, + { + "target": "com.amazonaws.omics#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Update a run cache.

", + "smithy.api#endpoint": { + "hostPrefix": "workflows-" + }, + "smithy.api#http": { + "method": "POST", + "uri": "/runCache/{id}", + "code": 202 + } + } + }, + "com.amazonaws.omics#UpdateRunCacheRequest": { + "type": "structure", + "members": { + "cacheBehavior": { + "target": "com.amazonaws.omics#CacheBehavior", + "traits": { + "smithy.api#documentation": "

Update the default run cache behavior.

" + } + }, + "description": { + "target": "com.amazonaws.omics#UserCustomDescription", + "traits": { + "smithy.api#documentation": "

Update the run cache description.

" + } + }, + "id": { + "target": "com.amazonaws.omics#RunCacheId", + "traits": { + "smithy.api#documentation": "

The identifier of the run cache you want to update.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.omics#UserCustomName", + "traits": { + "smithy.api#documentation": "

Update the name of the run cache.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, "com.amazonaws.omics#UpdateRunGroup": { "type": "operation", "input": { @@ -16289,6 +17065,26 @@ "smithy.api#output": {} } }, + "com.amazonaws.omics#UserCustomDescription": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[\\p{L}||\\p{M}||\\p{Z}||\\p{S}||\\p{N}||\\p{P}]+$" + } + }, + "com.amazonaws.omics#UserCustomName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + }, + "smithy.api#pattern": "^[\\p{L}||\\p{M}||\\p{Z}||\\p{S}||\\p{N}||\\p{P}]+$" + } + }, "com.amazonaws.omics#ValidationException": { "type": "structure", "members": { diff --git a/codegen/sdk-codegen/aws-models/qconnect.json b/codegen/sdk-codegen/aws-models/qconnect.json index a468eff5e39..da25339d851 100644 --- a/codegen/sdk-codegen/aws-models/qconnect.json +++ b/codegen/sdk-codegen/aws-models/qconnect.json @@ -732,6 +732,119 @@ "smithy.api#httpError": 403 } }, + "com.amazonaws.qconnect#ActivateMessageTemplate": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#ActivateMessageTemplateRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#ActivateMessageTemplateResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ConflictException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ThrottlingException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Activates a specific version of the Amazon Q in Connect message template. After the\n version is activated, the previous active version will be deactivated automatically. You can\n use the $ACTIVE_VERSION qualifier later to reference the version that is in\n active status.

", + "smithy.api#http": { + "uri": "/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/activate", + "method": "POST" + } + } + }, + "com.amazonaws.qconnect#ActivateMessageTemplateRequest": { + "type": "structure", + "members": { + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain\n the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "messageTemplateId": { + "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", + "traits": { + "smithy.api#documentation": "

The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "versionNumber": { + "target": "com.amazonaws.qconnect#Version", + "traits": { + "smithy.api#documentation": "

The version number of the message template version to activate.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.qconnect#ActivateMessageTemplateResponse": { + "type": "structure", + "members": { + "messageTemplateArn": { + "target": "com.amazonaws.qconnect#ArnWithQualifier", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the message template.

", + "smithy.api#required": {} + } + }, + "messageTemplateId": { + "target": "com.amazonaws.qconnect#Uuid", + "traits": { + "smithy.api#documentation": "

The identifier of the message template.

", + "smithy.api#required": {} + } + }, + "versionNumber": { + "target": "com.amazonaws.qconnect#Version", + "traits": { + "smithy.api#documentation": "

The version number of the message template version that is activated.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.qconnect#AgentAttributes": { + "type": "structure", + "members": { + "firstName": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The agent’s first name as entered in their Amazon Connect user account.

" + } + }, + "lastName": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The agent’s last name as entered in their Amazon Connect user account.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Information about an agent.

" + } + }, "com.amazonaws.qconnect#AmazonConnectGuideAssociationData": { "type": "structure", "members": { @@ -811,6 +924,12 @@ "smithy.api#pattern": "^arn:[a-z-]*?:wisdom:[a-z0-9-]*?:[0-9]{12}:[a-z-]*?/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}(?:/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}){0,2}$" } }, + "com.amazonaws.qconnect#ArnWithQualifier": { + "type": "string", + "traits": { + "smithy.api#pattern": "^arn:[a-z-]*?:wisdom:[a-z0-9-]*?:[0-9]{12}:[a-z-]*?/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}(?:/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}){0,2}(:[A-Z0-9_$]+){0,1}$" + } + }, "com.amazonaws.qconnect#Assistant": { "type": "resource", "identifiers": { @@ -1342,7 +1461,7 @@ "knowledgeBaseAssociationConfigurationData": { "target": "com.amazonaws.qconnect#KnowledgeBaseAssociationConfigurationData", "traits": { - "smithy.api#documentation": "

The data of the configuration for a KNOWLEDGE_BASE type Amazon Q in Connect Assistant\n Association.

" + "smithy.api#documentation": "

The data of the configuration for a KNOWLEDGE_BASE type Amazon Q in Connect\n Assistant Association.

" } } }, @@ -1367,6 +1486,17 @@ ] } }, + "com.amazonaws.qconnect#AttachmentFileName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[\\p{L}\\p{M}\\p{N}_\\s&@()+,;=\\-]+\\.[A-Za-z0-9]+$", + "smithy.api#sensitive": {} + } + }, "com.amazonaws.qconnect#BedrockFoundationModelConfigurationForParsing": { "type": "structure", "members": { @@ -1408,6 +1538,21 @@ "smithy.api#sensitive": {} } }, + "com.amazonaws.qconnect#ChannelSubtype": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "EMAIL", + "name": "EMAIL" + }, + { + "value": "SMS", + "name": "SMS" + } + ] + } + }, "com.amazonaws.qconnect#Channels": { "type": "list", "member": { @@ -1969,6 +2114,17 @@ "smithy.api#documentation": "

Details about the content data.

" } }, + "com.amazonaws.qconnect#ContentDisposition": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "ATTACHMENT", + "name": "ATTACHMENT" + } + ] + } + }, "com.amazonaws.qconnect#ContentFeedbackData": { "type": "union", "members": { @@ -2233,7 +2389,7 @@ "clientToken": { "target": "com.amazonaws.qconnect#ClientToken", "traits": { - "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the AWS SDK populates this field. For more information about\n idempotency, see Making retries safe with idempotent APIs.

", + "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the Amazon Web Services\n SDK populates this field. For more information about idempotency, see\n Making retries safe with idempotent APIs..

", "smithy.api#idempotencyToken": {} } }, @@ -2369,7 +2525,7 @@ "clientToken": { "target": "com.amazonaws.qconnect#ClientToken", "traits": { - "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the AWS SDK populates this field. For more information about\n idempotency, see Making retries safe with idempotent APIs.

", + "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the Amazon Web Services\n SDK populates this field. For more information about idempotency, see\n Making retries safe with idempotent APIs..

", "smithy.api#idempotencyToken": {} } } @@ -2441,7 +2597,7 @@ "clientToken": { "target": "com.amazonaws.qconnect#ClientToken", "traits": { - "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the AWS SDK populates this field. For more information about\n idempotency, see Making retries safe with idempotent APIs.

", + "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the Amazon Web Services\n SDK populates this field. For more information about idempotency, see\n Making retries safe with idempotent APIs..

", "smithy.api#idempotencyToken": {} } }, @@ -2598,7 +2754,7 @@ "clientToken": { "target": "com.amazonaws.qconnect#ClientToken", "traits": { - "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the AWS SDK populates this field. For more information about\n idempotency, see Making retries safe with idempotent APIs.

", + "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the Amazon Web Services\n SDK populates this field. For more information about idempotency, see\n Making retries safe with idempotent APIs..

", "smithy.api#idempotencyToken": {} } } @@ -2720,7 +2876,7 @@ "clientToken": { "target": "com.amazonaws.qconnect#ClientToken", "traits": { - "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the Amazon Web Services\n SDK populates this field. For more information about idempotency, see\n Making retries safe with idempotent APIs.

", + "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the Amazon Web Services\n SDK populates this field. For more information about idempotency, see\n Making retries safe with idempotent APIs.

", "smithy.api#idempotencyToken": {} } }, @@ -2749,7 +2905,7 @@ "clientToken": { "target": "com.amazonaws.qconnect#ClientToken", "traits": { - "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the Amazon Web Services\n SDK populates this field. For more information about idempotency, see\n Making retries safe with idempotent APIs.

", + "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the Amazon Web Services\n SDK populates this field. For more information about idempotency, see\n Making retries safe with idempotent APIs.

", "smithy.api#idempotencyToken": {} } }, @@ -2874,7 +3030,7 @@ "clientToken": { "target": "com.amazonaws.qconnect#ClientToken", "traits": { - "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the Amazon Web Services\n SDK populates this field. For more information about idempotency, see\n Making retries safe with idempotent APIs.

", + "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the Amazon Web Services\n SDK populates this field. For more information about idempotency, see\n Making retries safe with idempotent APIs.

", "smithy.api#idempotencyToken": {} } }, @@ -2979,7 +3135,7 @@ "clientToken": { "target": "com.amazonaws.qconnect#NonEmptyString", "traits": { - "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the Amazon Web Services\n SDK populates this field. For more information about idempotency, see\n Making retries safe with idempotent APIs.

", + "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the Amazon Web Services\n SDK populates this field. For more information about idempotency, see\n Making retries safe with idempotent APIs.

", "smithy.api#idempotencyToken": {} } }, @@ -3039,7 +3195,7 @@ "clientToken": { "target": "com.amazonaws.qconnect#NonEmptyString", "traits": { - "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the Amazon Web Services\n SDK populates this field. For more information about idempotency, see\n Making retries safe with idempotent APIs.

", + "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the Amazon Web Services\n SDK populates this field. For more information about idempotency, see\n Making retries safe with idempotent APIs.

", "smithy.api#idempotencyToken": {} } }, @@ -3060,7 +3216,7 @@ "sourceConfiguration": { "target": "com.amazonaws.qconnect#SourceConfiguration", "traits": { - "smithy.api#documentation": "

The source of the knowledge base content. Only set this argument for EXTERNAL knowledge\n bases.

" + "smithy.api#documentation": "

The source of the knowledge base content. Only set this argument for EXTERNAL or Managed\n knowledge bases.

" } }, "renderingConfiguration": { @@ -3106,13 +3262,13 @@ } } }, - "com.amazonaws.qconnect#CreateQuickResponse": { + "com.amazonaws.qconnect#CreateMessageTemplate": { "type": "operation", "input": { - "target": "com.amazonaws.qconnect#CreateQuickResponseRequest" + "target": "com.amazonaws.qconnect#CreateMessageTemplateRequest" }, "output": { - "target": "com.amazonaws.qconnect#CreateQuickResponseResponse" + "target": "com.amazonaws.qconnect#CreateMessageTemplateResponse" }, "errors": [ { @@ -3127,78 +3283,160 @@ { "target": "com.amazonaws.qconnect#ServiceQuotaExceededException" }, + { + "target": "com.amazonaws.qconnect#ThrottlingException" + }, { "target": "com.amazonaws.qconnect#ValidationException" } ], "traits": { - "smithy.api#documentation": "

Creates an Amazon Q in Connect quick response.

", + "smithy.api#documentation": "

Creates an Amazon Q in Connect message template. The name of the message template has to\n be unique for each knowledge base. The channel subtype of the message template is immutable\n and cannot be modified after creation. After the message template is created, you can use the\n $LATEST qualifier to reference the created message template.

", "smithy.api#http": { - "uri": "/knowledgeBases/{knowledgeBaseId}/quickResponses", + "uri": "/knowledgeBases/{knowledgeBaseId}/messageTemplates", "method": "POST" }, "smithy.api#idempotent": {} } }, - "com.amazonaws.qconnect#CreateQuickResponseRequest": { + "com.amazonaws.qconnect#CreateMessageTemplateAttachment": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#CreateMessageTemplateAttachmentRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#CreateMessageTemplateAttachmentResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ConflictException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.qconnect#ThrottlingException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Uploads an attachment file to the specified Amazon Q in Connect message template. The name\n of the message template attachment has to be unique for each message template referenced by\n the $LATEST qualifier. The body of the attachment file should be encoded using\n base64 encoding. After the file is uploaded, you can use the pre-signed Amazon S3 URL returned\n in response to download the uploaded file.

", + "smithy.api#http": { + "uri": "/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/attachments", + "method": "POST" + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.qconnect#CreateMessageTemplateAttachmentRequest": { "type": "structure", "members": { "knowledgeBaseId": { "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain\n the ARN.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "name": { - "target": "com.amazonaws.qconnect#QuickResponseName", + "messageTemplateId": { + "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", "traits": { - "smithy.api#documentation": "

The name of the quick response.

", + "smithy.api#documentation": "

The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.

", + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "content": { - "target": "com.amazonaws.qconnect#QuickResponseDataProvider", + "contentDisposition": { + "target": "com.amazonaws.qconnect#ContentDisposition", "traits": { - "smithy.api#documentation": "

The content of the quick response.

", + "smithy.api#documentation": "

The presentation information for the attachment file.

", "smithy.api#required": {} } }, - "contentType": { - "target": "com.amazonaws.qconnect#QuickResponseType", + "name": { + "target": "com.amazonaws.qconnect#AttachmentFileName", "traits": { - "smithy.api#documentation": "

The media type of the quick response content.

\n " + "smithy.api#documentation": "

The name of the attachment file being uploaded. The name should include the file extension.

", + "smithy.api#required": {} } }, - "groupingConfiguration": { - "target": "com.amazonaws.qconnect#GroupingConfiguration", + "body": { + "target": "com.amazonaws.qconnect#NonEmptyUnlimitedString", "traits": { - "smithy.api#documentation": "

The configuration information of the user groups that the quick response is accessible\n to.

" + "smithy.api#documentation": "

The body of the attachment file being uploaded. It should be encoded using base64\n encoding.

", + "smithy.api#required": {} } }, - "description": { - "target": "com.amazonaws.qconnect#QuickResponseDescription", + "clientToken": { + "target": "com.amazonaws.qconnect#ClientToken", "traits": { - "smithy.api#documentation": "

The description of the quick response.

" + "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the Amazon Web Services\n SDK populates this field. For more information about idempotency, see\n Making retries safe with idempotent APIs.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.qconnect#CreateMessageTemplateAttachmentResponse": { + "type": "structure", + "members": { + "attachment": { + "target": "com.amazonaws.qconnect#MessageTemplateAttachment", + "traits": { + "smithy.api#documentation": "

The message template attachment.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.qconnect#CreateMessageTemplateRequest": { + "type": "structure", + "members": { + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain\n the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } }, - "shortcutKey": { - "target": "com.amazonaws.qconnect#ShortCutKey", + "name": { + "target": "com.amazonaws.qconnect#Name", "traits": { - "smithy.api#documentation": "

The shortcut key of the quick response. The value should be unique across the\n knowledge base.

" + "smithy.api#documentation": "

The name of the message template.

", + "smithy.api#required": {} } }, - "isActive": { - "target": "smithy.api#Boolean", + "content": { + "target": "com.amazonaws.qconnect#MessageTemplateContentProvider", "traits": { - "smithy.api#documentation": "

Whether the quick response is active.

" + "smithy.api#documentation": "

The content of the message template.

", + "smithy.api#required": {} } }, - "channels": { - "target": "com.amazonaws.qconnect#Channels", + "description": { + "target": "com.amazonaws.qconnect#Description", "traits": { - "smithy.api#documentation": "

The Amazon Connect channels this quick response applies to.

" + "smithy.api#documentation": "

The description of the message template.

" + } + }, + "channelSubtype": { + "target": "com.amazonaws.qconnect#ChannelSubtype", + "traits": { + "smithy.api#documentation": "

The channel subtype this message template applies to.

", + "smithy.api#required": {} } }, "language": { @@ -3207,10 +3445,19 @@ "smithy.api#documentation": "

The language code value for the language in which the quick response is written. The supported language codes include de_DE, en_US, es_ES,\n fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR,\n zh_CN, zh_TW\n

" } }, + "defaultAttributes": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributes", + "traits": { + "smithy.api#documentation": "

An object that specifies the default values to use for variables in the message template.\n This object contains different categories of key-value pairs. Each key defines a variable or\n placeholder in the message template. The corresponding value defines the default value for\n that variable.

" + } + }, + "groupingConfiguration": { + "target": "com.amazonaws.qconnect#GroupingConfiguration" + }, "clientToken": { - "target": "com.amazonaws.qconnect#NonEmptyString", + "target": "com.amazonaws.qconnect#ClientToken", "traits": { - "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the Amazon Web Services\n SDK populates this field. For more information about idempotency, see\n Making retries safe with idempotent APIs.

", + "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the Amazon Web Services\n SDK populates this field. For more information about idempotency, see\n Making retries safe with idempotent APIs.

", "smithy.api#idempotencyToken": {} } }, @@ -3225,13 +3472,13 @@ "smithy.api#input": {} } }, - "com.amazonaws.qconnect#CreateQuickResponseResponse": { + "com.amazonaws.qconnect#CreateMessageTemplateResponse": { "type": "structure", "members": { - "quickResponse": { - "target": "com.amazonaws.qconnect#QuickResponseData", + "messageTemplate": { + "target": "com.amazonaws.qconnect#MessageTemplateData", "traits": { - "smithy.api#documentation": "

The quick response.

" + "smithy.api#documentation": "

The message template.

" } } }, @@ -3239,13 +3486,13 @@ "smithy.api#output": {} } }, - "com.amazonaws.qconnect#CreateSession": { + "com.amazonaws.qconnect#CreateMessageTemplateVersion": { "type": "operation", "input": { - "target": "com.amazonaws.qconnect#CreateSessionRequest" + "target": "com.amazonaws.qconnect#CreateMessageTemplateVersionRequest" }, "output": { - "target": "com.amazonaws.qconnect#CreateSessionResponse" + "target": "com.amazonaws.qconnect#CreateMessageTemplateVersionResponse" }, "errors": [ { @@ -3257,228 +3504,208 @@ { "target": "com.amazonaws.qconnect#ResourceNotFoundException" }, + { + "target": "com.amazonaws.qconnect#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.qconnect#ThrottlingException" + }, { "target": "com.amazonaws.qconnect#ValidationException" } ], "traits": { - "smithy.api#documentation": "

Creates a session. A session is a contextual container used for generating\n recommendations. Amazon Connect creates a new Amazon Q in Connect session for each contact on which\n Amazon Q in Connect is enabled.

", + "smithy.api#documentation": "

Creates a new Amazon Q in Connect message template version from the current content and\n configuration of a message template. Versions are immutable and monotonically increasing. Once\n a version is created, you can reference a specific version of the message template by passing\n in <message-template-id>:<versionNumber> as the message template\n identifier. An error is displayed if the supplied messageTemplateContentSha256 is\n different from the messageTemplateContentSha256 of the message template with\n $LATEST qualifier. If multiple CreateMessageTemplateVersion\n requests are made while the message template remains the same, only the first invocation\n creates a new version and the succeeding requests will return the same response as the first\n invocation.

", "smithy.api#http": { - "uri": "/assistants/{assistantId}/sessions", + "uri": "/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/versions", "method": "POST" - }, - "smithy.api#idempotent": {} + } } }, - "com.amazonaws.qconnect#CreateSessionRequest": { + "com.amazonaws.qconnect#CreateMessageTemplateVersionRequest": { "type": "structure", "members": { - "clientToken": { - "target": "com.amazonaws.qconnect#ClientToken", - "traits": { - "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the Amazon Web Services\n SDK populates this field. For more information about idempotency, see\n Making retries safe with idempotent APIs.

", - "smithy.api#idempotencyToken": {} - } - }, - "assistantId": { + "knowledgeBaseId": { "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain\n the ARN.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "name": { - "target": "com.amazonaws.qconnect#Name", + "messageTemplateId": { + "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", "traits": { - "smithy.api#documentation": "

The name of the session.

", + "smithy.api#documentation": "

The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.

", + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "description": { - "target": "com.amazonaws.qconnect#Description", - "traits": { - "smithy.api#documentation": "

The description.

" - } - }, - "tags": { - "target": "com.amazonaws.qconnect#Tags", - "traits": { - "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" - } - }, - "tagFilter": { - "target": "com.amazonaws.qconnect#TagFilter", - "traits": { - "smithy.api#documentation": "

An object that can be used to specify Tag conditions.

" - } - }, - "aiAgentConfiguration": { - "target": "com.amazonaws.qconnect#AIAgentConfigurationMap", - "traits": { - "smithy.api#documentation": "

The configuration of the AI Agents (mapped by AI Agent Type to AI Agent version) that\n should be used by Amazon Q in Connect for this Session.

" - } - } - } - }, - "com.amazonaws.qconnect#CreateSessionResponse": { - "type": "structure", - "members": { - "session": { - "target": "com.amazonaws.qconnect#SessionData", - "traits": { - "smithy.api#documentation": "

The session.

" - } - } - } - }, - "com.amazonaws.qconnect#DataDetails": { - "type": "union", - "members": { - "contentData": { - "target": "com.amazonaws.qconnect#ContentDataDetails", - "traits": { - "smithy.api#documentation": "

Details about the content data.

" - } - }, - "generativeData": { - "target": "com.amazonaws.qconnect#GenerativeDataDetails", - "traits": { - "smithy.api#documentation": "

Details about the generative data.

" - } - }, - "intentDetectedData": { - "target": "com.amazonaws.qconnect#IntentDetectedDataDetails", - "traits": { - "smithy.api#documentation": "

Details about the intent data.

" - } - }, - "sourceContentData": { - "target": "com.amazonaws.qconnect#SourceContentDataDetails", - "traits": { - "smithy.api#documentation": "

Details about the content data.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

Details about the data.

" - } - }, - "com.amazonaws.qconnect#DataReference": { - "type": "union", - "members": { - "contentReference": { - "target": "com.amazonaws.qconnect#ContentReference" - }, - "generativeReference": { - "target": "com.amazonaws.qconnect#GenerativeReference", + "messageTemplateContentSha256": { + "target": "com.amazonaws.qconnect#MessageTemplateContentSha256", "traits": { - "smithy.api#documentation": "

Reference information about the generative content.

" + "smithy.api#documentation": "

The checksum value of the message template content that is referenced by the\n $LATEST qualifier. It can be returned in MessageTemplateData or\n ExtendedMessageTemplateData. It’s calculated by content, language,\n defaultAttributes and Attachments of the message template. If not\n supplied, the message template version will be created based on the message template content\n that is referenced by the $LATEST qualifier by default.

" } } }, "traits": { - "smithy.api#documentation": "

Reference data.

" + "smithy.api#input": {} } }, - "com.amazonaws.qconnect#DataSummary": { + "com.amazonaws.qconnect#CreateMessageTemplateVersionResponse": { "type": "structure", "members": { - "reference": { - "target": "com.amazonaws.qconnect#DataReference", - "traits": { - "smithy.api#documentation": "

Reference information about the content.

", - "smithy.api#required": {} - } - }, - "details": { - "target": "com.amazonaws.qconnect#DataDetails", + "messageTemplate": { + "target": "com.amazonaws.qconnect#ExtendedMessageTemplateData", "traits": { - "smithy.api#documentation": "

Details about the data.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The message template.

" } } }, "traits": { - "smithy.api#documentation": "

Summary of the data.

" - } - }, - "com.amazonaws.qconnect#DataSummaryList": { - "type": "list", - "member": { - "target": "com.amazonaws.qconnect#DataSummary" + "smithy.api#output": {} } }, - "com.amazonaws.qconnect#DeleteAIAgent": { + "com.amazonaws.qconnect#CreateQuickResponse": { "type": "operation", "input": { - "target": "com.amazonaws.qconnect#DeleteAIAgentRequest" + "target": "com.amazonaws.qconnect#CreateQuickResponseRequest" }, "output": { - "target": "com.amazonaws.qconnect#DeleteAIAgentResponse" + "target": "com.amazonaws.qconnect#CreateQuickResponseResponse" }, "errors": [ { "target": "com.amazonaws.qconnect#AccessDeniedException" }, + { + "target": "com.amazonaws.qconnect#ConflictException" + }, { "target": "com.amazonaws.qconnect#ResourceNotFoundException" }, { - "target": "com.amazonaws.qconnect#ThrottlingException" + "target": "com.amazonaws.qconnect#ServiceQuotaExceededException" }, { "target": "com.amazonaws.qconnect#ValidationException" } ], "traits": { - "smithy.api#documentation": "

Deletes an Amazon Q in Connect AI Agent.

", + "smithy.api#documentation": "

Creates an Amazon Q in Connect quick response.

", "smithy.api#http": { - "uri": "/assistants/{assistantId}/aiagents/{aiAgentId}", - "method": "DELETE", - "code": 204 + "uri": "/knowledgeBases/{knowledgeBaseId}/quickResponses", + "method": "POST" }, "smithy.api#idempotent": {} } }, - "com.amazonaws.qconnect#DeleteAIAgentRequest": { + "com.amazonaws.qconnect#CreateQuickResponseRequest": { "type": "structure", "members": { - "assistantId": { + "knowledgeBaseId": { "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", + "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "aiAgentId": { - "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", + "name": { + "target": "com.amazonaws.qconnect#QuickResponseName", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect AI Agent. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", - "smithy.api#httpLabel": {}, + "smithy.api#documentation": "

The name of the quick response.

", + "smithy.api#required": {} + } + }, + "content": { + "target": "com.amazonaws.qconnect#QuickResponseDataProvider", + "traits": { + "smithy.api#documentation": "

The content of the quick response.

", "smithy.api#required": {} } + }, + "contentType": { + "target": "com.amazonaws.qconnect#QuickResponseType", + "traits": { + "smithy.api#documentation": "

The media type of the quick response content.

\n " + } + }, + "groupingConfiguration": { + "target": "com.amazonaws.qconnect#GroupingConfiguration", + "traits": { + "smithy.api#documentation": "

The configuration information of the user groups that the quick response is accessible\n to.

" + } + }, + "description": { + "target": "com.amazonaws.qconnect#QuickResponseDescription", + "traits": { + "smithy.api#documentation": "

The description of the quick response.

" + } + }, + "shortcutKey": { + "target": "com.amazonaws.qconnect#ShortCutKey", + "traits": { + "smithy.api#documentation": "

The shortcut key of the quick response. The value should be unique across the\n knowledge base.

" + } + }, + "isActive": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Whether the quick response is active.

" + } + }, + "channels": { + "target": "com.amazonaws.qconnect#Channels", + "traits": { + "smithy.api#documentation": "

The Amazon Connect channels this quick response applies to.

" + } + }, + "language": { + "target": "com.amazonaws.qconnect#LanguageCode", + "traits": { + "smithy.api#documentation": "

The language code value for the language in which the quick response is written. The supported language codes include de_DE, en_US, es_ES,\n fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR,\n zh_CN, zh_TW\n

" + } + }, + "clientToken": { + "target": "com.amazonaws.qconnect#NonEmptyString", + "traits": { + "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the Amazon Web Services\n SDK populates this field. For more information about idempotency, see\n Making retries safe with idempotent APIs.

", + "smithy.api#idempotencyToken": {} + } + }, + "tags": { + "target": "com.amazonaws.qconnect#Tags", + "traits": { + "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" + } } }, "traits": { "smithy.api#input": {} } }, - "com.amazonaws.qconnect#DeleteAIAgentResponse": { + "com.amazonaws.qconnect#CreateQuickResponseResponse": { "type": "structure", - "members": {}, + "members": { + "quickResponse": { + "target": "com.amazonaws.qconnect#QuickResponseData", + "traits": { + "smithy.api#documentation": "

The quick response.

" + } + } + }, "traits": { "smithy.api#output": {} } }, - "com.amazonaws.qconnect#DeleteAIAgentVersion": { + "com.amazonaws.qconnect#CreateSession": { "type": "operation", "input": { - "target": "com.amazonaws.qconnect#DeleteAIAgentVersionRequest" + "target": "com.amazonaws.qconnect#CreateSessionRequest" }, "output": { - "target": "com.amazonaws.qconnect#DeleteAIAgentVersionResponse" + "target": "com.amazonaws.qconnect#CreateSessionResponse" }, "errors": [ { @@ -3490,69 +3717,2077 @@ { "target": "com.amazonaws.qconnect#ResourceNotFoundException" }, - { - "target": "com.amazonaws.qconnect#ThrottlingException" - }, { "target": "com.amazonaws.qconnect#ValidationException" } ], "traits": { - "smithy.api#documentation": "

Deletes an Amazon Q in Connect AI Agent Version.

", + "smithy.api#documentation": "

Creates a session. A session is a contextual container used for generating\n recommendations. Amazon Connect creates a new Amazon Q in Connect session for each contact on which\n Amazon Q in Connect is enabled.

", "smithy.api#http": { - "uri": "/assistants/{assistantId}/aiagents/{aiAgentId}/versions/{versionNumber}", - "method": "DELETE", - "code": 204 + "uri": "/assistants/{assistantId}/sessions", + "method": "POST" }, "smithy.api#idempotent": {} } }, - "com.amazonaws.qconnect#DeleteAIAgentVersionRequest": { + "com.amazonaws.qconnect#CreateSessionRequest": { "type": "structure", "members": { + "clientToken": { + "target": "com.amazonaws.qconnect#ClientToken", + "traits": { + "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the Amazon Web Services\n SDK populates this field. For more information about idempotency, see\n Making retries safe with idempotent APIs.

", + "smithy.api#idempotencyToken": {} + } + }, "assistantId": { "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "aiAgentId": { - "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", + "name": { + "target": "com.amazonaws.qconnect#Name", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect AI Agent. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", - "smithy.api#httpLabel": {}, + "smithy.api#documentation": "

The name of the session.

", "smithy.api#required": {} } }, - "versionNumber": { - "target": "com.amazonaws.qconnect#Version", + "description": { + "target": "com.amazonaws.qconnect#Description", "traits": { - "smithy.api#documentation": "

The version number of the AI Agent version.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#documentation": "

The description.

" } - } + }, + "tags": { + "target": "com.amazonaws.qconnect#Tags", + "traits": { + "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" + } + }, + "tagFilter": { + "target": "com.amazonaws.qconnect#TagFilter", + "traits": { + "smithy.api#documentation": "

An object that can be used to specify Tag conditions.

" + } + }, + "aiAgentConfiguration": { + "target": "com.amazonaws.qconnect#AIAgentConfigurationMap", + "traits": { + "smithy.api#documentation": "

The configuration of the AI Agents (mapped by AI Agent Type to AI Agent version) that\n should be used by Amazon Q in Connect for this Session.

" + } + } + } + }, + "com.amazonaws.qconnect#CreateSessionResponse": { + "type": "structure", + "members": { + "session": { + "target": "com.amazonaws.qconnect#SessionData", + "traits": { + "smithy.api#documentation": "

The session.

" + } + } + } + }, + "com.amazonaws.qconnect#CustomAttributes": { + "type": "map", + "key": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeKey" + }, + "value": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue" + }, + "traits": { + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.qconnect#CustomerProfileAttributes": { + "type": "structure", + "members": { + "profileId": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The unique identifier of a customer profile.

" + } + }, + "profileARN": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The ARN of a customer profile.

" + } + }, + "firstName": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The customer's first name.

" + } + }, + "middleName": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The customer's middle name.

" + } + }, + "lastName": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The customer's last name.

" + } + }, + "accountNumber": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

A unique account number that you have given to the customer.

" + } + }, + "emailAddress": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The customer's email address, which has not been specified as a personal or business\n address.

" + } + }, + "phoneNumber": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The customer's phone number, which has not been specified as a mobile, home, or business\n number.

" + } + }, + "additionalInformation": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

Any additional information relevant to the customer's profile.

" + } + }, + "partyType": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The customer's party type.

" + } + }, + "businessName": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The name of the customer's business.

" + } + }, + "birthDate": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The customer's birth date.

" + } + }, + "gender": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The customer's gender.

" + } + }, + "mobilePhoneNumber": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The customer's mobile phone number.

" + } + }, + "homePhoneNumber": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The customer's mobile phone number.

" + } + }, + "businessPhoneNumber": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The customer's business phone number.

" + } + }, + "businessEmailAddress": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The customer's business email address.

" + } + }, + "address1": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The first line of a customer address.

" + } + }, + "address2": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The second line of a customer address.

" + } + }, + "address3": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The third line of a customer address.

" + } + }, + "address4": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The fourth line of a customer address.

" + } + }, + "city": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The city in which a customer lives.

" + } + }, + "county": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The county in which a customer lives.

" + } + }, + "country": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The country in which a customer lives.

" + } + }, + "postalCode": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The postal code of a customer address.

" + } + }, + "province": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The province in which a customer lives.

" + } + }, + "state": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The state in which a customer lives.

" + } + }, + "shippingAddress1": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The first line of a customer’s shipping address.

" + } + }, + "shippingAddress2": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The second line of a customer’s shipping address.

" + } + }, + "shippingAddress3": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The third line of a customer’s shipping address.

" + } + }, + "shippingAddress4": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The fourth line of a customer’s shipping address.

" + } + }, + "shippingCity": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The city of a customer’s shipping address.

" + } + }, + "shippingCounty": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The county of a customer’s shipping address.

" + } + }, + "shippingCountry": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The country of a customer’s shipping address.

" + } + }, + "shippingPostalCode": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The postal code of a customer’s shipping address.

" + } + }, + "shippingProvince": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The province of a customer’s shipping address.

" + } + }, + "shippingState": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The state of a customer’s shipping address.

" + } + }, + "mailingAddress1": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The first line of a customer’s mailing address.

" + } + }, + "mailingAddress2": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The second line of a customer’s mailing address.

" + } + }, + "mailingAddress3": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The third line of a customer’s mailing address.

" + } + }, + "mailingAddress4": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The fourth line of a customer’s mailing address.

" + } + }, + "mailingCity": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The city of a customer’s mailing address.

" + } + }, + "mailingCounty": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The county of a customer’s mailing address.

" + } + }, + "mailingCountry": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The country of a customer’s mailing address.

" + } + }, + "mailingPostalCode": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The postal code of a customer’s mailing address.

" + } + }, + "mailingProvince": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The province of a customer’s mailing address.

" + } + }, + "mailingState": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The state of a customer’s mailing address.

" + } + }, + "billingAddress1": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The first line of a customer’s billing address.

" + } + }, + "billingAddress2": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The second line of a customer’s billing address.

" + } + }, + "billingAddress3": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The third line of a customer’s billing address.

" + } + }, + "billingAddress4": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The fourth line of a customer’s billing address.

" + } + }, + "billingCity": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The city of a customer’s billing address.

" + } + }, + "billingCounty": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The county of a customer’s billing address.

" + } + }, + "billingCountry": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The country of a customer’s billing address.

" + } + }, + "billingPostalCode": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The postal code of a customer’s billing address.

" + } + }, + "billingProvince": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The province of a customer’s billing address.

" + } + }, + "billingState": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The state of a customer’s billing address.

" + } + }, + "custom": { + "target": "com.amazonaws.qconnect#CustomAttributes", + "traits": { + "smithy.api#documentation": "

The custom attributes in customer profile attributes.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The customer profile attributes that are used with the message template.

" + } + }, + "com.amazonaws.qconnect#DataDetails": { + "type": "union", + "members": { + "contentData": { + "target": "com.amazonaws.qconnect#ContentDataDetails", + "traits": { + "smithy.api#documentation": "

Details about the content data.

" + } + }, + "generativeData": { + "target": "com.amazonaws.qconnect#GenerativeDataDetails", + "traits": { + "smithy.api#documentation": "

Details about the generative data.

" + } + }, + "intentDetectedData": { + "target": "com.amazonaws.qconnect#IntentDetectedDataDetails", + "traits": { + "smithy.api#documentation": "

Details about the intent data.

" + } + }, + "sourceContentData": { + "target": "com.amazonaws.qconnect#SourceContentDataDetails", + "traits": { + "smithy.api#documentation": "

Details about the content data.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Details about the data.

" + } + }, + "com.amazonaws.qconnect#DataReference": { + "type": "union", + "members": { + "contentReference": { + "target": "com.amazonaws.qconnect#ContentReference" + }, + "generativeReference": { + "target": "com.amazonaws.qconnect#GenerativeReference", + "traits": { + "smithy.api#documentation": "

Reference information about the generative content.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Reference data.

" + } + }, + "com.amazonaws.qconnect#DataSummary": { + "type": "structure", + "members": { + "reference": { + "target": "com.amazonaws.qconnect#DataReference", + "traits": { + "smithy.api#documentation": "

Reference information about the content.

", + "smithy.api#required": {} + } + }, + "details": { + "target": "com.amazonaws.qconnect#DataDetails", + "traits": { + "smithy.api#documentation": "

Details about the data.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Summary of the data.

" + } + }, + "com.amazonaws.qconnect#DataSummaryList": { + "type": "list", + "member": { + "target": "com.amazonaws.qconnect#DataSummary" + } + }, + "com.amazonaws.qconnect#DeactivateMessageTemplate": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#DeactivateMessageTemplateRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#DeactivateMessageTemplateResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ConflictException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ThrottlingException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Deactivates a specific version of the Amazon Q in Connect message template . After the\n version is deactivated, you can no longer use the $ACTIVE_VERSION qualifier to\n reference the version in active status.

", + "smithy.api#http": { + "uri": "/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/deactivate", + "method": "POST" + } + } + }, + "com.amazonaws.qconnect#DeactivateMessageTemplateRequest": { + "type": "structure", + "members": { + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain\n the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "messageTemplateId": { + "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", + "traits": { + "smithy.api#documentation": "

The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "versionNumber": { + "target": "com.amazonaws.qconnect#Version", + "traits": { + "smithy.api#documentation": "

The version number of the message template version to deactivate.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.qconnect#DeactivateMessageTemplateResponse": { + "type": "structure", + "members": { + "messageTemplateArn": { + "target": "com.amazonaws.qconnect#ArnWithQualifier", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the message template.

", + "smithy.api#required": {} + } + }, + "messageTemplateId": { + "target": "com.amazonaws.qconnect#Uuid", + "traits": { + "smithy.api#documentation": "

The identifier of the message template.

", + "smithy.api#required": {} + } + }, + "versionNumber": { + "target": "com.amazonaws.qconnect#Version", + "traits": { + "smithy.api#documentation": "

The version number of the message template version that has been deactivated.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.qconnect#DeleteAIAgent": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#DeleteAIAgentRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#DeleteAIAgentResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ThrottlingException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes an Amazon Q in Connect AI Agent.

", + "smithy.api#http": { + "uri": "/assistants/{assistantId}/aiagents/{aiAgentId}", + "method": "DELETE", + "code": 204 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.qconnect#DeleteAIAgentRequest": { + "type": "structure", + "members": { + "assistantId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "aiAgentId": { + "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", + "traits": { + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect AI Agent. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.qconnect#DeleteAIAgentResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.qconnect#DeleteAIAgentVersion": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#DeleteAIAgentVersionRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#DeleteAIAgentVersionResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ConflictException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ThrottlingException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes an Amazon Q in Connect AI Agent Version.

", + "smithy.api#http": { + "uri": "/assistants/{assistantId}/aiagents/{aiAgentId}/versions/{versionNumber}", + "method": "DELETE", + "code": 204 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.qconnect#DeleteAIAgentVersionRequest": { + "type": "structure", + "members": { + "assistantId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "aiAgentId": { + "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", + "traits": { + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect AI Agent. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "versionNumber": { + "target": "com.amazonaws.qconnect#Version", + "traits": { + "smithy.api#documentation": "

The version number of the AI Agent version.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.qconnect#DeleteAIAgentVersionResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.qconnect#DeleteAIPrompt": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#DeleteAIPromptRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#DeleteAIPromptResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ThrottlingException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes an Amazon Q in Connect AI Prompt.

", + "smithy.api#http": { + "uri": "/assistants/{assistantId}/aiprompts/{aiPromptId}", + "method": "DELETE", + "code": 204 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.qconnect#DeleteAIPromptRequest": { + "type": "structure", + "members": { + "assistantId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "aiPromptId": { + "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", + "traits": { + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect AI prompt. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.qconnect#DeleteAIPromptResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.qconnect#DeleteAIPromptVersion": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#DeleteAIPromptVersionRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#DeleteAIPromptVersionResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ConflictException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ThrottlingException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Delete and Amazon Q in Connect AI Prompt version.

", + "smithy.api#http": { + "uri": "/assistants/{assistantId}/aiprompts/{aiPromptId}/versions/{versionNumber}", + "method": "DELETE", + "code": 204 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.qconnect#DeleteAIPromptVersionRequest": { + "type": "structure", + "members": { + "assistantId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "aiPromptId": { + "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", + "traits": { + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect AI prompt.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "versionNumber": { + "target": "com.amazonaws.qconnect#Version", + "traits": { + "smithy.api#documentation": "

The version number of the AI Prompt version to be deleted.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.qconnect#DeleteAIPromptVersionResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.qconnect#DeleteAssistant": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#DeleteAssistantRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#DeleteAssistantResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes an assistant.

", + "smithy.api#http": { + "uri": "/assistants/{assistantId}", + "method": "DELETE", + "code": 204 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.qconnect#DeleteAssistantAssociation": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#DeleteAssistantAssociationRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#DeleteAssistantAssociationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes an assistant association.

", + "smithy.api#http": { + "uri": "/assistants/{assistantId}/associations/{assistantAssociationId}", + "method": "DELETE", + "code": 204 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.qconnect#DeleteAssistantAssociationRequest": { + "type": "structure", + "members": { + "assistantAssociationId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the assistant association. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "assistantId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.qconnect#DeleteAssistantAssociationResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.qconnect#DeleteAssistantRequest": { + "type": "structure", + "members": { + "assistantId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.qconnect#DeleteAssistantResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.qconnect#DeleteContent": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#DeleteContentRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#DeleteContentResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes the content.

", + "smithy.api#http": { + "uri": "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}", + "method": "DELETE", + "code": 204 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.qconnect#DeleteContentAssociation": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#DeleteContentAssociationRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#DeleteContentAssociationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes the content association.

\n

For more information about content associations--what they are and when they are used--see\n Integrate Amazon Q in Connect with step-by-step guides in the Amazon Connect\n Administrator Guide.

", + "smithy.api#http": { + "uri": "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/associations/{contentAssociationId}", + "method": "DELETE", + "code": 204 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.qconnect#DeleteContentAssociationRequest": { + "type": "structure", + "members": { + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the knowledge base.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "contentId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the content.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "contentAssociationId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the content association. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.qconnect#DeleteContentAssociationResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.qconnect#DeleteContentRequest": { + "type": "structure", + "members": { + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "contentId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.qconnect#DeleteContentResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.qconnect#DeleteImportJob": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#DeleteImportJobRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#DeleteImportJobResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ConflictException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes the quick response import job.

", + "smithy.api#http": { + "uri": "/knowledgeBases/{knowledgeBaseId}/importJobs/{importJobId}", + "method": "DELETE", + "code": 204 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.qconnect#DeleteImportJobRequest": { + "type": "structure", + "members": { + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the knowledge base.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "importJobId": { + "target": "com.amazonaws.qconnect#Uuid", + "traits": { + "smithy.api#documentation": "

The identifier of the import job to be deleted.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.qconnect#DeleteImportJobResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.qconnect#DeleteKnowledgeBase": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#DeleteKnowledgeBaseRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#DeleteKnowledgeBaseResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ConflictException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes the knowledge base.

\n \n

When you use this API to delete an external knowledge base such as Salesforce or\n ServiceNow, you must also delete the Amazon AppIntegrations\n DataIntegration. This is because you can't reuse the DataIntegration after it's been\n associated with an external knowledge base. However, you can delete and recreate it. See\n DeleteDataIntegration and CreateDataIntegration in the Amazon AppIntegrations API\n Reference.

\n
", + "smithy.api#http": { + "uri": "/knowledgeBases/{knowledgeBaseId}", + "method": "DELETE", + "code": 204 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.qconnect#DeleteKnowledgeBaseRequest": { + "type": "structure", + "members": { + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The knowledge base to delete content from. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.qconnect#DeleteKnowledgeBaseResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.qconnect#DeleteMessageTemplate": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#DeleteMessageTemplateRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#DeleteMessageTemplateResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ConflictException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ThrottlingException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes an Amazon Q in Connect message template entirely or a specific version of the\n message template if version is supplied in the request. You can provide the message template\n identifier as <message-template-id>:<versionNumber> to delete a\n specific version of the message template. If it is not supplied, the message template and all\n available versions will be deleted.

", + "smithy.api#http": { + "uri": "/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}", + "method": "DELETE", + "code": 204 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.qconnect#DeleteMessageTemplateAttachment": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#DeleteMessageTemplateAttachmentRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#DeleteMessageTemplateAttachmentResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ConflictException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ThrottlingException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes the attachment file from the Amazon Q in Connect message template that is\n referenced by $LATEST qualifier. Attachments on available message template\n versions will remain unchanged.

", + "smithy.api#http": { + "uri": "/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/attachments/{attachmentId}", + "method": "DELETE", + "code": 204 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.qconnect#DeleteMessageTemplateAttachmentRequest": { + "type": "structure", + "members": { + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain\n the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "messageTemplateId": { + "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", + "traits": { + "smithy.api#documentation": "

The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "attachmentId": { + "target": "com.amazonaws.qconnect#Uuid", + "traits": { + "smithy.api#documentation": "

The identifier of the attachment file.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.qconnect#DeleteMessageTemplateAttachmentResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.qconnect#DeleteMessageTemplateRequest": { + "type": "structure", + "members": { + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain\n the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "messageTemplateId": { + "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", + "traits": { + "smithy.api#documentation": "

The identifier of the message template. Can be either the ID or the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.qconnect#DeleteMessageTemplateResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.qconnect#DeleteQuickResponse": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#DeleteQuickResponseRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#DeleteQuickResponseResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes a quick response.

", + "smithy.api#http": { + "uri": "/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}", + "method": "DELETE", + "code": 204 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.qconnect#DeleteQuickResponseRequest": { + "type": "structure", + "members": { + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The knowledge base from which the quick response is deleted. The identifier of the knowledge base.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "quickResponseId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the quick response to delete.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.qconnect#DeleteQuickResponseResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.qconnect#Description": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 255 + }, + "smithy.api#pattern": "^[a-zA-Z0-9\\s_.,-]+" + } + }, + "com.amazonaws.qconnect#Document": { + "type": "structure", + "members": { + "contentReference": { + "target": "com.amazonaws.qconnect#ContentReference", + "traits": { + "smithy.api#documentation": "

A reference to the content resource.

", + "smithy.api#required": {} + } + }, + "title": { + "target": "com.amazonaws.qconnect#DocumentText", + "traits": { + "smithy.api#documentation": "

The title of the document.

" + } + }, + "excerpt": { + "target": "com.amazonaws.qconnect#DocumentText", + "traits": { + "smithy.api#documentation": "

The excerpt from the document.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The document.

" + } + }, + "com.amazonaws.qconnect#DocumentText": { + "type": "structure", + "members": { + "text": { + "target": "com.amazonaws.qconnect#SensitiveString", + "traits": { + "smithy.api#documentation": "

Text in the document.

" + } + }, + "highlights": { + "target": "com.amazonaws.qconnect#Highlights", + "traits": { + "smithy.api#documentation": "

Highlights in the document text.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The text of the document.

" + } + }, + "com.amazonaws.qconnect#EmailHeader": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.qconnect#EmailHeaderKey", + "traits": { + "smithy.api#documentation": "

The name of the email header.

" + } + }, + "value": { + "target": "com.amazonaws.qconnect#EmailHeaderValue", + "traits": { + "smithy.api#documentation": "

The value of the email header.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The email header to include in email messages.

" + } + }, + "com.amazonaws.qconnect#EmailHeaderKey": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 126 + }, + "smithy.api#pattern": "^[!-9;-@A-~]+$" + } + }, + "com.amazonaws.qconnect#EmailHeaderValue": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 870 + }, + "smithy.api#pattern": "[ -~]*", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.qconnect#EmailHeaders": { + "type": "list", + "member": { + "target": "com.amazonaws.qconnect#EmailHeader" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 15 + } + } + }, + "com.amazonaws.qconnect#EmailMessageTemplateContent": { + "type": "structure", + "members": { + "subject": { + "target": "com.amazonaws.qconnect#NonEmptyUnlimitedString", + "traits": { + "smithy.api#documentation": "

The subject line, or title, to use in email messages.

" + } + }, + "body": { + "target": "com.amazonaws.qconnect#EmailMessageTemplateContentBody", + "traits": { + "smithy.api#documentation": "

The body to use in email messages.

" + } + }, + "headers": { + "target": "com.amazonaws.qconnect#EmailHeaders", + "traits": { + "smithy.api#documentation": "

The email headers to include in email messages.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The content of the message template that applies to the email channel subtype.

" + } + }, + "com.amazonaws.qconnect#EmailMessageTemplateContentBody": { + "type": "structure", + "members": { + "plainText": { + "target": "com.amazonaws.qconnect#MessageTemplateBodyContentProvider", + "traits": { + "smithy.api#documentation": "

The message body, in plain text format, to use in email messages that are based on the\n message template. We recommend using plain text format for email clients that don't render\n HTML content and clients that are connected to high-latency networks, such as mobile\n devices.

" + } + }, + "html": { + "target": "com.amazonaws.qconnect#MessageTemplateBodyContentProvider", + "traits": { + "smithy.api#documentation": "

The message body, in HTML format, to use in email messages that are based on the message\n template. We recommend using HTML format for email clients that render HTML content. You can\n include links, formatted text, and more in an HTML message.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The body to use in email messages.

" + } + }, + "com.amazonaws.qconnect#ExtendedMessageTemplateData": { + "type": "structure", + "members": { + "messageTemplateArn": { + "target": "com.amazonaws.qconnect#ArnWithQualifier", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the message template.

", + "smithy.api#required": {} + } + }, + "messageTemplateId": { + "target": "com.amazonaws.qconnect#Uuid", + "traits": { + "smithy.api#documentation": "

The identifier of the message template.

", + "smithy.api#required": {} + } + }, + "knowledgeBaseArn": { + "target": "com.amazonaws.qconnect#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the knowledge base.

", + "smithy.api#required": {} + } + }, + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#Uuid", + "traits": { + "smithy.api#documentation": "

The identifier of the knowledge base.

", + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.qconnect#Name", + "traits": { + "smithy.api#documentation": "

The name of the message template.

", + "smithy.api#required": {} + } + }, + "channelSubtype": { + "target": "com.amazonaws.qconnect#ChannelSubtype", + "traits": { + "smithy.api#documentation": "

The channel subtype this message template applies to.

", + "smithy.api#required": {} + } + }, + "createdTime": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp when the message template was created.

", + "smithy.api#required": {}, + "smithy.api#timestampFormat": "date-time" + } + }, + "lastModifiedTime": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp when the message template data was last modified.

", + "smithy.api#required": {}, + "smithy.api#timestampFormat": "date-time" + } + }, + "lastModifiedBy": { + "target": "com.amazonaws.qconnect#GenericArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the user who last updated the message template\n data.

", + "smithy.api#required": {} + } + }, + "content": { + "target": "com.amazonaws.qconnect#MessageTemplateContentProvider", + "traits": { + "smithy.api#documentation": "

The content of the message template.

", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.qconnect#Description", + "traits": { + "smithy.api#documentation": "

The description of the message template.

" + } + }, + "language": { + "target": "com.amazonaws.qconnect#LanguageCode", + "traits": { + "smithy.api#documentation": "

The language code value for the language in which the quick response is written. The supported language codes include de_DE, en_US, es_ES,\n fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR,\n zh_CN, zh_TW\n

" + } + }, + "groupingConfiguration": { + "target": "com.amazonaws.qconnect#GroupingConfiguration" + }, + "defaultAttributes": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributes", + "traits": { + "smithy.api#documentation": "

An object that specifies the default values to use for variables in the message template.\n This object contains different categories of key-value pairs. Each key defines a variable or\n placeholder in the message template. The corresponding value defines the default value for\n that variable.

" + } + }, + "attributeTypes": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeTypeList", + "traits": { + "smithy.api#documentation": "

The types of attributes contain the message template.

" + } + }, + "attachments": { + "target": "com.amazonaws.qconnect#MessageTemplateAttachmentList", + "traits": { + "smithy.api#documentation": "

The message template attachments.

" + } + }, + "isActive": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Whether the version of the message template is activated.

" + } + }, + "versionNumber": { + "target": "com.amazonaws.qconnect#Version", + "traits": { + "smithy.api#documentation": "

The version number of the message template version.

" + } + }, + "messageTemplateContentSha256": { + "target": "com.amazonaws.qconnect#MessageTemplateContentSha256", + "traits": { + "smithy.api#documentation": "

The checksum value of the message template content that is referenced by the\n $LATEST qualifier. It can be returned in MessageTemplateData or\n ExtendedMessageTemplateData. It’s calculated by content, language,\n defaultAttributes and Attachments of the message template.

", + "smithy.api#required": {} + } + }, + "tags": { + "target": "com.amazonaws.qconnect#Tags", + "traits": { + "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The extended data of a message template.

" + } + }, + "com.amazonaws.qconnect#ExternalSource": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "AMAZON_CONNECT", + "name": "AMAZON_CONNECT" + } + ] + } + }, + "com.amazonaws.qconnect#ExternalSourceConfiguration": { + "type": "structure", + "members": { + "source": { + "target": "com.amazonaws.qconnect#ExternalSource", + "traits": { + "smithy.api#documentation": "

The type of the external data source.

", + "smithy.api#required": {} + } + }, + "configuration": { + "target": "com.amazonaws.qconnect#Configuration", + "traits": { + "smithy.api#documentation": "

The configuration information of the external data source.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The configuration information of the external data source.

" + } + }, + "com.amazonaws.qconnect#FailureReason": { + "type": "list", + "member": { + "target": "com.amazonaws.qconnect#NonEmptyString" + } + }, + "com.amazonaws.qconnect#Filter": { + "type": "structure", + "members": { + "field": { + "target": "com.amazonaws.qconnect#FilterField", + "traits": { + "smithy.api#documentation": "

The field on which to filter.

", + "smithy.api#required": {} + } + }, + "operator": { + "target": "com.amazonaws.qconnect#FilterOperator", + "traits": { + "smithy.api#documentation": "

The operator to use for comparing the field’s value with the provided value.

", + "smithy.api#required": {} + } + }, + "value": { + "target": "com.amazonaws.qconnect#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The desired field value on which to filter.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

A search filter.

" + } + }, + "com.amazonaws.qconnect#FilterField": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "NAME", + "name": "NAME" + } + ] + } + }, + "com.amazonaws.qconnect#FilterList": { + "type": "list", + "member": { + "target": "com.amazonaws.qconnect#Filter" + } + }, + "com.amazonaws.qconnect#FilterOperator": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "EQUALS", + "name": "EQUALS" + } + ] + } + }, + "com.amazonaws.qconnect#FixedSizeChunkingConfiguration": { + "type": "structure", + "members": { + "maxTokens": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

The maximum number of tokens to include in a chunk.

", + "smithy.api#range": { + "min": 1 + }, + "smithy.api#required": {} + } + }, + "overlapPercentage": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

The percentage of overlap between adjacent chunks of a data source.

", + "smithy.api#range": { + "min": 1, + "max": 99 + }, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Configurations for when you choose fixed-size chunking. If you set the\n chunkingStrategy as NONE, exclude this field.

" + } + }, + "com.amazonaws.qconnect#GenerativeContentFeedbackData": { + "type": "structure", + "members": { + "relevance": { + "target": "com.amazonaws.qconnect#Relevance", + "traits": { + "smithy.api#documentation": "

The relevance of the feedback.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The feedback information for a generative target type.

" + } + }, + "com.amazonaws.qconnect#GenerativeDataDetails": { + "type": "structure", + "members": { + "completion": { + "target": "com.amazonaws.qconnect#SensitiveString", + "traits": { + "smithy.api#documentation": "

The LLM response.

", + "smithy.api#required": {} + } + }, + "references": { + "target": "com.amazonaws.qconnect#DataSummaryList", + "traits": { + "smithy.api#documentation": "

The references used to generative the LLM response.

", + "smithy.api#required": {} + } + }, + "rankingData": { + "target": "com.amazonaws.qconnect#RankingData", + "traits": { + "smithy.api#documentation": "

Details about the generative content ranking data.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Details about generative data.

" + } + }, + "com.amazonaws.qconnect#GenerativeReference": { + "type": "structure", + "members": { + "modelId": { + "target": "com.amazonaws.qconnect#LlmModelId", + "traits": { + "smithy.api#documentation": "

The identifier of the LLM model.

" + } + }, + "generationId": { + "target": "com.amazonaws.qconnect#Uuid", + "traits": { + "smithy.api#documentation": "

The identifier of the LLM model.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Reference information about generative content.

" + } + }, + "com.amazonaws.qconnect#GenericArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + }, + "smithy.api#pattern": "^arn:[a-z-]+?:[a-z-]+?:[a-z0-9-]*?:([0-9]{12})?:[a-zA-Z0-9-:/]+$" + } + }, + "com.amazonaws.qconnect#GetAIAgent": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#GetAIAgentRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#GetAIAgentResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ThrottlingException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets an Amazon Q in Connect AI Agent.

", + "smithy.api#http": { + "uri": "/assistants/{assistantId}/aiagents/{aiAgentId}", + "method": "GET" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.qconnect#GetAIAgentRequest": { + "type": "structure", + "members": { + "assistantId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "aiAgentId": { + "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", + "traits": { + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect AI Agent (with or without a version qualifier).\n Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.qconnect#GetAIAgentResponse": { + "type": "structure", + "members": { + "aiAgent": { + "target": "com.amazonaws.qconnect#AIAgentData", + "traits": { + "smithy.api#documentation": "

The data of the AI Agent.

" + } + }, + "versionNumber": { + "target": "com.amazonaws.qconnect#Version", + "traits": { + "smithy.api#documentation": "

The version number of the AI Agent version (returned if an AI Agent version was specified\n via use of a qualifier for the aiAgentId on the request).

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.qconnect#GetAIPrompt": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#GetAIPromptRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#GetAIPromptResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ThrottlingException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets and Amazon Q in Connect AI Prompt.

", + "smithy.api#http": { + "uri": "/assistants/{assistantId}/aiprompts/{aiPromptId}", + "method": "GET" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.qconnect#GetAIPromptRequest": { + "type": "structure", + "members": { + "assistantId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "aiPromptId": { + "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", + "traits": { + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect AI prompt.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } }, "traits": { "smithy.api#input": {} } }, - "com.amazonaws.qconnect#DeleteAIAgentVersionResponse": { + "com.amazonaws.qconnect#GetAIPromptResponse": { "type": "structure", - "members": {}, + "members": { + "aiPrompt": { + "target": "com.amazonaws.qconnect#AIPromptData", + "traits": { + "smithy.api#documentation": "

The data of the AI Prompt.

" + } + }, + "versionNumber": { + "target": "com.amazonaws.qconnect#Version", + "traits": { + "smithy.api#documentation": "

The version number of the AI Prompt version (returned if an AI Prompt version was\n specified via use of a qualifier for the aiPromptId on the request).

" + } + } + }, "traits": { "smithy.api#output": {} } }, - "com.amazonaws.qconnect#DeleteAIPrompt": { + "com.amazonaws.qconnect#GetAssistant": { "type": "operation", "input": { - "target": "com.amazonaws.qconnect#DeleteAIPromptRequest" + "target": "com.amazonaws.qconnect#GetAssistantRequest" }, "output": { - "target": "com.amazonaws.qconnect#DeleteAIPromptResponse" + "target": "com.amazonaws.qconnect#GetAssistantResponse" }, "errors": [ { @@ -3562,111 +5797,181 @@ "target": "com.amazonaws.qconnect#ResourceNotFoundException" }, { - "target": "com.amazonaws.qconnect#ThrottlingException" + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Retrieves information about an assistant.

", + "smithy.api#http": { + "uri": "/assistants/{assistantId}", + "method": "GET" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.qconnect#GetAssistantAssociation": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#GetAssistantAssociationRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#GetAssistantAssociationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" }, { "target": "com.amazonaws.qconnect#ValidationException" } ], "traits": { - "smithy.api#documentation": "

Deletes an Amazon Q in Connect AI Prompt.

", + "smithy.api#documentation": "

Retrieves information about an assistant association.

", "smithy.api#http": { - "uri": "/assistants/{assistantId}/aiprompts/{aiPromptId}", - "method": "DELETE", - "code": 204 + "uri": "/assistants/{assistantId}/associations/{assistantAssociationId}", + "method": "GET" }, - "smithy.api#idempotent": {} + "smithy.api#readonly": {} } }, - "com.amazonaws.qconnect#DeleteAIPromptRequest": { + "com.amazonaws.qconnect#GetAssistantAssociationRequest": { "type": "structure", "members": { - "assistantId": { + "assistantAssociationId": { "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", + "smithy.api#documentation": "

The identifier of the assistant association. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "aiPromptId": { - "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", + "assistantId": { + "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect AI prompt. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } } - }, - "traits": { - "smithy.api#input": {} } }, - "com.amazonaws.qconnect#DeleteAIPromptResponse": { + "com.amazonaws.qconnect#GetAssistantAssociationResponse": { "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} + "members": { + "assistantAssociation": { + "target": "com.amazonaws.qconnect#AssistantAssociationData", + "traits": { + "smithy.api#documentation": "

The assistant association.

" + } + } } }, - "com.amazonaws.qconnect#DeleteAIPromptVersion": { + "com.amazonaws.qconnect#GetAssistantRequest": { + "type": "structure", + "members": { + "assistantId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.qconnect#GetAssistantResponse": { + "type": "structure", + "members": { + "assistant": { + "target": "com.amazonaws.qconnect#AssistantData", + "traits": { + "smithy.api#documentation": "

Information about the assistant.

" + } + } + } + }, + "com.amazonaws.qconnect#GetContent": { "type": "operation", "input": { - "target": "com.amazonaws.qconnect#DeleteAIPromptVersionRequest" + "target": "com.amazonaws.qconnect#GetContentRequest" }, "output": { - "target": "com.amazonaws.qconnect#DeleteAIPromptVersionResponse" + "target": "com.amazonaws.qconnect#GetContentResponse" }, "errors": [ { "target": "com.amazonaws.qconnect#AccessDeniedException" }, { - "target": "com.amazonaws.qconnect#ConflictException" + "target": "com.amazonaws.qconnect#ResourceNotFoundException" }, { - "target": "com.amazonaws.qconnect#ResourceNotFoundException" + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Retrieves content, including a pre-signed URL to download the content.

", + "smithy.api#http": { + "uri": "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}", + "method": "GET" }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.qconnect#GetContentAssociation": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#GetContentAssociationRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#GetContentAssociationResponse" + }, + "errors": [ { - "target": "com.amazonaws.qconnect#ThrottlingException" + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" }, { "target": "com.amazonaws.qconnect#ValidationException" } ], "traits": { - "smithy.api#documentation": "

Delete and Amazon Q in Connect AI Prompt version.

", + "smithy.api#documentation": "

Returns the content association.

\n

For more information about content associations--what they are and when they are used--see\n Integrate Amazon Q in Connect with step-by-step guides in the Amazon Connect\n Administrator Guide.

", "smithy.api#http": { - "uri": "/assistants/{assistantId}/aiprompts/{aiPromptId}/versions/{versionNumber}", - "method": "DELETE", - "code": 204 + "uri": "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/associations/{contentAssociationId}", + "method": "GET" }, - "smithy.api#idempotent": {} + "smithy.api#readonly": {} } }, - "com.amazonaws.qconnect#DeleteAIPromptVersionRequest": { + "com.amazonaws.qconnect#GetContentAssociationRequest": { "type": "structure", "members": { - "assistantId": { + "knowledgeBaseId": { "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", + "smithy.api#documentation": "

The identifier of the knowledge base.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "aiPromptId": { - "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", + "contentId": { + "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect AI prompt.

", + "smithy.api#documentation": "

The identifier of the content.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "versionNumber": { - "target": "com.amazonaws.qconnect#Version", + "contentAssociationId": { + "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The version number of the AI Prompt version to be deleted.

", + "smithy.api#documentation": "

The identifier of the content association. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3676,20 +5981,59 @@ "smithy.api#input": {} } }, - "com.amazonaws.qconnect#DeleteAIPromptVersionResponse": { + "com.amazonaws.qconnect#GetContentAssociationResponse": { "type": "structure", - "members": {}, + "members": { + "contentAssociation": { + "target": "com.amazonaws.qconnect#ContentAssociationData", + "traits": { + "smithy.api#documentation": "

The association between Amazon Q in Connect content and another resource.

" + } + } + }, "traits": { "smithy.api#output": {} } }, - "com.amazonaws.qconnect#DeleteAssistant": { + "com.amazonaws.qconnect#GetContentRequest": { + "type": "structure", + "members": { + "contentId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.qconnect#GetContentResponse": { + "type": "structure", + "members": { + "content": { + "target": "com.amazonaws.qconnect#ContentData", + "traits": { + "smithy.api#documentation": "

The content.

" + } + } + } + }, + "com.amazonaws.qconnect#GetContentSummary": { "type": "operation", "input": { - "target": "com.amazonaws.qconnect#DeleteAssistantRequest" + "target": "com.amazonaws.qconnect#GetContentSummaryRequest" }, "output": { - "target": "com.amazonaws.qconnect#DeleteAssistantResponse" + "target": "com.amazonaws.qconnect#GetContentSummaryResponse" }, "errors": [ { @@ -3703,22 +6047,53 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes an assistant.

", + "smithy.api#documentation": "

Retrieves summary information about the content.

", "smithy.api#http": { - "uri": "/assistants/{assistantId}", - "method": "DELETE", - "code": 204 + "uri": "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/summary", + "method": "GET" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.qconnect#GetContentSummaryRequest": { + "type": "structure", + "members": { + "contentId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } }, - "smithy.api#idempotent": {} + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } } }, - "com.amazonaws.qconnect#DeleteAssistantAssociation": { + "com.amazonaws.qconnect#GetContentSummaryResponse": { + "type": "structure", + "members": { + "contentSummary": { + "target": "com.amazonaws.qconnect#ContentSummary", + "traits": { + "smithy.api#documentation": "

The content summary.

" + } + } + } + }, + "com.amazonaws.qconnect#GetImportJob": { "type": "operation", "input": { - "target": "com.amazonaws.qconnect#DeleteAssistantAssociationRequest" + "target": "com.amazonaws.qconnect#GetImportJobRequest" }, "output": { - "target": "com.amazonaws.qconnect#DeleteAssistantAssociationResponse" + "target": "com.amazonaws.qconnect#GetImportJobResponse" }, "errors": [ { @@ -3732,64 +6107,59 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes an assistant association.

", + "smithy.api#documentation": "

Retrieves the started import job.

", "smithy.api#http": { - "uri": "/assistants/{assistantId}/associations/{assistantAssociationId}", - "method": "DELETE", - "code": 204 + "uri": "/knowledgeBases/{knowledgeBaseId}/importJobs/{importJobId}", + "method": "GET" }, - "smithy.api#idempotent": {} + "smithy.api#readonly": {} } }, - "com.amazonaws.qconnect#DeleteAssistantAssociationRequest": { + "com.amazonaws.qconnect#GetImportJobRequest": { "type": "structure", "members": { - "assistantAssociationId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "importJobId": { + "target": "com.amazonaws.qconnect#Uuid", "traits": { - "smithy.api#documentation": "

The identifier of the assistant association. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#documentation": "

The identifier of the import job to retrieve.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "assistantId": { + "knowledgeBaseId": { "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#documentation": "

The identifier of the knowledge base that the import job belongs to.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.qconnect#DeleteAssistantAssociationResponse": { - "type": "structure", - "members": {} - }, - "com.amazonaws.qconnect#DeleteAssistantRequest": { + "com.amazonaws.qconnect#GetImportJobResponse": { "type": "structure", "members": { - "assistantId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "importJob": { + "target": "com.amazonaws.qconnect#ImportJobData", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#documentation": "

The import job.

" } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.qconnect#DeleteAssistantResponse": { - "type": "structure", - "members": {} - }, - "com.amazonaws.qconnect#DeleteContent": { + "com.amazonaws.qconnect#GetKnowledgeBase": { "type": "operation", "input": { - "target": "com.amazonaws.qconnect#DeleteContentRequest" + "target": "com.amazonaws.qconnect#GetKnowledgeBaseRequest" }, "output": { - "target": "com.amazonaws.qconnect#DeleteContentResponse" + "target": "com.amazonaws.qconnect#GetKnowledgeBaseResponse" }, "errors": [ { @@ -3803,22 +6173,45 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes the content.

", + "smithy.api#documentation": "

Retrieves information about the knowledge base.

", "smithy.api#http": { - "uri": "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}", - "method": "DELETE", - "code": 204 + "uri": "/knowledgeBases/{knowledgeBaseId}", + "method": "GET" }, - "smithy.api#idempotent": {} + "smithy.api#readonly": {} } }, - "com.amazonaws.qconnect#DeleteContentAssociation": { + "com.amazonaws.qconnect#GetKnowledgeBaseRequest": { + "type": "structure", + "members": { + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.qconnect#GetKnowledgeBaseResponse": { + "type": "structure", + "members": { + "knowledgeBase": { + "target": "com.amazonaws.qconnect#KnowledgeBaseData", + "traits": { + "smithy.api#documentation": "

The knowledge base.

" + } + } + } + }, + "com.amazonaws.qconnect#GetMessageTemplate": { "type": "operation", "input": { - "target": "com.amazonaws.qconnect#DeleteContentAssociationRequest" + "target": "com.amazonaws.qconnect#GetMessageTemplateRequest" }, "output": { - "target": "com.amazonaws.qconnect#DeleteContentAssociationResponse" + "target": "com.amazonaws.qconnect#GetMessageTemplateResponse" }, "errors": [ { @@ -3827,43 +6220,37 @@ { "target": "com.amazonaws.qconnect#ResourceNotFoundException" }, + { + "target": "com.amazonaws.qconnect#ThrottlingException" + }, { "target": "com.amazonaws.qconnect#ValidationException" } ], "traits": { - "smithy.api#documentation": "

Deletes the content association.

\n

For more information about content associations--what they are and when they are used--see\n Integrate Amazon Q in Connect with step-by-step guides in the Amazon Connect\n Administrator Guide.

", + "smithy.api#documentation": "

Retrieves the Amazon Q in Connect message template. The message template identifier can\n contain an optional qualifier, for example,\n <message-template-id>:<qualifier>, which is either an actual\n version number or an Amazon Q Connect managed qualifier $ACTIVE_VERSION | $LATEST. If it is\n not supplied, then $LATEST is assumed implicitly.

", "smithy.api#http": { - "uri": "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/associations/{contentAssociationId}", - "method": "DELETE", - "code": 204 + "uri": "/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}", + "method": "GET" }, - "smithy.api#idempotent": {} + "smithy.api#readonly": {} } }, - "com.amazonaws.qconnect#DeleteContentAssociationRequest": { + "com.amazonaws.qconnect#GetMessageTemplateRequest": { "type": "structure", "members": { - "knowledgeBaseId": { - "target": "com.amazonaws.qconnect#UuidOrArn", - "traits": { - "smithy.api#documentation": "

The identifier of the knowledge base.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "contentId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "messageTemplateId": { + "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", "traits": { - "smithy.api#documentation": "

The identifier of the content.

", + "smithy.api#documentation": "

The identifier of the message template. Can be either the ID or the ARN.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "contentAssociationId": { + "knowledgeBaseId": { "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The identifier of the content association. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain\n the ARN.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3873,53 +6260,32 @@ "smithy.api#input": {} } }, - "com.amazonaws.qconnect#DeleteContentAssociationResponse": { - "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.qconnect#DeleteContentRequest": { + "com.amazonaws.qconnect#GetMessageTemplateResponse": { "type": "structure", "members": { - "knowledgeBaseId": { - "target": "com.amazonaws.qconnect#UuidOrArn", - "traits": { - "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "contentId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "messageTemplate": { + "target": "com.amazonaws.qconnect#ExtendedMessageTemplateData", "traits": { - "smithy.api#documentation": "

The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#documentation": "

The message template.

" } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.qconnect#DeleteContentResponse": { - "type": "structure", - "members": {} - }, - "com.amazonaws.qconnect#DeleteImportJob": { + "com.amazonaws.qconnect#GetQuickResponse": { "type": "operation", "input": { - "target": "com.amazonaws.qconnect#DeleteImportJobRequest" + "target": "com.amazonaws.qconnect#GetQuickResponseRequest" }, "output": { - "target": "com.amazonaws.qconnect#DeleteImportJobResponse" + "target": "com.amazonaws.qconnect#GetQuickResponseResponse" }, "errors": [ { "target": "com.amazonaws.qconnect#AccessDeniedException" }, - { - "target": "com.amazonaws.qconnect#ConflictException" - }, { "target": "com.amazonaws.qconnect#ResourceNotFoundException" }, @@ -3928,30 +6294,29 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes the quick response import job.

", + "smithy.api#documentation": "

Retrieves the quick response.

", "smithy.api#http": { - "uri": "/knowledgeBases/{knowledgeBaseId}/importJobs/{importJobId}", - "method": "DELETE", - "code": 204 + "uri": "/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}", + "method": "GET" }, - "smithy.api#idempotent": {} + "smithy.api#readonly": {} } }, - "com.amazonaws.qconnect#DeleteImportJobRequest": { + "com.amazonaws.qconnect#GetQuickResponseRequest": { "type": "structure", "members": { - "knowledgeBaseId": { + "quickResponseId": { "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The identifier of the knowledge base.

", + "smithy.api#documentation": "

The identifier of the quick response.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "importJobId": { - "target": "com.amazonaws.qconnect#Uuid", + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The identifier of the import job to be deleted.

", + "smithy.api#documentation": "

The identifier of the knowledge base. This should be a QUICK_RESPONSES type knowledge base.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -3961,28 +6326,32 @@ "smithy.api#input": {} } }, - "com.amazonaws.qconnect#DeleteImportJobResponse": { + "com.amazonaws.qconnect#GetQuickResponseResponse": { "type": "structure", - "members": {}, + "members": { + "quickResponse": { + "target": "com.amazonaws.qconnect#QuickResponseData", + "traits": { + "smithy.api#documentation": "

The quick response.

" + } + } + }, "traits": { "smithy.api#output": {} } }, - "com.amazonaws.qconnect#DeleteKnowledgeBase": { + "com.amazonaws.qconnect#GetRecommendations": { "type": "operation", "input": { - "target": "com.amazonaws.qconnect#DeleteKnowledgeBaseRequest" + "target": "com.amazonaws.qconnect#GetRecommendationsRequest" }, "output": { - "target": "com.amazonaws.qconnect#DeleteKnowledgeBaseResponse" + "target": "com.amazonaws.qconnect#GetRecommendationsResponse" }, "errors": [ { "target": "com.amazonaws.qconnect#AccessDeniedException" }, - { - "target": "com.amazonaws.qconnect#ConflictException" - }, { "target": "com.amazonaws.qconnect#ResourceNotFoundException" }, @@ -3991,39 +6360,78 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes the knowledge base.

\n \n

When you use this API to delete an external knowledge base such as Salesforce or\n ServiceNow, you must also delete the Amazon AppIntegrations\n DataIntegration. This is because you can't reuse the DataIntegration after it's been\n associated with an external knowledge base. However, you can delete and recreate it. See\n DeleteDataIntegration and CreateDataIntegration in the Amazon AppIntegrations API\n Reference.

\n
", + "smithy.api#deprecated": { + "message": "GetRecommendations API will be discontinued starting June 1, 2024. To receive generative responses after March 1, 2024 you will need to create a new Assistant in the Connect console and integrate the Amazon Q in Connect JavaScript library (amazon-q-connectjs) into your applications." + }, + "smithy.api#documentation": "\n

This API will be discontinued starting June 1, 2024. To receive generative responses\n after March 1, 2024, you will need to create a new Assistant in the Amazon Connect\n console and integrate the Amazon Q in Connect JavaScript library (amazon-q-connectjs) into\n your applications.

\n
\n

Retrieves recommendations for the specified session. To avoid retrieving the same\n recommendations in subsequent calls, use NotifyRecommendationsReceived. This API supports long-polling behavior with the\n waitTimeSeconds parameter. Short poll is the default behavior and only returns\n recommendations already available. To perform a manual query against an assistant, use QueryAssistant.

", "smithy.api#http": { - "uri": "/knowledgeBases/{knowledgeBaseId}", - "method": "DELETE", - "code": 204 + "uri": "/assistants/{assistantId}/sessions/{sessionId}/recommendations", + "method": "GET" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.qconnect#GetRecommendationsRequest": { + "type": "structure", + "members": { + "assistantId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "sessionId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "maxResults": { + "target": "com.amazonaws.qconnect#MaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of results to return per page.

", + "smithy.api#httpQuery": "maxResults" + } }, - "smithy.api#idempotent": {} + "waitTimeSeconds": { + "target": "com.amazonaws.qconnect#WaitTimeSeconds", + "traits": { + "smithy.api#default": 0, + "smithy.api#documentation": "

The duration (in seconds) for which the call waits for a recommendation to be made\n available before returning. If a recommendation is available, the call returns sooner than\n WaitTimeSeconds. If no messages are available and the wait time expires, the\n call returns successfully with an empty list.

", + "smithy.api#httpQuery": "waitTimeSeconds" + } + } } }, - "com.amazonaws.qconnect#DeleteKnowledgeBaseRequest": { + "com.amazonaws.qconnect#GetRecommendationsResponse": { "type": "structure", "members": { - "knowledgeBaseId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "recommendations": { + "target": "com.amazonaws.qconnect#RecommendationList", "traits": { - "smithy.api#documentation": "

The knowledge base to delete content from. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "smithy.api#httpLabel": {}, + "smithy.api#documentation": "

The recommendations.

", "smithy.api#required": {} } + }, + "triggers": { + "target": "com.amazonaws.qconnect#RecommendationTriggerList", + "traits": { + "smithy.api#documentation": "

The triggers corresponding to recommendations.

" + } } } }, - "com.amazonaws.qconnect#DeleteKnowledgeBaseResponse": { - "type": "structure", - "members": {} - }, - "com.amazonaws.qconnect#DeleteQuickResponse": { + "com.amazonaws.qconnect#GetSession": { "type": "operation", "input": { - "target": "com.amazonaws.qconnect#DeleteQuickResponseRequest" + "target": "com.amazonaws.qconnect#GetSessionRequest" }, "output": { - "target": "com.amazonaws.qconnect#DeleteQuickResponseResponse" + "target": "com.amazonaws.qconnect#GetSessionResponse" }, "errors": [ { @@ -4037,949 +6445,848 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes a quick response.

", + "smithy.api#documentation": "

Retrieves information for a specified session.

", "smithy.api#http": { - "uri": "/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}", - "method": "DELETE", - "code": 204 + "uri": "/assistants/{assistantId}/sessions/{sessionId}", + "method": "GET" }, - "smithy.api#idempotent": {} + "smithy.api#readonly": {} } }, - "com.amazonaws.qconnect#DeleteQuickResponseRequest": { + "com.amazonaws.qconnect#GetSessionRequest": { "type": "structure", "members": { - "knowledgeBaseId": { + "assistantId": { "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The knowledge base from which the quick response is deleted. The identifier of the knowledge base.

", + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "quickResponseId": { + "sessionId": { "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The identifier of the quick response to delete.

", + "smithy.api#documentation": "

The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } } + } + }, + "com.amazonaws.qconnect#GetSessionResponse": { + "type": "structure", + "members": { + "session": { + "target": "com.amazonaws.qconnect#SessionData", + "traits": { + "smithy.api#documentation": "

The session.

" + } + } + } + }, + "com.amazonaws.qconnect#GroupingConfiguration": { + "type": "structure", + "members": { + "criteria": { + "target": "com.amazonaws.qconnect#GroupingCriteria", + "traits": { + "smithy.api#documentation": "

The criteria used for grouping Amazon Q in Connect users.

\n

The following is the list of supported criteria values.

\n " + } + }, + "values": { + "target": "com.amazonaws.qconnect#GroupingValues", + "traits": { + "smithy.api#documentation": "

The list of values that define different groups of Amazon Q in Connect users.

\n " + } + } }, "traits": { - "smithy.api#input": {} + "smithy.api#documentation": "

The configuration information of the grouping of Amazon Q in Connect users.

" } }, - "com.amazonaws.qconnect#DeleteQuickResponseResponse": { - "type": "structure", - "members": {}, + "com.amazonaws.qconnect#GroupingCriteria": { + "type": "string", "traits": { - "smithy.api#output": {} + "smithy.api#length": { + "min": 1, + "max": 100 + }, + "smithy.api#sensitive": {} } }, - "com.amazonaws.qconnect#Description": { + "com.amazonaws.qconnect#GroupingValue": { "type": "string", "traits": { "smithy.api#length": { "min": 1, - "max": 255 + "max": 2048 }, - "smithy.api#pattern": "^[a-zA-Z0-9\\s_.,-]+" + "smithy.api#sensitive": {} } }, - "com.amazonaws.qconnect#Document": { + "com.amazonaws.qconnect#GroupingValues": { + "type": "list", + "member": { + "target": "com.amazonaws.qconnect#GroupingValue" + }, + "traits": { + "smithy.api#uniqueItems": {} + } + }, + "com.amazonaws.qconnect#Headers": { + "type": "map", + "key": { + "target": "com.amazonaws.qconnect#NonEmptyString" + }, + "value": { + "target": "com.amazonaws.qconnect#NonEmptyString" + } + }, + "com.amazonaws.qconnect#HierarchicalChunkingConfiguration": { "type": "structure", "members": { - "contentReference": { - "target": "com.amazonaws.qconnect#ContentReference", + "levelConfigurations": { + "target": "com.amazonaws.qconnect#HierarchicalChunkingLevelConfigurations", "traits": { - "smithy.api#documentation": "

A reference to the content resource.

", + "smithy.api#documentation": "

Token settings for each layer.

", "smithy.api#required": {} } }, - "title": { - "target": "com.amazonaws.qconnect#DocumentText", + "overlapTokens": { + "target": "smithy.api#Integer", "traits": { - "smithy.api#documentation": "

The title of the document.

" + "smithy.api#documentation": "

The number of tokens to repeat across chunks in the same layer.

", + "smithy.api#range": { + "min": 1 + }, + "smithy.api#required": {} } - }, - "excerpt": { - "target": "com.amazonaws.qconnect#DocumentText", + } + }, + "traits": { + "smithy.api#documentation": "

Settings for hierarchical document chunking for a data source. Hierarchical chunking\n splits documents into layers of chunks where the first layer contains large chunks, and the\n second layer contains smaller chunks derived from the first layer.

" + } + }, + "com.amazonaws.qconnect#HierarchicalChunkingLevelConfiguration": { + "type": "structure", + "members": { + "maxTokens": { + "target": "smithy.api#Integer", "traits": { - "smithy.api#documentation": "

The excerpt from the document.

" + "smithy.api#documentation": "

The maximum number of tokens that a chunk can contain in this layer.

", + "smithy.api#range": { + "min": 1, + "max": 8192 + }, + "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

The document.

" + "smithy.api#documentation": "

Token settings for each layer.

" } }, - "com.amazonaws.qconnect#DocumentText": { + "com.amazonaws.qconnect#HierarchicalChunkingLevelConfigurations": { + "type": "list", + "member": { + "target": "com.amazonaws.qconnect#HierarchicalChunkingLevelConfiguration" + }, + "traits": { + "smithy.api#length": { + "min": 2, + "max": 2 + } + } + }, + "com.amazonaws.qconnect#Highlight": { "type": "structure", "members": { - "text": { - "target": "com.amazonaws.qconnect#SensitiveString", + "beginOffsetInclusive": { + "target": "com.amazonaws.qconnect#HighlightOffset", "traits": { - "smithy.api#documentation": "

Text in the document.

" + "smithy.api#default": 0, + "smithy.api#documentation": "

The offset for the start of the highlight.

" } }, - "highlights": { - "target": "com.amazonaws.qconnect#Highlights", + "endOffsetExclusive": { + "target": "com.amazonaws.qconnect#HighlightOffset", "traits": { - "smithy.api#documentation": "

Highlights in the document text.

" + "smithy.api#default": 0, + "smithy.api#documentation": "

The offset for the end of the highlight.

" } } }, "traits": { - "smithy.api#documentation": "

The text of the document.

" + "smithy.api#documentation": "

Offset specification to describe highlighting of document excerpts for rendering search\n results and recommendations.

" } }, - "com.amazonaws.qconnect#ExternalSource": { - "type": "string", + "com.amazonaws.qconnect#HighlightOffset": { + "type": "integer", "traits": { - "smithy.api#enum": [ - { - "value": "AMAZON_CONNECT", - "name": "AMAZON_CONNECT" - } - ] + "smithy.api#default": 0 } }, - "com.amazonaws.qconnect#ExternalSourceConfiguration": { + "com.amazonaws.qconnect#Highlights": { + "type": "list", + "member": { + "target": "com.amazonaws.qconnect#Highlight" + } + }, + "com.amazonaws.qconnect#ImportJobData": { "type": "structure", "members": { - "source": { - "target": "com.amazonaws.qconnect#ExternalSource", + "importJobId": { + "target": "com.amazonaws.qconnect#Uuid", + "traits": { + "smithy.api#documentation": "

The identifier of the import job.

", + "smithy.api#required": {} + } + }, + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#Uuid", + "traits": { + "smithy.api#documentation": "

The identifier of the knowledge base.

", + "smithy.api#required": {} + } + }, + "uploadId": { + "target": "com.amazonaws.qconnect#UploadId", + "traits": { + "smithy.api#documentation": "

A pointer to the uploaded asset. This value is returned by StartContentUpload.

", + "smithy.api#required": {} + } + }, + "knowledgeBaseArn": { + "target": "com.amazonaws.qconnect#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the knowledge base.

", + "smithy.api#required": {} + } + }, + "importJobType": { + "target": "com.amazonaws.qconnect#ImportJobType", + "traits": { + "smithy.api#documentation": "

The type of the import job.

", + "smithy.api#required": {} + } + }, + "status": { + "target": "com.amazonaws.qconnect#ImportJobStatus", + "traits": { + "smithy.api#documentation": "

The status of the import job.

", + "smithy.api#required": {} + } + }, + "url": { + "target": "com.amazonaws.qconnect#Url", "traits": { - "smithy.api#documentation": "

The type of the external data source.

", + "smithy.api#documentation": "

The download link to the resource file that is uploaded to the import job.

", "smithy.api#required": {} } }, - "configuration": { - "target": "com.amazonaws.qconnect#Configuration", + "failedRecordReport": { + "target": "com.amazonaws.qconnect#Url", "traits": { - "smithy.api#documentation": "

The configuration information of the external data source.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The link to download the information of resource data that failed to be imported.

" } - } - }, - "traits": { - "smithy.api#documentation": "

The configuration information of the external data source.

" - } - }, - "com.amazonaws.qconnect#FailureReason": { - "type": "list", - "member": { - "target": "com.amazonaws.qconnect#NonEmptyString" - } - }, - "com.amazonaws.qconnect#Filter": { - "type": "structure", - "members": { - "field": { - "target": "com.amazonaws.qconnect#FilterField", + }, + "urlExpiry": { + "target": "smithy.api#Timestamp", "traits": { - "smithy.api#documentation": "

The field on which to filter.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The expiration time of the URL as an epoch timestamp.

", + "smithy.api#required": {}, + "smithy.api#timestampFormat": "epoch-seconds" } }, - "operator": { - "target": "com.amazonaws.qconnect#FilterOperator", + "createdTime": { + "target": "smithy.api#Timestamp", "traits": { - "smithy.api#documentation": "

The operator to use for comparing the field’s value with the provided value.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The timestamp when the import job was created.

", + "smithy.api#required": {}, + "smithy.api#timestampFormat": "epoch-seconds" } }, - "value": { - "target": "com.amazonaws.qconnect#NonEmptyString", + "lastModifiedTime": { + "target": "smithy.api#Timestamp", "traits": { - "smithy.api#documentation": "

The desired field value on which to filter.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The timestamp when the import job data was last modified.

", + "smithy.api#required": {}, + "smithy.api#timestampFormat": "epoch-seconds" + } + }, + "metadata": { + "target": "com.amazonaws.qconnect#ContentMetadata", + "traits": { + "smithy.api#documentation": "

The metadata fields of the imported Amazon Q in Connect resources.

" } + }, + "externalSourceConfiguration": { + "target": "com.amazonaws.qconnect#ExternalSourceConfiguration" } }, "traits": { - "smithy.api#documentation": "

A search filter.

" - } - }, - "com.amazonaws.qconnect#FilterField": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "NAME", - "name": "NAME" - } - ] + "smithy.api#documentation": "

Summary information about the import job.

" } }, - "com.amazonaws.qconnect#FilterList": { + "com.amazonaws.qconnect#ImportJobList": { "type": "list", "member": { - "target": "com.amazonaws.qconnect#Filter" + "target": "com.amazonaws.qconnect#ImportJobSummary" } }, - "com.amazonaws.qconnect#FilterOperator": { + "com.amazonaws.qconnect#ImportJobStatus": { "type": "string", "traits": { "smithy.api#enum": [ { - "value": "EQUALS", - "name": "EQUALS" + "value": "START_IN_PROGRESS", + "name": "START_IN_PROGRESS" + }, + { + "value": "FAILED", + "name": "FAILED" + }, + { + "value": "COMPLETE", + "name": "COMPLETE" + }, + { + "value": "DELETE_IN_PROGRESS", + "name": "DELETE_IN_PROGRESS" + }, + { + "value": "DELETE_FAILED", + "name": "DELETE_FAILED" + }, + { + "value": "DELETED", + "name": "DELETED" } ] } }, - "com.amazonaws.qconnect#FixedSizeChunkingConfiguration": { + "com.amazonaws.qconnect#ImportJobSummary": { "type": "structure", "members": { - "maxTokens": { - "target": "smithy.api#Integer", + "importJobId": { + "target": "com.amazonaws.qconnect#Uuid", "traits": { - "smithy.api#documentation": "

The maximum number of tokens to include in a chunk.

", - "smithy.api#range": { - "min": 1 - }, + "smithy.api#documentation": "

The identifier of the import job.

", "smithy.api#required": {} } }, - "overlapPercentage": { - "target": "smithy.api#Integer", - "traits": { - "smithy.api#documentation": "

The percentage of overlap between adjacent chunks of a data source.

", - "smithy.api#range": { - "min": 1, - "max": 99 - }, - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "

Configurations for when you choose fixed-size chunking. If you set the\n chunkingStrategy as NONE, exclude this field.

" - } - }, - "com.amazonaws.qconnect#GenerativeContentFeedbackData": { - "type": "structure", - "members": { - "relevance": { - "target": "com.amazonaws.qconnect#Relevance", + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#Uuid", "traits": { - "smithy.api#documentation": "

The relevance of the feedback.

", + "smithy.api#documentation": "

The identifier of the knowledge base.

", "smithy.api#required": {} } - } - }, - "traits": { - "smithy.api#documentation": "

The feedback information for a generative target type.

" - } - }, - "com.amazonaws.qconnect#GenerativeDataDetails": { - "type": "structure", - "members": { - "completion": { - "target": "com.amazonaws.qconnect#SensitiveString", + }, + "uploadId": { + "target": "com.amazonaws.qconnect#UploadId", "traits": { - "smithy.api#documentation": "

The LLM response.

", + "smithy.api#documentation": "

A pointer to the uploaded asset. This value is returned by StartContentUpload.

", "smithy.api#required": {} } }, - "references": { - "target": "com.amazonaws.qconnect#DataSummaryList", + "knowledgeBaseArn": { + "target": "com.amazonaws.qconnect#Arn", "traits": { - "smithy.api#documentation": "

The references used to generative the LLM response.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the knowledge base.

", "smithy.api#required": {} } }, - "rankingData": { - "target": "com.amazonaws.qconnect#RankingData", + "importJobType": { + "target": "com.amazonaws.qconnect#ImportJobType", "traits": { - "smithy.api#documentation": "

Details about the generative content ranking data.

", + "smithy.api#documentation": "

The type of import job.

", "smithy.api#required": {} } - } - }, - "traits": { - "smithy.api#documentation": "

Details about generative data.

" - } - }, - "com.amazonaws.qconnect#GenerativeReference": { - "type": "structure", - "members": { - "modelId": { - "target": "com.amazonaws.qconnect#LlmModelId", - "traits": { - "smithy.api#documentation": "

The identifier of the LLM model.

" - } }, - "generationId": { - "target": "com.amazonaws.qconnect#Uuid", + "status": { + "target": "com.amazonaws.qconnect#ImportJobStatus", "traits": { - "smithy.api#documentation": "

The identifier of the LLM model.

" + "smithy.api#documentation": "

The status of the import job.

", + "smithy.api#required": {} } - } - }, - "traits": { - "smithy.api#documentation": "

Reference information about generative content.

" - } - }, - "com.amazonaws.qconnect#GenericArn": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 2048 - }, - "smithy.api#pattern": "^arn:[a-z-]+?:[a-z-]+?:[a-z0-9-]*?:([0-9]{12})?:[a-zA-Z0-9-:/]+$" - } - }, - "com.amazonaws.qconnect#GetAIAgent": { - "type": "operation", - "input": { - "target": "com.amazonaws.qconnect#GetAIAgentRequest" - }, - "output": { - "target": "com.amazonaws.qconnect#GetAIAgentResponse" - }, - "errors": [ - { - "target": "com.amazonaws.qconnect#AccessDeniedException" - }, - { - "target": "com.amazonaws.qconnect#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.qconnect#ThrottlingException" - }, - { - "target": "com.amazonaws.qconnect#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Gets an Amazon Q in Connect AI Agent.

", - "smithy.api#http": { - "uri": "/assistants/{assistantId}/aiagents/{aiAgentId}", - "method": "GET" }, - "smithy.api#readonly": {} - } - }, - "com.amazonaws.qconnect#GetAIAgentRequest": { - "type": "structure", - "members": { - "assistantId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "createdTime": { + "target": "smithy.api#Timestamp", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#documentation": "

The timestamp when the import job was created.

", + "smithy.api#required": {}, + "smithy.api#timestampFormat": "epoch-seconds" } }, - "aiAgentId": { - "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", + "lastModifiedTime": { + "target": "smithy.api#Timestamp", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect AI Agent (with or without a version qualifier).\n Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#documentation": "

The timestamp when the import job was last modified.

", + "smithy.api#required": {}, + "smithy.api#timestampFormat": "epoch-seconds" } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.qconnect#GetAIAgentResponse": { - "type": "structure", - "members": { - "aiAgent": { - "target": "com.amazonaws.qconnect#AIAgentData", + }, + "metadata": { + "target": "com.amazonaws.qconnect#ContentMetadata", "traits": { - "smithy.api#documentation": "

The data of the AI Agent.

" + "smithy.api#documentation": "

The metadata fields of the imported Amazon Q in Connect resources.

" } }, - "versionNumber": { - "target": "com.amazonaws.qconnect#Version", + "externalSourceConfiguration": { + "target": "com.amazonaws.qconnect#ExternalSourceConfiguration", "traits": { - "smithy.api#documentation": "

The version number of the AI Agent version (returned if an AI Agent version was specified\n via use of a qualifier for the aiAgentId on the request).

" + "smithy.api#documentation": "

The configuration information of the external source that the resource data are imported\n from.

" } } }, "traits": { - "smithy.api#output": {} + "smithy.api#documentation": "

Summary information about the import job.

" } }, - "com.amazonaws.qconnect#GetAIPrompt": { - "type": "operation", - "input": { - "target": "com.amazonaws.qconnect#GetAIPromptRequest" - }, - "output": { - "target": "com.amazonaws.qconnect#GetAIPromptResponse" - }, - "errors": [ - { - "target": "com.amazonaws.qconnect#AccessDeniedException" - }, - { - "target": "com.amazonaws.qconnect#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.qconnect#ThrottlingException" - }, - { - "target": "com.amazonaws.qconnect#ValidationException" - } - ], + "com.amazonaws.qconnect#ImportJobType": { + "type": "string", "traits": { - "smithy.api#documentation": "

Gets and Amazon Q in Connect AI Prompt.

", - "smithy.api#http": { - "uri": "/assistants/{assistantId}/aiprompts/{aiPromptId}", - "method": "GET" - }, - "smithy.api#readonly": {} + "smithy.api#enum": [ + { + "value": "QUICK_RESPONSES", + "name": "QUICK_RESPONSES" + } + ] } }, - "com.amazonaws.qconnect#GetAIPromptRequest": { + "com.amazonaws.qconnect#IntentDetectedDataDetails": { "type": "structure", "members": { - "assistantId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "intent": { + "target": "com.amazonaws.qconnect#SensitiveString", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", - "smithy.api#httpLabel": {}, + "smithy.api#documentation": "

The detected intent.

", "smithy.api#required": {} } }, - "aiPromptId": { - "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", + "intentId": { + "target": "com.amazonaws.qconnect#Uuid", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect AI prompt.

", - "smithy.api#httpLabel": {}, + "smithy.api#documentation": "

The identifier of the detected intent.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#input": {} + "smithy.api#documentation": "

Details about the detected intent.

" } }, - "com.amazonaws.qconnect#GetAIPromptResponse": { + "com.amazonaws.qconnect#IntentInputData": { "type": "structure", "members": { - "aiPrompt": { - "target": "com.amazonaws.qconnect#AIPromptData", - "traits": { - "smithy.api#documentation": "

The data of the AI Prompt.

" - } - }, - "versionNumber": { - "target": "com.amazonaws.qconnect#Version", + "intentId": { + "target": "com.amazonaws.qconnect#Uuid", "traits": { - "smithy.api#documentation": "

The version number of the AI Prompt version (returned if an AI Prompt version was\n specified via use of a qualifier for the aiPromptId on the request).

" + "smithy.api#documentation": "

The identifier of the Amazon Q intent.

", + "smithy.api#required": {} } } }, "traits": { - "smithy.api#output": {} + "smithy.api#documentation": "

Information about the Amazon Q intent.

" } }, - "com.amazonaws.qconnect#GetAssistant": { - "type": "operation", - "input": { - "target": "com.amazonaws.qconnect#GetAssistantRequest" + "com.amazonaws.qconnect#KnowledgeBase": { + "type": "resource", + "identifiers": { + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn" + } }, - "output": { - "target": "com.amazonaws.qconnect#GetAssistantResponse" + "create": { + "target": "com.amazonaws.qconnect#CreateKnowledgeBase" }, - "errors": [ + "read": { + "target": "com.amazonaws.qconnect#GetKnowledgeBase" + }, + "delete": { + "target": "com.amazonaws.qconnect#DeleteKnowledgeBase" + }, + "list": { + "target": "com.amazonaws.qconnect#ListKnowledgeBases" + }, + "operations": [ { - "target": "com.amazonaws.qconnect#AccessDeniedException" + "target": "com.amazonaws.qconnect#DeleteImportJob" }, { - "target": "com.amazonaws.qconnect#ResourceNotFoundException" + "target": "com.amazonaws.qconnect#GetImportJob" }, { - "target": "com.amazonaws.qconnect#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Retrieves information about an assistant.

", - "smithy.api#http": { - "uri": "/assistants/{assistantId}", - "method": "GET" + "target": "com.amazonaws.qconnect#ListImportJobs" }, - "smithy.api#readonly": {} - } - }, - "com.amazonaws.qconnect#GetAssistantAssociation": { - "type": "operation", - "input": { - "target": "com.amazonaws.qconnect#GetAssistantAssociationRequest" - }, - "output": { - "target": "com.amazonaws.qconnect#GetAssistantAssociationResponse" - }, - "errors": [ { - "target": "com.amazonaws.qconnect#AccessDeniedException" + "target": "com.amazonaws.qconnect#RemoveKnowledgeBaseTemplateUri" }, { - "target": "com.amazonaws.qconnect#ResourceNotFoundException" + "target": "com.amazonaws.qconnect#SearchContent" }, { - "target": "com.amazonaws.qconnect#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Retrieves information about an assistant association.

", - "smithy.api#http": { - "uri": "/assistants/{assistantId}/associations/{assistantAssociationId}", - "method": "GET" + "target": "com.amazonaws.qconnect#SearchMessageTemplates" }, - "smithy.api#readonly": {} - } - }, - "com.amazonaws.qconnect#GetAssistantAssociationRequest": { - "type": "structure", - "members": { - "assistantAssociationId": { - "target": "com.amazonaws.qconnect#UuidOrArn", - "traits": { - "smithy.api#documentation": "

The identifier of the assistant association. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } + { + "target": "com.amazonaws.qconnect#SearchQuickResponses" }, - "assistantId": { - "target": "com.amazonaws.qconnect#UuidOrArn", - "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.qconnect#GetAssistantAssociationResponse": { - "type": "structure", - "members": { - "assistantAssociation": { - "target": "com.amazonaws.qconnect#AssistantAssociationData", - "traits": { - "smithy.api#documentation": "

The assistant association.

" - } - } - } - }, - "com.amazonaws.qconnect#GetAssistantRequest": { - "type": "structure", - "members": { - "assistantId": { - "target": "com.amazonaws.qconnect#UuidOrArn", - "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.qconnect#GetAssistantResponse": { - "type": "structure", - "members": { - "assistant": { - "target": "com.amazonaws.qconnect#AssistantData", - "traits": { - "smithy.api#documentation": "

Information about the assistant.

" - } - } - } - }, - "com.amazonaws.qconnect#GetContent": { - "type": "operation", - "input": { - "target": "com.amazonaws.qconnect#GetContentRequest" - }, - "output": { - "target": "com.amazonaws.qconnect#GetContentResponse" - }, - "errors": [ { - "target": "com.amazonaws.qconnect#AccessDeniedException" + "target": "com.amazonaws.qconnect#StartContentUpload" }, { - "target": "com.amazonaws.qconnect#ResourceNotFoundException" + "target": "com.amazonaws.qconnect#StartImportJob" }, { - "target": "com.amazonaws.qconnect#ValidationException" + "target": "com.amazonaws.qconnect#UpdateKnowledgeBaseTemplateUri" } ], - "traits": { - "smithy.api#documentation": "

Retrieves content, including a pre-signed URL to download the content.

", - "smithy.api#http": { - "uri": "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}", - "method": "GET" - }, - "smithy.api#readonly": {} - } - }, - "com.amazonaws.qconnect#GetContentAssociation": { - "type": "operation", - "input": { - "target": "com.amazonaws.qconnect#GetContentAssociationRequest" - }, - "output": { - "target": "com.amazonaws.qconnect#GetContentAssociationResponse" - }, - "errors": [ + "resources": [ { - "target": "com.amazonaws.qconnect#AccessDeniedException" + "target": "com.amazonaws.qconnect#Content" }, { - "target": "com.amazonaws.qconnect#ResourceNotFoundException" + "target": "com.amazonaws.qconnect#MessageTemplate" }, { - "target": "com.amazonaws.qconnect#ValidationException" + "target": "com.amazonaws.qconnect#QuickResponse" } ], "traits": { - "smithy.api#documentation": "

Returns the content association.

\n

For more information about content associations--what they are and when they are used--see\n Integrate Amazon Q in Connect with step-by-step guides in the Amazon Connect\n Administrator Guide.

", - "smithy.api#http": { - "uri": "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/associations/{contentAssociationId}", - "method": "GET" + "aws.api#arn": { + "template": "knowledge-base/{knowledgeBaseId}" }, - "smithy.api#readonly": {} + "aws.cloudformation#cfnResource": {}, + "aws.iam#disableConditionKeyInference": {} } }, - "com.amazonaws.qconnect#GetContentAssociationRequest": { + "com.amazonaws.qconnect#KnowledgeBaseAssociationConfigurationData": { "type": "structure", "members": { - "knowledgeBaseId": { - "target": "com.amazonaws.qconnect#UuidOrArn", - "traits": { - "smithy.api#documentation": "

The identifier of the knowledge base.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } + "contentTagFilter": { + "target": "com.amazonaws.qconnect#TagFilter" }, - "contentId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "maxResults": { + "target": "com.amazonaws.qconnect#MaxResults", "traits": { - "smithy.api#documentation": "

The identifier of the content.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#documentation": "

The maximum number of results to return per page.

" } }, - "contentAssociationId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "overrideKnowledgeBaseSearchType": { + "target": "com.amazonaws.qconnect#KnowledgeBaseSearchType", "traits": { - "smithy.api#documentation": "

The identifier of the content association. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#documentation": "

The search type to be used against the Knowledge Base for this request. The values can be\n SEMANTIC which uses vector embeddings or HYBRID which use vector\n embeddings and raw text

" } } }, "traits": { - "smithy.api#input": {} + "smithy.api#documentation": "

The data of the configuration for a KNOWLEDGE_BASE type Amazon Q in Connect\n Assistant Association.

" } }, - "com.amazonaws.qconnect#GetContentAssociationResponse": { + "com.amazonaws.qconnect#KnowledgeBaseAssociationData": { "type": "structure", "members": { - "contentAssociation": { - "target": "com.amazonaws.qconnect#ContentAssociationData", + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#Uuid", "traits": { - "smithy.api#documentation": "

The association between Amazon Q in Connect content and another resource.

" + "smithy.api#documentation": "

The identifier of the knowledge base.

" + } + }, + "knowledgeBaseArn": { + "target": "com.amazonaws.qconnect#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the knowledge base.

" } } }, "traits": { - "smithy.api#output": {} + "smithy.api#documentation": "

Association information about the knowledge base.

" } }, - "com.amazonaws.qconnect#GetContentRequest": { + "com.amazonaws.qconnect#KnowledgeBaseData": { "type": "structure", "members": { - "contentId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#Uuid", "traits": { - "smithy.api#documentation": "

The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "smithy.api#httpLabel": {}, + "smithy.api#documentation": "

The identifier of the knowledge base.

", "smithy.api#required": {} } }, - "knowledgeBaseId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "knowledgeBaseArn": { + "target": "com.amazonaws.qconnect#Arn", "traits": { - "smithy.api#documentation": "

The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "smithy.api#httpLabel": {}, + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the knowledge base.

", "smithy.api#required": {} } - } - } - }, - "com.amazonaws.qconnect#GetContentResponse": { - "type": "structure", - "members": { - "content": { - "target": "com.amazonaws.qconnect#ContentData", + }, + "name": { + "target": "com.amazonaws.qconnect#Name", "traits": { - "smithy.api#documentation": "

The content.

" + "smithy.api#documentation": "

The name of the knowledge base.

", + "smithy.api#required": {} } - } - } - }, - "com.amazonaws.qconnect#GetContentSummary": { - "type": "operation", - "input": { - "target": "com.amazonaws.qconnect#GetContentSummaryRequest" - }, - "output": { - "target": "com.amazonaws.qconnect#GetContentSummaryResponse" - }, - "errors": [ - { - "target": "com.amazonaws.qconnect#AccessDeniedException" - }, - { - "target": "com.amazonaws.qconnect#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.qconnect#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Retrieves summary information about the content.

", - "smithy.api#http": { - "uri": "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/summary", - "method": "GET" }, - "smithy.api#readonly": {} - } - }, - "com.amazonaws.qconnect#GetContentSummaryRequest": { - "type": "structure", - "members": { - "contentId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "knowledgeBaseType": { + "target": "com.amazonaws.qconnect#KnowledgeBaseType", "traits": { - "smithy.api#documentation": "

The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "smithy.api#httpLabel": {}, + "smithy.api#documentation": "

The type of knowledge base.

", "smithy.api#required": {} } }, - "knowledgeBaseId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "status": { + "target": "com.amazonaws.qconnect#KnowledgeBaseStatus", "traits": { - "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "smithy.api#httpLabel": {}, + "smithy.api#documentation": "

The status of the knowledge base.

", "smithy.api#required": {} } + }, + "lastContentModificationTime": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

An epoch timestamp indicating the most recent content modification inside the knowledge\n base. If no content exists in a knowledge base, this value is unset.

", + "smithy.api#timestampFormat": "epoch-seconds" + } + }, + "vectorIngestionConfiguration": { + "target": "com.amazonaws.qconnect#VectorIngestionConfiguration", + "traits": { + "smithy.api#documentation": "

Contains details about how to ingest the documents in a data source.

" + } + }, + "sourceConfiguration": { + "target": "com.amazonaws.qconnect#SourceConfiguration", + "traits": { + "smithy.api#documentation": "

Source configuration information about the knowledge base.

" + } + }, + "renderingConfiguration": { + "target": "com.amazonaws.qconnect#RenderingConfiguration", + "traits": { + "smithy.api#documentation": "

Information about how to render the content.

" + } + }, + "serverSideEncryptionConfiguration": { + "target": "com.amazonaws.qconnect#ServerSideEncryptionConfiguration", + "traits": { + "smithy.api#documentation": "

The configuration information for the customer managed key used for encryption.

\n

This KMS key must have a policy that allows kms:CreateGrant,\n kms:DescribeKey, kms:Decrypt, and\n kms:GenerateDataKey* permissions to the IAM identity using the\n key to invoke Amazon Q in Connect.

\n

For more information about setting up a customer managed key for Amazon Q in Connect, see Enable Amazon Q in Connect for\n your instance.

" + } + }, + "description": { + "target": "com.amazonaws.qconnect#Description", + "traits": { + "smithy.api#documentation": "

The description.

" + } + }, + "tags": { + "target": "com.amazonaws.qconnect#Tags", + "traits": { + "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" + } + }, + "ingestionStatus": { + "target": "com.amazonaws.qconnect#SyncStatus", + "traits": { + "smithy.api#documentation": "

Status of ingestion on data source.

" + } + }, + "ingestionFailureReasons": { + "target": "com.amazonaws.qconnect#FailureReason", + "traits": { + "smithy.api#documentation": "

List of failure reasons on ingestion per file.

" + } } + }, + "traits": { + "smithy.api#documentation": "

Information about the knowledge base.

", + "smithy.api#references": [ + { + "resource": "com.amazonaws.qconnect#KnowledgeBase" + } + ] } }, - "com.amazonaws.qconnect#GetContentSummaryResponse": { - "type": "structure", - "members": { - "contentSummary": { - "target": "com.amazonaws.qconnect#ContentSummary", - "traits": { - "smithy.api#documentation": "

The content summary.

" + "com.amazonaws.qconnect#KnowledgeBaseList": { + "type": "list", + "member": { + "target": "com.amazonaws.qconnect#KnowledgeBaseSummary" + } + }, + "com.amazonaws.qconnect#KnowledgeBaseSearchType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "HYBRID", + "name": "HYBRID" + }, + { + "value": "SEMANTIC", + "name": "SEMANTIC" } - } + ] } }, - "com.amazonaws.qconnect#GetImportJob": { - "type": "operation", - "input": { - "target": "com.amazonaws.qconnect#GetImportJobRequest" - }, - "output": { - "target": "com.amazonaws.qconnect#GetImportJobResponse" - }, - "errors": [ - { - "target": "com.amazonaws.qconnect#AccessDeniedException" - }, - { - "target": "com.amazonaws.qconnect#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.qconnect#ValidationException" - } - ], + "com.amazonaws.qconnect#KnowledgeBaseStatus": { + "type": "string", "traits": { - "smithy.api#documentation": "

Retrieves the started import job.

", - "smithy.api#http": { - "uri": "/knowledgeBases/{knowledgeBaseId}/importJobs/{importJobId}", - "method": "GET" - }, - "smithy.api#readonly": {} + "smithy.api#enum": [ + { + "value": "CREATE_IN_PROGRESS", + "name": "CREATE_IN_PROGRESS" + }, + { + "value": "CREATE_FAILED", + "name": "CREATE_FAILED" + }, + { + "value": "ACTIVE", + "name": "ACTIVE" + }, + { + "value": "DELETE_IN_PROGRESS", + "name": "DELETE_IN_PROGRESS" + }, + { + "value": "DELETE_FAILED", + "name": "DELETE_FAILED" + }, + { + "value": "DELETED", + "name": "DELETED" + } + ] } }, - "com.amazonaws.qconnect#GetImportJobRequest": { + "com.amazonaws.qconnect#KnowledgeBaseSummary": { "type": "structure", "members": { - "importJobId": { + "knowledgeBaseId": { "target": "com.amazonaws.qconnect#Uuid", "traits": { - "smithy.api#documentation": "

The identifier of the import job to retrieve.

", - "smithy.api#httpLabel": {}, + "smithy.api#documentation": "

The identifier of the knowledge base.

", "smithy.api#required": {} } }, - "knowledgeBaseId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "knowledgeBaseArn": { + "target": "com.amazonaws.qconnect#Arn", "traits": { - "smithy.api#documentation": "

The identifier of the knowledge base that the import job belongs to.

", - "smithy.api#httpLabel": {}, + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the knowledge base.

", "smithy.api#required": {} } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.qconnect#GetImportJobResponse": { - "type": "structure", - "members": { - "importJob": { - "target": "com.amazonaws.qconnect#ImportJobData", + }, + "name": { + "target": "com.amazonaws.qconnect#Name", "traits": { - "smithy.api#documentation": "

The import job.

" + "smithy.api#documentation": "

The name of the knowledge base.

", + "smithy.api#required": {} } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.qconnect#GetKnowledgeBase": { - "type": "operation", - "input": { - "target": "com.amazonaws.qconnect#GetKnowledgeBaseRequest" - }, - "output": { - "target": "com.amazonaws.qconnect#GetKnowledgeBaseResponse" - }, - "errors": [ - { - "target": "com.amazonaws.qconnect#AccessDeniedException" - }, - { - "target": "com.amazonaws.qconnect#ResourceNotFoundException" }, - { - "target": "com.amazonaws.qconnect#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Retrieves information about the knowledge base.

", - "smithy.api#http": { - "uri": "/knowledgeBases/{knowledgeBaseId}", - "method": "GET" + "knowledgeBaseType": { + "target": "com.amazonaws.qconnect#KnowledgeBaseType", + "traits": { + "smithy.api#documentation": "

The type of knowledge base.

", + "smithy.api#required": {} + } }, - "smithy.api#readonly": {} - } - }, - "com.amazonaws.qconnect#GetKnowledgeBaseRequest": { - "type": "structure", - "members": { - "knowledgeBaseId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "status": { + "target": "com.amazonaws.qconnect#KnowledgeBaseStatus", "traits": { - "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "smithy.api#httpLabel": {}, + "smithy.api#documentation": "

The status of the knowledge base summary.

", "smithy.api#required": {} } - } - } - }, - "com.amazonaws.qconnect#GetKnowledgeBaseResponse": { - "type": "structure", - "members": { - "knowledgeBase": { - "target": "com.amazonaws.qconnect#KnowledgeBaseData", + }, + "sourceConfiguration": { + "target": "com.amazonaws.qconnect#SourceConfiguration", "traits": { - "smithy.api#documentation": "

The knowledge base.

" + "smithy.api#documentation": "

Configuration information about the external data source.

" } - } - } - }, - "com.amazonaws.qconnect#GetQuickResponse": { - "type": "operation", - "input": { - "target": "com.amazonaws.qconnect#GetQuickResponseRequest" - }, - "output": { - "target": "com.amazonaws.qconnect#GetQuickResponseResponse" - }, - "errors": [ - { - "target": "com.amazonaws.qconnect#AccessDeniedException" }, - { - "target": "com.amazonaws.qconnect#ResourceNotFoundException" + "vectorIngestionConfiguration": { + "target": "com.amazonaws.qconnect#VectorIngestionConfiguration", + "traits": { + "smithy.api#documentation": "

Contains details about how to ingest the documents in a data source.

" + } }, - { - "target": "com.amazonaws.qconnect#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Retrieves the quick response.

", - "smithy.api#http": { - "uri": "/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}", - "method": "GET" + "renderingConfiguration": { + "target": "com.amazonaws.qconnect#RenderingConfiguration", + "traits": { + "smithy.api#documentation": "

Information about how to render the content.

" + } }, - "smithy.api#readonly": {} - } - }, - "com.amazonaws.qconnect#GetQuickResponseRequest": { - "type": "structure", - "members": { - "quickResponseId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "serverSideEncryptionConfiguration": { + "target": "com.amazonaws.qconnect#ServerSideEncryptionConfiguration", "traits": { - "smithy.api#documentation": "

The identifier of the quick response.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#documentation": "

The configuration information for the customer managed key used for encryption.

\n

This KMS key must have a policy that allows kms:CreateGrant,\n kms:DescribeKey, kms:Decrypt, and\n kms:GenerateDataKey* permissions to the IAM identity using the\n key to invoke Amazon Q in Connect.

\n

For more information about setting up a customer managed key for Amazon Q in Connect, see Enable Amazon Q in Connect for\n your instance.

" } }, - "knowledgeBaseId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "description": { + "target": "com.amazonaws.qconnect#Description", "traits": { - "smithy.api#documentation": "

The identifier of the knowledge base. This should be a QUICK_RESPONSES type knowledge base.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#documentation": "

The description of the knowledge base.

" + } + }, + "tags": { + "target": "com.amazonaws.qconnect#Tags", + "traits": { + "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" } } }, "traits": { - "smithy.api#input": {} + "smithy.api#documentation": "

Summary information about the knowledge base.

", + "smithy.api#references": [ + { + "resource": "com.amazonaws.qconnect#KnowledgeBase" + } + ] } }, - "com.amazonaws.qconnect#GetQuickResponseResponse": { - "type": "structure", - "members": { - "quickResponse": { - "target": "com.amazonaws.qconnect#QuickResponseData", - "traits": { - "smithy.api#documentation": "

The quick response.

" + "com.amazonaws.qconnect#KnowledgeBaseType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "EXTERNAL", + "name": "EXTERNAL" + }, + { + "value": "CUSTOM", + "name": "CUSTOM" + }, + { + "value": "QUICK_RESPONSES", + "name": "QUICK_RESPONSES" + }, + { + "value": "MESSAGE_TEMPLATES", + "name": "MESSAGE_TEMPLATES" + }, + { + "value": "MANAGED", + "name": "MANAGED" } - } - }, + ] + } + }, + "com.amazonaws.qconnect#LanguageCode": { + "type": "string", "traits": { - "smithy.api#output": {} + "smithy.api#length": { + "min": 2, + "max": 5 + } } }, - "com.amazonaws.qconnect#GetRecommendations": { + "com.amazonaws.qconnect#ListAIAgentVersions": { "type": "operation", "input": { - "target": "com.amazonaws.qconnect#GetRecommendationsRequest" + "target": "com.amazonaws.qconnect#ListAIAgentVersionsRequest" }, "output": { - "target": "com.amazonaws.qconnect#GetRecommendationsResponse" + "target": "com.amazonaws.qconnect#ListAIAgentVersionsResponse" }, "errors": [ { @@ -4988,39 +7295,52 @@ { "target": "com.amazonaws.qconnect#ResourceNotFoundException" }, + { + "target": "com.amazonaws.qconnect#ThrottlingException" + }, { "target": "com.amazonaws.qconnect#ValidationException" } ], "traits": { - "smithy.api#deprecated": { - "message": "GetRecommendations API will be discontinued starting June 1, 2024. To receive generative responses after March 1, 2024 you will need to create a new Assistant in the Connect console and integrate the Amazon Q in Connect JavaScript library (amazon-q-connectjs) into your applications." - }, - "smithy.api#documentation": "\n

This API will be discontinued starting June 1, 2024. To receive generative responses\n after March 1, 2024, you will need to create a new Assistant in the Amazon Connect\n console and integrate the Amazon Q in Connect JavaScript library (amazon-q-connectjs) into\n your applications.

\n
\n

Retrieves recommendations for the specified session. To avoid retrieving the same\n recommendations in subsequent calls, use NotifyRecommendationsReceived. This API supports long-polling behavior with the\n waitTimeSeconds parameter. Short poll is the default behavior and only returns\n recommendations already available. To perform a manual query against an assistant, use QueryAssistant.

", + "smithy.api#documentation": "

List AI Agent versions.

", "smithy.api#http": { - "uri": "/assistants/{assistantId}/sessions/{sessionId}/recommendations", + "uri": "/assistants/{assistantId}/aiagents/{aiAgentId}/versions", "method": "GET" }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "aiAgentVersionSummaries" + }, "smithy.api#readonly": {} } }, - "com.amazonaws.qconnect#GetRecommendationsRequest": { + "com.amazonaws.qconnect#ListAIAgentVersionsRequest": { "type": "structure", "members": { "assistantId": { "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "aiAgentId": { + "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", + "traits": { + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect AI Agent for which versions are to be\n listed.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "sessionId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "nextToken": { + "target": "com.amazonaws.qconnect#NextToken", "traits": { - "smithy.api#documentation": "

The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous response in\n the next request to retrieve the next set of results.

", + "smithy.api#httpQuery": "nextToken" } }, "maxResults": { @@ -5030,41 +7350,46 @@ "smithy.api#httpQuery": "maxResults" } }, - "waitTimeSeconds": { - "target": "com.amazonaws.qconnect#WaitTimeSeconds", + "origin": { + "target": "com.amazonaws.qconnect#Origin", "traits": { - "smithy.api#default": 0, - "smithy.api#documentation": "

The duration (in seconds) for which the call waits for a recommendation to be made\n available before returning. If a recommendation is available, the call returns sooner than\n WaitTimeSeconds. If no messages are available and the wait time expires, the\n call returns successfully with an empty list.

", - "smithy.api#httpQuery": "waitTimeSeconds" + "smithy.api#documentation": "

The origin of the AI Agent versions to be listed. SYSTEM for a default AI\n Agent created by Q in Connect or CUSTOMER for an AI Agent created by calling AI\n Agent creation APIs.

", + "smithy.api#httpQuery": "origin" } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.qconnect#GetRecommendationsResponse": { + "com.amazonaws.qconnect#ListAIAgentVersionsResponse": { "type": "structure", "members": { - "recommendations": { - "target": "com.amazonaws.qconnect#RecommendationList", + "aiAgentVersionSummaries": { + "target": "com.amazonaws.qconnect#AIAgentVersionSummariesList", "traits": { - "smithy.api#documentation": "

The recommendations.

", + "smithy.api#documentation": "

The summaries of AI Agent versions.

", "smithy.api#required": {} } }, - "triggers": { - "target": "com.amazonaws.qconnect#RecommendationTriggerList", + "nextToken": { + "target": "com.amazonaws.qconnect#NextToken", "traits": { - "smithy.api#documentation": "

The triggers corresponding to recommendations.

" + "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous response in\n the next request to retrieve the next set of results.

" } } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.qconnect#GetSession": { + "com.amazonaws.qconnect#ListAIAgents": { "type": "operation", "input": { - "target": "com.amazonaws.qconnect#GetSessionRequest" + "target": "com.amazonaws.qconnect#ListAIAgentsRequest" }, "output": { - "target": "com.amazonaws.qconnect#GetSessionResponse" + "target": "com.amazonaws.qconnect#ListAIAgentsResponse" }, "errors": [ { @@ -5073,847 +7398,856 @@ { "target": "com.amazonaws.qconnect#ResourceNotFoundException" }, + { + "target": "com.amazonaws.qconnect#ThrottlingException" + }, { "target": "com.amazonaws.qconnect#ValidationException" } ], "traits": { - "smithy.api#documentation": "

Retrieves information for a specified session.

", + "smithy.api#documentation": "

Lists AI Agents.

", "smithy.api#http": { - "uri": "/assistants/{assistantId}/sessions/{sessionId}", + "uri": "/assistants/{assistantId}/aiagents", "method": "GET" }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "aiAgentSummaries" + }, "smithy.api#readonly": {} } }, - "com.amazonaws.qconnect#GetSessionRequest": { + "com.amazonaws.qconnect#ListAIAgentsRequest": { "type": "structure", "members": { "assistantId": { "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "sessionId": { - "target": "com.amazonaws.qconnect#UuidOrArn", - "traits": { - "smithy.api#documentation": "

The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.qconnect#GetSessionResponse": { - "type": "structure", - "members": { - "session": { - "target": "com.amazonaws.qconnect#SessionData", + "nextToken": { + "target": "com.amazonaws.qconnect#NextToken", "traits": { - "smithy.api#documentation": "

The session.

" + "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous response in\n the next request to retrieve the next set of results.

", + "smithy.api#httpQuery": "nextToken" } - } - } - }, - "com.amazonaws.qconnect#GroupingConfiguration": { - "type": "structure", - "members": { - "criteria": { - "target": "com.amazonaws.qconnect#GroupingCriteria", + }, + "maxResults": { + "target": "com.amazonaws.qconnect#MaxResults", "traits": { - "smithy.api#documentation": "

The criteria used for grouping Amazon Q in Connect users.

\n

The following is the list of supported criteria values.

\n " + "smithy.api#documentation": "

The maximum number of results to return per page.

", + "smithy.api#httpQuery": "maxResults" } }, - "values": { - "target": "com.amazonaws.qconnect#GroupingValues", + "origin": { + "target": "com.amazonaws.qconnect#Origin", "traits": { - "smithy.api#documentation": "

The list of values that define different groups of Amazon Q in Connect users.

\n " + "smithy.api#documentation": "

The origin of the AI Agents to be listed. SYSTEM for a default AI Agent\n created by Q in Connect or CUSTOMER for an AI Agent created by calling AI Agent\n creation APIs.

", + "smithy.api#httpQuery": "origin" } } }, "traits": { - "smithy.api#documentation": "

The configuration information of the grouping of Amazon Q in Connect users.

" - } - }, - "com.amazonaws.qconnect#GroupingCriteria": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 100 - }, - "smithy.api#sensitive": {} - } - }, - "com.amazonaws.qconnect#GroupingValue": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 2048 - }, - "smithy.api#sensitive": {} - } - }, - "com.amazonaws.qconnect#GroupingValues": { - "type": "list", - "member": { - "target": "com.amazonaws.qconnect#GroupingValue" - }, - "traits": { - "smithy.api#uniqueItems": {} - } - }, - "com.amazonaws.qconnect#Headers": { - "type": "map", - "key": { - "target": "com.amazonaws.qconnect#NonEmptyString" - }, - "value": { - "target": "com.amazonaws.qconnect#NonEmptyString" + "smithy.api#input": {} } }, - "com.amazonaws.qconnect#HierarchicalChunkingConfiguration": { + "com.amazonaws.qconnect#ListAIAgentsResponse": { "type": "structure", "members": { - "levelConfigurations": { - "target": "com.amazonaws.qconnect#HierarchicalChunkingLevelConfigurations", + "aiAgentSummaries": { + "target": "com.amazonaws.qconnect#AIAgentSummaryList", "traits": { - "smithy.api#documentation": "

Token settings for each layer.

", + "smithy.api#documentation": "

The summaries of AI Agents.

", "smithy.api#required": {} } }, - "overlapTokens": { - "target": "smithy.api#Integer", + "nextToken": { + "target": "com.amazonaws.qconnect#NextToken", "traits": { - "smithy.api#documentation": "

The number of tokens to repeat across chunks in the same layer.

", - "smithy.api#range": { - "min": 1 - }, - "smithy.api#required": {} + "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous response in\n the next request to retrieve the next set of results.

" } } }, "traits": { - "smithy.api#documentation": "

Settings for hierarchical document chunking for a data source. Hierarchical chunking\n splits documents into layers of chunks where the first layer contains large chunks, and the\n second layer contains smaller chunks derived from the first layer.

" + "smithy.api#output": {} } }, - "com.amazonaws.qconnect#HierarchicalChunkingLevelConfiguration": { - "type": "structure", - "members": { - "maxTokens": { - "target": "smithy.api#Integer", - "traits": { - "smithy.api#documentation": "

The maximum number of tokens that a chunk can contain in this layer.

", - "smithy.api#range": { - "min": 1, - "max": 8192 - }, - "smithy.api#required": {} - } - } + "com.amazonaws.qconnect#ListAIPromptVersions": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#ListAIPromptVersionsRequest" }, - "traits": { - "smithy.api#documentation": "

Token settings for each layer.

" - } - }, - "com.amazonaws.qconnect#HierarchicalChunkingLevelConfigurations": { - "type": "list", - "member": { - "target": "com.amazonaws.qconnect#HierarchicalChunkingLevelConfiguration" + "output": { + "target": "com.amazonaws.qconnect#ListAIPromptVersionsResponse" }, - "traits": { - "smithy.api#length": { - "min": 2, - "max": 2 - } - } - }, - "com.amazonaws.qconnect#Highlight": { - "type": "structure", - "members": { - "beginOffsetInclusive": { - "target": "com.amazonaws.qconnect#HighlightOffset", - "traits": { - "smithy.api#default": 0, - "smithy.api#documentation": "

The offset for the start of the highlight.

" - } + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" }, - "endOffsetExclusive": { - "target": "com.amazonaws.qconnect#HighlightOffset", - "traits": { - "smithy.api#default": 0, - "smithy.api#documentation": "

The offset for the end of the highlight.

" - } + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ThrottlingException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" } - }, - "traits": { - "smithy.api#documentation": "

Offset specification to describe highlighting of document excerpts for rendering search\n results and recommendations.

" - } - }, - "com.amazonaws.qconnect#HighlightOffset": { - "type": "integer", + ], "traits": { - "smithy.api#default": 0 - } - }, - "com.amazonaws.qconnect#Highlights": { - "type": "list", - "member": { - "target": "com.amazonaws.qconnect#Highlight" + "smithy.api#documentation": "

Lists AI Prompt versions.

", + "smithy.api#http": { + "uri": "/assistants/{assistantId}/aiprompts/{aiPromptId}/versions", + "method": "GET" + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "aiPromptVersionSummaries" + }, + "smithy.api#readonly": {} } }, - "com.amazonaws.qconnect#ImportJobData": { + "com.amazonaws.qconnect#ListAIPromptVersionsRequest": { "type": "structure", "members": { - "importJobId": { - "target": "com.amazonaws.qconnect#Uuid", + "assistantId": { + "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The identifier of the import job.

", + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "knowledgeBaseId": { - "target": "com.amazonaws.qconnect#Uuid", + "aiPromptId": { + "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", "traits": { - "smithy.api#documentation": "

The identifier of the knowledge base.

", + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect AI prompt for which versions are to be\n listed.

", + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "uploadId": { - "target": "com.amazonaws.qconnect#UploadId", + "nextToken": { + "target": "com.amazonaws.qconnect#NextToken", "traits": { - "smithy.api#documentation": "

A pointer to the uploaded asset. This value is returned by StartContentUpload.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous response in\n the next request to retrieve the next set of results.

", + "smithy.api#httpQuery": "nextToken" } }, - "knowledgeBaseArn": { - "target": "com.amazonaws.qconnect#Arn", + "maxResults": { + "target": "com.amazonaws.qconnect#MaxResults", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the knowledge base.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The maximum number of results to return per page.

", + "smithy.api#httpQuery": "maxResults" } }, - "importJobType": { - "target": "com.amazonaws.qconnect#ImportJobType", + "origin": { + "target": "com.amazonaws.qconnect#Origin", "traits": { - "smithy.api#documentation": "

The type of the import job.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The origin of the AI Prompt versions to be listed. SYSTEM for a default AI\n Agent created by Q in Connect or CUSTOMER for an AI Agent created by calling AI\n Agent creation APIs.

", + "smithy.api#httpQuery": "origin" } - }, - "status": { - "target": "com.amazonaws.qconnect#ImportJobStatus", + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.qconnect#ListAIPromptVersionsResponse": { + "type": "structure", + "members": { + "aiPromptVersionSummaries": { + "target": "com.amazonaws.qconnect#AIPromptVersionSummariesList", "traits": { - "smithy.api#documentation": "

The status of the import job.

", + "smithy.api#documentation": "

The summaries of the AI Prompt versions.

", "smithy.api#required": {} } }, - "url": { - "target": "com.amazonaws.qconnect#Url", + "nextToken": { + "target": "com.amazonaws.qconnect#NextToken", "traits": { - "smithy.api#documentation": "

The download link to the resource file that is uploaded to the import job.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous response in\n the next request to retrieve the next set of results.

" } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.qconnect#ListAIPrompts": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#ListAIPromptsRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#ListAIPromptsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" }, - "failedRecordReport": { - "target": "com.amazonaws.qconnect#Url", - "traits": { - "smithy.api#documentation": "

The link to download the information of resource data that failed to be imported.

" - } + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" }, - "urlExpiry": { - "target": "smithy.api#Timestamp", + { + "target": "com.amazonaws.qconnect#ThrottlingException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Lists the AI Prompts available on the Amazon Q in Connect assistant.

", + "smithy.api#http": { + "uri": "/assistants/{assistantId}/aiprompts", + "method": "GET" + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "aiPromptSummaries" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.qconnect#ListAIPromptsRequest": { + "type": "structure", + "members": { + "assistantId": { + "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The expiration time of the URL as an epoch timestamp.

", - "smithy.api#required": {}, - "smithy.api#timestampFormat": "epoch-seconds" + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } }, - "createdTime": { - "target": "smithy.api#Timestamp", + "nextToken": { + "target": "com.amazonaws.qconnect#NextToken", "traits": { - "smithy.api#documentation": "

The timestamp when the import job was created.

", - "smithy.api#required": {}, - "smithy.api#timestampFormat": "epoch-seconds" + "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous response in\n the next request to retrieve the next set of results.

", + "smithy.api#httpQuery": "nextToken" } }, - "lastModifiedTime": { - "target": "smithy.api#Timestamp", + "maxResults": { + "target": "com.amazonaws.qconnect#MaxResults", "traits": { - "smithy.api#documentation": "

The timestamp when the import job data was last modified.

", - "smithy.api#required": {}, - "smithy.api#timestampFormat": "epoch-seconds" + "smithy.api#documentation": "

The maximum number of results to return per page.

", + "smithy.api#httpQuery": "maxResults" } }, - "metadata": { - "target": "com.amazonaws.qconnect#ContentMetadata", + "origin": { + "target": "com.amazonaws.qconnect#Origin", "traits": { - "smithy.api#documentation": "

The metadata fields of the imported Amazon Q in Connect resources.

" + "smithy.api#documentation": "

The origin of the AI Prompts to be listed. SYSTEM for a default AI Agent\n created by Q in Connect or CUSTOMER for an AI Agent created by calling AI Agent\n creation APIs.

", + "smithy.api#httpQuery": "origin" } - }, - "externalSourceConfiguration": { - "target": "com.amazonaws.qconnect#ExternalSourceConfiguration" } }, "traits": { - "smithy.api#documentation": "

Summary information about the import job.

" - } - }, - "com.amazonaws.qconnect#ImportJobList": { - "type": "list", - "member": { - "target": "com.amazonaws.qconnect#ImportJobSummary" - } - }, - "com.amazonaws.qconnect#ImportJobStatus": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "START_IN_PROGRESS", - "name": "START_IN_PROGRESS" - }, - { - "value": "FAILED", - "name": "FAILED" - }, - { - "value": "COMPLETE", - "name": "COMPLETE" - }, - { - "value": "DELETE_IN_PROGRESS", - "name": "DELETE_IN_PROGRESS" - }, - { - "value": "DELETE_FAILED", - "name": "DELETE_FAILED" - }, - { - "value": "DELETED", - "name": "DELETED" - } - ] + "smithy.api#input": {} } }, - "com.amazonaws.qconnect#ImportJobSummary": { + "com.amazonaws.qconnect#ListAIPromptsResponse": { "type": "structure", "members": { - "importJobId": { - "target": "com.amazonaws.qconnect#Uuid", + "aiPromptSummaries": { + "target": "com.amazonaws.qconnect#AIPromptSummaryList", "traits": { - "smithy.api#documentation": "

The identifier of the import job.

", + "smithy.api#documentation": "

The summaries of the AI Prompts.

", "smithy.api#required": {} } }, - "knowledgeBaseId": { - "target": "com.amazonaws.qconnect#Uuid", + "nextToken": { + "target": "com.amazonaws.qconnect#NextToken", "traits": { - "smithy.api#documentation": "

The identifier of the knowledge base.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous response in\n the next request to retrieve the next set of results.

" } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.qconnect#ListAssistantAssociations": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#ListAssistantAssociationsRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#ListAssistantAssociationsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" }, - "uploadId": { - "target": "com.amazonaws.qconnect#UploadId", + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Lists information about assistant associations.

", + "smithy.api#http": { + "uri": "/assistants/{assistantId}/associations", + "method": "GET" + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "assistantAssociationSummaries" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.qconnect#ListAssistantAssociationsRequest": { + "type": "structure", + "members": { + "nextToken": { + "target": "com.amazonaws.qconnect#NextToken", "traits": { - "smithy.api#documentation": "

A pointer to the uploaded asset. This value is returned by StartContentUpload.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

", + "smithy.api#httpQuery": "nextToken" } }, - "knowledgeBaseArn": { - "target": "com.amazonaws.qconnect#Arn", + "maxResults": { + "target": "com.amazonaws.qconnect#MaxResults", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the knowledge base.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The maximum number of results to return per page.

", + "smithy.api#httpQuery": "maxResults" } }, - "importJobType": { - "target": "com.amazonaws.qconnect#ImportJobType", + "assistantId": { + "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The type of import job.

", + "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#httpLabel": {}, "smithy.api#required": {} } - }, - "status": { - "target": "com.amazonaws.qconnect#ImportJobStatus", + } + } + }, + "com.amazonaws.qconnect#ListAssistantAssociationsResponse": { + "type": "structure", + "members": { + "assistantAssociationSummaries": { + "target": "com.amazonaws.qconnect#AssistantAssociationSummaryList", "traits": { - "smithy.api#documentation": "

The status of the import job.

", + "smithy.api#documentation": "

Summary information about assistant associations.

", "smithy.api#required": {} } }, - "createdTime": { - "target": "smithy.api#Timestamp", + "nextToken": { + "target": "com.amazonaws.qconnect#NextToken", "traits": { - "smithy.api#documentation": "

The timestamp when the import job was created.

", - "smithy.api#required": {}, - "smithy.api#timestampFormat": "epoch-seconds" + "smithy.api#documentation": "

If there are additional results, this is the token for the next set of results.

" } + } + } + }, + "com.amazonaws.qconnect#ListAssistants": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#ListAssistantsRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#ListAssistantsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" }, - "lastModifiedTime": { - "target": "smithy.api#Timestamp", + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Lists information about assistants.

", + "smithy.api#http": { + "uri": "/assistants", + "method": "GET" + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "assistantSummaries" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.qconnect#ListAssistantsRequest": { + "type": "structure", + "members": { + "nextToken": { + "target": "com.amazonaws.qconnect#NextToken", "traits": { - "smithy.api#documentation": "

The timestamp when the import job was last modified.

", - "smithy.api#required": {}, - "smithy.api#timestampFormat": "epoch-seconds" + "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

", + "smithy.api#httpQuery": "nextToken" } }, - "metadata": { - "target": "com.amazonaws.qconnect#ContentMetadata", + "maxResults": { + "target": "com.amazonaws.qconnect#MaxResults", "traits": { - "smithy.api#documentation": "

The metadata fields of the imported Amazon Q in Connect resources.

" + "smithy.api#documentation": "

The maximum number of results to return per page.

", + "smithy.api#httpQuery": "maxResults" + } + } + } + }, + "com.amazonaws.qconnect#ListAssistantsResponse": { + "type": "structure", + "members": { + "assistantSummaries": { + "target": "com.amazonaws.qconnect#AssistantList", + "traits": { + "smithy.api#documentation": "

Information about the assistants.

", + "smithy.api#required": {} } }, - "externalSourceConfiguration": { - "target": "com.amazonaws.qconnect#ExternalSourceConfiguration", + "nextToken": { + "target": "com.amazonaws.qconnect#NextToken", "traits": { - "smithy.api#documentation": "

The configuration information of the external source that the resource data are imported\n from.

" + "smithy.api#documentation": "

If there are additional results, this is the token for the next set of results.

" } } - }, - "traits": { - "smithy.api#documentation": "

Summary information about the import job.

" } }, - "com.amazonaws.qconnect#ImportJobType": { - "type": "string", + "com.amazonaws.qconnect#ListContentAssociations": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#ListContentAssociationsRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#ListContentAssociationsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], "traits": { - "smithy.api#enum": [ - { - "value": "QUICK_RESPONSES", - "name": "QUICK_RESPONSES" - } - ] + "smithy.api#documentation": "

Lists the content associations.

\n

For more information about content associations--what they are and when they are used--see\n Integrate Amazon Q in Connect with step-by-step guides in the Amazon Connect\n Administrator Guide.

", + "smithy.api#http": { + "uri": "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/associations", + "method": "GET" + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "contentAssociationSummaries" + }, + "smithy.api#readonly": {} } }, - "com.amazonaws.qconnect#IntentDetectedDataDetails": { + "com.amazonaws.qconnect#ListContentAssociationsRequest": { "type": "structure", "members": { - "intent": { - "target": "com.amazonaws.qconnect#SensitiveString", + "nextToken": { + "target": "com.amazonaws.qconnect#NextToken", "traits": { - "smithy.api#documentation": "

The detected intent.

", + "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

", + "smithy.api#httpQuery": "nextToken" + } + }, + "maxResults": { + "target": "com.amazonaws.qconnect#MaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of results to return per page.

", + "smithy.api#httpQuery": "maxResults" + } + }, + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the knowledge base.

", + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "intentId": { - "target": "com.amazonaws.qconnect#Uuid", + "contentId": { + "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The identifier of the detected intent.

", + "smithy.api#documentation": "

The identifier of the content.

", + "smithy.api#httpLabel": {}, "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

Details about the detected intent.

" + "smithy.api#input": {} } }, - "com.amazonaws.qconnect#IntentInputData": { + "com.amazonaws.qconnect#ListContentAssociationsResponse": { "type": "structure", "members": { - "intentId": { - "target": "com.amazonaws.qconnect#Uuid", + "contentAssociationSummaries": { + "target": "com.amazonaws.qconnect#ContentAssociationSummaryList", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q intent.

", + "smithy.api#documentation": "

Summary information about content associations.

", "smithy.api#required": {} } + }, + "nextToken": { + "target": "com.amazonaws.qconnect#NextToken", + "traits": { + "smithy.api#documentation": "

If there are additional results, this is the token for the next set of results.

" + } } }, "traits": { - "smithy.api#documentation": "

Information about the Amazon Q intent.

" + "smithy.api#output": {} } }, - "com.amazonaws.qconnect#KnowledgeBase": { - "type": "resource", - "identifiers": { - "knowledgeBaseId": { - "target": "com.amazonaws.qconnect#UuidOrArn" - } - }, - "create": { - "target": "com.amazonaws.qconnect#CreateKnowledgeBase" - }, - "read": { - "target": "com.amazonaws.qconnect#GetKnowledgeBase" - }, - "delete": { - "target": "com.amazonaws.qconnect#DeleteKnowledgeBase" + "com.amazonaws.qconnect#ListContents": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#ListContentsRequest" }, - "list": { - "target": "com.amazonaws.qconnect#ListKnowledgeBases" + "output": { + "target": "com.amazonaws.qconnect#ListContentsResponse" }, - "operations": [ - { - "target": "com.amazonaws.qconnect#DeleteImportJob" - }, - { - "target": "com.amazonaws.qconnect#GetImportJob" - }, - { - "target": "com.amazonaws.qconnect#ListImportJobs" - }, - { - "target": "com.amazonaws.qconnect#RemoveKnowledgeBaseTemplateUri" - }, - { - "target": "com.amazonaws.qconnect#SearchContent" - }, - { - "target": "com.amazonaws.qconnect#SearchQuickResponses" - }, - { - "target": "com.amazonaws.qconnect#StartContentUpload" - }, + "errors": [ { - "target": "com.amazonaws.qconnect#StartImportJob" + "target": "com.amazonaws.qconnect#AccessDeniedException" }, { - "target": "com.amazonaws.qconnect#UpdateKnowledgeBaseTemplateUri" - } - ], - "resources": [ - { - "target": "com.amazonaws.qconnect#Content" + "target": "com.amazonaws.qconnect#ResourceNotFoundException" }, { - "target": "com.amazonaws.qconnect#QuickResponse" + "target": "com.amazonaws.qconnect#ValidationException" } ], "traits": { - "aws.api#arn": { - "template": "knowledge-base/{knowledgeBaseId}" + "smithy.api#documentation": "

Lists the content.

", + "smithy.api#http": { + "uri": "/knowledgeBases/{knowledgeBaseId}/contents", + "method": "GET" + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "contentSummaries" }, - "aws.cloudformation#cfnResource": {}, - "aws.iam#disableConditionKeyInference": {} + "smithy.api#readonly": {} } }, - "com.amazonaws.qconnect#KnowledgeBaseAssociationConfigurationData": { + "com.amazonaws.qconnect#ListContentsRequest": { "type": "structure", "members": { - "contentTagFilter": { - "target": "com.amazonaws.qconnect#TagFilter" + "nextToken": { + "target": "com.amazonaws.qconnect#NextToken", + "traits": { + "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

", + "smithy.api#httpQuery": "nextToken" + } }, "maxResults": { "target": "com.amazonaws.qconnect#MaxResults", "traits": { - "smithy.api#documentation": "

The maximum number of results to return per page.

" + "smithy.api#documentation": "

The maximum number of results to return per page.

", + "smithy.api#httpQuery": "maxResults" } }, - "overrideKnowledgeBaseSearchType": { - "target": "com.amazonaws.qconnect#KnowledgeBaseSearchType", + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The search type to be used against the Knowledge Base for this request. The values can be\n SEMANTIC which uses vector embeddings or HYBRID which use vector\n embeddings and raw text

" + "smithy.api#documentation": "

The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } } - }, - "traits": { - "smithy.api#documentation": "

The data of the configuration for a KNOWLEDGE_BASE type Amazon Q in Connect\n Assistant Association.

" } }, - "com.amazonaws.qconnect#KnowledgeBaseAssociationData": { + "com.amazonaws.qconnect#ListContentsResponse": { "type": "structure", "members": { - "knowledgeBaseId": { - "target": "com.amazonaws.qconnect#Uuid", + "contentSummaries": { + "target": "com.amazonaws.qconnect#ContentSummaryList", "traits": { - "smithy.api#documentation": "

The identifier of the knowledge base.

" + "smithy.api#documentation": "

Information about the content.

", + "smithy.api#required": {} } }, - "knowledgeBaseArn": { - "target": "com.amazonaws.qconnect#Arn", + "nextToken": { + "target": "com.amazonaws.qconnect#NextToken", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the knowledge base.

" + "smithy.api#documentation": "

If there are additional results, this is the token for the next set of results.

" } } + } + }, + "com.amazonaws.qconnect#ListImportJobs": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#ListImportJobsRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#ListImportJobsResponse" }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], "traits": { - "smithy.api#documentation": "

Association information about the knowledge base.

" + "smithy.api#documentation": "

Lists information about import jobs.

", + "smithy.api#http": { + "uri": "/knowledgeBases/{knowledgeBaseId}/importJobs", + "method": "GET" + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "importJobSummaries" + }, + "smithy.api#readonly": {} } }, - "com.amazonaws.qconnect#KnowledgeBaseData": { + "com.amazonaws.qconnect#ListImportJobsRequest": { "type": "structure", "members": { - "knowledgeBaseId": { - "target": "com.amazonaws.qconnect#Uuid", - "traits": { - "smithy.api#documentation": "

The identifier of the knowledge base.

", - "smithy.api#required": {} - } - }, - "knowledgeBaseArn": { - "target": "com.amazonaws.qconnect#Arn", + "nextToken": { + "target": "com.amazonaws.qconnect#NonEmptyString", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the knowledge base.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

", + "smithy.api#httpQuery": "nextToken" } }, - "name": { - "target": "com.amazonaws.qconnect#Name", + "maxResults": { + "target": "com.amazonaws.qconnect#MaxResults", "traits": { - "smithy.api#documentation": "

The name of the knowledge base.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The maximum number of results to return per page.

", + "smithy.api#httpQuery": "maxResults" } }, - "knowledgeBaseType": { - "target": "com.amazonaws.qconnect#KnowledgeBaseType", + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The type of knowledge base.

", + "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#httpLabel": {}, "smithy.api#required": {} } - }, - "status": { - "target": "com.amazonaws.qconnect#KnowledgeBaseStatus", + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.qconnect#ListImportJobsResponse": { + "type": "structure", + "members": { + "importJobSummaries": { + "target": "com.amazonaws.qconnect#ImportJobList", "traits": { - "smithy.api#documentation": "

The status of the knowledge base.

", + "smithy.api#documentation": "

Summary information about the import jobs.

", "smithy.api#required": {} } }, - "lastContentModificationTime": { - "target": "smithy.api#Timestamp", - "traits": { - "smithy.api#documentation": "

An epoch timestamp indicating the most recent content modification inside the knowledge\n base. If no content exists in a knowledge base, this value is unset.

", - "smithy.api#timestampFormat": "epoch-seconds" - } - }, - "vectorIngestionConfiguration": { - "target": "com.amazonaws.qconnect#VectorIngestionConfiguration", - "traits": { - "smithy.api#documentation": "

Contains details about how to ingest the documents in a data source.

" - } - }, - "sourceConfiguration": { - "target": "com.amazonaws.qconnect#SourceConfiguration", - "traits": { - "smithy.api#documentation": "

Source configuration information about the knowledge base.

" - } - }, - "renderingConfiguration": { - "target": "com.amazonaws.qconnect#RenderingConfiguration", - "traits": { - "smithy.api#documentation": "

Information about how to render the content.

" - } - }, - "serverSideEncryptionConfiguration": { - "target": "com.amazonaws.qconnect#ServerSideEncryptionConfiguration", - "traits": { - "smithy.api#documentation": "

The configuration information for the customer managed key used for encryption.

\n

This KMS key must have a policy that allows kms:CreateGrant,\n kms:DescribeKey, kms:Decrypt, and\n kms:GenerateDataKey* permissions to the IAM identity using the\n key to invoke Amazon Q in Connect.

\n

For more information about setting up a customer managed key for Amazon Q in Connect, see Enable Amazon Q in Connect for\n your instance.

" - } - }, - "description": { - "target": "com.amazonaws.qconnect#Description", - "traits": { - "smithy.api#documentation": "

The description.

" - } - }, - "tags": { - "target": "com.amazonaws.qconnect#Tags", - "traits": { - "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" - } - }, - "ingestionStatus": { - "target": "com.amazonaws.qconnect#SyncStatus", - "traits": { - "smithy.api#documentation": "

Status of ingestion on data source.

" - } - }, - "ingestionFailureReasons": { - "target": "com.amazonaws.qconnect#FailureReason", + "nextToken": { + "target": "com.amazonaws.qconnect#NonEmptyString", "traits": { - "smithy.api#documentation": "

List of failure reasons on ingestion per file.

" + "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

" } } }, "traits": { - "smithy.api#documentation": "

Information about the knowledge base.

", - "smithy.api#references": [ - { - "resource": "com.amazonaws.qconnect#KnowledgeBase" - } - ] - } - }, - "com.amazonaws.qconnect#KnowledgeBaseList": { - "type": "list", - "member": { - "target": "com.amazonaws.qconnect#KnowledgeBaseSummary" - } - }, - "com.amazonaws.qconnect#KnowledgeBaseSearchType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "HYBRID", - "name": "HYBRID" - }, - { - "value": "SEMANTIC", - "name": "SEMANTIC" - } - ] + "smithy.api#output": {} } }, - "com.amazonaws.qconnect#KnowledgeBaseStatus": { - "type": "string", + "com.amazonaws.qconnect#ListKnowledgeBases": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#ListKnowledgeBasesRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#ListKnowledgeBasesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], "traits": { - "smithy.api#enum": [ - { - "value": "CREATE_IN_PROGRESS", - "name": "CREATE_IN_PROGRESS" - }, - { - "value": "CREATE_FAILED", - "name": "CREATE_FAILED" - }, - { - "value": "ACTIVE", - "name": "ACTIVE" - }, - { - "value": "DELETE_IN_PROGRESS", - "name": "DELETE_IN_PROGRESS" - }, - { - "value": "DELETE_FAILED", - "name": "DELETE_FAILED" - }, - { - "value": "DELETED", - "name": "DELETED" - } - ] + "smithy.api#documentation": "

Lists the knowledge bases.

", + "smithy.api#http": { + "uri": "/knowledgeBases", + "method": "GET" + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "knowledgeBaseSummaries" + }, + "smithy.api#readonly": {} } }, - "com.amazonaws.qconnect#KnowledgeBaseSummary": { + "com.amazonaws.qconnect#ListKnowledgeBasesRequest": { "type": "structure", "members": { - "knowledgeBaseId": { - "target": "com.amazonaws.qconnect#Uuid", + "nextToken": { + "target": "com.amazonaws.qconnect#NonEmptyString", "traits": { - "smithy.api#documentation": "

The identifier of the knowledge base.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

", + "smithy.api#httpQuery": "nextToken" } }, - "knowledgeBaseArn": { - "target": "com.amazonaws.qconnect#Arn", + "maxResults": { + "target": "com.amazonaws.qconnect#MaxResults", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the knowledge base.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The maximum number of results to return per page.

", + "smithy.api#httpQuery": "maxResults" } - }, - "name": { - "target": "com.amazonaws.qconnect#Name", + } + } + }, + "com.amazonaws.qconnect#ListKnowledgeBasesResponse": { + "type": "structure", + "members": { + "knowledgeBaseSummaries": { + "target": "com.amazonaws.qconnect#KnowledgeBaseList", "traits": { - "smithy.api#documentation": "

The name of the knowledge base.

", + "smithy.api#documentation": "

Information about the knowledge bases.

", "smithy.api#required": {} } }, - "knowledgeBaseType": { - "target": "com.amazonaws.qconnect#KnowledgeBaseType", + "nextToken": { + "target": "com.amazonaws.qconnect#NonEmptyString", "traits": { - "smithy.api#documentation": "

The type of knowledge base.

", - "smithy.api#required": {} + "smithy.api#documentation": "

If there are additional results, this is the token for the next set of results.

" } + } + } + }, + "com.amazonaws.qconnect#ListMessageTemplateVersions": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#ListMessageTemplateVersionsRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#ListMessageTemplateVersionsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" }, - "status": { - "target": "com.amazonaws.qconnect#KnowledgeBaseStatus", - "traits": { - "smithy.api#documentation": "

The status of the knowledge base summary.

", - "smithy.api#required": {} - } + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" }, - "sourceConfiguration": { - "target": "com.amazonaws.qconnect#SourceConfiguration", - "traits": { - "smithy.api#documentation": "

Configuration information about the external data source.

" - } + { + "target": "com.amazonaws.qconnect#ThrottlingException" }, - "vectorIngestionConfiguration": { - "target": "com.amazonaws.qconnect#VectorIngestionConfiguration", - "traits": { - "smithy.api#documentation": "

Contains details about how to ingest the documents in a data source.

" - } + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Lists all the available versions for the specified Amazon Q in Connect message\n template.

", + "smithy.api#http": { + "uri": "/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/versions", + "method": "GET" }, - "renderingConfiguration": { - "target": "com.amazonaws.qconnect#RenderingConfiguration", + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "messageTemplateVersionSummaries" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.qconnect#ListMessageTemplateVersionsRequest": { + "type": "structure", + "members": { + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

Information about how to render the content.

" + "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain\n the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } }, - "serverSideEncryptionConfiguration": { - "target": "com.amazonaws.qconnect#ServerSideEncryptionConfiguration", + "messageTemplateId": { + "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", "traits": { - "smithy.api#documentation": "

The configuration information for the customer managed key used for encryption.

\n

This KMS key must have a policy that allows kms:CreateGrant,\n kms:DescribeKey, kms:Decrypt, and\n kms:GenerateDataKey* permissions to the IAM identity using the\n key to invoke Amazon Q in Connect.

\n

For more information about setting up a customer managed key for Amazon Q in Connect, see Enable Amazon Q in Connect for\n your instance.

" + "smithy.api#documentation": "

The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } }, - "description": { - "target": "com.amazonaws.qconnect#Description", + "nextToken": { + "target": "com.amazonaws.qconnect#NextToken", "traits": { - "smithy.api#documentation": "

The description of the knowledge base.

" + "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

", + "smithy.api#httpQuery": "nextToken" } }, - "tags": { - "target": "com.amazonaws.qconnect#Tags", + "maxResults": { + "target": "com.amazonaws.qconnect#MaxResults", "traits": { - "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" + "smithy.api#documentation": "

The maximum number of results to return per page.

", + "smithy.api#httpQuery": "maxResults" } } }, "traits": { - "smithy.api#documentation": "

Summary information about the knowledge base.

", - "smithy.api#references": [ - { - "resource": "com.amazonaws.qconnect#KnowledgeBase" - } - ] + "smithy.api#input": {} } }, - "com.amazonaws.qconnect#KnowledgeBaseType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "EXTERNAL", - "name": "EXTERNAL" - }, - { - "value": "CUSTOM", - "name": "CUSTOM" - }, - { - "value": "QUICK_RESPONSES", - "name": "QUICK_RESPONSES" - }, - { - "value": "MESSAGE_TEMPLATES", - "name": "MESSAGE_TEMPLATES" - }, - { - "value": "MANAGED", - "name": "MANAGED" + "com.amazonaws.qconnect#ListMessageTemplateVersionsResponse": { + "type": "structure", + "members": { + "messageTemplateVersionSummaries": { + "target": "com.amazonaws.qconnect#MessageTemplateVersionSummaryList", + "traits": { + "smithy.api#documentation": "

Summary information about the versions of a message template.

", + "smithy.api#required": {} + } + }, + "nextToken": { + "target": "com.amazonaws.qconnect#NextToken", + "traits": { + "smithy.api#documentation": "

If there are additional results, this is the token for the next set of results.

" } - ] - } - }, - "com.amazonaws.qconnect#LanguageCode": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 2, - "max": 5 } + }, + "traits": { + "smithy.api#output": {} } }, - "com.amazonaws.qconnect#ListAIAgentVersions": { + "com.amazonaws.qconnect#ListMessageTemplates": { "type": "operation", "input": { - "target": "com.amazonaws.qconnect#ListAIAgentVersionsRequest" + "target": "com.amazonaws.qconnect#ListMessageTemplatesRequest" }, "output": { - "target": "com.amazonaws.qconnect#ListAIAgentVersionsResponse" + "target": "com.amazonaws.qconnect#ListMessageTemplatesResponse" }, "errors": [ { @@ -5930,43 +8264,112 @@ } ], "traits": { - "smithy.api#documentation": "

List AI Agent versions.

", + "smithy.api#documentation": "

Lists all the available Amazon Q in Connect message templates for the specified knowledge\n base.

", "smithy.api#http": { - "uri": "/assistants/{assistantId}/aiagents/{aiAgentId}/versions", + "uri": "/knowledgeBases/{knowledgeBaseId}/messageTemplates", "method": "GET" }, "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", "pageSize": "maxResults", - "items": "aiAgentVersionSummaries" + "items": "messageTemplateSummaries" }, "smithy.api#readonly": {} } }, - "com.amazonaws.qconnect#ListAIAgentVersionsRequest": { + "com.amazonaws.qconnect#ListMessageTemplatesRequest": { "type": "structure", "members": { - "assistantId": { + "nextToken": { + "target": "com.amazonaws.qconnect#NextToken", + "traits": { + "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

", + "smithy.api#httpQuery": "nextToken" + } + }, + "maxResults": { + "target": "com.amazonaws.qconnect#MaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of results to return per page.

", + "smithy.api#httpQuery": "maxResults" + } + }, + "knowledgeBaseId": { "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", + "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain\n the ARN.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } - }, - "aiAgentId": { - "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.qconnect#ListMessageTemplatesResponse": { + "type": "structure", + "members": { + "messageTemplateSummaries": { + "target": "com.amazonaws.qconnect#MessageTemplateSummaryList", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect AI Agent for which versions are to be\n listed.

", - "smithy.api#httpLabel": {}, + "smithy.api#documentation": "

Summary information about the message template.

", "smithy.api#required": {} } }, "nextToken": { "target": "com.amazonaws.qconnect#NextToken", "traits": { - "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous response in\n the next request to retrieve the next set of results.

", + "smithy.api#documentation": "

If there are additional results, this is the token for the next set of results.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.qconnect#ListQuickResponses": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#ListQuickResponsesRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#ListQuickResponsesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Lists information about quick response.

", + "smithy.api#http": { + "uri": "/knowledgeBases/{knowledgeBaseId}/quickResponses", + "method": "GET" + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "quickResponseSummaries" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.qconnect#ListQuickResponsesRequest": { + "type": "structure", + "members": { + "nextToken": { + "target": "com.amazonaws.qconnect#NonEmptyString", + "traits": { + "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

", "smithy.api#httpQuery": "nextToken" } }, @@ -5977,11 +8380,12 @@ "smithy.api#httpQuery": "maxResults" } }, - "origin": { - "target": "com.amazonaws.qconnect#Origin", + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn", "traits": { - "smithy.api#documentation": "

The origin of the AI Agent versions to be listed. SYSTEM for a default AI\n Agent created by Q in Connect or CUSTOMER for an AI Agent created by calling AI\n Agent creation APIs.

", - "smithy.api#httpQuery": "origin" + "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } } }, @@ -5989,20 +8393,20 @@ "smithy.api#input": {} } }, - "com.amazonaws.qconnect#ListAIAgentVersionsResponse": { + "com.amazonaws.qconnect#ListQuickResponsesResponse": { "type": "structure", "members": { - "aiAgentVersionSummaries": { - "target": "com.amazonaws.qconnect#AIAgentVersionSummariesList", + "quickResponseSummaries": { + "target": "com.amazonaws.qconnect#QuickResponseSummaryList", "traits": { - "smithy.api#documentation": "

The summaries of AI Agent versions.

", + "smithy.api#documentation": "

Summary information about the quick responses.

", "smithy.api#required": {} } }, "nextToken": { - "target": "com.amazonaws.qconnect#NextToken", + "target": "com.amazonaws.qconnect#NonEmptyString", "traits": { - "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous response in\n the next request to retrieve the next set of results.

" + "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

" } } }, @@ -6010,949 +8414,1001 @@ "smithy.api#output": {} } }, - "com.amazonaws.qconnect#ListAIAgents": { + "com.amazonaws.qconnect#ListTagsForResource": { "type": "operation", "input": { - "target": "com.amazonaws.qconnect#ListAIAgentsRequest" + "target": "com.amazonaws.qconnect#ListTagsForResourceRequest" }, "output": { - "target": "com.amazonaws.qconnect#ListAIAgentsResponse" + "target": "com.amazonaws.qconnect#ListTagsForResourceResponse" }, "errors": [ - { - "target": "com.amazonaws.qconnect#AccessDeniedException" - }, { "target": "com.amazonaws.qconnect#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.qconnect#ThrottlingException" - }, - { - "target": "com.amazonaws.qconnect#ValidationException" } ], "traits": { - "smithy.api#documentation": "

Lists AI Agents.

", + "smithy.api#documentation": "

Lists the tags for the specified resource.

", "smithy.api#http": { - "uri": "/assistants/{assistantId}/aiagents", + "uri": "/tags/{resourceArn}", "method": "GET" }, - "smithy.api#paginated": { - "inputToken": "nextToken", - "outputToken": "nextToken", - "pageSize": "maxResults", - "items": "aiAgentSummaries" - }, "smithy.api#readonly": {} } }, - "com.amazonaws.qconnect#ListAIAgentsRequest": { + "com.amazonaws.qconnect#ListTagsForResourceRequest": { "type": "structure", "members": { - "assistantId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "resourceArn": { + "target": "com.amazonaws.qconnect#Arn", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource.

", "smithy.api#httpLabel": {}, "smithy.api#required": {} } - }, - "nextToken": { - "target": "com.amazonaws.qconnect#NextToken", - "traits": { - "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous response in\n the next request to retrieve the next set of results.

", - "smithy.api#httpQuery": "nextToken" - } - }, - "maxResults": { - "target": "com.amazonaws.qconnect#MaxResults", + } + } + }, + "com.amazonaws.qconnect#ListTagsForResourceResponse": { + "type": "structure", + "members": { + "tags": { + "target": "com.amazonaws.qconnect#Tags", "traits": { - "smithy.api#documentation": "

The maximum number of results to return per page.

", - "smithy.api#httpQuery": "maxResults" + "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" } - }, - "origin": { - "target": "com.amazonaws.qconnect#Origin", + } + } + }, + "com.amazonaws.qconnect#LlmModelId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + } + } + }, + "com.amazonaws.qconnect#ManagedSourceConfiguration": { + "type": "union", + "members": { + "webCrawlerConfiguration": { + "target": "com.amazonaws.qconnect#WebCrawlerConfiguration", "traits": { - "smithy.api#documentation": "

The origin of the AI Agents to be listed. SYSTEM for a default AI Agent\n created by Q in Connect or CUSTOMER for an AI Agent created by calling AI Agent\n creation APIs.

", - "smithy.api#httpQuery": "origin" + "smithy.api#documentation": "

Configuration data for web crawler data source.

" } } }, "traits": { - "smithy.api#input": {} + "smithy.api#documentation": "

Source configuration for managed resources.

" } }, - "com.amazonaws.qconnect#ListAIAgentsResponse": { + "com.amazonaws.qconnect#ManualSearchAIAgentConfiguration": { "type": "structure", "members": { - "aiAgentSummaries": { - "target": "com.amazonaws.qconnect#AIAgentSummaryList", + "answerGenerationAIPromptId": { + "target": "com.amazonaws.qconnect#UuidWithQualifier", "traits": { - "smithy.api#documentation": "

The summaries of AI Agents.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The AI Prompt identifier for the Answer Generation prompt used by the MANUAL_SEARCH AI\n Agent.

" } }, - "nextToken": { - "target": "com.amazonaws.qconnect#NextToken", + "associationConfigurations": { + "target": "com.amazonaws.qconnect#AssociationConfigurationList", "traits": { - "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous response in\n the next request to retrieve the next set of results.

" + "smithy.api#documentation": "

The association configurations for overriding behavior on this AI Agent.

" } } }, "traits": { - "smithy.api#output": {} + "smithy.api#documentation": "

The configuration for the MANUAL_SEARCH AI Agent type.

" } }, - "com.amazonaws.qconnect#ListAIPromptVersions": { - "type": "operation", - "input": { - "target": "com.amazonaws.qconnect#ListAIPromptVersionsRequest" + "com.amazonaws.qconnect#MaxResults": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1, + "max": 100 + } + } + }, + "com.amazonaws.qconnect#MessageTemplate": { + "type": "resource", + "identifiers": { + "messageTemplateId": { + "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier" + }, + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn" + } }, - "output": { - "target": "com.amazonaws.qconnect#ListAIPromptVersionsResponse" + "create": { + "target": "com.amazonaws.qconnect#CreateMessageTemplate" }, - "errors": [ + "read": { + "target": "com.amazonaws.qconnect#GetMessageTemplate" + }, + "update": { + "target": "com.amazonaws.qconnect#UpdateMessageTemplate" + }, + "delete": { + "target": "com.amazonaws.qconnect#DeleteMessageTemplate" + }, + "list": { + "target": "com.amazonaws.qconnect#ListMessageTemplates" + }, + "operations": [ { - "target": "com.amazonaws.qconnect#AccessDeniedException" + "target": "com.amazonaws.qconnect#ActivateMessageTemplate" }, { - "target": "com.amazonaws.qconnect#ResourceNotFoundException" + "target": "com.amazonaws.qconnect#CreateMessageTemplateAttachment" }, { - "target": "com.amazonaws.qconnect#ThrottlingException" + "target": "com.amazonaws.qconnect#CreateMessageTemplateVersion" }, { - "target": "com.amazonaws.qconnect#ValidationException" + "target": "com.amazonaws.qconnect#DeactivateMessageTemplate" + }, + { + "target": "com.amazonaws.qconnect#DeleteMessageTemplateAttachment" + }, + { + "target": "com.amazonaws.qconnect#ListMessageTemplateVersions" + }, + { + "target": "com.amazonaws.qconnect#RenderMessageTemplate" + }, + { + "target": "com.amazonaws.qconnect#UpdateMessageTemplateMetadata" } ], "traits": { - "smithy.api#documentation": "

Lists AI Prompt versions.

", - "smithy.api#http": { - "uri": "/assistants/{assistantId}/aiprompts/{aiPromptId}/versions", - "method": "GET" - }, - "smithy.api#paginated": { - "inputToken": "nextToken", - "outputToken": "nextToken", - "pageSize": "maxResults", - "items": "aiPromptVersionSummaries" + "aws.api#arn": { + "template": "message-template/{knowledgeBaseId}/{messageTemplateId}" + }, + "aws.iam#disableConditionKeyInference": {} + } + }, + "com.amazonaws.qconnect#MessageTemplateAttachment": { + "type": "structure", + "members": { + "contentDisposition": { + "target": "com.amazonaws.qconnect#ContentDisposition", + "traits": { + "smithy.api#documentation": "

The presentation information for the attachment file.

", + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.qconnect#AttachmentFileName", + "traits": { + "smithy.api#documentation": "

The name of the attachment file being uploaded. The name should include the file extension.

", + "smithy.api#required": {} + } + }, + "uploadedTime": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp when the attachment file was uploaded.

", + "smithy.api#required": {}, + "smithy.api#timestampFormat": "date-time" + } + }, + "url": { + "target": "com.amazonaws.qconnect#Url", + "traits": { + "smithy.api#documentation": "

A pre-signed Amazon S3 URL that can be used to download the attachment file.

", + "smithy.api#required": {} + } + }, + "urlExpiry": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The expiration time of the pre-signed Amazon S3 URL.

", + "smithy.api#required": {}, + "smithy.api#timestampFormat": "date-time" + } + }, + "attachmentId": { + "target": "com.amazonaws.qconnect#Uuid", + "traits": { + "smithy.api#documentation": "

The identifier of the attachment file.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Information about the message template attachment.

" + } + }, + "com.amazonaws.qconnect#MessageTemplateAttachmentList": { + "type": "list", + "member": { + "target": "com.amazonaws.qconnect#MessageTemplateAttachment" + }, + "traits": { + "smithy.api#uniqueItems": {} + } + }, + "com.amazonaws.qconnect#MessageTemplateAttributeKey": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 32767 + } + } + }, + "com.amazonaws.qconnect#MessageTemplateAttributeKeyList": { + "type": "list", + "member": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeKey" + }, + "traits": { + "smithy.api#sensitive": {}, + "smithy.api#uniqueItems": {} + } + }, + "com.amazonaws.qconnect#MessageTemplateAttributeType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "SYSTEM", + "name": "SYSTEM" + }, + { + "value": "AGENT", + "name": "AGENT" + }, + { + "value": "CUSTOMER_PROFILE", + "name": "CUSTOMER_PROFILE" + }, + { + "value": "CUSTOM", + "name": "CUSTOM" + } + ] + } + }, + "com.amazonaws.qconnect#MessageTemplateAttributeTypeList": { + "type": "list", + "member": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeType" + }, + "traits": { + "smithy.api#uniqueItems": {} + } + }, + "com.amazonaws.qconnect#MessageTemplateAttributeValue": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 32767 }, - "smithy.api#readonly": {} + "smithy.api#sensitive": {} } }, - "com.amazonaws.qconnect#ListAIPromptVersionsRequest": { + "com.amazonaws.qconnect#MessageTemplateAttributes": { "type": "structure", "members": { - "assistantId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "systemAttributes": { + "target": "com.amazonaws.qconnect#SystemAttributes", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#documentation": "

The system attributes that are used with the message template.

" } }, - "aiPromptId": { - "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", + "agentAttributes": { + "target": "com.amazonaws.qconnect#AgentAttributes", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect AI prompt for which versions are to be\n listed.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#documentation": "

The agent attributes that are used with the message template.

" } }, - "nextToken": { - "target": "com.amazonaws.qconnect#NextToken", + "customerProfileAttributes": { + "target": "com.amazonaws.qconnect#CustomerProfileAttributes", "traits": { - "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous response in\n the next request to retrieve the next set of results.

", - "smithy.api#httpQuery": "nextToken" + "smithy.api#documentation": "

The customer profile attributes that are used with the message template.

" } }, - "maxResults": { - "target": "com.amazonaws.qconnect#MaxResults", + "customAttributes": { + "target": "com.amazonaws.qconnect#CustomAttributes", "traits": { - "smithy.api#documentation": "

The maximum number of results to return per page.

", - "smithy.api#httpQuery": "maxResults" + "smithy.api#documentation": "

The custom attributes that are used with the message template.

" } - }, - "origin": { - "target": "com.amazonaws.qconnect#Origin", + } + }, + "traits": { + "smithy.api#documentation": "

The attributes that are used with the message template.

" + } + }, + "com.amazonaws.qconnect#MessageTemplateBodyContentProvider": { + "type": "union", + "members": { + "content": { + "target": "com.amazonaws.qconnect#NonEmptyUnlimitedString", "traits": { - "smithy.api#documentation": "

The origin of the AI Prompt versions to be listed. SYSTEM for a default AI\n Agent created by Q in Connect or CUSTOMER for an AI Agent created by calling AI\n Agent creation APIs.

", - "smithy.api#httpQuery": "origin" + "smithy.api#documentation": "

The content of the message template.

" } } }, "traits": { - "smithy.api#input": {} + "smithy.api#documentation": "

The container of the message template body.

" } }, - "com.amazonaws.qconnect#ListAIPromptVersionsResponse": { - "type": "structure", + "com.amazonaws.qconnect#MessageTemplateContentProvider": { + "type": "union", "members": { - "aiPromptVersionSummaries": { - "target": "com.amazonaws.qconnect#AIPromptVersionSummariesList", + "email": { + "target": "com.amazonaws.qconnect#EmailMessageTemplateContent", "traits": { - "smithy.api#documentation": "

The summaries of the AI Prompt versions.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The content of the message template that applies to the email channel subtype.

" } }, - "nextToken": { - "target": "com.amazonaws.qconnect#NextToken", + "sms": { + "target": "com.amazonaws.qconnect#SMSMessageTemplateContent", "traits": { - "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous response in\n the next request to retrieve the next set of results.

" + "smithy.api#documentation": "

The content of the message template that applies to the SMS channel subtype.

" } } }, "traits": { - "smithy.api#output": {} + "smithy.api#documentation": "

The container of message template content.

" } }, - "com.amazonaws.qconnect#ListAIPrompts": { - "type": "operation", - "input": { - "target": "com.amazonaws.qconnect#ListAIPromptsRequest" - }, - "output": { - "target": "com.amazonaws.qconnect#ListAIPromptsResponse" - }, - "errors": [ - { - "target": "com.amazonaws.qconnect#AccessDeniedException" - }, - { - "target": "com.amazonaws.qconnect#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.qconnect#ThrottlingException" - }, - { - "target": "com.amazonaws.qconnect#ValidationException" - } - ], + "com.amazonaws.qconnect#MessageTemplateContentSha256": { + "type": "string", "traits": { - "smithy.api#documentation": "

Lists the AI Prompts available on the Amazon Q in Connect assistant.

", - "smithy.api#http": { - "uri": "/assistants/{assistantId}/aiprompts", - "method": "GET" - }, - "smithy.api#paginated": { - "inputToken": "nextToken", - "outputToken": "nextToken", - "pageSize": "maxResults", - "items": "aiPromptSummaries" + "smithy.api#length": { + "min": 1, + "max": 64 }, - "smithy.api#readonly": {} + "smithy.api#pattern": "^[a-zA-Z0-9]+$" } }, - "com.amazonaws.qconnect#ListAIPromptsRequest": { + "com.amazonaws.qconnect#MessageTemplateData": { "type": "structure", "members": { - "assistantId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "messageTemplateArn": { + "target": "com.amazonaws.qconnect#ArnWithQualifier", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs\n cannot contain the ARN.

", - "smithy.api#httpLabel": {}, + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the message template.

", "smithy.api#required": {} } }, - "nextToken": { - "target": "com.amazonaws.qconnect#NextToken", + "messageTemplateId": { + "target": "com.amazonaws.qconnect#Uuid", "traits": { - "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous response in\n the next request to retrieve the next set of results.

", - "smithy.api#httpQuery": "nextToken" + "smithy.api#documentation": "

The identifier of the message template.

", + "smithy.api#required": {} } }, - "maxResults": { - "target": "com.amazonaws.qconnect#MaxResults", + "knowledgeBaseArn": { + "target": "com.amazonaws.qconnect#Arn", "traits": { - "smithy.api#documentation": "

The maximum number of results to return per page.

", - "smithy.api#httpQuery": "maxResults" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the knowledge base.

", + "smithy.api#required": {} } }, - "origin": { - "target": "com.amazonaws.qconnect#Origin", + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#Uuid", "traits": { - "smithy.api#documentation": "

The origin of the AI Prompts to be listed. SYSTEM for a default AI Agent\n created by Q in Connect or CUSTOMER for an AI Agent created by calling AI Agent\n creation APIs.

", - "smithy.api#httpQuery": "origin" + "smithy.api#documentation": "

The identifier of the knowledge base.

", + "smithy.api#required": {} } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.qconnect#ListAIPromptsResponse": { - "type": "structure", - "members": { - "aiPromptSummaries": { - "target": "com.amazonaws.qconnect#AIPromptSummaryList", + }, + "name": { + "target": "com.amazonaws.qconnect#Name", "traits": { - "smithy.api#documentation": "

The summaries of the AI Prompts.

", + "smithy.api#documentation": "

The name of the message template.

", "smithy.api#required": {} } }, - "nextToken": { - "target": "com.amazonaws.qconnect#NextToken", + "channelSubtype": { + "target": "com.amazonaws.qconnect#ChannelSubtype", "traits": { - "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous response in\n the next request to retrieve the next set of results.

" + "smithy.api#documentation": "

The channel subtype this message template applies to.

", + "smithy.api#required": {} } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.qconnect#ListAssistantAssociations": { - "type": "operation", - "input": { - "target": "com.amazonaws.qconnect#ListAssistantAssociationsRequest" - }, - "output": { - "target": "com.amazonaws.qconnect#ListAssistantAssociationsResponse" - }, - "errors": [ - { - "target": "com.amazonaws.qconnect#AccessDeniedException" - }, - { - "target": "com.amazonaws.qconnect#ResourceNotFoundException" }, - { - "target": "com.amazonaws.qconnect#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Lists information about assistant associations.

", - "smithy.api#http": { - "uri": "/assistants/{assistantId}/associations", - "method": "GET" - }, - "smithy.api#paginated": { - "inputToken": "nextToken", - "outputToken": "nextToken", - "pageSize": "maxResults", - "items": "assistantAssociationSummaries" - }, - "smithy.api#readonly": {} - } - }, - "com.amazonaws.qconnect#ListAssistantAssociationsRequest": { - "type": "structure", - "members": { - "nextToken": { - "target": "com.amazonaws.qconnect#NextToken", + "createdTime": { + "target": "smithy.api#Timestamp", "traits": { - "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

", - "smithy.api#httpQuery": "nextToken" + "smithy.api#documentation": "

The timestamp when the message template was created.

", + "smithy.api#required": {}, + "smithy.api#timestampFormat": "date-time" } }, - "maxResults": { - "target": "com.amazonaws.qconnect#MaxResults", + "lastModifiedTime": { + "target": "smithy.api#Timestamp", "traits": { - "smithy.api#documentation": "

The maximum number of results to return per page.

", - "smithy.api#httpQuery": "maxResults" + "smithy.api#documentation": "

The timestamp when the message template data was last modified.

", + "smithy.api#required": {}, + "smithy.api#timestampFormat": "date-time" } }, - "assistantId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "lastModifiedBy": { + "target": "com.amazonaws.qconnect#GenericArn", "traits": { - "smithy.api#documentation": "

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "smithy.api#httpLabel": {}, + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the user who last updated the message template\n data.

", "smithy.api#required": {} } - } - } - }, - "com.amazonaws.qconnect#ListAssistantAssociationsResponse": { - "type": "structure", - "members": { - "assistantAssociationSummaries": { - "target": "com.amazonaws.qconnect#AssistantAssociationSummaryList", + }, + "content": { + "target": "com.amazonaws.qconnect#MessageTemplateContentProvider", "traits": { - "smithy.api#documentation": "

Summary information about assistant associations.

", + "smithy.api#documentation": "

The content of the message template.

", "smithy.api#required": {} } }, - "nextToken": { - "target": "com.amazonaws.qconnect#NextToken", + "description": { + "target": "com.amazonaws.qconnect#Description", "traits": { - "smithy.api#documentation": "

If there are additional results, this is the token for the next set of results.

" + "smithy.api#documentation": "

The description of the message template.

" } - } - } - }, - "com.amazonaws.qconnect#ListAssistants": { - "type": "operation", - "input": { - "target": "com.amazonaws.qconnect#ListAssistantsRequest" - }, - "output": { - "target": "com.amazonaws.qconnect#ListAssistantsResponse" - }, - "errors": [ - { - "target": "com.amazonaws.qconnect#AccessDeniedException" }, - { - "target": "com.amazonaws.qconnect#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Lists information about assistants.

", - "smithy.api#http": { - "uri": "/assistants", - "method": "GET" + "language": { + "target": "com.amazonaws.qconnect#LanguageCode", + "traits": { + "smithy.api#documentation": "

The language code value for the language in which the quick response is written. The supported language codes include de_DE, en_US, es_ES,\n fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR,\n zh_CN, zh_TW\n

" + } }, - "smithy.api#paginated": { - "inputToken": "nextToken", - "outputToken": "nextToken", - "pageSize": "maxResults", - "items": "assistantSummaries" + "groupingConfiguration": { + "target": "com.amazonaws.qconnect#GroupingConfiguration" + }, + "defaultAttributes": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributes", + "traits": { + "smithy.api#documentation": "

An object that specifies the default values to use for variables in the message template.\n This object contains different categories of key-value pairs. Each key defines a variable or\n placeholder in the message template. The corresponding value defines the default value for\n that variable.

" + } + }, + "attributeTypes": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeTypeList", + "traits": { + "smithy.api#documentation": "

The types of attributes that the message template contains.

" + } }, - "smithy.api#readonly": {} - } - }, - "com.amazonaws.qconnect#ListAssistantsRequest": { - "type": "structure", - "members": { - "nextToken": { - "target": "com.amazonaws.qconnect#NextToken", + "messageTemplateContentSha256": { + "target": "com.amazonaws.qconnect#MessageTemplateContentSha256", "traits": { - "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

", - "smithy.api#httpQuery": "nextToken" + "smithy.api#documentation": "

The checksum value of the message template content that is referenced by the\n $LATEST qualifier. It can be returned in MessageTemplateData or\n ExtendedMessageTemplateData. It’s calculated by content, language,\n defaultAttributes and Attachments of the message template.

", + "smithy.api#required": {} } }, - "maxResults": { - "target": "com.amazonaws.qconnect#MaxResults", + "tags": { + "target": "com.amazonaws.qconnect#Tags", "traits": { - "smithy.api#documentation": "

The maximum number of results to return per page.

", - "smithy.api#httpQuery": "maxResults" + "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" } } + }, + "traits": { + "smithy.api#documentation": "

The data of a message template.

", + "smithy.api#references": [ + { + "resource": "com.amazonaws.qconnect#MessageTemplate" + }, + { + "resource": "com.amazonaws.qconnect#KnowledgeBase" + } + ] } }, - "com.amazonaws.qconnect#ListAssistantsResponse": { + "com.amazonaws.qconnect#MessageTemplateFilterField": { "type": "structure", "members": { - "assistantSummaries": { - "target": "com.amazonaws.qconnect#AssistantList", + "name": { + "target": "com.amazonaws.qconnect#NonEmptyString", "traits": { - "smithy.api#documentation": "

Information about the assistants.

", + "smithy.api#documentation": "

The name of the attribute field to filter the message templates by.

", "smithy.api#required": {} } }, - "nextToken": { - "target": "com.amazonaws.qconnect#NextToken", + "values": { + "target": "com.amazonaws.qconnect#MessageTemplateFilterValueList", "traits": { - "smithy.api#documentation": "

If there are additional results, this is the token for the next set of results.

" + "smithy.api#documentation": "

The values of attribute field to filter the message template by.

" + } + }, + "operator": { + "target": "com.amazonaws.qconnect#MessageTemplateFilterOperator", + "traits": { + "smithy.api#documentation": "

The operator to use for filtering.

", + "smithy.api#required": {} + } + }, + "includeNoExistence": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Whether to treat null value as a match for the attribute field.

" } } + }, + "traits": { + "smithy.api#documentation": "

The message template fields to filter the message template query results by. The following\n is the list of supported field names:

\n " } }, - "com.amazonaws.qconnect#ListContentAssociations": { - "type": "operation", - "input": { - "target": "com.amazonaws.qconnect#ListContentAssociationsRequest" - }, - "output": { - "target": "com.amazonaws.qconnect#ListContentAssociationsResponse" + "com.amazonaws.qconnect#MessageTemplateFilterFieldList": { + "type": "list", + "member": { + "target": "com.amazonaws.qconnect#MessageTemplateFilterField" }, - "errors": [ - { - "target": "com.amazonaws.qconnect#AccessDeniedException" - }, - { - "target": "com.amazonaws.qconnect#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.qconnect#ValidationException" + "traits": { + "smithy.api#length": { + "min": 0, + "max": 10 } - ], + } + }, + "com.amazonaws.qconnect#MessageTemplateFilterOperator": { + "type": "string", "traits": { - "smithy.api#documentation": "

Lists the content associations.

\n

For more information about content associations--what they are and when they are used--see\n Integrate Amazon Q in Connect with step-by-step guides in the Amazon Connect\n Administrator Guide.

", - "smithy.api#http": { - "uri": "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/associations", - "method": "GET" - }, - "smithy.api#paginated": { - "inputToken": "nextToken", - "outputToken": "nextToken", - "pageSize": "maxResults", - "items": "contentAssociationSummaries" + "smithy.api#enum": [ + { + "value": "EQUALS", + "name": "EQUALS" + }, + { + "value": "PREFIX", + "name": "PREFIX" + } + ] + } + }, + "com.amazonaws.qconnect#MessageTemplateFilterValue": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + } + } + }, + "com.amazonaws.qconnect#MessageTemplateFilterValueList": { + "type": "list", + "member": { + "target": "com.amazonaws.qconnect#MessageTemplateFilterValue" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 5 }, - "smithy.api#readonly": {} + "smithy.api#uniqueItems": {} } }, - "com.amazonaws.qconnect#ListContentAssociationsRequest": { + "com.amazonaws.qconnect#MessageTemplateOrderField": { "type": "structure", "members": { - "nextToken": { - "target": "com.amazonaws.qconnect#NextToken", - "traits": { - "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

", - "smithy.api#httpQuery": "nextToken" - } - }, - "maxResults": { - "target": "com.amazonaws.qconnect#MaxResults", - "traits": { - "smithy.api#documentation": "

The maximum number of results to return per page.

", - "smithy.api#httpQuery": "maxResults" - } - }, - "knowledgeBaseId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "name": { + "target": "com.amazonaws.qconnect#NonEmptyString", "traits": { - "smithy.api#documentation": "

The identifier of the knowledge base.

", - "smithy.api#httpLabel": {}, + "smithy.api#documentation": "

The name of the message template.

", "smithy.api#required": {} } }, - "contentId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "order": { + "target": "com.amazonaws.qconnect#Order", "traits": { - "smithy.api#documentation": "

The identifier of the content.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#documentation": "

The order at which the message templates are sorted by.

" } } }, "traits": { - "smithy.api#input": {} + "smithy.api#documentation": "

The message template fields to order the message template query results by. The following\n is the list of supported field names:

\n " } }, - "com.amazonaws.qconnect#ListContentAssociationsResponse": { + "com.amazonaws.qconnect#MessageTemplateQueryField": { "type": "structure", "members": { - "contentAssociationSummaries": { - "target": "com.amazonaws.qconnect#ContentAssociationSummaryList", + "name": { + "target": "com.amazonaws.qconnect#NonEmptyString", "traits": { - "smithy.api#documentation": "

Summary information about content associations.

", + "smithy.api#documentation": "

The name of the attribute to query the message templates by.

", "smithy.api#required": {} } }, - "nextToken": { - "target": "com.amazonaws.qconnect#NextToken", + "values": { + "target": "com.amazonaws.qconnect#MessageTemplateQueryValueList", "traits": { - "smithy.api#documentation": "

If there are additional results, this is the token for the next set of results.

" + "smithy.api#documentation": "

The values of the attribute to query the message templates by.

", + "smithy.api#required": {} + } + }, + "operator": { + "target": "com.amazonaws.qconnect#MessageTemplateQueryOperator", + "traits": { + "smithy.api#documentation": "

The operator to use for matching attribute field values in the query.

", + "smithy.api#required": {} + } + }, + "allowFuzziness": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Whether the query expects only exact matches on the attribute field values. The results of\n the query will only include exact matches if this parameter is set to false.

" + } + }, + "priority": { + "target": "com.amazonaws.qconnect#Priority", + "traits": { + "smithy.api#documentation": "

The importance of the attribute field when calculating query result relevancy scores. The\n value set for this parameter affects the ordering of search results.

" } } }, "traits": { - "smithy.api#output": {} + "smithy.api#documentation": "

The message template fields to query message templates by. The following is the list of\n supported field names:

\n " } }, - "com.amazonaws.qconnect#ListContents": { - "type": "operation", - "input": { - "target": "com.amazonaws.qconnect#ListContentsRequest" + "com.amazonaws.qconnect#MessageTemplateQueryFieldList": { + "type": "list", + "member": { + "target": "com.amazonaws.qconnect#MessageTemplateQueryField" }, - "output": { - "target": "com.amazonaws.qconnect#ListContentsResponse" + "traits": { + "smithy.api#length": { + "min": 0, + "max": 4 + } + } + }, + "com.amazonaws.qconnect#MessageTemplateQueryOperator": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "CONTAINS", + "name": "CONTAINS" + }, + { + "value": "CONTAINS_AND_PREFIX", + "name": "CONTAINS_AND_PREFIX" + } + ] + } + }, + "com.amazonaws.qconnect#MessageTemplateQueryValue": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1024 + } + } + }, + "com.amazonaws.qconnect#MessageTemplateQueryValueList": { + "type": "list", + "member": { + "target": "com.amazonaws.qconnect#MessageTemplateQueryValue" }, - "errors": [ - { - "target": "com.amazonaws.qconnect#AccessDeniedException" + "traits": { + "smithy.api#length": { + "min": 1, + "max": 5 }, - { - "target": "com.amazonaws.qconnect#ResourceNotFoundException" + "smithy.api#uniqueItems": {} + } + }, + "com.amazonaws.qconnect#MessageTemplateSearchExpression": { + "type": "structure", + "members": { + "queries": { + "target": "com.amazonaws.qconnect#MessageTemplateQueryFieldList", + "traits": { + "smithy.api#documentation": "

The message template query expressions.

" + } }, - { - "target": "com.amazonaws.qconnect#ValidationException" + "filters": { + "target": "com.amazonaws.qconnect#MessageTemplateFilterFieldList", + "traits": { + "smithy.api#documentation": "

The configuration of filtering rules applied to message template query results.

" + } + }, + "orderOnField": { + "target": "com.amazonaws.qconnect#MessageTemplateOrderField", + "traits": { + "smithy.api#documentation": "

The message template attribute fields on which the query results are ordered.

" + } } - ], + }, "traits": { - "smithy.api#documentation": "

Lists the content.

", - "smithy.api#http": { - "uri": "/knowledgeBases/{knowledgeBaseId}/contents", - "method": "GET" - }, - "smithy.api#paginated": { - "inputToken": "nextToken", - "outputToken": "nextToken", - "pageSize": "maxResults", - "items": "contentSummaries" - }, - "smithy.api#readonly": {} + "smithy.api#documentation": "

The search expression of the message template.

" } }, - "com.amazonaws.qconnect#ListContentsRequest": { + "com.amazonaws.qconnect#MessageTemplateSearchResultData": { "type": "structure", "members": { - "nextToken": { - "target": "com.amazonaws.qconnect#NextToken", + "messageTemplateArn": { + "target": "com.amazonaws.qconnect#ArnWithQualifier", "traits": { - "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

", - "smithy.api#httpQuery": "nextToken" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the message template.

", + "smithy.api#required": {} } }, - "maxResults": { - "target": "com.amazonaws.qconnect#MaxResults", + "messageTemplateId": { + "target": "com.amazonaws.qconnect#Uuid", "traits": { - "smithy.api#documentation": "

The maximum number of results to return per page.

", - "smithy.api#httpQuery": "maxResults" + "smithy.api#documentation": "

The identifier of the message template.

", + "smithy.api#required": {} + } + }, + "knowledgeBaseArn": { + "target": "com.amazonaws.qconnect#Arn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the knowledge base.

", + "smithy.api#required": {} } }, "knowledgeBaseId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "target": "com.amazonaws.qconnect#Uuid", "traits": { - "smithy.api#documentation": "

The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "smithy.api#httpLabel": {}, + "smithy.api#documentation": "

The identifier of the knowledge base.

", "smithy.api#required": {} } - } - } - }, - "com.amazonaws.qconnect#ListContentsResponse": { - "type": "structure", - "members": { - "contentSummaries": { - "target": "com.amazonaws.qconnect#ContentSummaryList", + }, + "name": { + "target": "com.amazonaws.qconnect#Name", "traits": { - "smithy.api#documentation": "

Information about the content.

", + "smithy.api#documentation": "

The name of the message template.

", "smithy.api#required": {} } }, - "nextToken": { - "target": "com.amazonaws.qconnect#NextToken", + "channelSubtype": { + "target": "com.amazonaws.qconnect#ChannelSubtype", "traits": { - "smithy.api#documentation": "

If there are additional results, this is the token for the next set of results.

" + "smithy.api#documentation": "

The channel subtype this message template applies to.

", + "smithy.api#required": {} } - } - } - }, - "com.amazonaws.qconnect#ListImportJobs": { - "type": "operation", - "input": { - "target": "com.amazonaws.qconnect#ListImportJobsRequest" - }, - "output": { - "target": "com.amazonaws.qconnect#ListImportJobsResponse" - }, - "errors": [ - { - "target": "com.amazonaws.qconnect#AccessDeniedException" }, - { - "target": "com.amazonaws.qconnect#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Lists information about import jobs.

", - "smithy.api#http": { - "uri": "/knowledgeBases/{knowledgeBaseId}/importJobs", - "method": "GET" + "createdTime": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp when the message template was created.

", + "smithy.api#required": {}, + "smithy.api#timestampFormat": "date-time" + } }, - "smithy.api#paginated": { - "inputToken": "nextToken", - "outputToken": "nextToken", - "pageSize": "maxResults", - "items": "importJobSummaries" + "lastModifiedTime": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp when the message template data was last modified.

", + "smithy.api#required": {}, + "smithy.api#timestampFormat": "date-time" + } }, - "smithy.api#readonly": {} - } - }, - "com.amazonaws.qconnect#ListImportJobsRequest": { - "type": "structure", - "members": { - "nextToken": { - "target": "com.amazonaws.qconnect#NonEmptyString", + "lastModifiedBy": { + "target": "com.amazonaws.qconnect#GenericArn", "traits": { - "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

", - "smithy.api#httpQuery": "nextToken" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the user who last updated the message template\n data.

", + "smithy.api#required": {} } }, - "maxResults": { - "target": "com.amazonaws.qconnect#MaxResults", + "isActive": { + "target": "smithy.api#Boolean", "traits": { - "smithy.api#documentation": "

The maximum number of results to return per page.

", - "smithy.api#httpQuery": "maxResults" + "smithy.api#documentation": "

Whether the version of the message template is activated.

" } }, - "knowledgeBaseId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "versionNumber": { + "target": "com.amazonaws.qconnect#Version", "traits": { - "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#documentation": "

The version number of the message template version.

" } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.qconnect#ListImportJobsResponse": { - "type": "structure", - "members": { - "importJobSummaries": { - "target": "com.amazonaws.qconnect#ImportJobList", + }, + "description": { + "target": "com.amazonaws.qconnect#Description", "traits": { - "smithy.api#documentation": "

Summary information about the import jobs.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The description of the message template.

" } }, - "nextToken": { - "target": "com.amazonaws.qconnect#NonEmptyString", + "groupingConfiguration": { + "target": "com.amazonaws.qconnect#GroupingConfiguration" + }, + "language": { + "target": "com.amazonaws.qconnect#LanguageCode", "traits": { - "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

" + "smithy.api#documentation": "

The language code value for the language in which the quick response is written. The supported language codes include de_DE, en_US, es_ES,\n fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR,\n zh_CN, zh_TW\n

" + } + }, + "tags": { + "target": "com.amazonaws.qconnect#Tags", + "traits": { + "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" } } }, "traits": { - "smithy.api#output": {} + "smithy.api#documentation": "

The result of message template search.

", + "smithy.api#references": [ + { + "resource": "com.amazonaws.qconnect#MessageTemplate" + }, + { + "resource": "com.amazonaws.qconnect#KnowledgeBase" + } + ] } }, - "com.amazonaws.qconnect#ListKnowledgeBases": { - "type": "operation", - "input": { - "target": "com.amazonaws.qconnect#ListKnowledgeBasesRequest" - }, - "output": { - "target": "com.amazonaws.qconnect#ListKnowledgeBasesResponse" - }, - "errors": [ - { - "target": "com.amazonaws.qconnect#AccessDeniedException" - }, - { - "target": "com.amazonaws.qconnect#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Lists the knowledge bases.

", - "smithy.api#http": { - "uri": "/knowledgeBases", - "method": "GET" - }, - "smithy.api#paginated": { - "inputToken": "nextToken", - "outputToken": "nextToken", - "pageSize": "maxResults", - "items": "knowledgeBaseSummaries" - }, - "smithy.api#readonly": {} + "com.amazonaws.qconnect#MessageTemplateSearchResultsList": { + "type": "list", + "member": { + "target": "com.amazonaws.qconnect#MessageTemplateSearchResultData" } }, - "com.amazonaws.qconnect#ListKnowledgeBasesRequest": { + "com.amazonaws.qconnect#MessageTemplateSummary": { "type": "structure", "members": { - "nextToken": { - "target": "com.amazonaws.qconnect#NonEmptyString", + "messageTemplateArn": { + "target": "com.amazonaws.qconnect#ArnWithQualifier", "traits": { - "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

", - "smithy.api#httpQuery": "nextToken" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the message template.

", + "smithy.api#required": {} } }, - "maxResults": { - "target": "com.amazonaws.qconnect#MaxResults", + "messageTemplateId": { + "target": "com.amazonaws.qconnect#Uuid", "traits": { - "smithy.api#documentation": "

The maximum number of results to return per page.

", - "smithy.api#httpQuery": "maxResults" + "smithy.api#documentation": "

The identifier of the message template.

", + "smithy.api#required": {} } - } - } - }, - "com.amazonaws.qconnect#ListKnowledgeBasesResponse": { - "type": "structure", - "members": { - "knowledgeBaseSummaries": { - "target": "com.amazonaws.qconnect#KnowledgeBaseList", + }, + "knowledgeBaseArn": { + "target": "com.amazonaws.qconnect#Arn", "traits": { - "smithy.api#documentation": "

Information about the knowledge bases.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the knowledge base.

", "smithy.api#required": {} } }, - "nextToken": { - "target": "com.amazonaws.qconnect#NonEmptyString", + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#Uuid", "traits": { - "smithy.api#documentation": "

If there are additional results, this is the token for the next set of results.

" + "smithy.api#documentation": "

The identifier of the knowledge base.

", + "smithy.api#required": {} } - } - } - }, - "com.amazonaws.qconnect#ListQuickResponses": { - "type": "operation", - "input": { - "target": "com.amazonaws.qconnect#ListQuickResponsesRequest" - }, - "output": { - "target": "com.amazonaws.qconnect#ListQuickResponsesResponse" - }, - "errors": [ - { - "target": "com.amazonaws.qconnect#AccessDeniedException" }, - { - "target": "com.amazonaws.qconnect#ResourceNotFoundException" + "name": { + "target": "com.amazonaws.qconnect#Name", + "traits": { + "smithy.api#documentation": "

The name of the message template.

", + "smithy.api#required": {} + } }, - { - "target": "com.amazonaws.qconnect#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "

Lists information about quick response.

", - "smithy.api#http": { - "uri": "/knowledgeBases/{knowledgeBaseId}/quickResponses", - "method": "GET" + "channelSubtype": { + "target": "com.amazonaws.qconnect#ChannelSubtype", + "traits": { + "smithy.api#documentation": "

The channel subtype this message template applies to.

", + "smithy.api#required": {} + } }, - "smithy.api#paginated": { - "inputToken": "nextToken", - "outputToken": "nextToken", - "pageSize": "maxResults", - "items": "quickResponseSummaries" + "createdTime": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp when the message template was created.

", + "smithy.api#required": {}, + "smithy.api#timestampFormat": "date-time" + } + }, + "lastModifiedTime": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp when the message template data was last modified.

", + "smithy.api#required": {}, + "smithy.api#timestampFormat": "date-time" + } + }, + "lastModifiedBy": { + "target": "com.amazonaws.qconnect#GenericArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the user who last updated the message template\n data.

", + "smithy.api#required": {} + } }, - "smithy.api#readonly": {} - } - }, - "com.amazonaws.qconnect#ListQuickResponsesRequest": { - "type": "structure", - "members": { - "nextToken": { - "target": "com.amazonaws.qconnect#NonEmptyString", + "activeVersionNumber": { + "target": "com.amazonaws.qconnect#Version", "traits": { - "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

", - "smithy.api#httpQuery": "nextToken" + "smithy.api#documentation": "

The version number of the message template version that is activated.

" } }, - "maxResults": { - "target": "com.amazonaws.qconnect#MaxResults", + "description": { + "target": "com.amazonaws.qconnect#Description", "traits": { - "smithy.api#documentation": "

The maximum number of results to return per page.

", - "smithy.api#httpQuery": "maxResults" + "smithy.api#documentation": "

The description of the message template.

" } }, - "knowledgeBaseId": { - "target": "com.amazonaws.qconnect#UuidOrArn", + "tags": { + "target": "com.amazonaws.qconnect#Tags", "traits": { - "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" } } }, "traits": { - "smithy.api#input": {} + "smithy.api#documentation": "

The summary of the message template.

", + "smithy.api#references": [ + { + "resource": "com.amazonaws.qconnect#MessageTemplate" + }, + { + "resource": "com.amazonaws.qconnect#KnowledgeBase" + } + ] } }, - "com.amazonaws.qconnect#ListQuickResponsesResponse": { + "com.amazonaws.qconnect#MessageTemplateSummaryList": { + "type": "list", + "member": { + "target": "com.amazonaws.qconnect#MessageTemplateSummary" + } + }, + "com.amazonaws.qconnect#MessageTemplateVersionSummary": { "type": "structure", "members": { - "quickResponseSummaries": { - "target": "com.amazonaws.qconnect#QuickResponseSummaryList", + "messageTemplateArn": { + "target": "com.amazonaws.qconnect#ArnWithQualifier", "traits": { - "smithy.api#documentation": "

Summary information about the quick responses.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the message template.

", "smithy.api#required": {} } }, - "nextToken": { - "target": "com.amazonaws.qconnect#NonEmptyString", + "messageTemplateId": { + "target": "com.amazonaws.qconnect#Uuid", "traits": { - "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

" + "smithy.api#documentation": "

The identifier of the message template.

", + "smithy.api#required": {} } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.qconnect#ListTagsForResource": { - "type": "operation", - "input": { - "target": "com.amazonaws.qconnect#ListTagsForResourceRequest" - }, - "output": { - "target": "com.amazonaws.qconnect#ListTagsForResourceResponse" - }, - "errors": [ - { - "target": "com.amazonaws.qconnect#ResourceNotFoundException" - } - ], - "traits": { - "smithy.api#documentation": "

Lists the tags for the specified resource.

", - "smithy.api#http": { - "uri": "/tags/{resourceArn}", - "method": "GET" }, - "smithy.api#readonly": {} - } - }, - "com.amazonaws.qconnect#ListTagsForResourceRequest": { - "type": "structure", - "members": { - "resourceArn": { + "knowledgeBaseArn": { "target": "com.amazonaws.qconnect#Arn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource.

", - "smithy.api#httpLabel": {}, + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the knowledge base.

", "smithy.api#required": {} } - } - } - }, - "com.amazonaws.qconnect#ListTagsForResourceResponse": { - "type": "structure", - "members": { - "tags": { - "target": "com.amazonaws.qconnect#Tags", + }, + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#Uuid", "traits": { - "smithy.api#documentation": "

The tags used to organize, track, or control access for this resource.

" + "smithy.api#documentation": "

The identifier of the knowledge base.

", + "smithy.api#required": {} } - } - } - }, - "com.amazonaws.qconnect#LlmModelId": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 128 - } - } - }, - "com.amazonaws.qconnect#ManagedSourceConfiguration": { - "type": "union", - "members": { - "webCrawlerConfiguration": { - "target": "com.amazonaws.qconnect#WebCrawlerConfiguration", + }, + "name": { + "target": "com.amazonaws.qconnect#Name", "traits": { - "smithy.api#documentation": "

Configuration data for web crawler data source.

" + "smithy.api#documentation": "

The name of the message template.

", + "smithy.api#required": {} } - } - }, - "traits": { - "smithy.api#documentation": "

Source configuration for managed resources.

" - } - }, - "com.amazonaws.qconnect#ManualSearchAIAgentConfiguration": { - "type": "structure", - "members": { - "answerGenerationAIPromptId": { - "target": "com.amazonaws.qconnect#UuidWithQualifier", + }, + "channelSubtype": { + "target": "com.amazonaws.qconnect#ChannelSubtype", "traits": { - "smithy.api#documentation": "

The AI Prompt identifier for the Answer Generation prompt used by the MANUAL_SEARCH AI\n Agent.

" + "smithy.api#documentation": "

The channel subtype this message template applies to.

", + "smithy.api#required": {} } }, - "associationConfigurations": { - "target": "com.amazonaws.qconnect#AssociationConfigurationList", + "isActive": { + "target": "smithy.api#Boolean", "traits": { - "smithy.api#documentation": "

The association configurations for overriding behavior on this AI Agent.

" + "smithy.api#documentation": "

Whether the version of the message template is activated.

", + "smithy.api#required": {} + } + }, + "versionNumber": { + "target": "com.amazonaws.qconnect#Version", + "traits": { + "smithy.api#documentation": "

The version number of the message template version.

", + "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

The configuration for the MANUAL_SEARCH AI Agent type.

" + "smithy.api#documentation": "

The summary of the message template version.

" } }, - "com.amazonaws.qconnect#MaxResults": { - "type": "integer", - "traits": { - "smithy.api#range": { - "min": 1, - "max": 100 - } + "com.amazonaws.qconnect#MessageTemplateVersionSummaryList": { + "type": "list", + "member": { + "target": "com.amazonaws.qconnect#MessageTemplateVersionSummary" } }, "com.amazonaws.qconnect#Name": { @@ -6993,6 +9449,15 @@ } } }, + "com.amazonaws.qconnect#NonEmptyUnlimitedString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1 + }, + "smithy.api#sensitive": {} + } + }, "com.amazonaws.qconnect#NotifyRecommendationsReceived": { "type": "operation", "input": { @@ -7818,7 +10283,7 @@ "language": { "target": "com.amazonaws.qconnect#LanguageCode", "traits": { - "smithy.api#documentation": "

The language code value for the language in which the quick response is written.

" + "smithy.api#documentation": "

The language code value for the language in which the quick response is written. The supported language codes include de_DE, en_US, es_ES,\n fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR,\n zh_CN, zh_TW\n

" } }, "tags": { @@ -8789,6 +11254,94 @@ "type": "structure", "members": {} }, + "com.amazonaws.qconnect#RenderMessageTemplate": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#RenderMessageTemplateRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#RenderMessageTemplateResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ThrottlingException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Renders the Amazon Q in Connect message template based on the attribute values provided\n and generates the message content. For any variable present in the message template, if the\n attribute value is neither provided in the attribute request parameter nor the default\n attribute of the message template, the rendered message content will keep the variable\n placeholder as it is and return the attribute keys that are missing.

", + "smithy.api#http": { + "uri": "/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/render", + "method": "POST" + } + } + }, + "com.amazonaws.qconnect#RenderMessageTemplateRequest": { + "type": "structure", + "members": { + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain\n the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "messageTemplateId": { + "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", + "traits": { + "smithy.api#documentation": "

The identifier of the message template. Can be either the ID or the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "attributes": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributes", + "traits": { + "smithy.api#documentation": "

An object that specifies the values to use for variables in the message template. This\n object contains different categories of key-value pairs. Each key defines a variable or\n placeholder in the message template. The corresponding value defines the value for that\n variable.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.qconnect#RenderMessageTemplateResponse": { + "type": "structure", + "members": { + "content": { + "target": "com.amazonaws.qconnect#MessageTemplateContentProvider", + "traits": { + "smithy.api#documentation": "

The content of the message template.

", + "smithy.api#required": {} + } + }, + "attributesNotInterpolated": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeKeyList", + "traits": { + "smithy.api#documentation": "

The attribute keys that are not resolved.

" + } + }, + "attachments": { + "target": "com.amazonaws.qconnect#MessageTemplateAttachmentList", + "traits": { + "smithy.api#documentation": "

The message template attachments.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.qconnect#RenderingConfiguration": { "type": "structure", "members": { @@ -8913,15 +11466,43 @@ "com.amazonaws.qconnect#RuntimeSessionDataValue": { "type": "union", "members": { - "stringValue": { - "target": "com.amazonaws.qconnect#NonEmptySensitiveString", + "stringValue": { + "target": "com.amazonaws.qconnect#NonEmptySensitiveString", + "traits": { + "smithy.api#documentation": "

The string value of the data stored on the session.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A union type that specifies the data stored on the session.

" + } + }, + "com.amazonaws.qconnect#SMSMessageTemplateContent": { + "type": "structure", + "members": { + "body": { + "target": "com.amazonaws.qconnect#SMSMessageTemplateContentBody", + "traits": { + "smithy.api#documentation": "

The body to use in SMS messages.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The content of the message template that applies to the SMS channel subtype.

" + } + }, + "com.amazonaws.qconnect#SMSMessageTemplateContentBody": { + "type": "structure", + "members": { + "plainText": { + "target": "com.amazonaws.qconnect#MessageTemplateBodyContentProvider", "traits": { - "smithy.api#documentation": "

The string value of the data stored on the session.

" + "smithy.api#documentation": "

The message body to use in SMS messages.

" } } }, "traits": { - "smithy.api#documentation": "

A union type that specifies the data stored on the session.

" + "smithy.api#documentation": "

The body to use in SMS messages.

" } }, "com.amazonaws.qconnect#SearchContent": { @@ -9025,6 +11606,101 @@ "smithy.api#documentation": "

The search expression.

" } }, + "com.amazonaws.qconnect#SearchMessageTemplates": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#SearchMessageTemplatesRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#SearchMessageTemplatesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ThrottlingException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Searches for Amazon Q in Connect message templates in the specified knowledge base.

", + "smithy.api#http": { + "uri": "/knowledgeBases/{knowledgeBaseId}/search/messageTemplates", + "method": "POST" + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "results" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.qconnect#SearchMessageTemplatesRequest": { + "type": "structure", + "members": { + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain\n the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "searchExpression": { + "target": "com.amazonaws.qconnect#MessageTemplateSearchExpression", + "traits": { + "smithy.api#documentation": "

The search expression for querying the message template.

", + "smithy.api#required": {} + } + }, + "nextToken": { + "target": "com.amazonaws.qconnect#NextToken", + "traits": { + "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

", + "smithy.api#httpQuery": "nextToken" + } + }, + "maxResults": { + "target": "com.amazonaws.qconnect#MaxResults", + "traits": { + "smithy.api#documentation": "

The maximum number of results to return per page.

", + "smithy.api#httpQuery": "maxResults" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.qconnect#SearchMessageTemplatesResponse": { + "type": "structure", + "members": { + "results": { + "target": "com.amazonaws.qconnect#MessageTemplateSearchResultsList", + "traits": { + "smithy.api#documentation": "

The results of the message template search.

", + "smithy.api#required": {} + } + }, + "nextToken": { + "target": "com.amazonaws.qconnect#NextToken", + "traits": { + "smithy.api#documentation": "

If there are additional results, this is the token for the next set of results.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.qconnect#SearchQuickResponses": { "type": "operation", "input": { @@ -9531,7 +12207,7 @@ "citationSpan": { "target": "com.amazonaws.qconnect#CitationSpan", "traits": { - "smithy.api#documentation": "

Contains information about where the text with a citation begins and ends in the generated output.

" + "smithy.api#documentation": "

Contains information about where the text with a citation begins and ends in the generated\n output.

" } } }, @@ -9788,6 +12464,46 @@ ] } }, + "com.amazonaws.qconnect#SystemAttributes": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The name of the task.

" + } + }, + "customerEndpoint": { + "target": "com.amazonaws.qconnect#SystemEndpointAttributes", + "traits": { + "smithy.api#documentation": "

The CustomerEndpoint attribute.

" + } + }, + "systemEndpoint": { + "target": "com.amazonaws.qconnect#SystemEndpointAttributes", + "traits": { + "smithy.api#documentation": "

The SystemEndpoint attribute.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The system attributes that are used with the message template.

" + } + }, + "com.amazonaws.qconnect#SystemEndpointAttributes": { + "type": "structure", + "members": { + "address": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributeValue", + "traits": { + "smithy.api#documentation": "

The customer's phone number if used with customerEndpoint, or the number the customer\n dialed to call your contact center if used with systemEndpoint.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The system endpoint attributes that are used with the message template.

" + } + }, "com.amazonaws.qconnect#TagCondition": { "type": "structure", "members": { @@ -10108,7 +12824,7 @@ "clientToken": { "target": "com.amazonaws.qconnect#ClientToken", "traits": { - "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the AWS SDK populates this field. For more information about\n idempotency, see Making retries safe with idempotent APIs.

", + "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the Amazon Web Services\n SDK populates this field. For more information about idempotency, see\n Making retries safe with idempotent APIs..

", "smithy.api#idempotencyToken": {} } }, @@ -10206,7 +12922,7 @@ "clientToken": { "target": "com.amazonaws.qconnect#ClientToken", "traits": { - "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the AWS SDK populates this field. For more information about\n idempotency, see Making retries safe with idempotent APIs.

", + "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. If not provided, the Amazon Web Services\n SDK populates this field. For more information about idempotency, see\n Making retries safe with idempotent APIs..

", "smithy.api#idempotencyToken": {} } }, @@ -10491,6 +13207,181 @@ } } }, + "com.amazonaws.qconnect#UpdateMessageTemplate": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#UpdateMessageTemplateRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#UpdateMessageTemplateResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ConflictException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ThrottlingException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Updates the Amazon Q in Connect message template. Partial update is supported. If any\n field is not supplied, it will remain unchanged for the message template that is referenced by\n the $LATEST qualifier. Any modification will only apply to the message template\n that is referenced by the $LATEST qualifier. The fields for all available\n versions will remain unchanged.

", + "smithy.api#http": { + "uri": "/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}", + "method": "POST" + } + } + }, + "com.amazonaws.qconnect#UpdateMessageTemplateMetadata": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#UpdateMessageTemplateMetadataRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#UpdateMessageTemplateMetadataResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ConflictException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ThrottlingException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Updates the Amazon Q in Connect message template metadata. Note that any modification to\n the message template’s name, description and grouping configuration will applied to the\n message template pointed by the $LATEST qualifier and all available versions.\n Partial update is supported. If any field is not supplied, it will remain unchanged for the\n message template.

", + "smithy.api#http": { + "uri": "/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/metadata", + "method": "POST" + } + } + }, + "com.amazonaws.qconnect#UpdateMessageTemplateMetadataRequest": { + "type": "structure", + "members": { + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain\n the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "messageTemplateId": { + "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", + "traits": { + "smithy.api#documentation": "

The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.qconnect#Name", + "traits": { + "smithy.api#documentation": "

The name of the message template.

" + } + }, + "description": { + "target": "com.amazonaws.qconnect#Description", + "traits": { + "smithy.api#documentation": "

The description of the message template.

" + } + }, + "groupingConfiguration": { + "target": "com.amazonaws.qconnect#GroupingConfiguration" + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.qconnect#UpdateMessageTemplateMetadataResponse": { + "type": "structure", + "members": { + "messageTemplate": { + "target": "com.amazonaws.qconnect#MessageTemplateData", + "traits": { + "smithy.api#documentation": "

The message template.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.qconnect#UpdateMessageTemplateRequest": { + "type": "structure", + "members": { + "knowledgeBaseId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain\n the ARN.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "messageTemplateId": { + "target": "com.amazonaws.qconnect#UuidOrArnOrEitherWithQualifier", + "traits": { + "smithy.api#documentation": "

The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "content": { + "target": "com.amazonaws.qconnect#MessageTemplateContentProvider", + "traits": { + "smithy.api#documentation": "

The content of the message template.

" + } + }, + "language": { + "target": "com.amazonaws.qconnect#LanguageCode", + "traits": { + "smithy.api#documentation": "

The language code value for the language in which the quick response is written. The supported language codes include de_DE, en_US, es_ES,\n fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR,\n zh_CN, zh_TW\n

" + } + }, + "defaultAttributes": { + "target": "com.amazonaws.qconnect#MessageTemplateAttributes", + "traits": { + "smithy.api#documentation": "

An object that specifies the default values to use for variables in the message template.\n This object contains different categories of key-value pairs. Each key defines a variable or\n placeholder in the message template. The corresponding value defines the default value for\n that variable.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.qconnect#UpdateMessageTemplateResponse": { + "type": "structure", + "members": { + "messageTemplate": { + "target": "com.amazonaws.qconnect#MessageTemplateData", + "traits": { + "smithy.api#documentation": "

The message template.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.qconnect#UpdateQuickResponse": { "type": "operation", "input": { diff --git a/codegen/sdk-codegen/aws-models/rbin.json b/codegen/sdk-codegen/aws-models/rbin.json index 63d8601fe58..f89e8d45c46 100644 --- a/codegen/sdk-codegen/aws-models/rbin.json +++ b/codegen/sdk-codegen/aws-models/rbin.json @@ -1018,7 +1018,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a Recycle Bin retention rule. For more information, see \n Create Recycle Bin retention rules in the Amazon Elastic Compute Cloud User Guide.

", + "smithy.api#documentation": "

Creates a Recycle Bin retention rule. You can create two types of retention rules:

\n \n

For more information, see \n Create Recycle Bin retention rules in the Amazon EBS User Guide.

", "smithy.api#http": { "method": "POST", "uri": "/rules", @@ -1058,7 +1058,7 @@ "ResourceTags": { "target": "com.amazonaws.rbin#ResourceTags", "traits": { - "smithy.api#documentation": "

Specifies the resource tags to use to identify resources that are to be retained by a \n tag-level retention rule. For tag-level retention rules, only deleted resources, of the specified resource type, that \n have one or more of the specified tag key and value pairs are retained. If a resource is deleted, but it does not have \n any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule.

\n

You can add the same tag key and value pair to a maximum or five retention rules.

\n

To create a Region-level retention rule, omit this parameter. A Region-level retention rule \n does not have any resource tags specified. It retains all deleted resources of the specified \n resource type in the Region in which the rule is created, even if the resources are not tagged.

" + "smithy.api#documentation": "

[Tag-level retention rules only] Specifies the resource tags to use to identify resources that are to be retained by a \n tag-level retention rule. For tag-level retention rules, only deleted resources, of the specified resource type, that \n have one or more of the specified tag key and value pairs are retained. If a resource is deleted, but it does not have \n any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule.

\n

You can add the same tag key and value pair to a maximum or five retention rules.

\n

To create a Region-level retention rule, omit this parameter. A Region-level retention rule \n does not have any resource tags specified. It retains all deleted resources of the specified \n resource type in the Region in which the rule is created, even if the resources are not tagged.

" } }, "LockConfiguration": { @@ -1066,6 +1066,12 @@ "traits": { "smithy.api#documentation": "

Information about the retention rule lock configuration.

" } + }, + "ExcludeResourceTags": { + "target": "com.amazonaws.rbin#ExcludeResourceTags", + "traits": { + "smithy.api#documentation": "

[Region-level retention rules only] Specifies the exclusion tags to use to identify resources that are to be excluded, \nor ignored, by a Region-level retention rule. Resources that have any of these tags are not retained by the retention rule \nupon deletion.

\n

You can't specify exclusion tags for tag-level retention rules.

" + } } }, "traits": { @@ -1105,7 +1111,7 @@ "ResourceTags": { "target": "com.amazonaws.rbin#ResourceTags", "traits": { - "smithy.api#documentation": "

Information about the resource tags used to identify resources that are retained by the retention \n rule.

" + "smithy.api#documentation": "

[Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention \n rule.

" } }, "Status": { @@ -1123,7 +1129,7 @@ "LockState": { "target": "com.amazonaws.rbin#LockState", "traits": { - "smithy.api#documentation": "

The lock state for the retention rule.

\n " + "smithy.api#documentation": "

[Region-level retention rules only] The lock state for the retention rule.

\n " } }, "RuleArn": { @@ -1131,6 +1137,12 @@ "traits": { "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the retention rule.

" } + }, + "ExcludeResourceTags": { + "target": "com.amazonaws.rbin#ExcludeResourceTags", + "traits": { + "smithy.api#documentation": "

[Region-level retention rules only] Information about the exclusion tags used to identify resources that are to be \nexcluded, or ignored, by the retention rule.

" + } } }, "traits": { @@ -1200,6 +1212,18 @@ "com.amazonaws.rbin#ErrorMessage": { "type": "string" }, + "com.amazonaws.rbin#ExcludeResourceTags": { + "type": "list", + "member": { + "target": "com.amazonaws.rbin#ResourceTag" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 5 + } + } + }, "com.amazonaws.rbin#GetRule": { "type": "operation", "input": { @@ -1274,7 +1298,7 @@ "ResourceTags": { "target": "com.amazonaws.rbin#ResourceTags", "traits": { - "smithy.api#documentation": "

Information about the resource tags used to identify resources that are retained by the retention \n rule.

" + "smithy.api#documentation": "

[Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention \n rule.

" } }, "Status": { @@ -1292,7 +1316,7 @@ "LockState": { "target": "com.amazonaws.rbin#LockState", "traits": { - "smithy.api#documentation": "

The lock state for the retention rule.

\n " + "smithy.api#documentation": "

[Region-level retention rules only] The lock state for the retention rule.

\n " } }, "LockEndTime": { @@ -1306,6 +1330,12 @@ "traits": { "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the retention rule.

" } + }, + "ExcludeResourceTags": { + "target": "com.amazonaws.rbin#ExcludeResourceTags", + "traits": { + "smithy.api#documentation": "

[Region-level retention rules only] Information about the exclusion tags used to identify resources that are to be \nexcluded, or ignored, by the retention rule.

" + } } }, "traits": { @@ -1381,7 +1411,7 @@ "ResourceTags": { "target": "com.amazonaws.rbin#ResourceTags", "traits": { - "smithy.api#documentation": "

Information about the resource tags used to identify resources that are retained by the retention \n rule.

" + "smithy.api#documentation": "

[Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention \n rule.

" } }, "LockState": { @@ -1389,6 +1419,12 @@ "traits": { "smithy.api#documentation": "

The lock state of the retention rules to list. Only retention rules with the specified \n lock state are returned.

" } + }, + "ExcludeResourceTags": { + "target": "com.amazonaws.rbin#ExcludeResourceTags", + "traits": { + "smithy.api#documentation": "

[Region-level retention rules only] Information about the exclusion tags used to identify resources that are to be \nexcluded, or ignored, by the retention rule.

" + } } }, "traits": { @@ -1511,7 +1547,7 @@ } ], "traits": { - "smithy.api#documentation": "

Locks a retention rule. A locked retention rule can't be modified or deleted.

", + "smithy.api#documentation": "

Locks a Region-level retention rule. A locked retention rule can't be modified or \n deleted.

\n \n

You can't lock tag-level retention rules, or Region-level retention rules that \n have exclusion tags.

\n
", "smithy.api#http": { "method": "PATCH", "uri": "/rules/{Identifier}/lock", @@ -1569,7 +1605,7 @@ "ResourceTags": { "target": "com.amazonaws.rbin#ResourceTags", "traits": { - "smithy.api#documentation": "

Information about the resource tags used to identify resources that are retained by the retention \n rule.

" + "smithy.api#documentation": "

[Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention \n rule.

" } }, "Status": { @@ -1587,7 +1623,7 @@ "LockState": { "target": "com.amazonaws.rbin#LockState", "traits": { - "smithy.api#documentation": "

The lock state for the retention rule.

\n " + "smithy.api#documentation": "

[Region-level retention rules only] The lock state for the retention rule.

\n " } }, "RuleArn": { @@ -1595,6 +1631,12 @@ "traits": { "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the retention rule.

" } + }, + "ExcludeResourceTags": { + "target": "com.amazonaws.rbin#ExcludeResourceTags", + "traits": { + "smithy.api#documentation": "

[Region-level retention rules only] Information about the exclusion tags used to identify resources that are to be \nexcluded, or ignored, by the retention rule.

" + } } }, "traits": { @@ -1687,7 +1729,7 @@ } }, "traits": { - "smithy.api#documentation": "

Information about the resource tags used to identify resources that are retained by the retention \n rule.

" + "smithy.api#documentation": "

[Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention \n rule.

" } }, "com.amazonaws.rbin#ResourceTagKey": { @@ -1830,7 +1872,7 @@ "LockState": { "target": "com.amazonaws.rbin#LockState", "traits": { - "smithy.api#documentation": "

The lock state for the retention rule.

\n " + "smithy.api#documentation": "

[Region-level retention rules only] The lock state for the retention rule.

\n " } }, "RuleArn": { @@ -2126,7 +2168,7 @@ "ResourceTags": { "target": "com.amazonaws.rbin#ResourceTags", "traits": { - "smithy.api#documentation": "

Information about the resource tags used to identify resources that are retained by the retention \n rule.

" + "smithy.api#documentation": "

[Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention \n rule.

" } }, "Status": { @@ -2144,7 +2186,7 @@ "LockState": { "target": "com.amazonaws.rbin#LockState", "traits": { - "smithy.api#documentation": "

The lock state for the retention rule.

\n " + "smithy.api#documentation": "

[Region-level retention rules only] The lock state for the retention rule.

\n " } }, "LockEndTime": { @@ -2158,6 +2200,12 @@ "traits": { "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the retention rule.

" } + }, + "ExcludeResourceTags": { + "target": "com.amazonaws.rbin#ExcludeResourceTags", + "traits": { + "smithy.api#documentation": "

[Region-level retention rules only] Information about the exclusion tags used to identify resources that are to be \nexcluded, or ignored, by the retention rule.

" + } } }, "traits": { @@ -2289,7 +2337,13 @@ "ResourceTags": { "target": "com.amazonaws.rbin#ResourceTags", "traits": { - "smithy.api#documentation": "

Specifies the resource tags to use to identify resources that are to be retained by a \n tag-level retention rule. For tag-level retention rules, only deleted resources, of the specified resource type, that \n have one or more of the specified tag key and value pairs are retained. If a resource is deleted, but it does not have \n any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule.

\n

You can add the same tag key and value pair to a maximum or five retention rules.

\n

To create a Region-level retention rule, omit this parameter. A Region-level retention rule \n does not have any resource tags specified. It retains all deleted resources of the specified \n resource type in the Region in which the rule is created, even if the resources are not tagged.

" + "smithy.api#documentation": "

[Tag-level retention rules only] Specifies the resource tags to use to identify resources that are to be retained by a \n tag-level retention rule. For tag-level retention rules, only deleted resources, of the specified resource type, that \n have one or more of the specified tag key and value pairs are retained. If a resource is deleted, but it does not have \n any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule.

\n

You can add the same tag key and value pair to a maximum or five retention rules.

\n

To create a Region-level retention rule, omit this parameter. A Region-level retention rule \n does not have any resource tags specified. It retains all deleted resources of the specified \n resource type in the Region in which the rule is created, even if the resources are not tagged.

" + } + }, + "ExcludeResourceTags": { + "target": "com.amazonaws.rbin#ExcludeResourceTags", + "traits": { + "smithy.api#documentation": "

[Region-level retention rules only] Specifies the exclusion tags to use to identify resources that are to be excluded, \nor ignored, by a Region-level retention rule. Resources that have any of these tags are not retained by the retention rule \nupon deletion.

\n

You can't specify exclusion tags for tag-level retention rules.

" } } }, @@ -2324,7 +2378,7 @@ "ResourceTags": { "target": "com.amazonaws.rbin#ResourceTags", "traits": { - "smithy.api#documentation": "

Information about the resource tags used to identify resources that are retained by the retention \n rule.

" + "smithy.api#documentation": "

[Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention \n rule.

" } }, "Status": { @@ -2336,7 +2390,7 @@ "LockState": { "target": "com.amazonaws.rbin#LockState", "traits": { - "smithy.api#documentation": "

The lock state for the retention rule.

\n " + "smithy.api#documentation": "

[Region-level retention rules only] The lock state for the retention rule.

\n " } }, "LockEndTime": { @@ -2350,6 +2404,12 @@ "traits": { "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the retention rule.

" } + }, + "ExcludeResourceTags": { + "target": "com.amazonaws.rbin#ExcludeResourceTags", + "traits": { + "smithy.api#documentation": "

[Region-level retention rules only] Information about the exclusion tags used to identify resources that are to be \nexcluded, or ignored, by the retention rule.

" + } } }, "traits": { diff --git a/codegen/sdk-codegen/aws-models/rds-data.json b/codegen/sdk-codegen/aws-models/rds-data.json index 4f627530b2d..192be5a0736 100644 --- a/codegen/sdk-codegen/aws-models/rds-data.json +++ b/codegen/sdk-codegen/aws-models/rds-data.json @@ -113,6 +113,9 @@ { "target": "com.amazonaws.rdsdata#DatabaseNotFoundException" }, + { + "target": "com.amazonaws.rdsdata#DatabaseResumingException" + }, { "target": "com.amazonaws.rdsdata#DatabaseUnavailableException" }, @@ -238,6 +241,9 @@ { "target": "com.amazonaws.rdsdata#DatabaseNotFoundException" }, + { + "target": "com.amazonaws.rdsdata#DatabaseResumingException" + }, { "target": "com.amazonaws.rdsdata#DatabaseUnavailableException" }, @@ -587,6 +593,19 @@ "smithy.api#httpError": 404 } }, + "com.amazonaws.rdsdata#DatabaseResumingException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.rdsdata#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

A request was canceled because the Aurora Serverless v2 DB instance was in a paused state.\n The Data API request automatically causes the DB instance to begin resuming. Wait a few seconds and\n try again.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, "com.amazonaws.rdsdata#DatabaseUnavailableException": { "type": "structure", "members": {}, @@ -745,6 +764,9 @@ { "target": "com.amazonaws.rdsdata#DatabaseNotFoundException" }, + { + "target": "com.amazonaws.rdsdata#DatabaseResumingException" + }, { "target": "com.amazonaws.rdsdata#DatabaseUnavailableException" }, diff --git a/codegen/sdk-codegen/aws-models/rds.json b/codegen/sdk-codegen/aws-models/rds.json index 292b9650661..f6ff0ca7d80 100644 --- a/codegen/sdk-codegen/aws-models/rds.json +++ b/codegen/sdk-codegen/aws-models/rds.json @@ -3687,7 +3687,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a blue/green deployment.

\n

A blue/green deployment creates a staging environment that copies the production environment. \n In a blue/green deployment, the blue environment is the current production environment. \n The green environment is the staging environment. The staging environment stays in sync \n with the current production environment using logical replication.

\n

You can make changes to the databases in the green environment without affecting \n production workloads. For example, you can upgrade the major or minor DB engine version, change \n database parameters, or make schema changes in the staging environment. You can thoroughly test \n changes in the green environment. When ready, you can switch over the environments to promote the \n green environment to be the new production environment. The switchover typically takes under a minute.

\n

For more information, see Using Amazon RDS Blue/Green Deployments \n for database updates in the Amazon RDS User Guide and \n \n Using Amazon RDS Blue/Green Deployments for database updates in the Amazon Aurora \n User Guide.

" + "smithy.api#documentation": "

Creates a blue/green deployment.

\n

A blue/green deployment creates a staging environment that copies the production environment. \n In a blue/green deployment, the blue environment is the current production environment. \n The green environment is the staging environment, and it stays in sync \n with the current production environment.

\n

You can make changes to the databases in the green environment without affecting \n production workloads. For example, you can upgrade the major or minor DB engine version, change \n database parameters, or make schema changes in the staging environment. You can thoroughly test \n changes in the green environment. When ready, you can switch over the environments to promote the \n green environment to be the new production environment. The switchover typically takes under a minute.

\n

For more information, see Using Amazon RDS Blue/Green Deployments \n for database updates in the Amazon RDS User Guide and \n \n Using Amazon RDS Blue/Green Deployments for database updates in the Amazon Aurora \n User Guide.

" } }, "com.amazonaws.rds#CreateBlueGreenDeploymentRequest": { @@ -3744,6 +3744,30 @@ "traits": { "smithy.api#documentation": "

Whether to upgrade the storage file system configuration on the green database. This\n option migrates the green DB instance from the older 32-bit file system to the preferred\n configuration. For more information, see Upgrading the storage file system for a DB instance.

" } + }, + "TargetIops": { + "target": "com.amazonaws.rds#IntegerOptional", + "traits": { + "smithy.api#documentation": "

The amount of Provisioned IOPS (input/output operations per second) to allocate for the green DB instance.\n For information about valid IOPS values, see \n Amazon RDS DB instance storage \n in the Amazon RDS User Guide.

\n

This setting doesn't apply to Amazon Aurora blue/green deployments.

" + } + }, + "TargetStorageType": { + "target": "com.amazonaws.rds#TargetStorageType", + "traits": { + "smithy.api#documentation": "

The storage type to associate with the green DB instance.

\n

Valid Values: gp2 | gp3 | io1 | io2\n

\n

This setting doesn't apply to Amazon Aurora blue/green deployments.

" + } + }, + "TargetAllocatedStorage": { + "target": "com.amazonaws.rds#IntegerOptional", + "traits": { + "smithy.api#documentation": "

The amount of storage in gibibytes (GiB) to allocate for the green DB instance. You can choose to\n increase or decrease the allocated storage on the green DB instance.

\n

This setting doesn't apply to Amazon Aurora blue/green deployments.

" + } + }, + "TargetStorageThroughput": { + "target": "com.amazonaws.rds#IntegerOptional", + "traits": { + "smithy.api#documentation": "

The storage throughput value for the green DB instance.

\n

This setting applies only to the gp3 storage type.

\n

This setting doesn't apply to Amazon Aurora blue/green deployments.

" + } } }, "traits": { @@ -4926,7 +4950,7 @@ "DBName": { "target": "com.amazonaws.rds#String", "traits": { - "smithy.api#documentation": "

The meaning of this parameter differs according to the database engine you use.

\n
\n
Amazon Aurora MySQL
\n
\n

The name of the database to create when the primary DB instance of the Aurora MySQL DB cluster is\n created. If this parameter isn't specified for an Aurora MySQL DB cluster, no database is created \n in the DB cluster.

\n

Constraints:

\n \n
\n
Amazon Aurora PostgreSQL
\n
\n

The name of the database to create when the primary DB instance of the Aurora PostgreSQL DB cluster is\n created. A database named postgres is always created. If this parameter is specified, an additional database with this name is created.

\n

Constraints:

\n \n
\n
Amazon RDS Custom for Oracle
\n
\n

The Oracle System ID (SID) of the created RDS Custom DB instance. If you don't specify a value, the default value is ORCL for non-CDBs and\n RDSCDB for CDBs.

\n

Default: ORCL\n

\n

Constraints:

\n \n
\n
Amazon RDS Custom for SQL Server
\n
\n

Not applicable. Must be null.

\n
\n
RDS for Db2
\n
\n

The name of the database to create when the DB instance is created. If\n this parameter isn't specified, no database is created in the DB instance.\n In some cases, we recommend that you don't add a database name. For more\n information, see Additional considerations in the Amazon RDS User\n Guide.

\n

Constraints:

\n \n
\n
RDS for MariaDB
\n
\n

The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance.

\n

Constraints:

\n \n
\n
RDS for MySQL
\n
\n

The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance.

\n

Constraints:

\n \n
\n
RDS for Oracle
\n
\n

The Oracle System ID (SID) of the created DB instance. If you don't specify a value, \n the default value is ORCL. You can't specify the \n string null, or any other reserved word, for DBName.

\n

Default: ORCL\n

\n

Constraints:

\n \n
\n
RDS for PostgreSQL
\n
\n

The name of the database to create when the DB instance is created. A database named postgres is always created. If this parameter is specified, an additional database with this name is created.

\n

Constraints:

\n \n
\n
RDS for SQL Server
\n
\n

Not applicable. Must be null.

\n
\n
" + "smithy.api#documentation": "

The meaning of this parameter differs according to the database engine you use.

\n
\n
Amazon Aurora MySQL
\n
\n

The name of the database to create when the primary DB instance of the Aurora MySQL DB cluster is\n created. If this parameter isn't specified for an Aurora MySQL DB cluster, no database is created \n in the DB cluster.

\n

Constraints:

\n \n
\n
Amazon Aurora PostgreSQL
\n
\n

The name of the database to create when the primary DB instance of the Aurora PostgreSQL DB cluster is\n created. A database named postgres is always created. If this parameter is specified, an additional database with this name is created.

\n

Constraints:

\n \n
\n
Amazon RDS Custom for Oracle
\n
\n

The Oracle System ID (SID) of the created RDS Custom DB instance. If you don't specify a value, the default value is ORCL for non-CDBs and\n RDSCDB for CDBs.

\n

Default: ORCL\n

\n

Constraints:

\n \n
\n
Amazon RDS Custom for SQL Server
\n
\n

Not applicable. Must be null.

\n
\n
RDS for Db2
\n
\n

The name of the database to create when the DB instance is created. If\n this parameter isn't specified, no database is created in the DB instance.\n In some cases, we recommend that you don't add a database name. For more\n information, see Additional considerations in the Amazon RDS User\n Guide.

\n

Constraints:

\n \n
\n
RDS for MariaDB
\n
\n

The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance.

\n

Constraints:

\n \n
\n
RDS for MySQL
\n
\n

The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance.

\n

Constraints:

\n \n
\n
RDS for Oracle
\n
\n

The Oracle System ID (SID) of the created DB instance. If you don't specify a value, \n the default value is ORCL. You can't specify the \n string null, or any other reserved word, for DBName.

\n

Default: ORCL\n

\n

Constraints:

\n \n
\n
RDS for PostgreSQL
\n
\n

The name of the database to create when the DB instance is created. A database named postgres is always created. If this parameter is specified, an additional database with this name is created.

\n

Constraints:

\n \n
\n
RDS for SQL Server
\n
\n

Not applicable. Must be null.

\n
\n
" } }, "DBInstanceIdentifier": { @@ -8954,6 +8978,12 @@ "traits": { "smithy.api#documentation": "

Indicates whether the DB engine version supports zero-ETL integrations with\n Amazon Redshift.

" } + }, + "ServerlessV2FeaturesSupport": { + "target": "com.amazonaws.rds#ServerlessV2FeaturesSupport", + "traits": { + "smithy.api#documentation": "

Specifies any Aurora Serverless v2 properties or limits that differ between Aurora engine versions.\n You can test the values of this attribute when deciding which Aurora version to use in a new or upgraded\n DB cluster. You can also retrieve the version of an existing DB cluster and check whether that version\n supports certain Aurora Serverless v2 features before you attempt to use those features.\n

" + } } }, "traits": { @@ -9856,6 +9886,23 @@ "smithy.api#httpError": 404 } }, + "com.amazonaws.rds#DBInstanceNotReadyFault": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.rds#ExceptionMessage" + } + }, + "traits": { + "aws.protocols#awsQueryError": { + "code": "DBInstanceNotReady", + "httpResponseCode": 503 + }, + "smithy.api#documentation": "

An attempt to download or examine log files didn't succeed because an Aurora Serverless v2 instance was paused.

", + "smithy.api#error": "server", + "smithy.api#httpError": 503 + } + }, "com.amazonaws.rds#DBInstanceRole": { "type": "structure", "members": { @@ -11179,6 +11226,9 @@ "TagList": { "target": "com.amazonaws.rds#TagList" } + }, + "traits": { + "smithy.api#documentation": "

Contains the details for an Amazon RDS DB shard group.

" } }, "com.amazonaws.rds#DBShardGroupAlreadyExistsFault": { @@ -15101,6 +15151,9 @@ "errors": [ { "target": "com.amazonaws.rds#DBInstanceNotFoundFault" + }, + { + "target": "com.amazonaws.rds#DBInstanceNotReadyFault" } ], "traits": { @@ -18492,6 +18545,9 @@ { "target": "com.amazonaws.rds#DBInstanceNotFoundFault" }, + { + "target": "com.amazonaws.rds#DBInstanceNotReadyFault" + }, { "target": "com.amazonaws.rds#DBLogFileNotFoundFault" } @@ -21606,7 +21662,7 @@ "ApplyImmediately": { "target": "com.amazonaws.rds#Boolean", "traits": { - "smithy.api#documentation": "

Specifies whether the modifications in this request and any pending modifications are \n asynchronously applied as soon as possible, regardless of the PreferredMaintenanceWindow setting \n for the DB cluster. If this parameter is disabled, changes to the DB cluster are applied during the next \n maintenance window.

\n

Most modifications can be applied immediately or during the next scheduled maintenance window. Some \n modifications, such as turning on deletion protection and changing the master password, are applied \n immediately—regardless of when you choose to apply them.

\n

By default, this parameter is disabled.

\n

Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

" + "smithy.api#documentation": "

Specifies whether the modifications in this request are asynchronously applied as soon as possible, regardless of the \n PreferredMaintenanceWindow setting for the DB cluster. If this parameter is disabled, changes to the DB cluster \n are applied during the next maintenance window.

\n

Most modifications can be applied immediately or during the next scheduled maintenance window. Some modifications, such as \n turning on deletion protection and changing the master password, are applied immediately—regardless of when you choose to apply them.

\n

By default, this parameter is disabled.

\n

Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

" } }, "BackupRetentionPeriod": { @@ -29357,19 +29413,45 @@ "smithy.api#sensitive": {} } }, + "com.amazonaws.rds#ServerlessV2FeaturesSupport": { + "type": "structure", + "members": { + "MinCapacity": { + "target": "com.amazonaws.rds#DoubleOptional", + "traits": { + "smithy.api#documentation": "

If the minimum capacity is 0 ACUs, the engine version supports the automatic pause/resume\n feature of Aurora Serverless v2.

" + } + }, + "MaxCapacity": { + "target": "com.amazonaws.rds#DoubleOptional", + "traits": { + "smithy.api#documentation": "

\n Specifies the upper Aurora Serverless v2 capacity limit for a particular engine version.\n Depending on the engine version, the maximum capacity for an Aurora Serverless v2 cluster might be\n 256 or 128.\n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Specifies any Aurora Serverless v2 properties or limits that differ between Aurora engine versions.\n You can test the values of this attribute when deciding which Aurora version to use in a new or upgraded\n DB cluster. You can also retrieve the version of an existing DB cluster and check whether that version\n supports certain Aurora Serverless v2 features before you attempt to use those features.\n

" + } + }, "com.amazonaws.rds#ServerlessV2ScalingConfiguration": { "type": "structure", "members": { "MinCapacity": { "target": "com.amazonaws.rds#DoubleOptional", "traits": { - "smithy.api#documentation": "

The minimum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster.\n You can specify ACU values in half-step increments, such as 8, 8.5, 9, and so on. The smallest value\n that you can use is 0.5.

" + "smithy.api#documentation": "

The minimum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster.\n You can specify ACU values in half-step increments, such as 8, 8.5, 9, and so on.\n For Aurora versions that support the Aurora Serverless v2 auto-pause feature, the smallest value that you can use is 0.\n For versions that don't support Aurora Serverless v2 auto-pause, the smallest value that you can use is 0.5.\n

" } }, "MaxCapacity": { "target": "com.amazonaws.rds#DoubleOptional", "traits": { - "smithy.api#documentation": "

The maximum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster.\n You can specify ACU values in half-step increments, such as 40, 40.5, 41, and so on. The largest value\n that you can use is 128.

" + "smithy.api#documentation": "

The maximum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster.\n You can specify ACU values in half-step increments, such as 32, 32.5, 33, and so on. The largest value\n that you can use is 256 for recent Aurora versions, or 128 for older versions.

" + } + }, + "SecondsUntilAutoPause": { + "target": "com.amazonaws.rds#IntegerOptional", + "traits": { + "smithy.api#documentation": "

Specifies the number of seconds an Aurora Serverless v2 DB instance must be idle before\n Aurora attempts to automatically pause it.\n

\n

Specify a value between 300 seconds (five minutes) and 86,400 seconds (one day). The default is 300 seconds.

" } } }, @@ -29383,13 +29465,19 @@ "MinCapacity": { "target": "com.amazonaws.rds#DoubleOptional", "traits": { - "smithy.api#documentation": "

The minimum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster.\n You can specify ACU values in half-step increments, such as 8, 8.5, 9, and so on. The smallest value\n that you can use is 0.5.

" + "smithy.api#documentation": "

The minimum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster.\n You can specify ACU values in half-step increments, such as 8, 8.5, 9, and so on.\n For Aurora versions that support the Aurora Serverless v2 auto-pause feature, the smallest value that you can use is 0.\n For versions that don't support Aurora Serverless v2 auto-pause, the smallest value that you can use is 0.5.\n

" } }, "MaxCapacity": { "target": "com.amazonaws.rds#DoubleOptional", "traits": { - "smithy.api#documentation": "

The maximum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster.\n You can specify ACU values in half-step increments, such as 40, 40.5, 41, and so on. The largest value\n that you can use is 128.

" + "smithy.api#documentation": "

The maximum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster.\n You can specify ACU values in half-step increments, such as 32, 32.5, 33, and so on. The largest value\n that you can use is 256 for recent Aurora versions, or 128 for older versions.

" + } + }, + "SecondsUntilAutoPause": { + "target": "com.amazonaws.rds#IntegerOptional", + "traits": { + "smithy.api#documentation": "

\n The number of seconds an Aurora Serverless v2 DB instance must be idle before\n Aurora attempts to automatically pause it.\n This property is only shown when the minimum capacity for the cluster is set to 0 ACUs.\n Changing the minimum capacity to a nonzero value removes this property. If you later\n change the minimum capacity back to 0 ACUs, this property is reset to its default value\n unless you specify it again.\n

\n

This value ranges between 300 seconds (five minutes) and 86,400 seconds (one day). The default is 300 seconds.

" } } }, @@ -31094,6 +31182,9 @@ } } }, + "com.amazonaws.rds#TargetStorageType": { + "type": "string" + }, "com.amazonaws.rds#TargetType": { "type": "enum", "members": { diff --git a/codegen/sdk-codegen/aws-models/taxsettings.json b/codegen/sdk-codegen/aws-models/taxsettings.json index 9de2998564a..d9c81763a43 100644 --- a/codegen/sdk-codegen/aws-models/taxsettings.json +++ b/codegen/sdk-codegen/aws-models/taxsettings.json @@ -1,6 +1,22 @@ { "smithy": "2.0", "shapes": { + "com.amazonaws.taxsettings#AccessDeniedException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.taxsettings#ErrorMessage", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The access is denied for the Amazon Web Services Support API.\n

", + "smithy.api#error": "client", + "smithy.api#httpError": 401 + } + }, "com.amazonaws.taxsettings#AccountDetails": { "type": "structure", "members": { @@ -422,6 +438,49 @@ } } }, + "com.amazonaws.taxsettings#AttachmentUploadException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.taxsettings#ErrorMessage", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Failed to upload the tax exemption document to Amazon Web Services Support case.\n

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.taxsettings#Authorities": { + "type": "list", + "member": { + "target": "com.amazonaws.taxsettings#Authority" + } + }, + "com.amazonaws.taxsettings#Authority": { + "type": "structure", + "members": { + "country": { + "target": "com.amazonaws.taxsettings#CountryCode", + "traits": { + "smithy.api#documentation": "

\n The country code for the country that the address is in.\n

", + "smithy.api#required": {} + } + }, + "state": { + "target": "com.amazonaws.taxsettings#State", + "traits": { + "smithy.api#documentation": "

\n The state that the address is located. \n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The address domain associate with the tax information.\n

" + } + }, "com.amazonaws.taxsettings#BatchDeleteTaxRegistration": { "type": "operation", "input": { @@ -517,6 +576,76 @@ "smithy.api#output": {} } }, + "com.amazonaws.taxsettings#BatchGetTaxExemptions": { + "type": "operation", + "input": { + "target": "com.amazonaws.taxsettings#BatchGetTaxExemptionsRequest" + }, + "output": { + "target": "com.amazonaws.taxsettings#BatchGetTaxExemptionsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.taxsettings#InternalServerException" + }, + { + "target": "com.amazonaws.taxsettings#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.taxsettings#ValidationException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "tax:GetExemptions" + ], + "documentation": "Grants batch get active tax exemptions for a given list of accounts permission" + }, + "smithy.api#documentation": "

Get the active tax exemptions for a given list of accounts.\n

", + "smithy.api#http": { + "code": 200, + "method": "POST", + "uri": "/BatchGetTaxExemptions" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.taxsettings#BatchGetTaxExemptionsRequest": { + "type": "structure", + "members": { + "accountIds": { + "target": "com.amazonaws.taxsettings#AccountIds", + "traits": { + "smithy.api#documentation": "

\n List of unique account identifiers.\n

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.taxsettings#BatchGetTaxExemptionsResponse": { + "type": "structure", + "members": { + "taxExemptionDetailsMap": { + "target": "com.amazonaws.taxsettings#TaxExemptionDetailsMap", + "traits": { + "smithy.api#documentation": "

The tax exemption details map of accountId and tax exemption details.\n

" + } + }, + "failedAccounts": { + "target": "com.amazonaws.taxsettings#AccountIds", + "traits": { + "smithy.api#documentation": "

The list of accounts that failed to get tax exemptions.\n

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.taxsettings#BatchPutTaxRegistration": { "type": "operation", "input": { @@ -718,6 +847,22 @@ "smithy.api#pattern": "^([0-9]{6}-[0-9]{1})$" } }, + "com.amazonaws.taxsettings#CaseCreationLimitExceededException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.taxsettings#ErrorMessage", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

You've exceeded the Amazon Web Services Support case creation limit for your account.\n

", + "smithy.api#error": "client", + "smithy.api#httpError": 413 + } + }, "com.amazonaws.taxsettings#CcmCode": { "type": "string", "traits": { @@ -936,6 +1081,16 @@ "smithy.api#documentation": "

The location of the Amazon S3 bucket that you specify to download your tax documents to.

" } }, + "com.amazonaws.taxsettings#DisplayName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 50 + }, + "smithy.api#pattern": "^[\\s\\S]*$" + } + }, "com.amazonaws.taxsettings#District": { "type": "string", "traits": { @@ -946,6 +1101,35 @@ "smithy.api#pattern": "^(?!\\s*$)[\\s\\S]+$" } }, + "com.amazonaws.taxsettings#EntityExemptionAccountStatus": { + "type": "enum", + "members": { + "None": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "None" + } + }, + "Valid": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Valid" + } + }, + "Expired": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Expired" + } + }, + "Pending": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Pending" + } + } + } + }, "com.amazonaws.taxsettings#ErrorCode": { "type": "string", "traits": { @@ -982,12 +1166,62 @@ "smithy.api#documentation": "

Additional tax information associated with your TRN in Estonia.

" } }, + "com.amazonaws.taxsettings#ExemptionCertificate": { + "type": "structure", + "members": { + "documentName": { + "target": "com.amazonaws.taxsettings#ExemptionDocumentName", + "traits": { + "smithy.api#documentation": "

The exemption certificate file name.\n

", + "smithy.api#required": {} + } + }, + "documentFile": { + "target": "com.amazonaws.taxsettings#ExemptionFileBlob", + "traits": { + "smithy.api#documentation": "

The exemption certificate file content.\n

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The exemption certificate.\n

" + } + }, + "com.amazonaws.taxsettings#ExemptionDocumentName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 128 + }, + "smithy.api#pattern": "^([A-Za-z0-9-_.]+).(pdf|jpg|png)$" + } + }, + "com.amazonaws.taxsettings#ExemptionFileBlob": { + "type": "blob", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 4194304 + } + } + }, "com.amazonaws.taxsettings#FieldName": { "type": "string", "traits": { "smithy.api#pattern": "^(?!\\s*$)[\\s\\S]+$" } }, + "com.amazonaws.taxsettings#FileBlob": { + "type": "blob", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 5242880 + } + } + }, "com.amazonaws.taxsettings#GenericString": { "type": "string", "traits": { @@ -1013,6 +1247,115 @@ "smithy.api#documentation": "

\n Additional tax information associated with your TRN in Georgia.\n

" } }, + "com.amazonaws.taxsettings#GetTaxExemptionTypes": { + "type": "operation", + "input": { + "target": "com.amazonaws.taxsettings#GetTaxExemptionTypesRequest" + }, + "output": { + "target": "com.amazonaws.taxsettings#GetTaxExemptionTypesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.taxsettings#InternalServerException" + }, + { + "target": "com.amazonaws.taxsettings#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.taxsettings#ValidationException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "tax:GetExemptions" + ], + "documentation": "Grants get supported tax exemption types permission" + }, + "smithy.api#documentation": "

Get supported tax exemption types.\n

", + "smithy.api#http": { + "code": 200, + "method": "POST", + "uri": "/GetTaxExemptionTypes" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.taxsettings#GetTaxExemptionTypesRequest": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.taxsettings#GetTaxExemptionTypesResponse": { + "type": "structure", + "members": { + "taxExemptionTypes": { + "target": "com.amazonaws.taxsettings#TaxExemptionTypes", + "traits": { + "smithy.api#documentation": "

The supported types of tax exemptions.\n

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.taxsettings#GetTaxInheritance": { + "type": "operation", + "input": { + "target": "com.amazonaws.taxsettings#GetTaxInheritanceRequest" + }, + "output": { + "target": "com.amazonaws.taxsettings#GetTaxInheritanceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.taxsettings#InternalServerException" + }, + { + "target": "com.amazonaws.taxsettings#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.taxsettings#ValidationException" + } + ], + "traits": { + "aws.iam#iamAction": { + "documentation": "Grants get tax inheritance permission" + }, + "smithy.api#documentation": "

The get account tax inheritance status.\n

", + "smithy.api#http": { + "code": 200, + "method": "POST", + "uri": "/GetTaxInheritance" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.taxsettings#GetTaxInheritanceRequest": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.taxsettings#GetTaxInheritanceResponse": { + "type": "structure", + "members": { + "heritageStatus": { + "target": "com.amazonaws.taxsettings#HeritageStatus", + "traits": { + "smithy.api#documentation": "

The tax inheritance status.\n

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.taxsettings#GetTaxRegistration": { "type": "operation", "input": { @@ -1070,7 +1413,8 @@ "code": 200, "method": "POST", "uri": "/GetTaxRegistrationDocument" - } + }, + "smithy.api#readonly": {} } }, "com.amazonaws.taxsettings#GetTaxRegistrationDocumentRequest": { @@ -1079,8 +1423,7 @@ "destinationS3Location": { "target": "com.amazonaws.taxsettings#DestinationS3Location", "traits": { - "smithy.api#documentation": "

The Amazon S3 bucket that you specify to download your tax documents to.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The Amazon S3 bucket that you specify to download your tax documents to.

" } }, "taxDocumentMetadata": { @@ -1103,6 +1446,12 @@ "traits": { "smithy.api#documentation": "

The file path of the Amazon S3 bucket where you want to download your tax document to.

" } + }, + "presignedS3Url": { + "target": "com.amazonaws.taxsettings#Url", + "traits": { + "smithy.api#documentation": "

The Amazon S3 presigned URL of the tax registration document.\n

" + } } }, "traits": { @@ -1137,6 +1486,23 @@ "smithy.api#output": {} } }, + "com.amazonaws.taxsettings#HeritageStatus": { + "type": "enum", + "members": { + "OptIn": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "OptIn" + } + }, + "OptOut": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "OptOut" + } + } + } + }, "com.amazonaws.taxsettings#IndiaAdditionalInfo": { "type": "structure", "members": { @@ -1402,7 +1768,86 @@ "target": "com.amazonaws.taxsettings#ListSupplementalTaxRegistrationsRequest" }, "output": { - "target": "com.amazonaws.taxsettings#ListSupplementalTaxRegistrationsResponse" + "target": "com.amazonaws.taxsettings#ListSupplementalTaxRegistrationsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.taxsettings#InternalServerException" + }, + { + "target": "com.amazonaws.taxsettings#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.taxsettings#ValidationException" + } + ], + "traits": { + "aws.iam#iamAction": { + "documentation": "Grants retrieve permission" + }, + "smithy.api#documentation": "

\n Retrieves supplemental tax registrations for a single account.\n

", + "smithy.api#http": { + "code": 200, + "method": "POST", + "uri": "/ListSupplementalTaxRegistrations" + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "items": "taxRegistrations", + "pageSize": "maxResults" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.taxsettings#ListSupplementalTaxRegistrationsRequest": { + "type": "structure", + "members": { + "maxResults": { + "target": "com.amazonaws.taxsettings#MaxResults", + "traits": { + "smithy.api#documentation": "

\n The number of taxRegistrations results you want in one response.\n

" + } + }, + "nextToken": { + "target": "com.amazonaws.taxsettings#PaginationTokenString", + "traits": { + "smithy.api#documentation": "

\n The token to retrieve the next set of results. \n

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.taxsettings#ListSupplementalTaxRegistrationsResponse": { + "type": "structure", + "members": { + "taxRegistrations": { + "target": "com.amazonaws.taxsettings#SupplementalTaxRegistrationList", + "traits": { + "smithy.api#documentation": "

\n The list of supplemental tax registrations. \n

", + "smithy.api#required": {} + } + }, + "nextToken": { + "target": "com.amazonaws.taxsettings#PaginationTokenString", + "traits": { + "smithy.api#documentation": "

\n The token to retrieve the next set of results. \n

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.taxsettings#ListTaxExemptions": { + "type": "operation", + "input": { + "target": "com.amazonaws.taxsettings#ListTaxExemptionsRequest" + }, + "output": { + "target": "com.amazonaws.taxsettings#ListTaxExemptionsResponse" }, "errors": [ { @@ -1417,36 +1862,39 @@ ], "traits": { "aws.iam#iamAction": { - "documentation": "Grants retrieve permission" + "requiredActions": [ + "tax:GetExemptions" + ], + "documentation": "Grants list the active tax exemptions for a CB family permission" }, - "smithy.api#documentation": "

\n Retrieves supplemental tax registrations for a single account.\n

", + "smithy.api#documentation": "

Retrieves the tax exemption of accounts listed in a consolidated billing family.\n

", "smithy.api#http": { "code": 200, "method": "POST", - "uri": "/ListSupplementalTaxRegistrations" + "uri": "/ListTaxExemptions" }, "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", - "items": "taxRegistrations", + "items": "taxExemptionDetailsMap", "pageSize": "maxResults" }, "smithy.api#readonly": {} } }, - "com.amazonaws.taxsettings#ListSupplementalTaxRegistrationsRequest": { + "com.amazonaws.taxsettings#ListTaxExemptionsRequest": { "type": "structure", "members": { "maxResults": { "target": "com.amazonaws.taxsettings#MaxResults", "traits": { - "smithy.api#documentation": "

\n The number of taxRegistrations results you want in one response.\n

" + "smithy.api#documentation": "

The number of results you want in one response.\n

" } }, "nextToken": { "target": "com.amazonaws.taxsettings#PaginationTokenString", "traits": { - "smithy.api#documentation": "

\n The token to retrieve the next set of results. \n

" + "smithy.api#documentation": "

The token to retrieve the next set of results.

" } } }, @@ -1454,20 +1902,19 @@ "smithy.api#input": {} } }, - "com.amazonaws.taxsettings#ListSupplementalTaxRegistrationsResponse": { + "com.amazonaws.taxsettings#ListTaxExemptionsResponse": { "type": "structure", "members": { - "taxRegistrations": { - "target": "com.amazonaws.taxsettings#SupplementalTaxRegistrationList", + "nextToken": { + "target": "com.amazonaws.taxsettings#PaginationTokenString", "traits": { - "smithy.api#documentation": "

\n The list of supplemental tax registrations. \n

", - "smithy.api#required": {} + "smithy.api#documentation": "

The token to retrieve the next set of results.

" } }, - "nextToken": { - "target": "com.amazonaws.taxsettings#PaginationTokenString", + "taxExemptionDetailsMap": { + "target": "com.amazonaws.taxsettings#TaxExemptionDetailsMap", "traits": { - "smithy.api#documentation": "

\n The token to retrieve the next set of results. \n

" + "smithy.api#documentation": "

The tax exemption details map of accountId and tax exemption details.\n

" } } }, @@ -1769,6 +2216,154 @@ "smithy.api#output": {} } }, + "com.amazonaws.taxsettings#PutTaxExemption": { + "type": "operation", + "input": { + "target": "com.amazonaws.taxsettings#PutTaxExemptionRequest" + }, + "output": { + "target": "com.amazonaws.taxsettings#PutTaxExemptionResponse" + }, + "errors": [ + { + "target": "com.amazonaws.taxsettings#AccessDeniedException" + }, + { + "target": "com.amazonaws.taxsettings#AttachmentUploadException" + }, + { + "target": "com.amazonaws.taxsettings#CaseCreationLimitExceededException" + }, + { + "target": "com.amazonaws.taxsettings#InternalServerException" + }, + { + "target": "com.amazonaws.taxsettings#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.taxsettings#ValidationException" + } + ], + "traits": { + "aws.iam#iamAction": { + "requiredActions": [ + "tax:UpdateExemptions", + "support:CreateCase", + "support:AddAttachmentsToSet" + ], + "documentation": "Grants create customer tax exemption case permission" + }, + "smithy.api#documentation": "

Adds the tax exemption for a single account or all accounts listed in a consolidated billing family.\n

", + "smithy.api#http": { + "code": 200, + "method": "POST", + "uri": "/PutTaxExemption" + } + } + }, + "com.amazonaws.taxsettings#PutTaxExemptionRequest": { + "type": "structure", + "members": { + "accountIds": { + "target": "com.amazonaws.taxsettings#AccountIds", + "traits": { + "smithy.api#documentation": "

\n The list of unique account identifiers.\n

", + "smithy.api#required": {} + } + }, + "authority": { + "target": "com.amazonaws.taxsettings#Authority", + "traits": { + "smithy.api#required": {} + } + }, + "exemptionType": { + "target": "com.amazonaws.taxsettings#GenericString", + "traits": { + "smithy.api#documentation": "

The exemption type.\n

", + "smithy.api#required": {} + } + }, + "exemptionCertificate": { + "target": "com.amazonaws.taxsettings#ExemptionCertificate", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.taxsettings#PutTaxExemptionResponse": { + "type": "structure", + "members": { + "caseId": { + "target": "com.amazonaws.taxsettings#GenericString", + "traits": { + "smithy.api#documentation": "

The customer support case ID.\n

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.taxsettings#PutTaxInheritance": { + "type": "operation", + "input": { + "target": "com.amazonaws.taxsettings#PutTaxInheritanceRequest" + }, + "output": { + "target": "com.amazonaws.taxsettings#PutTaxInheritanceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.taxsettings#ConflictException" + }, + { + "target": "com.amazonaws.taxsettings#InternalServerException" + }, + { + "target": "com.amazonaws.taxsettings#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.taxsettings#ValidationException" + } + ], + "traits": { + "aws.iam#iamAction": { + "documentation": "Grants put tax inheritance permission" + }, + "smithy.api#documentation": "

The updated tax inheritance status.\n

", + "smithy.api#http": { + "code": 200, + "method": "POST", + "uri": "/PutTaxInheritance" + } + } + }, + "com.amazonaws.taxsettings#PutTaxInheritanceRequest": { + "type": "structure", + "members": { + "heritageStatus": { + "target": "com.amazonaws.taxsettings#HeritageStatus", + "traits": { + "smithy.api#documentation": "

The tax inheritance status.\n

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.taxsettings#PutTaxInheritanceResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.taxsettings#PutTaxRegistration": { "type": "operation", "input": { @@ -1840,7 +2435,7 @@ "traits": { "smithy.api#length": { "min": 1, - "max": 20 + "max": 200 }, "smithy.api#pattern": "^(?!\\s*$)[\\s\\S]+$" } @@ -2249,6 +2844,131 @@ "smithy.api#pattern": "^[\\s\\S]*$" } }, + "com.amazonaws.taxsettings#TaxExemption": { + "type": "structure", + "members": { + "authority": { + "target": "com.amazonaws.taxsettings#Authority", + "traits": { + "smithy.api#documentation": "

The address domain associate with tax exemption.\n

", + "smithy.api#required": {} + } + }, + "taxExemptionType": { + "target": "com.amazonaws.taxsettings#TaxExemptionType", + "traits": { + "smithy.api#documentation": "

The tax exemption type.\n

", + "smithy.api#required": {} + } + }, + "effectiveDate": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The tax exemption effective date.\n

" + } + }, + "expirationDate": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The tax exemption expiration date.\n

" + } + }, + "systemEffectiveDate": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The tax exemption recording time in the TaxSettings system.\n

" + } + }, + "status": { + "target": "com.amazonaws.taxsettings#EntityExemptionAccountStatus", + "traits": { + "smithy.api#documentation": "

The tax exemption status.\n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The tax exemption.\n

" + } + }, + "com.amazonaws.taxsettings#TaxExemptionDetails": { + "type": "structure", + "members": { + "taxExemptions": { + "target": "com.amazonaws.taxsettings#TaxExemptions", + "traits": { + "smithy.api#documentation": "

Tax exemptions.\n

" + } + }, + "heritageObtainedDetails": { + "target": "com.amazonaws.taxsettings#Boolean", + "traits": { + "smithy.api#documentation": "

The indicator if the tax exemption is inherited from the consolidated billing family management account.\n

" + } + }, + "heritageObtainedParentEntity": { + "target": "com.amazonaws.taxsettings#GenericString", + "traits": { + "smithy.api#documentation": "

The consolidated billing family management account the tax exemption inherited from.\n

" + } + }, + "heritageObtainedReason": { + "target": "com.amazonaws.taxsettings#GenericString", + "traits": { + "smithy.api#documentation": "

The reason of the heritage inheritance.\n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The tax exemption details.\n

" + } + }, + "com.amazonaws.taxsettings#TaxExemptionDetailsMap": { + "type": "map", + "key": { + "target": "com.amazonaws.taxsettings#AccountId" + }, + "value": { + "target": "com.amazonaws.taxsettings#TaxExemptionDetails" + } + }, + "com.amazonaws.taxsettings#TaxExemptionType": { + "type": "structure", + "members": { + "displayName": { + "target": "com.amazonaws.taxsettings#DisplayName", + "traits": { + "smithy.api#documentation": "

The tax exemption's type display name.\n

" + } + }, + "description": { + "target": "com.amazonaws.taxsettings#GenericString", + "traits": { + "smithy.api#documentation": "

The tax exemption's type description.\n

" + } + }, + "applicableJurisdictions": { + "target": "com.amazonaws.taxsettings#Authorities", + "traits": { + "smithy.api#documentation": "

The tax exemption's applicable jurisdictions.\n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The tax exemption type.\n

" + } + }, + "com.amazonaws.taxsettings#TaxExemptionTypes": { + "type": "list", + "member": { + "target": "com.amazonaws.taxsettings#TaxExemptionType" + } + }, + "com.amazonaws.taxsettings#TaxExemptions": { + "type": "list", + "member": { + "target": "com.amazonaws.taxsettings#TaxExemption" + } + }, "com.amazonaws.taxsettings#TaxInformationNumber": { "type": "string", "traits": { @@ -2349,14 +3069,41 @@ "smithy.api#sensitive": {} } }, + "com.amazonaws.taxsettings#TaxRegistrationDocFile": { + "type": "structure", + "members": { + "fileName": { + "target": "com.amazonaws.taxsettings#TaxDocumentName", + "traits": { + "smithy.api#documentation": "

The tax registration document name.\n

", + "smithy.api#required": {} + } + }, + "fileContent": { + "target": "com.amazonaws.taxsettings#FileBlob", + "traits": { + "smithy.api#documentation": "

The tax registration document content.\n

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

The tax registration document.\n

" + } + }, "com.amazonaws.taxsettings#TaxRegistrationDocument": { "type": "structure", "members": { "s3Location": { "target": "com.amazonaws.taxsettings#SourceS3Location", "traits": { - "smithy.api#documentation": "

The Amazon S3 location where your tax registration document is stored.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The Amazon S3 location where your tax registration document is stored.

" + } + }, + "file": { + "target": "com.amazonaws.taxsettings#TaxRegistrationDocFile", + "traits": { + "smithy.api#documentation": "

The tax registration document.\n

" } } }, @@ -2604,6 +3351,9 @@ { "target": "com.amazonaws.taxsettings#BatchDeleteTaxRegistration" }, + { + "target": "com.amazonaws.taxsettings#BatchGetTaxExemptions" + }, { "target": "com.amazonaws.taxsettings#BatchPutTaxRegistration" }, @@ -2613,6 +3363,12 @@ { "target": "com.amazonaws.taxsettings#DeleteTaxRegistration" }, + { + "target": "com.amazonaws.taxsettings#GetTaxExemptionTypes" + }, + { + "target": "com.amazonaws.taxsettings#GetTaxInheritance" + }, { "target": "com.amazonaws.taxsettings#GetTaxRegistration" }, @@ -2622,12 +3378,21 @@ { "target": "com.amazonaws.taxsettings#ListSupplementalTaxRegistrations" }, + { + "target": "com.amazonaws.taxsettings#ListTaxExemptions" + }, { "target": "com.amazonaws.taxsettings#ListTaxRegistrations" }, { "target": "com.amazonaws.taxsettings#PutSupplementalTaxRegistration" }, + { + "target": "com.amazonaws.taxsettings#PutTaxExemption" + }, + { + "target": "com.amazonaws.taxsettings#PutTaxInheritance" + }, { "target": "com.amazonaws.taxsettings#PutTaxRegistration" } @@ -2645,6 +3410,19 @@ "endpointPatternType": "service_region_dnsSuffix" }, "aws.protocols#restJson1": {}, + "smithy.api#cors": { + "additionalAllowedHeaders": [ + "Content-Type,X-Amz-Date", + "Authorization", + "X-Api-Key", + "X-Amz-Security-Token", + "Access-Control-Allow-Origin", + "X-Amz-Content-Sha256", + "Amz-Sdk-Invocation-Id", + "Amz-Sdk-Request", + "X-Amz-User-Agent" + ] + }, "smithy.api#documentation": "

You can use the tax setting API to programmatically set, modify, and delete the tax\n registration number (TRN), associated business legal name, and address (Collectively referred\n to as \"TRN information\"). You can also programmatically view TRN information and tax addresses\n (\"Tax profiles\").

\n

You can use this API to automate your TRN information settings instead of manually using\n the console.

\n

Service Endpoint

\n ", "smithy.api#title": "Tax Settings", "smithy.rules#endpointRuleSet": { @@ -3637,6 +4415,16 @@ } } }, + "com.amazonaws.taxsettings#Url": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 200 + }, + "smithy.api#pattern": "^https.*\\S.*$" + } + }, "com.amazonaws.taxsettings#ValidationException": { "type": "structure", "members": { diff --git a/codegen/sdk-codegen/aws-models/timestream-query.json b/codegen/sdk-codegen/aws-models/timestream-query.json index f1c8402bea8..9e5cf5aeb39 100644 --- a/codegen/sdk-codegen/aws-models/timestream-query.json +++ b/codegen/sdk-codegen/aws-models/timestream-query.json @@ -41,11 +41,29 @@ "code": "AccessDenied", "httpResponseCode": 403 }, - "smithy.api#documentation": "

You are not authorized to perform this action.

", + "smithy.api#documentation": "

You do not have the necessary permissions to access the account settings.

", "smithy.api#error": "client", "smithy.api#httpError": 403 } }, + "com.amazonaws.timestreamquery#AccountSettingsNotificationConfiguration": { + "type": "structure", + "members": { + "SnsConfiguration": { + "target": "com.amazonaws.timestreamquery#SnsConfiguration" + }, + "RoleArn": { + "target": "com.amazonaws.timestreamquery#AmazonResourceName", + "traits": { + "smithy.api#documentation": "

An Amazon Resource Name (ARN) that grants Timestream permission to publish notifications. This field is only visible if SNS Topic is provided when updating the account settings.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Configuration settings for notifications related to account settings.

" + } + }, "com.amazonaws.timestreamquery#AmazonResourceName": { "type": "string", "traits": { @@ -164,6 +182,23 @@ "target": "com.amazonaws.timestreamquery#ColumnInfo" } }, + "com.amazonaws.timestreamquery#ComputeMode": { + "type": "enum", + "members": { + "ON_DEMAND": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ON_DEMAND" + } + }, + "PROVISIONED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PROVISIONED" + } + } + } + }, "com.amazonaws.timestreamquery#ConflictException": { "type": "structure", "members": { @@ -443,13 +478,19 @@ "MaxQueryTCU": { "target": "com.amazonaws.timestreamquery#MaxQueryCapacity", "traits": { - "smithy.api#documentation": "

The maximum number of Timestream compute units (TCUs) the service will use at any point in time to serve your queries.

" + "smithy.api#documentation": "

The maximum number of Timestream compute units (TCUs) the service will use at any point in time to serve your queries. To run queries, you must set a minimum capacity of 4 TCU. You can set the maximum number of TCU in multiples of 4, for example, 4, 8, 16, 32, and so on. This configuration is applicable only for on-demand usage of (TCUs). \n \n \n

" } }, "QueryPricingModel": { "target": "com.amazonaws.timestreamquery#QueryPricingModel", "traits": { - "smithy.api#documentation": "

The pricing model for queries in your account.

" + "smithy.api#documentation": "

The pricing model for queries in your account.

\n \n

The QueryPricingModel parameter is used by several Timestream operations; however, the UpdateAccountSettings API operation doesn't recognize any values other than COMPUTE_UNITS.

\n
" + } + }, + "QueryCompute": { + "target": "com.amazonaws.timestreamquery#QueryComputeResponse", + "traits": { + "smithy.api#documentation": "

An object that contains the usage settings for Timestream Compute Units (TCUs) in your account for the query workload.

" } } }, @@ -705,7 +746,7 @@ "aws.api#clientDiscoveredEndpoint": { "required": true }, - "smithy.api#documentation": "

You can use this API to run a scheduled query manually.

\n

If you enabled QueryInsights, this API also returns insights and metrics related to the query that you executed as part of an Amazon SNS notification. QueryInsights helps with performance tuning of your query.

", + "smithy.api#documentation": "

You can use this API to run a scheduled query manually.

\n

If you enabled QueryInsights, this API also returns insights and metrics related to the query that you executed as part of an Amazon SNS notification. QueryInsights helps with performance tuning of your query. For more information about QueryInsights, see Using query insights to optimize queries in Amazon Timestream.

", "smithy.api#idempotent": {} } }, @@ -802,7 +843,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n The service was unable to fully process this request because of an internal\n server error.

", + "smithy.api#documentation": "

An internal server error occurred while processing the request.

", "smithy.api#error": "server", "smithy.api#httpError": 500 } @@ -815,11 +856,60 @@ } }, "traits": { - "smithy.api#documentation": "

The requested endpoint was not valid.

", + "smithy.api#documentation": "

The requested endpoint is invalid.

", "smithy.api#error": "client", "smithy.api#httpError": 421 } }, + "com.amazonaws.timestreamquery#LastUpdate": { + "type": "structure", + "members": { + "TargetQueryTCU": { + "target": "com.amazonaws.timestreamquery#QueryTCU", + "traits": { + "smithy.api#documentation": "

The number of TimeStream Compute Units (TCUs) requested in the last account settings update.

" + } + }, + "Status": { + "target": "com.amazonaws.timestreamquery#LastUpdateStatus", + "traits": { + "smithy.api#documentation": "

The status of the last update. Can be either PENDING, FAILED, or SUCCEEDED.

" + } + }, + "StatusMessage": { + "target": "com.amazonaws.timestreamquery#String", + "traits": { + "smithy.api#documentation": "

Error message describing the last account settings update status, visible only if an error occurred.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Configuration object that contains the most recent account settings update, visible only if settings have been updated previously.

" + } + }, + "com.amazonaws.timestreamquery#LastUpdateStatus": { + "type": "enum", + "members": { + "PENDING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PENDING" + } + }, + "FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FAILED" + } + }, + "SUCCEEDED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SUCCEEDED" + } + } + } + }, "com.amazonaws.timestreamquery#ListScheduledQueries": { "type": "operation", "input": { @@ -1175,7 +1265,7 @@ "SnsConfiguration": { "target": "com.amazonaws.timestreamquery#SnsConfiguration", "traits": { - "smithy.api#documentation": "

Details on SNS configuration.

", + "smithy.api#documentation": "

Details about the Amazon Simple Notification Service (SNS) configuration. This field is visible only when SNS Topic is provided when updating the account settings.

", "smithy.api#required": {} } } @@ -1315,6 +1405,53 @@ "smithy.api#output": {} } }, + "com.amazonaws.timestreamquery#ProvisionedCapacityRequest": { + "type": "structure", + "members": { + "TargetQueryTCU": { + "target": "com.amazonaws.timestreamquery#QueryTCU", + "traits": { + "smithy.api#documentation": "

The target compute capacity for querying data, specified in Timestream Compute Units (TCUs).

", + "smithy.api#required": {} + } + }, + "NotificationConfiguration": { + "target": "com.amazonaws.timestreamquery#AccountSettingsNotificationConfiguration", + "traits": { + "smithy.api#documentation": "

Configuration settings for notifications related to the provisioned capacity update.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A request to update the provisioned capacity settings for querying data.

" + } + }, + "com.amazonaws.timestreamquery#ProvisionedCapacityResponse": { + "type": "structure", + "members": { + "ActiveQueryTCU": { + "target": "com.amazonaws.timestreamquery#QueryTCU", + "traits": { + "smithy.api#documentation": "

The number of Timestream Compute Units (TCUs) provisioned in the account. This field is only visible when the compute mode is PROVISIONED.

" + } + }, + "NotificationConfiguration": { + "target": "com.amazonaws.timestreamquery#AccountSettingsNotificationConfiguration", + "traits": { + "smithy.api#documentation": "

An object that contains settings for notifications that are sent whenever the provisioned capacity settings are modified. This field is only visible when the compute mode is PROVISIONED.

" + } + }, + "LastUpdate": { + "target": "com.amazonaws.timestreamquery#LastUpdate", + "traits": { + "smithy.api#documentation": "

Information about the last update to the provisioned capacity settings.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The response to a request to update the provisioned capacity settings for querying data.

" + } + }, "com.amazonaws.timestreamquery#Query": { "type": "operation", "input": { @@ -1350,7 +1487,7 @@ "aws.api#clientDiscoveredEndpoint": { "required": true }, - "smithy.api#documentation": "

\n Query is a synchronous operation that enables you to run a query against\n your Amazon Timestream data.

\n

If you enabled QueryInsights, this API also returns insights and metrics related to the query that you executed. QueryInsights helps with performance tuning of your query.

\n \n

The maximum number of Query API requests you're allowed to make with QueryInsights enabled is 1 query per second (QPS). If you exceed this query rate, it might result in throttling.

\n
\n

\n Query will time out after 60 seconds.\n You must update the default timeout in the SDK to support a timeout of 60 seconds. See\n the code\n sample for details.

\n

Your query request will fail in the following cases:

\n ", + "smithy.api#documentation": "

\n Query is a synchronous operation that enables you to run a query against\n your Amazon Timestream data.

\n

If you enabled QueryInsights, this API also returns insights and metrics related to the query that you executed. QueryInsights helps with performance tuning of your query. For more information about QueryInsights, see Using query insights to optimize queries in Amazon Timestream.

\n \n

The maximum number of Query API requests you're allowed to make with QueryInsights enabled is 1 query per second (QPS). If you exceed this query rate, it might result in throttling.

\n
\n

\n Query will time out after 60 seconds.\n You must update the default timeout in the SDK to support a timeout of 60 seconds. See\n the code\n sample for details.

\n

Your query request will fail in the following cases:

\n ", "smithy.api#idempotent": {}, "smithy.api#paginated": { "inputToken": "NextToken", @@ -1360,6 +1497,46 @@ } } }, + "com.amazonaws.timestreamquery#QueryComputeRequest": { + "type": "structure", + "members": { + "ComputeMode": { + "target": "com.amazonaws.timestreamquery#ComputeMode", + "traits": { + "smithy.api#documentation": "

The mode in which Timestream Compute Units (TCUs) are allocated and utilized within an account. Note that in the Asia Pacific (Mumbai) region, the API operation only recognizes the value PROVISIONED.

" + } + }, + "ProvisionedCapacity": { + "target": "com.amazonaws.timestreamquery#ProvisionedCapacityRequest", + "traits": { + "smithy.api#documentation": "

Configuration object that contains settings for provisioned Timestream Compute Units (TCUs) in your account.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A request to retrieve or update the compute capacity settings for querying data.

" + } + }, + "com.amazonaws.timestreamquery#QueryComputeResponse": { + "type": "structure", + "members": { + "ComputeMode": { + "target": "com.amazonaws.timestreamquery#ComputeMode", + "traits": { + "smithy.api#documentation": "

The mode in which Timestream Compute Units (TCUs) are allocated and utilized within an account. Note that in the Asia Pacific (Mumbai) region, the API operation only recognizes the value PROVISIONED.

" + } + }, + "ProvisionedCapacity": { + "target": "com.amazonaws.timestreamquery#ProvisionedCapacityResponse", + "traits": { + "smithy.api#documentation": "

Configuration object that contains settings for provisioned Timestream Compute Units (TCUs) in your account.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The response to a request to retrieve or update the compute capacity settings for querying data.

" + } + }, "com.amazonaws.timestreamquery#QueryExecutionException": { "type": "structure", "members": { @@ -1661,6 +1838,9 @@ "smithy.api#sensitive": {} } }, + "com.amazonaws.timestreamquery#QueryTCU": { + "type": "integer" + }, "com.amazonaws.timestreamquery#QueryTemporalRange": { "type": "structure", "members": { @@ -2568,7 +2748,7 @@ } }, "traits": { - "smithy.api#documentation": "

The request was denied due to request throttling.

", + "smithy.api#documentation": "

The request was throttled due to excessive requests.

", "smithy.api#error": "client", "smithy.api#httpError": 429 } @@ -3508,7 +3688,7 @@ "MaxQueryTCU": { "target": "com.amazonaws.timestreamquery#MaxQueryCapacity", "traits": { - "smithy.api#documentation": "

The maximum number of compute units the service will use at any point in time to serve your queries. To run queries, you must set a minimum capacity of 4 TCU. You can set the maximum number of TCU in multiples of 4, for example, 4, 8, 16, 32, and so on.

\n

The maximum value supported for MaxQueryTCU is 1000. To request an increase to this soft limit, contact Amazon Web Services Support. For information about the default quota for maxQueryTCU, see Default quotas.

" + "smithy.api#documentation": "

The maximum number of compute units the service will use at any point in time to serve your queries. To run queries, you must set a minimum capacity of 4 TCU. You can set the maximum number of TCU in multiples of 4, for example, 4, 8, 16, 32, and so on. The maximum value supported for MaxQueryTCU is 1000. To request an increase to this soft limit, contact Amazon Web Services Support. For information about the default quota for maxQueryTCU, see Default quotas. This configuration is applicable only for on-demand usage of Timestream Compute Units (TCUs).

\n

The maximum value supported for MaxQueryTCU is 1000. To request an increase to this soft limit, contact Amazon Web Services Support. For information about the default quota for maxQueryTCU, see Default quotas.

" } }, "QueryPricingModel": { @@ -3516,6 +3696,12 @@ "traits": { "smithy.api#documentation": "

The pricing model for queries in an account.

\n \n

The QueryPricingModel parameter is used by several Timestream operations; however, the UpdateAccountSettings API operation doesn't recognize any values other than COMPUTE_UNITS.

\n
" } + }, + "QueryCompute": { + "target": "com.amazonaws.timestreamquery#QueryComputeRequest", + "traits": { + "smithy.api#documentation": "

Modifies the query compute settings configured in your account, including the query pricing model and provisioned Timestream Compute Units (TCUs) in your account.

\n \n

This API is idempotent, meaning that making the same request multiple times will have the same effect as making the request once.

\n
" + } } }, "traits": { @@ -3536,6 +3722,12 @@ "traits": { "smithy.api#documentation": "

The pricing model for an account.

" } + }, + "QueryCompute": { + "target": "com.amazonaws.timestreamquery#QueryComputeResponse", + "traits": { + "smithy.api#documentation": "

Confirms the updated account settings for querying data in your account.

" + } } }, "traits": { diff --git a/codegen/sdk-codegen/aws-models/workspaces-web.json b/codegen/sdk-codegen/aws-models/workspaces-web.json index da9505d5591..1756f1a498a 100644 --- a/codegen/sdk-codegen/aws-models/workspaces-web.json +++ b/codegen/sdk-codegen/aws-models/workspaces-web.json @@ -38,6 +38,9 @@ { "target": "com.amazonaws.workspacesweb#BrowserSettingsResource" }, + { + "target": "com.amazonaws.workspacesweb#DataProtectionSettingsResource" + }, { "target": "com.amazonaws.workspacesweb#IdentityProviderResource" }, @@ -835,6 +838,91 @@ "smithy.api#output": {} } }, + "com.amazonaws.workspacesweb#AssociateDataProtectionSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#AssociateDataProtectionSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#AssociateDataProtectionSettingsResponse" + }, + "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 data protection settings resource with a web portal.

", + "smithy.api#http": { + "method": "PUT", + "uri": "/portals/{portalArn+}/dataProtectionSettings", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workspacesweb#AssociateDataProtectionSettingsRequest": { + "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": {} + } + }, + "dataProtectionSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "aws.cloudformation#cfnMutability": "full", + "smithy.api#documentation": "

The ARN of the data protection settings.

", + "smithy.api#httpQuery": "dataProtectionSettingsArn", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.workspacesweb#AssociateDataProtectionSettingsResponse": { + "type": "structure", + "members": { + "portalArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "

The ARN of the web portal.

", + "smithy.api#required": {} + } + }, + "dataProtectionSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "

The ARN of the data protection settings resource.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.workspacesweb#AssociateIpAccessSettings": { "type": "operation", "input": { @@ -1411,6 +1499,17 @@ ] } }, + "com.amazonaws.workspacesweb#BuiltInPatternId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 50 + }, + "smithy.api#pattern": "^[_\\-\\d\\w]+$", + "smithy.api#sensitive": {} + } + }, "com.amazonaws.workspacesweb#Certificate": { "type": "structure", "members": { @@ -1543,6 +1642,15 @@ } } }, + "com.amazonaws.workspacesweb#ConfidenceLevel": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1, + "max": 3 + } + } + }, "com.amazonaws.workspacesweb#ConflictException": { "type": "structure", "members": { @@ -1757,6 +1865,113 @@ "smithy.api#output": {} } }, + "com.amazonaws.workspacesweb#CreateDataProtectionSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#CreateDataProtectionSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#CreateDataProtectionSettingsResponse" + }, + "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 data protection settings resource that can be associated with a web portal.

", + "smithy.api#http": { + "method": "POST", + "uri": "/dataProtectionSettings", + "code": 200 + } + } + }, + "com.amazonaws.workspacesweb#CreateDataProtectionSettingsRequest": { + "type": "structure", + "members": { + "displayName": { + "target": "com.amazonaws.workspacesweb#DisplayNameSafe", + "traits": { + "smithy.api#documentation": "

The display name of the data protection settings.

" + } + }, + "description": { + "target": "com.amazonaws.workspacesweb#DescriptionSafe", + "traits": { + "smithy.api#documentation": "

The description of the data protection settings.

" + } + }, + "tags": { + "target": "com.amazonaws.workspacesweb#TagList", + "traits": { + "aws.cloudformation#cfnMutability": "full", + "smithy.api#documentation": "

The tags to add to the data protection 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 data protection settings.

" + } + }, + "additionalEncryptionContext": { + "target": "com.amazonaws.workspacesweb#EncryptionContextMap", + "traits": { + "smithy.api#documentation": "

Additional encryption context of the data protection settings.

" + } + }, + "inlineRedactionConfiguration": { + "target": "com.amazonaws.workspacesweb#InlineRedactionConfiguration", + "traits": { + "smithy.api#documentation": "

The inline redaction configuration of the data protection settings that will be applied to all 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 returns the result from the original successful request.

\n

If you do not specify a client token, one is automatically generated by the Amazon Web Services\n SDK.

", + "smithy.api#idempotencyToken": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.workspacesweb#CreateDataProtectionSettingsResponse": { + "type": "structure", + "members": { + "dataProtectionSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "

The ARN of the data protection settings resource.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.workspacesweb#CreateIdentityProvider": { "type": "operation", "input": { @@ -2490,50 +2705,243 @@ "smithy.api#output": {} } }, - "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" + "com.amazonaws.workspacesweb#CustomPattern": { + "type": "structure", + "members": { + "patternName": { + "target": "com.amazonaws.workspacesweb#PatternName", + "traits": { + "smithy.api#documentation": "

The pattern name for the custom pattern.

", + "smithy.api#required": {} + } }, - { - "target": "com.amazonaws.workspacesweb#InternalServerException" + "patternRegex": { + "target": "com.amazonaws.workspacesweb#Regex", + "traits": { + "smithy.api#documentation": "

The pattern regex for the customer pattern. The format must follow JavaScript regex format. The pattern must be enclosed between slashes, and can have flags behind the second slash. For example: “/ab+c/gi”.

", + "smithy.api#required": {} + } }, - { - "target": "com.amazonaws.workspacesweb#ThrottlingException" + "patternDescription": { + "target": "com.amazonaws.workspacesweb#DescriptionSafe", + "traits": { + "smithy.api#documentation": "

The pattern description for the customer pattern.

" + } }, - { - "target": "com.amazonaws.workspacesweb#ValidationException" + "keywordRegex": { + "target": "com.amazonaws.workspacesweb#Regex", + "traits": { + "smithy.api#documentation": "

The keyword regex for the customer pattern. After there is a match to the pattern regex, the keyword regex is used to search within the proximity of the match. If there is a keyword match, then the match is confirmed. If no keyword regex is provided, the pattern regex match will automatically be confirmed. The format must follow JavaScript regex format. The pattern must be enclosed between slashes, and can have flags behind the second slash. For example, “/ab+c/gi”

" + } } - ], + }, "traits": { - "smithy.api#documentation": "

Deletes browser settings.

", - "smithy.api#http": { - "method": "DELETE", - "uri": "/browserSettings/{browserSettingsArn+}", - "code": 200 - }, - "smithy.api#idempotent": {} + "smithy.api#documentation": "

The pattern configuration for redacting custom data types in session.

" } }, - "com.amazonaws.workspacesweb#DeleteBrowserSettingsRequest": { + "com.amazonaws.workspacesweb#DataProtectionSettings": { "type": "structure", "members": { - "browserSettingsArn": { + "dataProtectionSettingsArn": { "target": "com.amazonaws.workspacesweb#ARN", "traits": { - "smithy.api#documentation": "

The ARN of the browser settings.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#documentation": "

The ARN of the data protection settings resource.

", + "smithy.api#required": {}, + "smithy.api#resourceIdentifier": "dataProtectionSettingsArn" + } + }, + "inlineRedactionConfiguration": { + "target": "com.amazonaws.workspacesweb#InlineRedactionConfiguration", + "traits": { + "smithy.api#documentation": "

The inline redaction configuration for the data protection settings.

" + } + }, + "associatedPortalArns": { + "target": "com.amazonaws.workspacesweb#ArnList", + "traits": { + "smithy.api#documentation": "

A list of web portal ARNs that this data protection settings resource is associated\n with.

" + } + }, + "displayName": { + "target": "com.amazonaws.workspacesweb#DisplayNameSafe", + "traits": { + "smithy.api#documentation": "

The display name of the data protection settings.

" + } + }, + "description": { + "target": "com.amazonaws.workspacesweb#DescriptionSafe", + "traits": { + "smithy.api#documentation": "

The description of the data protection settings.

" + } + }, + "creationDate": { + "target": "com.amazonaws.workspacesweb#Timestamp", + "traits": { + "smithy.api#documentation": "

The creation date timestamp of the data protection settings.

" + } + }, + "customerManagedKey": { + "target": "com.amazonaws.workspacesweb#keyArn", + "traits": { + "smithy.api#documentation": "

The customer managed key used to encrypt sensitive information in the data protection\n settings.

" + } + }, + "additionalEncryptionContext": { + "target": "com.amazonaws.workspacesweb#EncryptionContextMap", + "traits": { + "smithy.api#documentation": "

The additional encryption context of the data protection settings.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The data protection settings resource that can be associated with a web portal.

" + } + }, + "com.amazonaws.workspacesweb#DataProtectionSettingsList": { + "type": "list", + "member": { + "target": "com.amazonaws.workspacesweb#DataProtectionSettingsSummary" + } + }, + "com.amazonaws.workspacesweb#DataProtectionSettingsResource": { + "type": "resource", + "identifiers": { + "dataProtectionSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN" + } + }, + "properties": { + "displayName": { + "target": "com.amazonaws.workspacesweb#DisplayNameSafe" + }, + "description": { + "target": "com.amazonaws.workspacesweb#DescriptionSafe" + }, + "tags": { + "target": "com.amazonaws.workspacesweb#TagList" + }, + "customerManagedKey": { + "target": "com.amazonaws.workspacesweb#keyArn" + }, + "additionalEncryptionContext": { + "target": "com.amazonaws.workspacesweb#EncryptionContextMap" + }, + "inlineRedactionConfiguration": { + "target": "com.amazonaws.workspacesweb#InlineRedactionConfiguration" + }, + "associatedPortalArns": { + "target": "com.amazonaws.workspacesweb#ArnList" + }, + "creationDate": { + "target": "com.amazonaws.workspacesweb#Timestamp" + } + }, + "create": { + "target": "com.amazonaws.workspacesweb#CreateDataProtectionSettings" + }, + "read": { + "target": "com.amazonaws.workspacesweb#GetDataProtectionSettings" + }, + "update": { + "target": "com.amazonaws.workspacesweb#UpdateDataProtectionSettings" + }, + "delete": { + "target": "com.amazonaws.workspacesweb#DeleteDataProtectionSettings" + }, + "list": { + "target": "com.amazonaws.workspacesweb#ListDataProtectionSettings" + }, + "traits": { + "aws.api#arn": { + "template": "{dataProtectionSettingsArn}", + "absolute": true + }, + "aws.api#taggable": { + "property": "tags" + }, + "aws.cloudformation#cfnResource": { + "name": "DataProtectionSettings" + } + } + }, + "com.amazonaws.workspacesweb#DataProtectionSettingsSummary": { + "type": "structure", + "members": { + "dataProtectionSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "

The ARN of the data protection settings.

", + "smithy.api#required": {}, + "smithy.api#resourceIdentifier": "dataProtectionSettingsArn" + } + }, + "displayName": { + "target": "com.amazonaws.workspacesweb#DisplayNameSafe", + "traits": { + "smithy.api#documentation": "

The display name of the data protection settings.

" + } + }, + "description": { + "target": "com.amazonaws.workspacesweb#DescriptionSafe", + "traits": { + "smithy.api#documentation": "

The description of the data protection settings.

" + } + }, + "creationDate": { + "target": "com.amazonaws.workspacesweb#Timestamp", + "traits": { + "smithy.api#documentation": "

The creation date timestamp of the data protection settings.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The summary of the data protection settings.

" + } + }, + "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": {} } } }, @@ -2548,6 +2956,64 @@ "smithy.api#output": {} } }, + "com.amazonaws.workspacesweb#DeleteDataProtectionSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#DeleteDataProtectionSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#DeleteDataProtectionSettingsResponse" + }, + "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 data protection settings.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/dataProtectionSettings/{dataProtectionSettingsArn+}", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workspacesweb#DeleteDataProtectionSettingsRequest": { + "type": "structure", + "members": { + "dataProtectionSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "

The ARN of the data protection settings.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.workspacesweb#DeleteDataProtectionSettingsResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.workspacesweb#DeleteIdentityProvider": { "type": "operation", "input": { @@ -2965,6 +3431,17 @@ "smithy.api#sensitive": {} } }, + "com.amazonaws.workspacesweb#DescriptionSafe": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[ _\\-\\d\\w]+$", + "smithy.api#sensitive": {} + } + }, "com.amazonaws.workspacesweb#DisassociateBrowserSettings": { "type": "operation", "input": { @@ -3026,6 +3503,67 @@ "smithy.api#output": {} } }, + "com.amazonaws.workspacesweb#DisassociateDataProtectionSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#DisassociateDataProtectionSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#DisassociateDataProtectionSettingsResponse" + }, + "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": "

Disassociates data protection settings from a web portal.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/portals/{portalArn+}/dataProtectionSettings", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workspacesweb#DisassociateDataProtectionSettingsRequest": { + "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": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.workspacesweb#DisassociateDataProtectionSettingsResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.workspacesweb#DisassociateIpAccessSettings": { "type": "operation", "input": { @@ -3351,6 +3889,17 @@ "smithy.api#sensitive": {} } }, + "com.amazonaws.workspacesweb#DisplayNameSafe": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^[ _\\-\\d\\w]+$", + "smithy.api#sensitive": {} + } + }, "com.amazonaws.workspacesweb#EnabledType": { "type": "string", "traits": { @@ -3513,6 +4062,72 @@ "smithy.api#output": {} } }, + "com.amazonaws.workspacesweb#GetDataProtectionSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#GetDataProtectionSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#GetDataProtectionSettingsResponse" + }, + "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 data protection settings.

", + "smithy.api#http": { + "method": "GET", + "uri": "/dataProtectionSettings/{dataProtectionSettingsArn+}", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.workspacesweb#GetDataProtectionSettingsRequest": { + "type": "structure", + "members": { + "dataProtectionSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "

The ARN of the data protection settings.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.workspacesweb#GetDataProtectionSettingsResponse": { + "type": "structure", + "members": { + "dataProtectionSettings": { + "target": "com.amazonaws.workspacesweb#DataProtectionSettings", + "traits": { + "smithy.api#documentation": "

The data protection settings.

", + "smithy.api#nestedProperties": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.workspacesweb#GetIdentityProvider": { "type": "operation", "input": { @@ -4206,6 +4821,18 @@ "smithy.api#output": {} } }, + "com.amazonaws.workspacesweb#GlobalInlineRedactionUrls": { + "type": "list", + "member": { + "target": "com.amazonaws.workspacesweb#InlineRedactionUrl" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + } + } + }, "com.amazonaws.workspacesweb#IdentityProvider": { "type": "structure", "members": { @@ -4332,60 +4959,169 @@ "smithy.api#resourceIdentifier": "identityProviderArn" } }, - "identityProviderName": { - "target": "com.amazonaws.workspacesweb#IdentityProviderName", + "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#IdleDisconnectTimeoutInMinutes": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 0, + "max": 60 + } + } + }, + "com.amazonaws.workspacesweb#InlineRedactionConfiguration": { + "type": "structure", + "members": { + "inlineRedactionPatterns": { + "target": "com.amazonaws.workspacesweb#InlineRedactionPatterns", + "traits": { + "smithy.api#documentation": "

The inline redaction patterns to be enabled for the inline redaction configuration.

", + "smithy.api#required": {} + } + }, + "globalEnforcedUrls": { + "target": "com.amazonaws.workspacesweb#GlobalInlineRedactionUrls", + "traits": { + "smithy.api#documentation": "

The global enforced URL configuration for the inline redaction configuration. This is applied to patterns that do not have a pattern-level enforced URL list.

" + } + }, + "globalExemptUrls": { + "target": "com.amazonaws.workspacesweb#GlobalInlineRedactionUrls", + "traits": { + "smithy.api#documentation": "

The global exempt URL configuration for the inline redaction configuration. This is applied to patterns that do not have a pattern-level exempt URL list.

" + } + }, + "globalConfidenceLevel": { + "target": "com.amazonaws.workspacesweb#ConfidenceLevel", + "traits": { + "smithy.api#documentation": "

The global confidence level for the inline redaction configuration. This indicates the\n certainty of data type matches in the redaction process. Confidence level 3 means high\n confidence, and requires a formatted text pattern match in order for content to be\n redacted. Confidence level 2 means medium confidence, and redaction considers both\n formatted and unformatted text, and adds keyword associate to the logic. Confidence level 1\n means low confidence, and redaction is enforced for both formatted pattern + unformatted\n pattern without keyword. This is applied to patterns that do not have a pattern-level\n confidence level. Defaults to confidence level 2.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The configuration for in-session inline redaction.

" + } + }, + "com.amazonaws.workspacesweb#InlineRedactionPattern": { + "type": "structure", + "members": { + "builtInPatternId": { + "target": "com.amazonaws.workspacesweb#BuiltInPatternId", + "traits": { + "smithy.api#documentation": "

The built-in pattern from the list of preconfigured patterns. Either a customPattern or builtInPatternId is required.

" + } + }, + "customPattern": { + "target": "com.amazonaws.workspacesweb#CustomPattern", + "traits": { + "smithy.api#documentation": "

>The configuration for a custom pattern. Either a customPattern or builtInPatternId is required.

" + } + }, + "redactionPlaceHolder": { + "target": "com.amazonaws.workspacesweb#RedactionPlaceHolder", + "traits": { + "smithy.api#documentation": "

The redaction placeholder that will replace the redacted text in session for the inline redaction pattern.

", + "smithy.api#required": {} + } + }, + "enforcedUrls": { + "target": "com.amazonaws.workspacesweb#InlineRedactionUrls", + "traits": { + "smithy.api#documentation": "

The enforced URL configuration for the inline redaction pattern. This will override the global enforced URL configuration.

" + } + }, + "exemptUrls": { + "target": "com.amazonaws.workspacesweb#InlineRedactionUrls", "traits": { - "smithy.api#documentation": "

The identity provider name.

" + "smithy.api#documentation": "

The exempt URL configuration for the inline redaction pattern. This will override the global exempt URL configuration for the inline redaction pattern.

" } }, - "identityProviderType": { - "target": "com.amazonaws.workspacesweb#IdentityProviderType", + "confidenceLevel": { + "target": "com.amazonaws.workspacesweb#ConfidenceLevel", "traits": { - "smithy.api#documentation": "

The identity provider type.

" + "smithy.api#documentation": "

The confidence level for inline redaction pattern. This indicates the certainty of data\n type matches in the redaction process. Confidence level 3 means high confidence, and\n requires a formatted text pattern match in order for content to be redacted. Confidence\n level 2 means medium confidence, and redaction considers both formatted and unformatted\n text, and adds keyword associate to the logic. Confidence level 1 means low confidence, and\n redaction is enforced for both formatted pattern + unformatted pattern without keyword.\n This overrides the global confidence level.

" } } }, "traits": { - "smithy.api#documentation": "

The summary of the identity provider.

" + "smithy.api#documentation": "

The set of patterns that determine the data types redacted in session.

" } }, - "com.amazonaws.workspacesweb#IdentityProviderType": { + "com.amazonaws.workspacesweb#InlineRedactionPatterns": { + "type": "list", + "member": { + "target": "com.amazonaws.workspacesweb#InlineRedactionPattern" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 150 + } + } + }, + "com.amazonaws.workspacesweb#InlineRedactionUrl": { "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" - } - ] + "smithy.api#pattern": "^((([a-zA-Z][a-zA-Z0-9+.-]*):\\/\\/(\\*|[\\w%._\\-\\+~#=@]+)?(\\/[^@\\s]*)?(?:\\?([^*\\s]+(?:\\*?)))?)|(\\*|[\\w%._\\-\\+~#=@]+\\.[\\w%._\\-\\+~#=@]+)(?::(\\d{1,5}))?(\\/[^@\\s]*)?(?:\\?([^*\\s]+(?:\\*?)))?|(([a-zA-Z][a-zA-Z0-9+.-]*):(\\/\\/)?\\*))$", + "smithy.api#sensitive": {} } }, - "com.amazonaws.workspacesweb#IdleDisconnectTimeoutInMinutes": { - "type": "integer", + "com.amazonaws.workspacesweb#InlineRedactionUrls": { + "type": "list", + "member": { + "target": "com.amazonaws.workspacesweb#InlineRedactionUrl" + }, "traits": { - "smithy.api#range": { - "min": 0, - "max": 60 + "smithy.api#length": { + "min": 1, + "max": 20 } } }, @@ -4743,6 +5479,86 @@ "smithy.api#output": {} } }, + "com.amazonaws.workspacesweb#ListDataProtectionSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#ListDataProtectionSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#ListDataProtectionSettingsResponse" + }, + "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 data protection settings.

", + "smithy.api#http": { + "method": "GET", + "uri": "/dataProtectionSettings", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "dataProtectionSettings" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.workspacesweb#ListDataProtectionSettingsRequest": { + "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\n 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" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.workspacesweb#ListDataProtectionSettingsResponse": { + "type": "structure", + "members": { + "dataProtectionSettings": { + "target": "com.amazonaws.workspacesweb#DataProtectionSettingsList", + "traits": { + "smithy.api#documentation": "

The data protection settings.

" + } + }, + "nextToken": { + "target": "com.amazonaws.workspacesweb#PaginationToken", + "traits": { + "smithy.api#documentation": "

The pagination token used to retrieve the next page of results for this\n operation.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.workspacesweb#ListIdentityProviders": { "type": "operation", "input": { @@ -5741,6 +6557,17 @@ "smithy.api#pattern": "^\\S+$" } }, + "com.amazonaws.workspacesweb#PatternName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 20 + }, + "smithy.api#pattern": "^[_\\-\\d\\w]+$", + "smithy.api#sensitive": {} + } + }, "com.amazonaws.workspacesweb#Portal": { "type": "structure", "members": { @@ -5794,6 +6621,12 @@ "smithy.api#documentation": "

The ARN of the browser settings that is associated with this web portal.

" } }, + "dataProtectionSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "

The ARN of the data protection settings.

" + } + }, "userSettingsArn": { "target": "com.amazonaws.workspacesweb#ARN", "traits": { @@ -5920,6 +6753,9 @@ "browserSettingsArn": { "target": "com.amazonaws.workspacesweb#ARN" }, + "dataProtectionSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN" + }, "userSettingsArn": { "target": "com.amazonaws.workspacesweb#ARN" }, @@ -5979,6 +6815,9 @@ { "target": "com.amazonaws.workspacesweb#AssociateBrowserSettings" }, + { + "target": "com.amazonaws.workspacesweb#AssociateDataProtectionSettings" + }, { "target": "com.amazonaws.workspacesweb#AssociateIpAccessSettings" }, @@ -5997,6 +6836,9 @@ { "target": "com.amazonaws.workspacesweb#DisassociateBrowserSettings" }, + { + "target": "com.amazonaws.workspacesweb#DisassociateDataProtectionSettings" + }, { "target": "com.amazonaws.workspacesweb#DisassociateIpAccessSettings" }, @@ -6028,6 +6870,7 @@ "name": "Portal", "additionalSchemas": [ "com.amazonaws.workspacesweb#AssociateBrowserSettingsRequest", + "com.amazonaws.workspacesweb#AssociateDataProtectionSettingsRequest", "com.amazonaws.workspacesweb#AssociateNetworkSettingsRequest", "com.amazonaws.workspacesweb#AssociateUserSettingsRequest", "com.amazonaws.workspacesweb#AssociateUserAccessLoggingSettingsRequest", @@ -6111,6 +6954,12 @@ "smithy.api#documentation": "

The ARN of the browser settings that is associated with the web portal.

" } }, + "dataProtectionSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "

The ARN of the data protection settings.

" + } + }, "userSettingsArn": { "target": "com.amazonaws.workspacesweb#ARN", "traits": { @@ -6167,6 +7016,60 @@ "com.amazonaws.workspacesweb#QuotaCode": { "type": "string" }, + "com.amazonaws.workspacesweb#RedactionPlaceHolder": { + "type": "structure", + "members": { + "redactionPlaceHolderType": { + "target": "com.amazonaws.workspacesweb#RedactionPlaceHolderType", + "traits": { + "smithy.api#documentation": "

The redaction placeholder type that will replace the redacted text in session.

", + "smithy.api#required": {} + } + }, + "redactionPlaceHolderText": { + "target": "com.amazonaws.workspacesweb#RedactionPlaceHolderText", + "traits": { + "smithy.api#documentation": "

The redaction placeholder text that will replace the redacted text in session for the custom text redaction placeholder type.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The redaction placeholder that will replace the redacted text in session.

" + } + }, + "com.amazonaws.workspacesweb#RedactionPlaceHolderText": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 20 + }, + "smithy.api#pattern": "^[*_\\-\\d\\w]+$", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.workspacesweb#RedactionPlaceHolderType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "CustomText", + "name": "CUSTOM_TEXT" + } + ] + } + }, + "com.amazonaws.workspacesweb#Regex": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 300 + }, + "smithy.api#pattern": "^\\/((?:[^\\n])+)\\/([gimsuyvd]{0,8})$", + "smithy.api#sensitive": {} + } + }, "com.amazonaws.workspacesweb#RendererType": { "type": "string", "traits": { @@ -6928,6 +7831,97 @@ "smithy.api#output": {} } }, + "com.amazonaws.workspacesweb#UpdateDataProtectionSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#UpdateDataProtectionSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#UpdateDataProtectionSettingsResponse" + }, + "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 data protection settings.

", + "smithy.api#http": { + "method": "PATCH", + "uri": "/dataProtectionSettings/{dataProtectionSettingsArn+}", + "code": 200 + } + } + }, + "com.amazonaws.workspacesweb#UpdateDataProtectionSettingsRequest": { + "type": "structure", + "members": { + "dataProtectionSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "

The ARN of the data protection settings.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "inlineRedactionConfiguration": { + "target": "com.amazonaws.workspacesweb#InlineRedactionConfiguration", + "traits": { + "smithy.api#documentation": "

The inline redaction configuration of the data protection settings that will be applied to all sessions.

" + } + }, + "displayName": { + "target": "com.amazonaws.workspacesweb#DisplayNameSafe", + "traits": { + "smithy.api#documentation": "

The display name of the data protection settings.

" + } + }, + "description": { + "target": "com.amazonaws.workspacesweb#DescriptionSafe", + "traits": { + "smithy.api#documentation": "

The description of the data protection settings.

" + } + }, + "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.

\n

If you do not specify a client token, one is automatically generated by the Amazon Web Services\n SDK.

", + "smithy.api#idempotencyToken": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.workspacesweb#UpdateDataProtectionSettingsResponse": { + "type": "structure", + "members": { + "dataProtectionSettings": { + "target": "com.amazonaws.workspacesweb#DataProtectionSettings", + "traits": { + "smithy.api#documentation": "

The data protection settings.

", + "smithy.api#nestedProperties": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.workspacesweb#UpdateIdentityProvider": { "type": "operation", "input": { diff --git a/codegen/sdk-codegen/aws-models/workspaces.json b/codegen/sdk-codegen/aws-models/workspaces.json index b2815bb5f5f..f7043d97c0c 100644 --- a/codegen/sdk-codegen/aws-models/workspaces.json +++ b/codegen/sdk-codegen/aws-models/workspaces.json @@ -77,7 +77,7 @@ "ClientToken": { "target": "com.amazonaws.workspaces#ClientToken", "traits": { - "smithy.api#documentation": "

A string of up to 64 ASCII characters that Amazon EFS uses to ensure idempotent creation.

" + "smithy.api#documentation": "

A string of up to 64 ASCII characters that Amazon WorkSpaces uses to ensure idempotent creation.

" } } }, @@ -1798,7 +1798,7 @@ "ClientToken": { "target": "com.amazonaws.workspaces#ClientToken", "traits": { - "smithy.api#documentation": "

A string of up to 64 ASCII characters that Amazon EFS uses to ensure idempotent creation.

" + "smithy.api#documentation": "

A string of up to 64 ASCII characters that Amazon WorkSpaces uses to ensure idempotent creation.

" } } }, @@ -2960,7 +2960,7 @@ "ClientToken": { "target": "com.amazonaws.workspaces#ClientToken", "traits": { - "smithy.api#documentation": "

A string of up to 64 ASCII characters that Amazon EFS uses to ensure idempotent creation.

" + "smithy.api#documentation": "

A string of up to 64 ASCII characters that Amazon WorkSpaces uses to ensure idempotent creation.

" } } }, @@ -7358,6 +7358,12 @@ "traits": { "smithy.api#enumValue": "RHEL_8" } + }, + "ROCKY_8": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ROCKY_8" + } } } }, @@ -10845,6 +10851,102 @@ "traits": { "smithy.api#enumValue": "ReservedStorageInUse" } + }, + "ADDITIONAL_DRIVES_PRESENT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AdditionalDrivesPresent" + } + }, + "WINDOWS_UPDATES_REQUIRED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "WindowsUpdatesRequired" + } + }, + "SYSPREP_FILE_MISSING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SysPrepFileMissing" + } + }, + "USER_PROFILE_MISSING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UserProfileMissing" + } + }, + "INSUFFICIENT_DISK_SPACE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "InsufficientDiskSpace" + } + }, + "ENVIRONMENT_VARIABLES_PATH_MISSING_ENTRIES": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "EnvironmentVariablesPathMissingEntries" + } + }, + "DOMAIN_ACCOUNT_SERVICES_FOUND": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DomainAccountServicesFound" + } + }, + "INVALID_IP": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "InvalidIp" + } + }, + "REMOTE_DESKTOP_SERVICES_DISABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "RemoteDesktopServicesDisabled" + } + }, + "WINDOWS_MODULES_INSTALLER_DISABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "WindowsModulesInstallerDisabled" + } + }, + "AMAZON_SSM_AGENT_ENABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AmazonSsmAgentEnabled" + } + }, + "UNSUPPORTED_SECURITY_PROTOCOL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UnsupportedSecurityProtocol" + } + }, + "MULTIPLE_USER_PROFILES": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "MultipleUserProfiles" + } + }, + "STAGED_APPX_PACKAGE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "StagedAppxPackage" + } + }, + "UNSUPPORTED_OS_UPGRADE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UnsupportedOsUpgrade" + } + }, + "INSUFFICIENT_REARM_COUNT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "InsufficientRearmCount" + } } } }, 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 02b08efd46a..e40b671e252 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 @@ -5063,6 +5063,7 @@ }, "connect-campaigns" : { "endpoints" : { + "af-south-1" : { }, "ap-southeast-2" : { }, "ca-central-1" : { }, "eu-central-1" : { }, @@ -21630,6 +21631,7 @@ "ap-northeast-2" : { }, "ap-northeast-3" : { }, "ap-south-1" : { }, + "ap-south-2" : { }, "ap-southeast-1" : { }, "ap-southeast-2" : { }, "ap-southeast-3" : { }, diff --git a/config/CHANGELOG.md b/config/CHANGELOG.md index 91c59f49cbf..72889241d26 100644 --- a/config/CHANGELOG.md +++ b/config/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.28.5 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.4 (2024-11-14) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/config/go.mod b/config/go.mod index e540022bf7f..8f6f215a0cb 100644 --- a/config/go.mod +++ b/config/go.mod @@ -3,21 +3,21 @@ module github.com/aws/aws-sdk-go-v2/config go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/credentials v1.17.45 - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.19 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/credentials v1.17.46 + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.20 github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 - github.com/aws/aws-sdk-go-v2/service/sso v1.24.5 - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.4 - github.com/aws/aws-sdk-go-v2/service/sts v1.33.0 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2/service/sso v1.24.6 + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.5 + github.com/aws/aws-sdk-go-v2/service/sts v1.33.1 + github.com/aws/smithy-go v1.22.1 ) require ( - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 // indirect ) replace github.com/aws/aws-sdk-go-v2 => ../ diff --git a/config/go.sum b/config/go.sum index 70a20636e37..bd2678891af 100644 --- a/config/go.sum +++ b/config/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/config/go_module_metadata.go b/config/go_module_metadata.go index 75a7fe1e825..65c440763b5 100644 --- a/config/go_module_metadata.go +++ b/config/go_module_metadata.go @@ -3,4 +3,4 @@ package config // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.4" +const goModuleVersion = "1.28.5" diff --git a/credentials/CHANGELOG.md b/credentials/CHANGELOG.md index ee332310031..3730bc7b47e 100644 --- a/credentials/CHANGELOG.md +++ b/credentials/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.17.46 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.17.45 (2024-11-14) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/credentials/go.mod b/credentials/go.mod index 06619aa833d..877259cf906 100644 --- a/credentials/go.mod +++ b/credentials/go.mod @@ -3,19 +3,19 @@ module github.com/aws/aws-sdk-go-v2/credentials go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.19 - github.com/aws/aws-sdk-go-v2/service/sso v1.24.5 - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.4 - github.com/aws/aws-sdk-go-v2/service/sts v1.33.0 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.20 + github.com/aws/aws-sdk-go-v2/service/sso v1.24.6 + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.5 + github.com/aws/aws-sdk-go-v2/service/sts v1.33.1 + github.com/aws/smithy-go v1.22.1 ) require ( - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 // indirect ) replace github.com/aws/aws-sdk-go-v2 => ../ diff --git a/credentials/go.sum b/credentials/go.sum index 70a20636e37..bd2678891af 100644 --- a/credentials/go.sum +++ b/credentials/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/credentials/go_module_metadata.go b/credentials/go_module_metadata.go index b6bb1432fbd..adc697b5bc3 100644 --- a/credentials/go_module_metadata.go +++ b/credentials/go_module_metadata.go @@ -3,4 +3,4 @@ package credentials // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.17.45" +const goModuleVersion = "1.17.46" diff --git a/example/service/dynamodb/createTable/go.mod b/example/service/dynamodb/createTable/go.mod index e5ff9b05209..087ec65094d 100644 --- a/example/service/dynamodb/createTable/go.mod +++ b/example/service/dynamodb/createTable/go.mod @@ -3,24 +3,24 @@ module github.com/aws/aws-sdk-go-v2/example/service/dynamodb/createTable go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/config v1.28.4 - github.com/aws/aws-sdk-go-v2/service/dynamodb v1.37.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/config v1.28.5 + github.com/aws/aws-sdk-go-v2/service/dynamodb v1.37.1 ) require ( - github.com/aws/aws-sdk-go-v2/credentials v1.17.45 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.19 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.17.46 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.20 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.4 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.24.5 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.4 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.33.0 // indirect - github.com/aws/smithy-go v1.22.0 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.5 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.24.6 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.5 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.33.1 // indirect + github.com/aws/smithy-go v1.22.1 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect ) diff --git a/example/service/dynamodb/createTable/go.sum b/example/service/dynamodb/createTable/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/example/service/dynamodb/createTable/go.sum +++ b/example/service/dynamodb/createTable/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/example/service/dynamodb/scanItems/go.mod b/example/service/dynamodb/scanItems/go.mod index 5be4b0a05a1..e188c7e58b0 100644 --- a/example/service/dynamodb/scanItems/go.mod +++ b/example/service/dynamodb/scanItems/go.mod @@ -3,26 +3,26 @@ module github.com/aws/aws-sdk-go-v2/example/service/dynamodb/listItems go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/config v1.28.4 - github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.15.16 - github.com/aws/aws-sdk-go-v2/service/dynamodb v1.37.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/config v1.28.5 + github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.15.17 + github.com/aws/aws-sdk-go-v2/service/dynamodb v1.37.1 ) require ( - github.com/aws/aws-sdk-go-v2/credentials v1.17.45 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.19 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.17.46 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.20 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect - github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.24.5 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.4 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.24.5 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.4 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.33.0 // indirect - github.com/aws/smithy-go v1.22.0 // indirect + github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.24.6 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.5 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.24.6 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.5 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.33.1 // indirect + github.com/aws/smithy-go v1.22.1 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect ) diff --git a/example/service/dynamodb/scanItems/go.sum b/example/service/dynamodb/scanItems/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/example/service/dynamodb/scanItems/go.sum +++ b/example/service/dynamodb/scanItems/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/example/service/s3/listObjects/go.mod b/example/service/s3/listObjects/go.mod index b188c9bd055..b875cdbcef7 100644 --- a/example/service/s3/listObjects/go.mod +++ b/example/service/s3/listObjects/go.mod @@ -3,27 +3,27 @@ module github.com/aws/aws-sdk-go-v2/example/service/s3/listObjects go 1.21 require ( - github.com/aws/aws-sdk-go-v2/config v1.28.4 - github.com/aws/aws-sdk-go-v2/service/s3 v1.67.0 + github.com/aws/aws-sdk-go-v2/config v1.28.5 + github.com/aws/aws-sdk-go-v2/service/s3 v1.67.1 ) require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 // indirect - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.6 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.17.45 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.19 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 // indirect + github.com/aws/aws-sdk-go-v2 v1.32.5 // indirect + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.7 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.17.46 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.20 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect - github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.23 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.4.4 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.4 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.24.5 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.4 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.33.0 // indirect - github.com/aws/smithy-go v1.22.0 // indirect + github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.24 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.4.5 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.5 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.24.6 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.5 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.33.1 // indirect + github.com/aws/smithy-go v1.22.1 // indirect ) replace github.com/aws/aws-sdk-go-v2 => ../../../../ diff --git a/example/service/s3/listObjects/go.sum b/example/service/s3/listObjects/go.sum index 70a20636e37..bd2678891af 100644 --- a/example/service/s3/listObjects/go.sum +++ b/example/service/s3/listObjects/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/example/service/s3/usingPrivateLink/go.mod b/example/service/s3/usingPrivateLink/go.mod index 147233661d4..a75a62ef88c 100644 --- a/example/service/s3/usingPrivateLink/go.mod +++ b/example/service/s3/usingPrivateLink/go.mod @@ -3,28 +3,28 @@ module github.com/aws/aws-sdk-go-v2/example/service/s3/usingPrivateLink go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/config v1.28.4 - github.com/aws/aws-sdk-go-v2/service/s3 v1.67.0 - github.com/aws/aws-sdk-go-v2/service/s3control v1.50.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/config v1.28.5 + github.com/aws/aws-sdk-go-v2/service/s3 v1.67.1 + github.com/aws/aws-sdk-go-v2/service/s3control v1.50.1 ) require ( - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.6 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.17.45 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.19 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 // indirect + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.7 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.17.46 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.20 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect - github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.23 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.4.4 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.4 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.24.5 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.4 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.33.0 // indirect - github.com/aws/smithy-go v1.22.0 // indirect + github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.24 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.4.5 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.5 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.24.6 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.5 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.33.1 // indirect + github.com/aws/smithy-go v1.22.1 // indirect ) replace github.com/aws/aws-sdk-go-v2 => ../../../../ diff --git a/example/service/s3/usingPrivateLink/go.sum b/example/service/s3/usingPrivateLink/go.sum index 70a20636e37..bd2678891af 100644 --- a/example/service/s3/usingPrivateLink/go.sum +++ b/example/service/s3/usingPrivateLink/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/feature/cloudfront/sign/CHANGELOG.md b/feature/cloudfront/sign/CHANGELOG.md index 471713438d0..2705a91e98f 100644 --- a/feature/cloudfront/sign/CHANGELOG.md +++ b/feature/cloudfront/sign/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.8.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.8.0 (2024-11-06) * **Feature**: Add Expires field to CookieOptions. diff --git a/feature/cloudfront/sign/go.mod b/feature/cloudfront/sign/go.mod index 1248c0db15b..7c1398ca8a1 100644 --- a/feature/cloudfront/sign/go.mod +++ b/feature/cloudfront/sign/go.mod @@ -2,8 +2,8 @@ module github.com/aws/aws-sdk-go-v2/feature/cloudfront/sign go 1.21 -require github.com/aws/aws-sdk-go-v2 v1.32.4 +require github.com/aws/aws-sdk-go-v2 v1.32.5 -require github.com/aws/smithy-go v1.22.0 // indirect +require github.com/aws/smithy-go v1.22.1 // indirect replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/feature/cloudfront/sign/go.sum b/feature/cloudfront/sign/go.sum index 70a20636e37..bd2678891af 100644 --- a/feature/cloudfront/sign/go.sum +++ b/feature/cloudfront/sign/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/feature/cloudfront/sign/go_module_metadata.go b/feature/cloudfront/sign/go_module_metadata.go index 461d5499344..9564cdabbb3 100644 --- a/feature/cloudfront/sign/go_module_metadata.go +++ b/feature/cloudfront/sign/go_module_metadata.go @@ -3,4 +3,4 @@ package sign // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.8.0" +const goModuleVersion = "1.8.1" diff --git a/feature/dynamodb/attributevalue/CHANGELOG.md b/feature/dynamodb/attributevalue/CHANGELOG.md index 6b3bdff329b..8041f5fc4ff 100644 --- a/feature/dynamodb/attributevalue/CHANGELOG.md +++ b/feature/dynamodb/attributevalue/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.15.17 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.15.16 (2024-11-13) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/feature/dynamodb/attributevalue/go.mod b/feature/dynamodb/attributevalue/go.mod index 77cb7ba1c55..7e6889b2e4c 100644 --- a/feature/dynamodb/attributevalue/go.mod +++ b/feature/dynamodb/attributevalue/go.mod @@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/service/dynamodb v1.37.0 - github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.24.5 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/service/dynamodb v1.37.1 + github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.24.6 ) -require github.com/aws/smithy-go v1.22.0 // indirect +require github.com/aws/smithy-go v1.22.1 // indirect replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/feature/dynamodb/attributevalue/go.sum b/feature/dynamodb/attributevalue/go.sum index 70a20636e37..bd2678891af 100644 --- a/feature/dynamodb/attributevalue/go.sum +++ b/feature/dynamodb/attributevalue/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/feature/dynamodb/attributevalue/go_module_metadata.go b/feature/dynamodb/attributevalue/go_module_metadata.go index 70cc9805e28..69e7286d8c4 100644 --- a/feature/dynamodb/attributevalue/go_module_metadata.go +++ b/feature/dynamodb/attributevalue/go_module_metadata.go @@ -3,4 +3,4 @@ package attributevalue // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.15.16" +const goModuleVersion = "1.15.17" diff --git a/feature/dynamodb/expression/CHANGELOG.md b/feature/dynamodb/expression/CHANGELOG.md index a333a64212d..ab6d6dc141b 100644 --- a/feature/dynamodb/expression/CHANGELOG.md +++ b/feature/dynamodb/expression/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.7.52 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.7.51 (2024-11-13) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/feature/dynamodb/expression/go.mod b/feature/dynamodb/expression/go.mod index 54966f7f7ac..6f207f56507 100644 --- a/feature/dynamodb/expression/go.mod +++ b/feature/dynamodb/expression/go.mod @@ -3,18 +3,18 @@ module github.com/aws/aws-sdk-go-v2/feature/dynamodb/expression go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.15.16 - github.com/aws/aws-sdk-go-v2/service/dynamodb v1.37.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.15.17 + github.com/aws/aws-sdk-go-v2/service/dynamodb v1.37.1 ) require ( - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 // indirect - github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.24.5 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.4 // indirect - github.com/aws/smithy-go v1.22.0 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 // indirect + github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.24.6 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.5 // indirect + github.com/aws/smithy-go v1.22.1 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect ) diff --git a/feature/dynamodb/expression/go.sum b/feature/dynamodb/expression/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/feature/dynamodb/expression/go.sum +++ b/feature/dynamodb/expression/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/feature/dynamodb/expression/go_module_metadata.go b/feature/dynamodb/expression/go_module_metadata.go index e494cabd595..2d140967119 100644 --- a/feature/dynamodb/expression/go_module_metadata.go +++ b/feature/dynamodb/expression/go_module_metadata.go @@ -3,4 +3,4 @@ package expression // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.7.51" +const goModuleVersion = "1.7.52" diff --git a/feature/dynamodbstreams/attributevalue/CHANGELOG.md b/feature/dynamodbstreams/attributevalue/CHANGELOG.md index 6cfe98aed2d..74fa5780a5f 100644 --- a/feature/dynamodbstreams/attributevalue/CHANGELOG.md +++ b/feature/dynamodbstreams/attributevalue/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.14.52 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.14.51 (2024-11-13) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/feature/dynamodbstreams/attributevalue/go.mod b/feature/dynamodbstreams/attributevalue/go.mod index 6754de6080a..3aa634bd10a 100644 --- a/feature/dynamodbstreams/attributevalue/go.mod +++ b/feature/dynamodbstreams/attributevalue/go.mod @@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/feature/dynamodbstreams/attributevalue go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/service/dynamodb v1.37.0 - github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.24.5 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/service/dynamodb v1.37.1 + github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.24.6 ) -require github.com/aws/smithy-go v1.22.0 // indirect +require github.com/aws/smithy-go v1.22.1 // indirect replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/feature/dynamodbstreams/attributevalue/go.sum b/feature/dynamodbstreams/attributevalue/go.sum index 70a20636e37..bd2678891af 100644 --- a/feature/dynamodbstreams/attributevalue/go.sum +++ b/feature/dynamodbstreams/attributevalue/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/feature/dynamodbstreams/attributevalue/go_module_metadata.go b/feature/dynamodbstreams/attributevalue/go_module_metadata.go index cf9560eb0cf..af4275e473e 100644 --- a/feature/dynamodbstreams/attributevalue/go_module_metadata.go +++ b/feature/dynamodbstreams/attributevalue/go_module_metadata.go @@ -3,4 +3,4 @@ package attributevalue // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.14.51" +const goModuleVersion = "1.14.52" diff --git a/feature/ec2/imds/CHANGELOG.md b/feature/ec2/imds/CHANGELOG.md index 66beafc7149..d214419110e 100644 --- a/feature/ec2/imds/CHANGELOG.md +++ b/feature/ec2/imds/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.16.20 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.16.19 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/feature/ec2/imds/go.mod b/feature/ec2/imds/go.mod index 39456d66cbc..a9870c33fce 100644 --- a/feature/ec2/imds/go.mod +++ b/feature/ec2/imds/go.mod @@ -3,8 +3,8 @@ module github.com/aws/aws-sdk-go-v2/feature/ec2/imds go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/feature/ec2/imds/go.sum b/feature/ec2/imds/go.sum index 70a20636e37..bd2678891af 100644 --- a/feature/ec2/imds/go.sum +++ b/feature/ec2/imds/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/feature/ec2/imds/go_module_metadata.go b/feature/ec2/imds/go_module_metadata.go index 79b1d7c955a..93e4280daec 100644 --- a/feature/ec2/imds/go_module_metadata.go +++ b/feature/ec2/imds/go_module_metadata.go @@ -3,4 +3,4 @@ package imds // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.16.19" +const goModuleVersion = "1.16.20" diff --git a/feature/ec2/imds/internal/configtesting/go.mod b/feature/ec2/imds/internal/configtesting/go.mod index 954cdc408aa..4cb3de1dd8f 100644 --- a/feature/ec2/imds/internal/configtesting/go.mod +++ b/feature/ec2/imds/internal/configtesting/go.mod @@ -3,22 +3,22 @@ module github.com/aws/aws-sdk-go-v2/feature/ec2/imds/internal/configtesting go 1.21 require ( - github.com/aws/aws-sdk-go-v2/config v1.28.4 - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.19 + github.com/aws/aws-sdk-go-v2/config v1.28.5 + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.20 ) require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.17.45 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 // indirect + github.com/aws/aws-sdk-go-v2 v1.32.5 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.17.46 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.24.5 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.4 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.33.0 // indirect - github.com/aws/smithy-go v1.22.0 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.24.6 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.5 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.33.1 // indirect + github.com/aws/smithy-go v1.22.1 // indirect ) replace github.com/aws/aws-sdk-go-v2 => ../../../../../ diff --git a/feature/ec2/imds/internal/configtesting/go.sum b/feature/ec2/imds/internal/configtesting/go.sum index 70a20636e37..bd2678891af 100644 --- a/feature/ec2/imds/internal/configtesting/go.sum +++ b/feature/ec2/imds/internal/configtesting/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/feature/rds/auth/CHANGELOG.md b/feature/rds/auth/CHANGELOG.md index 8dd0edc5f7a..9e123632eb5 100644 --- a/feature/rds/auth/CHANGELOG.md +++ b/feature/rds/auth/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.4.24 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.4.23 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/feature/rds/auth/go.mod b/feature/rds/auth/go.mod index 40b399e817c..57d07105b55 100644 --- a/feature/rds/auth/go.mod +++ b/feature/rds/auth/go.mod @@ -2,8 +2,8 @@ module github.com/aws/aws-sdk-go-v2/feature/rds/auth go 1.21 -require github.com/aws/aws-sdk-go-v2 v1.32.4 +require github.com/aws/aws-sdk-go-v2 v1.32.5 -require github.com/aws/smithy-go v1.22.0 // indirect +require github.com/aws/smithy-go v1.22.1 // indirect replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/feature/rds/auth/go.sum b/feature/rds/auth/go.sum index 70a20636e37..bd2678891af 100644 --- a/feature/rds/auth/go.sum +++ b/feature/rds/auth/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/feature/rds/auth/go_module_metadata.go b/feature/rds/auth/go_module_metadata.go index 8e535c0583c..74f1e34cb78 100644 --- a/feature/rds/auth/go_module_metadata.go +++ b/feature/rds/auth/go_module_metadata.go @@ -3,4 +3,4 @@ package auth // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.4.23" +const goModuleVersion = "1.4.24" diff --git a/feature/s3/manager/CHANGELOG.md b/feature/s3/manager/CHANGELOG.md index 60b6ee914f3..e89c4a1f776 100644 --- a/feature/s3/manager/CHANGELOG.md +++ b/feature/s3/manager/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.17.39 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.17.38 (2024-11-14) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/feature/s3/manager/go.mod b/feature/s3/manager/go.mod index 9b7f7a17feb..e36b6396cf3 100644 --- a/feature/s3/manager/go.mod +++ b/feature/s3/manager/go.mod @@ -3,27 +3,27 @@ module github.com/aws/aws-sdk-go-v2/feature/s3/manager go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/config v1.28.4 - github.com/aws/aws-sdk-go-v2/service/s3 v1.67.0 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/config v1.28.5 + github.com/aws/aws-sdk-go-v2/service/s3 v1.67.1 + github.com/aws/smithy-go v1.22.1 ) require ( - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.6 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.17.45 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.19 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 // indirect + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.7 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.17.46 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.20 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect - github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.23 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.4.4 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.4 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.24.5 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.4 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.33.0 // indirect + github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.24 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.4.5 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.5 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.24.6 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.5 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.33.1 // indirect ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/feature/s3/manager/go.sum b/feature/s3/manager/go.sum index 70a20636e37..bd2678891af 100644 --- a/feature/s3/manager/go.sum +++ b/feature/s3/manager/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/feature/s3/manager/go_module_metadata.go b/feature/s3/manager/go_module_metadata.go index 9296700dff5..6d95290528d 100644 --- a/feature/s3/manager/go_module_metadata.go +++ b/feature/s3/manager/go_module_metadata.go @@ -3,4 +3,4 @@ package manager // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.17.38" +const goModuleVersion = "1.17.39" diff --git a/go.mod b/go.mod index 034f6892cd0..90925d09527 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,7 @@ module github.com/aws/aws-sdk-go-v2 require ( - github.com/aws/smithy-go v1.22.0 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/go.sum b/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/internal/configsources/CHANGELOG.md b/internal/configsources/CHANGELOG.md index 669d69af81e..6396f510993 100644 --- a/internal/configsources/CHANGELOG.md +++ b/internal/configsources/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.3.24 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.3.23 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/internal/configsources/configtesting/go.mod b/internal/configsources/configtesting/go.mod index 260ba0c31fb..408faced5bb 100644 --- a/internal/configsources/configtesting/go.mod +++ b/internal/configsources/configtesting/go.mod @@ -3,22 +3,22 @@ module github.com/aws/aws-sdk-go-v2/internal/configsources/configtesting go 1.21 require ( - github.com/aws/aws-sdk-go-v2/config v1.28.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 + github.com/aws/aws-sdk-go-v2/config v1.28.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 ) require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.17.45 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.19 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 // indirect + github.com/aws/aws-sdk-go-v2 v1.32.5 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.17.46 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.20 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.24.5 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.4 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.33.0 // indirect - github.com/aws/smithy-go v1.22.0 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.24.6 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.5 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.33.1 // indirect + github.com/aws/smithy-go v1.22.1 // indirect ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/internal/configsources/configtesting/go.sum b/internal/configsources/configtesting/go.sum index 70a20636e37..bd2678891af 100644 --- a/internal/configsources/configtesting/go.sum +++ b/internal/configsources/configtesting/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/internal/configsources/go.mod b/internal/configsources/go.mod index 10542ee3a13..b2955b0d442 100644 --- a/internal/configsources/go.mod +++ b/internal/configsources/go.mod @@ -2,8 +2,8 @@ module github.com/aws/aws-sdk-go-v2/internal/configsources go 1.21 -require github.com/aws/aws-sdk-go-v2 v1.32.4 +require github.com/aws/aws-sdk-go-v2 v1.32.5 -require github.com/aws/smithy-go v1.22.0 // indirect +require github.com/aws/smithy-go v1.22.1 // indirect replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/internal/configsources/go.sum b/internal/configsources/go.sum index 70a20636e37..bd2678891af 100644 --- a/internal/configsources/go.sum +++ b/internal/configsources/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/internal/configsources/go_module_metadata.go b/internal/configsources/go_module_metadata.go index 6a89827e924..56bea7d638b 100644 --- a/internal/configsources/go_module_metadata.go +++ b/internal/configsources/go_module_metadata.go @@ -3,4 +3,4 @@ package configsources // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.3.23" +const goModuleVersion = "1.3.24" diff --git a/internal/endpoints/v2/CHANGELOG.md b/internal/endpoints/v2/CHANGELOG.md index ac71e1c7a9e..7c870b66f02 100644 --- a/internal/endpoints/v2/CHANGELOG.md +++ b/internal/endpoints/v2/CHANGELOG.md @@ -1,3 +1,8 @@ +# v2.6.24 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v2.6.23 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/internal/endpoints/v2/go.mod b/internal/endpoints/v2/go.mod index bb20e270264..b78407377a9 100644 --- a/internal/endpoints/v2/go.mod +++ b/internal/endpoints/v2/go.mod @@ -3,8 +3,8 @@ module github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/internal/endpoints/v2/go.sum b/internal/endpoints/v2/go.sum index 70a20636e37..bd2678891af 100644 --- a/internal/endpoints/v2/go.sum +++ b/internal/endpoints/v2/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/internal/endpoints/v2/go_module_metadata.go b/internal/endpoints/v2/go_module_metadata.go index 460fef7291c..7f46f580425 100644 --- a/internal/endpoints/v2/go_module_metadata.go +++ b/internal/endpoints/v2/go_module_metadata.go @@ -3,4 +3,4 @@ package endpoints // goModuleVersion is the tagged release for this module -const goModuleVersion = "2.6.23" +const goModuleVersion = "2.6.24" diff --git a/internal/protocoltest/awsrestjson/go.mod b/internal/protocoltest/awsrestjson/go.mod index 7e60b94e277..c228b52c0ad 100644 --- a/internal/protocoltest/awsrestjson/go.mod +++ b/internal/protocoltest/awsrestjson/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/awsrestjson go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/internal/protocoltest/awsrestjson/go.sum b/internal/protocoltest/awsrestjson/go.sum index 70a20636e37..bd2678891af 100644 --- a/internal/protocoltest/awsrestjson/go.sum +++ b/internal/protocoltest/awsrestjson/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/internal/protocoltest/ec2query/go.mod b/internal/protocoltest/ec2query/go.mod index 75f6bc47909..924a6af9d39 100644 --- a/internal/protocoltest/ec2query/go.mod +++ b/internal/protocoltest/ec2query/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/ec2query go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/internal/protocoltest/ec2query/go.sum b/internal/protocoltest/ec2query/go.sum index 70a20636e37..bd2678891af 100644 --- a/internal/protocoltest/ec2query/go.sum +++ b/internal/protocoltest/ec2query/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/internal/protocoltest/jsonrpc/go.mod b/internal/protocoltest/jsonrpc/go.mod index e258989718e..b64cbcd1243 100644 --- a/internal/protocoltest/jsonrpc/go.mod +++ b/internal/protocoltest/jsonrpc/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/jsonrpc go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/internal/protocoltest/jsonrpc/go.sum b/internal/protocoltest/jsonrpc/go.sum index 70a20636e37..bd2678891af 100644 --- a/internal/protocoltest/jsonrpc/go.sum +++ b/internal/protocoltest/jsonrpc/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/internal/protocoltest/jsonrpc10/go.mod b/internal/protocoltest/jsonrpc10/go.mod index 8302cdc3f1e..e6aa77bdb9b 100644 --- a/internal/protocoltest/jsonrpc10/go.mod +++ b/internal/protocoltest/jsonrpc10/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/jsonrpc10 go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/internal/protocoltest/jsonrpc10/go.sum b/internal/protocoltest/jsonrpc10/go.sum index 70a20636e37..bd2678891af 100644 --- a/internal/protocoltest/jsonrpc10/go.sum +++ b/internal/protocoltest/jsonrpc10/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/internal/protocoltest/query/go.mod b/internal/protocoltest/query/go.mod index 6e76a8fcd84..404c62671be 100644 --- a/internal/protocoltest/query/go.mod +++ b/internal/protocoltest/query/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/query go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/internal/protocoltest/query/go.sum b/internal/protocoltest/query/go.sum index 70a20636e37..bd2678891af 100644 --- a/internal/protocoltest/query/go.sum +++ b/internal/protocoltest/query/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/internal/protocoltest/restxml/go.mod b/internal/protocoltest/restxml/go.mod index 2227ac8269f..7f90db512c4 100644 --- a/internal/protocoltest/restxml/go.mod +++ b/internal/protocoltest/restxml/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/internal/protocoltest/restxml/go.sum b/internal/protocoltest/restxml/go.sum index 70a20636e37..bd2678891af 100644 --- a/internal/protocoltest/restxml/go.sum +++ b/internal/protocoltest/restxml/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/internal/protocoltest/restxmlwithnamespace/go.mod b/internal/protocoltest/restxmlwithnamespace/go.mod index ce47f328cb3..187deac68cc 100644 --- a/internal/protocoltest/restxmlwithnamespace/go.mod +++ b/internal/protocoltest/restxmlwithnamespace/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxmlwithnamespace go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/internal/protocoltest/restxmlwithnamespace/go.sum b/internal/protocoltest/restxmlwithnamespace/go.sum index 70a20636e37..bd2678891af 100644 --- a/internal/protocoltest/restxmlwithnamespace/go.sum +++ b/internal/protocoltest/restxmlwithnamespace/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/internal/protocoltest/smithyrpcv2cbor/go.mod b/internal/protocoltest/smithyrpcv2cbor/go.mod index 8a4e91d3587..bdc28cbd44f 100644 --- a/internal/protocoltest/smithyrpcv2cbor/go.mod +++ b/internal/protocoltest/smithyrpcv2cbor/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/smithyrpcv2cbor go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/internal/protocoltest/smithyrpcv2cbor/go.sum b/internal/protocoltest/smithyrpcv2cbor/go.sum index 70a20636e37..bd2678891af 100644 --- a/internal/protocoltest/smithyrpcv2cbor/go.sum +++ b/internal/protocoltest/smithyrpcv2cbor/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/internal/v4a/CHANGELOG.md b/internal/v4a/CHANGELOG.md index a4202758403..a805ff5ad4d 100644 --- a/internal/v4a/CHANGELOG.md +++ b/internal/v4a/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.3.24 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.3.23 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/internal/v4a/go.mod b/internal/v4a/go.mod index 36b22e75ff3..2591ae7a086 100644 --- a/internal/v4a/go.mod +++ b/internal/v4a/go.mod @@ -3,8 +3,8 @@ module github.com/aws/aws-sdk-go-v2/internal/v4a go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/internal/v4a/go.sum b/internal/v4a/go.sum index 70a20636e37..bd2678891af 100644 --- a/internal/v4a/go.sum +++ b/internal/v4a/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/internal/v4a/go_module_metadata.go b/internal/v4a/go_module_metadata.go index 950a0134540..75c7043d327 100644 --- a/internal/v4a/go_module_metadata.go +++ b/internal/v4a/go_module_metadata.go @@ -3,4 +3,4 @@ package v4a // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.3.23" +const goModuleVersion = "1.3.24" diff --git a/modman.toml b/modman.toml index fcf706bedee..9cfb9026daa 100644 --- a/modman.toml +++ b/modman.toml @@ -1,7 +1,7 @@ [dependencies] "github.com/aws/aws-sdk-go" = "v1.44.28" - "github.com/aws/smithy-go" = "v1.22.0" + "github.com/aws/smithy-go" = "v1.22.1" "github.com/jmespath/go-jmespath" = "v0.4.0" [modules] diff --git a/service/accessanalyzer/CHANGELOG.md b/service/accessanalyzer/CHANGELOG.md index 296e33f1c6a..dfc3365dedc 100644 --- a/service/accessanalyzer/CHANGELOG.md +++ b/service/accessanalyzer/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.36.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.36.0 (2024-11-14) * **Feature**: Expand analyzer configuration capabilities for unused access analyzers. Unused access analyzer configurations now support the ability to exclude accounts and resource tags from analysis providing more granular control over the scope of analysis. diff --git a/service/accessanalyzer/go.mod b/service/accessanalyzer/go.mod index 26e2e46c57c..e1feecb4b0c 100644 --- a/service/accessanalyzer/go.mod +++ b/service/accessanalyzer/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/accessanalyzer go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/accessanalyzer/go.sum b/service/accessanalyzer/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/accessanalyzer/go.sum +++ b/service/accessanalyzer/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/accessanalyzer/go_module_metadata.go b/service/accessanalyzer/go_module_metadata.go index be2e2a7be07..645b93bd73f 100644 --- a/service/accessanalyzer/go_module_metadata.go +++ b/service/accessanalyzer/go_module_metadata.go @@ -3,4 +3,4 @@ package accessanalyzer // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.36.0" +const goModuleVersion = "1.36.1" diff --git a/service/account/CHANGELOG.md b/service/account/CHANGELOG.md index 66212da6ee8..40247765fcd 100644 --- a/service/account/CHANGELOG.md +++ b/service/account/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.21.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/account/go.mod b/service/account/go.mod index 50d2bd60c70..2e6e5fe23b2 100644 --- a/service/account/go.mod +++ b/service/account/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/account go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/account/go.sum b/service/account/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/account/go.sum +++ b/service/account/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/account/go_module_metadata.go b/service/account/go_module_metadata.go index 8a9caa69050..1a4c14bb4bd 100644 --- a/service/account/go_module_metadata.go +++ b/service/account/go_module_metadata.go @@ -3,4 +3,4 @@ package account // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.5" +const goModuleVersion = "1.21.6" diff --git a/service/acm/CHANGELOG.md b/service/acm/CHANGELOG.md index 2248d8794f9..0bfe61de143 100644 --- a/service/acm/CHANGELOG.md +++ b/service/acm/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.30.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.30.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/acm/go.mod b/service/acm/go.mod index b36fb2b6a1f..8358ac9bc21 100644 --- a/service/acm/go.mod +++ b/service/acm/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/acm go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/acm/go.sum b/service/acm/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/acm/go.sum +++ b/service/acm/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/acm/go_module_metadata.go b/service/acm/go_module_metadata.go index b683ef80f35..c398563e519 100644 --- a/service/acm/go_module_metadata.go +++ b/service/acm/go_module_metadata.go @@ -3,4 +3,4 @@ package acm // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.30.5" +const goModuleVersion = "1.30.6" diff --git a/service/acmpca/CHANGELOG.md b/service/acmpca/CHANGELOG.md index d933e882c87..111589f1639 100644 --- a/service/acmpca/CHANGELOG.md +++ b/service/acmpca/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.37.7 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.37.6 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/acmpca/go.mod b/service/acmpca/go.mod index aa1eecb11d5..6ff68c5d8c1 100644 --- a/service/acmpca/go.mod +++ b/service/acmpca/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/acmpca go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/acmpca/go.sum b/service/acmpca/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/acmpca/go.sum +++ b/service/acmpca/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/acmpca/go_module_metadata.go b/service/acmpca/go_module_metadata.go index f0dab16d5df..11014910111 100644 --- a/service/acmpca/go_module_metadata.go +++ b/service/acmpca/go_module_metadata.go @@ -3,4 +3,4 @@ package acmpca // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.37.6" +const goModuleVersion = "1.37.7" diff --git a/service/amp/CHANGELOG.md b/service/amp/CHANGELOG.md index 433d236545f..cbfe8b40552 100644 --- a/service/amp/CHANGELOG.md +++ b/service/amp/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.30.3 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.30.2 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/amp/go.mod b/service/amp/go.mod index 5a872c98f57..46d35538c41 100644 --- a/service/amp/go.mod +++ b/service/amp/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/amp go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/amp/go.sum b/service/amp/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/amp/go.sum +++ b/service/amp/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/amp/go_module_metadata.go b/service/amp/go_module_metadata.go index cc1f0a9adf5..9e6101842d8 100644 --- a/service/amp/go_module_metadata.go +++ b/service/amp/go_module_metadata.go @@ -3,4 +3,4 @@ package amp // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.30.2" +const goModuleVersion = "1.30.3" diff --git a/service/amplify/CHANGELOG.md b/service/amplify/CHANGELOG.md index 6cb295b1363..ebfb0d5ba39 100644 --- a/service/amplify/CHANGELOG.md +++ b/service/amplify/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.3 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/amplify/go.mod b/service/amplify/go.mod index dbad35fdea6..87483b02de3 100644 --- a/service/amplify/go.mod +++ b/service/amplify/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/amplify go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/amplify/go.sum b/service/amplify/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/amplify/go.sum +++ b/service/amplify/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/amplify/go_module_metadata.go b/service/amplify/go_module_metadata.go index 5b5805d48e7..83455819244 100644 --- a/service/amplify/go_module_metadata.go +++ b/service/amplify/go_module_metadata.go @@ -3,4 +3,4 @@ package amplify // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.3" +const goModuleVersion = "1.27.4" diff --git a/service/amplifybackend/CHANGELOG.md b/service/amplifybackend/CHANGELOG.md index 4091bd647fd..0760d34658b 100644 --- a/service/amplifybackend/CHANGELOG.md +++ b/service/amplifybackend/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/amplifybackend/go.mod b/service/amplifybackend/go.mod index d2959e3eb7a..3a1ed54c54b 100644 --- a/service/amplifybackend/go.mod +++ b/service/amplifybackend/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/amplifybackend go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/amplifybackend/go.sum b/service/amplifybackend/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/amplifybackend/go.sum +++ b/service/amplifybackend/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/amplifybackend/go_module_metadata.go b/service/amplifybackend/go_module_metadata.go index a5be2e01182..b06b4bacf22 100644 --- a/service/amplifybackend/go_module_metadata.go +++ b/service/amplifybackend/go_module_metadata.go @@ -3,4 +3,4 @@ package amplifybackend // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.5" +const goModuleVersion = "1.27.6" diff --git a/service/amplifyuibuilder/CHANGELOG.md b/service/amplifyuibuilder/CHANGELOG.md index 4080fcd205c..e9ddaaead06 100644 --- a/service/amplifyuibuilder/CHANGELOG.md +++ b/service/amplifyuibuilder/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.23.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/amplifyuibuilder/go.mod b/service/amplifyuibuilder/go.mod index b501bf24cb1..30266021562 100644 --- a/service/amplifyuibuilder/go.mod +++ b/service/amplifyuibuilder/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/amplifyuibuilder go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/amplifyuibuilder/go.sum b/service/amplifyuibuilder/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/amplifyuibuilder/go.sum +++ b/service/amplifyuibuilder/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/amplifyuibuilder/go_module_metadata.go b/service/amplifyuibuilder/go_module_metadata.go index 0c5b7f1fadc..226c7c7ec03 100644 --- a/service/amplifyuibuilder/go_module_metadata.go +++ b/service/amplifyuibuilder/go_module_metadata.go @@ -3,4 +3,4 @@ package amplifyuibuilder // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.5" +const goModuleVersion = "1.23.6" diff --git a/service/apigateway/CHANGELOG.md b/service/apigateway/CHANGELOG.md index 5e1813f9f79..641544d8f91 100644 --- a/service/apigateway/CHANGELOG.md +++ b/service/apigateway/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/apigateway/go.mod b/service/apigateway/go.mod index 5d3c582851e..6fb368d79e9 100644 --- a/service/apigateway/go.mod +++ b/service/apigateway/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/apigateway go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/apigateway/go.sum b/service/apigateway/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/apigateway/go.sum +++ b/service/apigateway/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/apigateway/go_module_metadata.go b/service/apigateway/go_module_metadata.go index 611c748e112..0de19977490 100644 --- a/service/apigateway/go_module_metadata.go +++ b/service/apigateway/go_module_metadata.go @@ -3,4 +3,4 @@ package apigateway // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.5" +const goModuleVersion = "1.27.6" diff --git a/service/apigatewaymanagementapi/CHANGELOG.md b/service/apigatewaymanagementapi/CHANGELOG.md index 4b638e8e400..cc3eb55fdd7 100644 --- a/service/apigatewaymanagementapi/CHANGELOG.md +++ b/service/apigatewaymanagementapi/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.23.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/apigatewaymanagementapi/go.mod b/service/apigatewaymanagementapi/go.mod index c34bb10b39d..95ab70518f4 100644 --- a/service/apigatewaymanagementapi/go.mod +++ b/service/apigatewaymanagementapi/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/apigatewaymanagementapi go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/apigatewaymanagementapi/go.sum b/service/apigatewaymanagementapi/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/apigatewaymanagementapi/go.sum +++ b/service/apigatewaymanagementapi/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/apigatewaymanagementapi/go_module_metadata.go b/service/apigatewaymanagementapi/go_module_metadata.go index 1a09ab2455d..fea1d5ca80c 100644 --- a/service/apigatewaymanagementapi/go_module_metadata.go +++ b/service/apigatewaymanagementapi/go_module_metadata.go @@ -3,4 +3,4 @@ package apigatewaymanagementapi // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.5" +const goModuleVersion = "1.23.6" diff --git a/service/apigatewayv2/CHANGELOG.md b/service/apigatewayv2/CHANGELOG.md index 4f14bbe5128..a419cc67afd 100644 --- a/service/apigatewayv2/CHANGELOG.md +++ b/service/apigatewayv2/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.24.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/apigatewayv2/go.mod b/service/apigatewayv2/go.mod index 3aa619a9e55..a6fef8ec82b 100644 --- a/service/apigatewayv2/go.mod +++ b/service/apigatewayv2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/apigatewayv2 go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/apigatewayv2/go.sum b/service/apigatewayv2/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/apigatewayv2/go.sum +++ b/service/apigatewayv2/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/apigatewayv2/go_module_metadata.go b/service/apigatewayv2/go_module_metadata.go index 73b0c30c021..013b4cc7649 100644 --- a/service/apigatewayv2/go_module_metadata.go +++ b/service/apigatewayv2/go_module_metadata.go @@ -3,4 +3,4 @@ package apigatewayv2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.5" +const goModuleVersion = "1.24.6" diff --git a/service/appconfig/CHANGELOG.md b/service/appconfig/CHANGELOG.md index 829b3c63f53..a875a7f2c48 100644 --- a/service/appconfig/CHANGELOG.md +++ b/service/appconfig/CHANGELOG.md @@ -1,3 +1,9 @@ +# v1.36.0 (2024-11-18) + +* **Feature**: AWS AppConfig has added a new extension action point, AT_DEPLOYMENT_TICK, to support third-party monitors to trigger an automatic rollback during a deployment. +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.35.3 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/appconfig/api_op_CreateConfigurationProfile.go b/service/appconfig/api_op_CreateConfigurationProfile.go index 27365ec34ac..737094bf62e 100644 --- a/service/appconfig/api_op_CreateConfigurationProfile.go +++ b/service/appconfig/api_op_CreateConfigurationProfile.go @@ -81,7 +81,7 @@ type CreateConfigurationProfileInput struct { // secretsmanager ://. // // - For an Amazon S3 object, specify the URI in the following format: s3:/// . - // Here is an example: s3://my-bucket/my-app/us-east-1/my-config.json + // Here is an example: s3://amzn-s3-demo-bucket/my-app/us-east-1/my-config.json // // - For an SSM document, specify either the document name in the format // ssm-document:// or the Amazon Resource Name (ARN). diff --git a/service/appconfig/api_op_ListHostedConfigurationVersions.go b/service/appconfig/api_op_ListHostedConfigurationVersions.go index fd41aa546b5..2c4111fdc2b 100644 --- a/service/appconfig/api_op_ListHostedConfigurationVersions.go +++ b/service/appconfig/api_op_ListHostedConfigurationVersions.go @@ -40,8 +40,10 @@ type ListHostedConfigurationVersionsInput struct { // This member is required. ConfigurationProfileId *string - // The maximum number of items to return for this call. The call also returns a - // token that you can specify in a subsequent call to get the next set of results. + // The maximum number of items to return for this call. If MaxResults is not + // provided in the call, AppConfig returns the maximum of 50. The call also returns + // a token that you can specify in a subsequent call to get the next set of + // results. MaxResults *int32 // A token to start the list. Use this token to get the next set of results. @@ -174,8 +176,10 @@ func (c *Client) addOperationListHostedConfigurationVersionsMiddlewares(stack *m // ListHostedConfigurationVersionsPaginatorOptions is the paginator options for // ListHostedConfigurationVersions type ListHostedConfigurationVersionsPaginatorOptions struct { - // The maximum number of items to return for this call. The call also returns a - // token that you can specify in a subsequent call to get the next set of results. + // The maximum number of items to return for this call. If MaxResults is not + // provided in the call, AppConfig returns the maximum of 50. The call also returns + // a token that you can specify in a subsequent call to get the next set of + // results. Limit int32 // Set to true if pagination should stop if the service returns a pagination token diff --git a/service/appconfig/go.mod b/service/appconfig/go.mod index 111f5a54fb2..dbca231176f 100644 --- a/service/appconfig/go.mod +++ b/service/appconfig/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/appconfig go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/appconfig/go.sum b/service/appconfig/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/appconfig/go.sum +++ b/service/appconfig/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/appconfig/go_module_metadata.go b/service/appconfig/go_module_metadata.go index ff06a720fe3..a824977535b 100644 --- a/service/appconfig/go_module_metadata.go +++ b/service/appconfig/go_module_metadata.go @@ -3,4 +3,4 @@ package appconfig // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.35.3" +const goModuleVersion = "1.36.0" diff --git a/service/appconfig/types/enums.go b/service/appconfig/types/enums.go index 9009ac515f1..607c899a5b0 100644 --- a/service/appconfig/types/enums.go +++ b/service/appconfig/types/enums.go @@ -8,6 +8,7 @@ type ActionPoint string const ( ActionPointPreCreateHostedConfigurationVersion ActionPoint = "PRE_CREATE_HOSTED_CONFIGURATION_VERSION" ActionPointPreStartDeployment ActionPoint = "PRE_START_DEPLOYMENT" + ActionPointAtDeploymentTick ActionPoint = "AT_DEPLOYMENT_TICK" ActionPointOnDeploymentStart ActionPoint = "ON_DEPLOYMENT_START" ActionPointOnDeploymentStep ActionPoint = "ON_DEPLOYMENT_STEP" ActionPointOnDeploymentBaking ActionPoint = "ON_DEPLOYMENT_BAKING" @@ -23,6 +24,7 @@ func (ActionPoint) Values() []ActionPoint { return []ActionPoint{ "PRE_CREATE_HOSTED_CONFIGURATION_VERSION", "PRE_START_DEPLOYMENT", + "AT_DEPLOYMENT_TICK", "ON_DEPLOYMENT_START", "ON_DEPLOYMENT_STEP", "ON_DEPLOYMENT_BAKING", diff --git a/service/appconfig/types/types.go b/service/appconfig/types/types.go index 17b23bfe88d..dfb67ec3da0 100644 --- a/service/appconfig/types/types.go +++ b/service/appconfig/types/types.go @@ -8,17 +8,14 @@ import ( ) // An action defines the tasks that the extension performs during the AppConfig -// workflow. Each action includes an action point such as -// ON_CREATE_HOSTED_CONFIGURATION , PRE_DEPLOYMENT , or ON_DEPLOYMENT . Each action -// also includes a name, a URI to an Lambda function, and an Amazon Resource Name -// (ARN) for an Identity and Access Management assume role. You specify the name, -// URI, and ARN for each action point defined in the extension. You can specify the -// following actions for an extension: +// workflow. Each action includes an action point, as shown in the following list: // // - PRE_CREATE_HOSTED_CONFIGURATION_VERSION // // - PRE_START_DEPLOYMENT // +// - AT_DEPLOYMENT_TICK +// // - ON_DEPLOYMENT_START // // - ON_DEPLOYMENT_STEP @@ -28,6 +25,10 @@ import ( // - ON_DEPLOYMENT_COMPLETE // // - ON_DEPLOYMENT_ROLLED_BACK +// +// Each action also includes a name, a URI to an Lambda function, and an Amazon +// Resource Name (ARN) for an Identity and Access Management assume role. You +// specify the name, URI, and ARN for each action point defined in the extension. type Action struct { // Information about the action. diff --git a/service/appconfigdata/CHANGELOG.md b/service/appconfigdata/CHANGELOG.md index 977ca1109ac..cbb976fc5b5 100644 --- a/service/appconfigdata/CHANGELOG.md +++ b/service/appconfigdata/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.18.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/appconfigdata/go.mod b/service/appconfigdata/go.mod index bac626a5990..894bf7aa228 100644 --- a/service/appconfigdata/go.mod +++ b/service/appconfigdata/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/appconfigdata go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/appconfigdata/go.sum b/service/appconfigdata/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/appconfigdata/go.sum +++ b/service/appconfigdata/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/appconfigdata/go_module_metadata.go b/service/appconfigdata/go_module_metadata.go index 4ab400a1b47..5ba5c13b6d0 100644 --- a/service/appconfigdata/go_module_metadata.go +++ b/service/appconfigdata/go_module_metadata.go @@ -3,4 +3,4 @@ package appconfigdata // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.5" +const goModuleVersion = "1.18.6" diff --git a/service/appfabric/CHANGELOG.md b/service/appfabric/CHANGELOG.md index d650f981bad..e295337428a 100644 --- a/service/appfabric/CHANGELOG.md +++ b/service/appfabric/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.11.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.11.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/appfabric/go.mod b/service/appfabric/go.mod index a9a26740338..b8987fb0b64 100644 --- a/service/appfabric/go.mod +++ b/service/appfabric/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/appfabric go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/appfabric/go.sum b/service/appfabric/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/appfabric/go.sum +++ b/service/appfabric/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/appfabric/go_module_metadata.go b/service/appfabric/go_module_metadata.go index 0b840815f84..96b9539eb3c 100644 --- a/service/appfabric/go_module_metadata.go +++ b/service/appfabric/go_module_metadata.go @@ -3,4 +3,4 @@ package appfabric // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.11.5" +const goModuleVersion = "1.11.6" diff --git a/service/appflow/CHANGELOG.md b/service/appflow/CHANGELOG.md index f75d35e3e29..b7fd01e619a 100644 --- a/service/appflow/CHANGELOG.md +++ b/service/appflow/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.45.7 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.45.6 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/appflow/go.mod b/service/appflow/go.mod index d4b5a398273..b1ce7245081 100644 --- a/service/appflow/go.mod +++ b/service/appflow/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/appflow go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/appflow/go.sum b/service/appflow/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/appflow/go.sum +++ b/service/appflow/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/appflow/go_module_metadata.go b/service/appflow/go_module_metadata.go index fe2a1d22df6..a22880fda40 100644 --- a/service/appflow/go_module_metadata.go +++ b/service/appflow/go_module_metadata.go @@ -3,4 +3,4 @@ package appflow // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.45.6" +const goModuleVersion = "1.45.7" diff --git a/service/appintegrations/CHANGELOG.md b/service/appintegrations/CHANGELOG.md index 4836b1b2b3a..34a8e519cd0 100644 --- a/service/appintegrations/CHANGELOG.md +++ b/service/appintegrations/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.30.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.30.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/appintegrations/go.mod b/service/appintegrations/go.mod index 1186fe40826..8396087451b 100644 --- a/service/appintegrations/go.mod +++ b/service/appintegrations/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/appintegrations go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/appintegrations/go.sum b/service/appintegrations/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/appintegrations/go.sum +++ b/service/appintegrations/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/appintegrations/go_module_metadata.go b/service/appintegrations/go_module_metadata.go index 3385f714e38..ae0a947cbbb 100644 --- a/service/appintegrations/go_module_metadata.go +++ b/service/appintegrations/go_module_metadata.go @@ -3,4 +3,4 @@ package appintegrations // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.30.5" +const goModuleVersion = "1.30.6" diff --git a/service/applicationautoscaling/CHANGELOG.md b/service/applicationautoscaling/CHANGELOG.md index 4252fafa22e..dadfa5c97d6 100644 --- a/service/applicationautoscaling/CHANGELOG.md +++ b/service/applicationautoscaling/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.33.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.33.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/applicationautoscaling/go.mod b/service/applicationautoscaling/go.mod index 3a2bb5fcf0a..276d3943c22 100644 --- a/service/applicationautoscaling/go.mod +++ b/service/applicationautoscaling/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/applicationautoscaling go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/applicationautoscaling/go.sum b/service/applicationautoscaling/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/applicationautoscaling/go.sum +++ b/service/applicationautoscaling/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/applicationautoscaling/go_module_metadata.go b/service/applicationautoscaling/go_module_metadata.go index f05d48108e8..f9289ba4cca 100644 --- a/service/applicationautoscaling/go_module_metadata.go +++ b/service/applicationautoscaling/go_module_metadata.go @@ -3,4 +3,4 @@ package applicationautoscaling // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.33.5" +const goModuleVersion = "1.33.6" diff --git a/service/applicationcostprofiler/CHANGELOG.md b/service/applicationcostprofiler/CHANGELOG.md index e1f13a8d9c6..aefc837baca 100644 --- a/service/applicationcostprofiler/CHANGELOG.md +++ b/service/applicationcostprofiler/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.21.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/applicationcostprofiler/go.mod b/service/applicationcostprofiler/go.mod index 8a646bdfbf6..1739dac69b7 100644 --- a/service/applicationcostprofiler/go.mod +++ b/service/applicationcostprofiler/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/applicationcostprofiler go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/applicationcostprofiler/go.sum b/service/applicationcostprofiler/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/applicationcostprofiler/go.sum +++ b/service/applicationcostprofiler/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/applicationcostprofiler/go_module_metadata.go b/service/applicationcostprofiler/go_module_metadata.go index 563081abd47..27ae49bfc58 100644 --- a/service/applicationcostprofiler/go_module_metadata.go +++ b/service/applicationcostprofiler/go_module_metadata.go @@ -3,4 +3,4 @@ package applicationcostprofiler // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.5" +const goModuleVersion = "1.21.6" diff --git a/service/applicationdiscoveryservice/CHANGELOG.md b/service/applicationdiscoveryservice/CHANGELOG.md index 66bec90d48e..985704e09ed 100644 --- a/service/applicationdiscoveryservice/CHANGELOG.md +++ b/service/applicationdiscoveryservice/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.29.0 (2024-11-20) + +* **Feature**: Add support to import data from commercially available discovery tools without file manipulation. + +# v1.28.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/applicationdiscoveryservice/api_op_CreateApplication.go b/service/applicationdiscoveryservice/api_op_CreateApplication.go index 1aae7b3090e..a39c17085ab 100644 --- a/service/applicationdiscoveryservice/api_op_CreateApplication.go +++ b/service/applicationdiscoveryservice/api_op_CreateApplication.go @@ -28,20 +28,23 @@ func (c *Client) CreateApplication(ctx context.Context, params *CreateApplicatio type CreateApplicationInput struct { - // Name of the application to be created. + // The name of the application to be created. // // This member is required. Name *string - // Description of the application to be created. + // The description of the application to be created. Description *string + // The name of the migration wave of the application to be created. + Wave *string + noSmithyDocumentSerde } type CreateApplicationOutput struct { - // Configuration ID of an application to be created. + // The configuration ID of an application to be created. ConfigurationId *string // Metadata pertaining to the operation's result. diff --git a/service/applicationdiscoveryservice/api_op_UpdateApplication.go b/service/applicationdiscoveryservice/api_op_UpdateApplication.go index da6405e3ee8..f52c0c42af6 100644 --- a/service/applicationdiscoveryservice/api_op_UpdateApplication.go +++ b/service/applicationdiscoveryservice/api_op_UpdateApplication.go @@ -39,6 +39,9 @@ type UpdateApplicationInput struct { // New name of the application to be updated. Name *string + // The new migration wave of the application that you want to update. + Wave *string + noSmithyDocumentSerde } diff --git a/service/applicationdiscoveryservice/deserializers.go b/service/applicationdiscoveryservice/deserializers.go index 2c6d7892496..4e572a3da52 100644 --- a/service/applicationdiscoveryservice/deserializers.go +++ b/service/applicationdiscoveryservice/deserializers.go @@ -2611,6 +2611,9 @@ func awsAwsjson11_deserializeOpErrorStartBatchDeleteConfigurationTask(response * case strings.EqualFold("HomeRegionNotSetException", errorCode): return awsAwsjson11_deserializeErrorHomeRegionNotSetException(response, errorBody) + case strings.EqualFold("InvalidParameterException", errorCode): + return awsAwsjson11_deserializeErrorInvalidParameterException(response, errorBody) + case strings.EqualFold("InvalidParameterValueException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterValueException(response, errorBody) @@ -5948,6 +5951,15 @@ func awsAwsjson11_deserializeDocumentImportTask(v **types.ImportTask, value inte sv.ErrorsAndFailedEntriesZip = ptr.String(jtv) } + case "fileClassification": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FileClassification to be of type string, got %T instead", value) + } + sv.FileClassification = types.FileClassification(jtv) + } + case "importCompletionTime": if value != nil { switch jtv := value.(type) { diff --git a/service/applicationdiscoveryservice/go.mod b/service/applicationdiscoveryservice/go.mod index 5bdff18fb1e..a6b8f2ea413 100644 --- a/service/applicationdiscoveryservice/go.mod +++ b/service/applicationdiscoveryservice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/applicationdiscoveryservice go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/applicationdiscoveryservice/go.sum b/service/applicationdiscoveryservice/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/applicationdiscoveryservice/go.sum +++ b/service/applicationdiscoveryservice/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/applicationdiscoveryservice/go_module_metadata.go b/service/applicationdiscoveryservice/go_module_metadata.go index b3fcd3aab7e..a83fafeea73 100644 --- a/service/applicationdiscoveryservice/go_module_metadata.go +++ b/service/applicationdiscoveryservice/go_module_metadata.go @@ -3,4 +3,4 @@ package applicationdiscoveryservice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.5" +const goModuleVersion = "1.29.0" diff --git a/service/applicationdiscoveryservice/serializers.go b/service/applicationdiscoveryservice/serializers.go index 315b30e8adc..2a99582e2cc 100644 --- a/service/applicationdiscoveryservice/serializers.go +++ b/service/applicationdiscoveryservice/serializers.go @@ -2245,6 +2245,11 @@ func awsAwsjson11_serializeOpDocumentCreateApplicationInput(v *CreateApplication ok.String(*v.Name) } + if v.Wave != nil { + ok := object.Key("wave") + ok.String(*v.Wave) + } + return nil } @@ -2729,5 +2734,10 @@ func awsAwsjson11_serializeOpDocumentUpdateApplicationInput(v *UpdateApplication ok.String(*v.Name) } + if v.Wave != nil { + ok := object.Key("wave") + ok.String(*v.Wave) + } + return nil } diff --git a/service/applicationdiscoveryservice/types/enums.go b/service/applicationdiscoveryservice/types/enums.go index 5ba4bf40789..eeda5c0bb0c 100644 --- a/service/applicationdiscoveryservice/types/enums.go +++ b/service/applicationdiscoveryservice/types/enums.go @@ -223,6 +223,29 @@ func (ExportStatus) Values() []ExportStatus { } } +type FileClassification string + +// Enum values for FileClassification +const ( + FileClassificationModelizeitExport FileClassification = "MODELIZEIT_EXPORT" + FileClassificationRvtoolsExport FileClassification = "RVTOOLS_EXPORT" + FileClassificationVmwareNsxExport FileClassification = "VMWARE_NSX_EXPORT" + FileClassificationImportTemplate FileClassification = "IMPORT_TEMPLATE" +) + +// Values returns all known values for FileClassification. 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 (FileClassification) Values() []FileClassification { + return []FileClassification{ + "MODELIZEIT_EXPORT", + "RVTOOLS_EXPORT", + "VMWARE_NSX_EXPORT", + "IMPORT_TEMPLATE", + } +} + type ImportStatus string // Enum values for ImportStatus @@ -233,6 +256,7 @@ const ( ImportStatusImportFailed ImportStatus = "IMPORT_FAILED" ImportStatusImportFailedServerLimitExceeded ImportStatus = "IMPORT_FAILED_SERVER_LIMIT_EXCEEDED" ImportStatusImportFailedRecordLimitExceeded ImportStatus = "IMPORT_FAILED_RECORD_LIMIT_EXCEEDED" + ImportStatusImportFailedUnsupportedFileType ImportStatus = "IMPORT_FAILED_UNSUPPORTED_FILE_TYPE" ImportStatusDeleteInProgress ImportStatus = "DELETE_IN_PROGRESS" ImportStatusDeleteComplete ImportStatus = "DELETE_COMPLETE" ImportStatusDeleteFailed ImportStatus = "DELETE_FAILED" @@ -252,6 +276,7 @@ func (ImportStatus) Values() []ImportStatus { "IMPORT_FAILED", "IMPORT_FAILED_SERVER_LIMIT_EXCEEDED", "IMPORT_FAILED_RECORD_LIMIT_EXCEEDED", + "IMPORT_FAILED_UNSUPPORTED_FILE_TYPE", "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED", @@ -264,9 +289,10 @@ type ImportTaskFilterName string // Enum values for ImportTaskFilterName const ( - ImportTaskFilterNameImportTaskId ImportTaskFilterName = "IMPORT_TASK_ID" - ImportTaskFilterNameStatus ImportTaskFilterName = "STATUS" - ImportTaskFilterNameName ImportTaskFilterName = "NAME" + ImportTaskFilterNameImportTaskId ImportTaskFilterName = "IMPORT_TASK_ID" + ImportTaskFilterNameStatus ImportTaskFilterName = "STATUS" + ImportTaskFilterNameName ImportTaskFilterName = "NAME" + ImportTaskFilterNameFileClassification ImportTaskFilterName = "FILE_CLASSIFICATION" ) // Values returns all known values for ImportTaskFilterName. Note that this can be @@ -278,6 +304,7 @@ func (ImportTaskFilterName) Values() []ImportTaskFilterName { "IMPORT_TASK_ID", "STATUS", "NAME", + "FILE_CLASSIFICATION", } } diff --git a/service/applicationdiscoveryservice/types/types.go b/service/applicationdiscoveryservice/types/types.go index d2c1e3218eb..71fd8827349 100644 --- a/service/applicationdiscoveryservice/types/types.go +++ b/service/applicationdiscoveryservice/types/types.go @@ -710,6 +710,9 @@ type ImportTask struct { // attempt importing it again. ErrorsAndFailedEntriesZip *string + // The type of file detected by the import task. + FileClassification FileClassification + // The time that the import task request finished, presented in the Unix time // stamp format. ImportCompletionTime *time.Time diff --git a/service/applicationinsights/CHANGELOG.md b/service/applicationinsights/CHANGELOG.md index e63ecbe1e8c..557cab2dd37 100644 --- a/service/applicationinsights/CHANGELOG.md +++ b/service/applicationinsights/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.29.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.29.3 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/applicationinsights/go.mod b/service/applicationinsights/go.mod index 12184d91033..7e816c5f615 100644 --- a/service/applicationinsights/go.mod +++ b/service/applicationinsights/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/applicationinsights go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/applicationinsights/go.sum b/service/applicationinsights/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/applicationinsights/go.sum +++ b/service/applicationinsights/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/applicationinsights/go_module_metadata.go b/service/applicationinsights/go_module_metadata.go index 792f93ef134..8d47e4ac31f 100644 --- a/service/applicationinsights/go_module_metadata.go +++ b/service/applicationinsights/go_module_metadata.go @@ -3,4 +3,4 @@ package applicationinsights // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.29.3" +const goModuleVersion = "1.29.4" diff --git a/service/applicationsignals/CHANGELOG.md b/service/applicationsignals/CHANGELOG.md index 5cb00974782..77168681c87 100644 --- a/service/applicationsignals/CHANGELOG.md +++ b/service/applicationsignals/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.7.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.7.0 (2024-11-13) * **Feature**: Amazon CloudWatch Application Signals now supports creating Service Level Objectives with burn rates. Users can now create or update SLOs with burn rate configurations to meet their specific business requirements. diff --git a/service/applicationsignals/go.mod b/service/applicationsignals/go.mod index 26ed41b1768..e03ac0bebd6 100644 --- a/service/applicationsignals/go.mod +++ b/service/applicationsignals/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/applicationsignals go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/applicationsignals/go.sum b/service/applicationsignals/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/applicationsignals/go.sum +++ b/service/applicationsignals/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/applicationsignals/go_module_metadata.go b/service/applicationsignals/go_module_metadata.go index 7a8031c5515..a0a56118326 100644 --- a/service/applicationsignals/go_module_metadata.go +++ b/service/applicationsignals/go_module_metadata.go @@ -3,4 +3,4 @@ package applicationsignals // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.7.0" +const goModuleVersion = "1.7.1" diff --git a/service/appmesh/CHANGELOG.md b/service/appmesh/CHANGELOG.md index e038c4b3c7c..23851b6c5e9 100644 --- a/service/appmesh/CHANGELOG.md +++ b/service/appmesh/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.29.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.29.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/appmesh/go.mod b/service/appmesh/go.mod index c3a6f97a219..86723853a14 100644 --- a/service/appmesh/go.mod +++ b/service/appmesh/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/appmesh go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/appmesh/go.sum b/service/appmesh/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/appmesh/go.sum +++ b/service/appmesh/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/appmesh/go_module_metadata.go b/service/appmesh/go_module_metadata.go index 64708cbf835..73a6d1b2bed 100644 --- a/service/appmesh/go_module_metadata.go +++ b/service/appmesh/go_module_metadata.go @@ -3,4 +3,4 @@ package appmesh // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.29.5" +const goModuleVersion = "1.29.6" diff --git a/service/apprunner/CHANGELOG.md b/service/apprunner/CHANGELOG.md index 7089b44f60a..519a54bd13e 100644 --- a/service/apprunner/CHANGELOG.md +++ b/service/apprunner/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.32.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.32.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/apprunner/go.mod b/service/apprunner/go.mod index b7f1750e8d9..05c325b0377 100644 --- a/service/apprunner/go.mod +++ b/service/apprunner/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/apprunner go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/apprunner/go.sum b/service/apprunner/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/apprunner/go.sum +++ b/service/apprunner/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/apprunner/go_module_metadata.go b/service/apprunner/go_module_metadata.go index 1e748d78d6c..689e2b3e592 100644 --- a/service/apprunner/go_module_metadata.go +++ b/service/apprunner/go_module_metadata.go @@ -3,4 +3,4 @@ package apprunner // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.32.5" +const goModuleVersion = "1.32.6" diff --git a/service/appstream/CHANGELOG.md b/service/appstream/CHANGELOG.md index 522b2be623a..9e8ca3f1be4 100644 --- a/service/appstream/CHANGELOG.md +++ b/service/appstream/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.41.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.41.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/appstream/go.mod b/service/appstream/go.mod index dfc7e85b759..0c11b8068b3 100644 --- a/service/appstream/go.mod +++ b/service/appstream/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/appstream go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/appstream/go.sum b/service/appstream/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/appstream/go.sum +++ b/service/appstream/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/appstream/go_module_metadata.go b/service/appstream/go_module_metadata.go index 87e73738049..9640ec667d1 100644 --- a/service/appstream/go_module_metadata.go +++ b/service/appstream/go_module_metadata.go @@ -3,4 +3,4 @@ package appstream // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.41.5" +const goModuleVersion = "1.41.6" diff --git a/service/appsync/CHANGELOG.md b/service/appsync/CHANGELOG.md index 050c3702cd4..b21a9e272b5 100644 --- a/service/appsync/CHANGELOG.md +++ b/service/appsync/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.39.3 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.39.2 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/appsync/go.mod b/service/appsync/go.mod index 645dce07c2a..07821382286 100644 --- a/service/appsync/go.mod +++ b/service/appsync/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/appsync go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/appsync/go.sum b/service/appsync/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/appsync/go.sum +++ b/service/appsync/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/appsync/go_module_metadata.go b/service/appsync/go_module_metadata.go index 47c142d2c09..f92a5a83bca 100644 --- a/service/appsync/go_module_metadata.go +++ b/service/appsync/go_module_metadata.go @@ -3,4 +3,4 @@ package appsync // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.39.2" +const goModuleVersion = "1.39.3" diff --git a/service/apptest/CHANGELOG.md b/service/apptest/CHANGELOG.md index b42383e71ad..a7130af8a1d 100644 --- a/service/apptest/CHANGELOG.md +++ b/service/apptest/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.4.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.4.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/apptest/go.mod b/service/apptest/go.mod index f7d5d92730b..c4db1955a10 100644 --- a/service/apptest/go.mod +++ b/service/apptest/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/apptest go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/apptest/go.sum b/service/apptest/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/apptest/go.sum +++ b/service/apptest/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/apptest/go_module_metadata.go b/service/apptest/go_module_metadata.go index 05f3c017ea0..417e24a1a20 100644 --- a/service/apptest/go_module_metadata.go +++ b/service/apptest/go_module_metadata.go @@ -3,4 +3,4 @@ package apptest // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.4.5" +const goModuleVersion = "1.4.6" diff --git a/service/arczonalshift/CHANGELOG.md b/service/arczonalshift/CHANGELOG.md index bdf45d082a4..80ba86d4baf 100644 --- a/service/arczonalshift/CHANGELOG.md +++ b/service/arczonalshift/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.14.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.14.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/arczonalshift/go.mod b/service/arczonalshift/go.mod index 3bbfee751bb..eb565c5bafa 100644 --- a/service/arczonalshift/go.mod +++ b/service/arczonalshift/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/arczonalshift go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/arczonalshift/go.sum b/service/arczonalshift/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/arczonalshift/go.sum +++ b/service/arczonalshift/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/arczonalshift/go_module_metadata.go b/service/arczonalshift/go_module_metadata.go index b8346d6aa19..c1572714385 100644 --- a/service/arczonalshift/go_module_metadata.go +++ b/service/arczonalshift/go_module_metadata.go @@ -3,4 +3,4 @@ package arczonalshift // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.14.5" +const goModuleVersion = "1.14.6" diff --git a/service/artifact/CHANGELOG.md b/service/artifact/CHANGELOG.md index 36b7e4befc9..75323141248 100644 --- a/service/artifact/CHANGELOG.md +++ b/service/artifact/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.6.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.6.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/artifact/go.mod b/service/artifact/go.mod index 7c13084a19b..8434fd1a687 100644 --- a/service/artifact/go.mod +++ b/service/artifact/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/artifact go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/artifact/go.sum b/service/artifact/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/artifact/go.sum +++ b/service/artifact/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/artifact/go_module_metadata.go b/service/artifact/go_module_metadata.go index 520cace075a..1874e04d501 100644 --- a/service/artifact/go_module_metadata.go +++ b/service/artifact/go_module_metadata.go @@ -3,4 +3,4 @@ package artifact // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.6.5" +const goModuleVersion = "1.6.6" diff --git a/service/athena/CHANGELOG.md b/service/athena/CHANGELOG.md index 646e05a719c..765ea5d51c3 100644 --- a/service/athena/CHANGELOG.md +++ b/service/athena/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.48.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.48.3 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/athena/go.mod b/service/athena/go.mod index 63408de1d7b..275ad173d32 100644 --- a/service/athena/go.mod +++ b/service/athena/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/athena go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/athena/go.sum b/service/athena/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/athena/go.sum +++ b/service/athena/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/athena/go_module_metadata.go b/service/athena/go_module_metadata.go index 1182253df2c..3b478b1687f 100644 --- a/service/athena/go_module_metadata.go +++ b/service/athena/go_module_metadata.go @@ -3,4 +3,4 @@ package athena // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.48.3" +const goModuleVersion = "1.48.4" diff --git a/service/auditmanager/CHANGELOG.md b/service/auditmanager/CHANGELOG.md index 953b93a90cf..65ed69527d8 100644 --- a/service/auditmanager/CHANGELOG.md +++ b/service/auditmanager/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.37.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.37.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/auditmanager/go.mod b/service/auditmanager/go.mod index 8dc97fbdb31..4b8c452dae6 100644 --- a/service/auditmanager/go.mod +++ b/service/auditmanager/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/auditmanager go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/auditmanager/go.sum b/service/auditmanager/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/auditmanager/go.sum +++ b/service/auditmanager/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/auditmanager/go_module_metadata.go b/service/auditmanager/go_module_metadata.go index 3f6f870e97e..b0f6338ac6f 100644 --- a/service/auditmanager/go_module_metadata.go +++ b/service/auditmanager/go_module_metadata.go @@ -3,4 +3,4 @@ package auditmanager // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.37.5" +const goModuleVersion = "1.37.6" diff --git a/service/autoscaling/CHANGELOG.md b/service/autoscaling/CHANGELOG.md index 7bde7801d60..396980e3db4 100644 --- a/service/autoscaling/CHANGELOG.md +++ b/service/autoscaling/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.50.0 (2024-11-20) + +* **Feature**: With this release, customers can prioritize launching instances into ODCRs using targets from ASGs or Launch Templates. Customers can express their baseline instances' CPU-performance in attribute-based Instance Requirements configuration by referencing an instance family that meets their needs. + +# v1.49.0 (2024-11-18) + +* **Feature**: Amazon EC2 Auto Scaling now supports Amazon Application Recovery Controller (ARC) zonal shift and zonal autoshift to help you quickly recover an impaired application from failures in an Availability Zone (AZ). +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.48.0 (2024-11-07) * **Feature**: Auto Scaling groups now support the ability to strictly balance instances across Availability Zones by configuring the AvailabilityZoneDistribution parameter. If balanced-only is configured for a group, launches will always be attempted in the under scaled Availability Zone even if it is unhealthy. diff --git a/service/autoscaling/api_op_AttachTrafficSources.go b/service/autoscaling/api_op_AttachTrafficSources.go index 9bfdc5916d0..4c019db4919 100644 --- a/service/autoscaling/api_op_AttachTrafficSources.go +++ b/service/autoscaling/api_op_AttachTrafficSources.go @@ -62,6 +62,14 @@ type AttachTrafficSourcesInput struct { // This member is required. TrafficSources []types.TrafficSourceIdentifier + // If you enable zonal shift with cross-zone disabled load balancers, capacity + // could become imbalanced across Availability Zones. To skip the validation, + // specify true . For more information, see [Auto Scaling group zonal shift] in the Amazon EC2 Auto Scaling User + // Guide. + // + // [Auto Scaling group zonal shift]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-zonal-shift.html + SkipZonalShiftValidation *bool + noSmithyDocumentSerde } diff --git a/service/autoscaling/api_op_CreateAutoScalingGroup.go b/service/autoscaling/api_op_CreateAutoScalingGroup.go index 3f7d857db7b..e1938ba82d0 100644 --- a/service/autoscaling/api_op_CreateAutoScalingGroup.go +++ b/service/autoscaling/api_op_CreateAutoScalingGroup.go @@ -80,6 +80,9 @@ type CreateAutoScalingGroupInput struct { // The instance capacity distribution across Availability Zones. AvailabilityZoneDistribution *types.AvailabilityZoneDistribution + // The policy for Availability Zone impairment. + AvailabilityZoneImpairmentPolicy *types.AvailabilityZoneImpairmentPolicy + // A list of Availability Zones where instances in the Auto Scaling group can be // created. Used for launching into the default VPC subnet in each Availability // Zone when not using the VPCZoneIdentifier property, or for attaching a network @@ -97,6 +100,9 @@ type CreateAutoScalingGroupInput struct { // [Use Capacity Rebalancing to handle Amazon EC2 Spot Interruptions]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-capacity-rebalancing.html CapacityRebalance *bool + // The capacity reservation specification for the Auto Scaling group. + CapacityReservationSpecification *types.CapacityReservationSpecification + // Reserved. Context *string @@ -264,6 +270,14 @@ type CreateAutoScalingGroupInput struct { // [Service-linked roles]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-service-linked-role.html ServiceLinkedRoleARN *string + // If you enable zonal shift with cross-zone disabled load balancers, capacity + // could become imbalanced across Availability Zones. To skip the validation, + // specify true . For more information, see [Auto Scaling group zonal shift] in the Amazon EC2 Auto Scaling User + // Guide. + // + // [Auto Scaling group zonal shift]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-zonal-shift.html + SkipZonalShiftValidation *bool + // One or more tags. You can tag your Auto Scaling group and propagate the tags to // the Amazon EC2 instances it launches. Tags are not propagated to Amazon EBS // volumes. To add tags to Amazon EBS volumes, specify the tags in a launch diff --git a/service/autoscaling/api_op_UpdateAutoScalingGroup.go b/service/autoscaling/api_op_UpdateAutoScalingGroup.go index 4fd1176a7d7..caeb4b8bfe3 100644 --- a/service/autoscaling/api_op_UpdateAutoScalingGroup.go +++ b/service/autoscaling/api_op_UpdateAutoScalingGroup.go @@ -81,6 +81,9 @@ type UpdateAutoScalingGroupInput struct { // The instance capacity distribution across Availability Zones. AvailabilityZoneDistribution *types.AvailabilityZoneDistribution + // The policy for Availability Zone impairment. + AvailabilityZoneImpairmentPolicy *types.AvailabilityZoneImpairmentPolicy + // One or more Availability Zones for the group. AvailabilityZones []string @@ -90,6 +93,9 @@ type UpdateAutoScalingGroupInput struct { // [Use Capacity Rebalancing to handle Amazon EC2 Spot Interruptions]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-capacity-rebalancing.html CapacityRebalance *bool + // The capacity reservation specification for the Auto Scaling group. + CapacityReservationSpecification *types.CapacityReservationSpecification + // Reserved. Context *string @@ -231,6 +237,14 @@ type UpdateAutoScalingGroupInput struct { // [Service-linked roles]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-service-linked-role.html ServiceLinkedRoleARN *string + // If you enable zonal shift with cross-zone disabled load balancers, capacity + // could become imbalanced across Availability Zones. To skip the validation, + // specify true . For more information, see [Auto Scaling group zonal shift] in the Amazon EC2 Auto Scaling User + // Guide. + // + // [Auto Scaling group zonal shift]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-zonal-shift.html + SkipZonalShiftValidation *bool + // A policy or a list of policies that are used to select the instances to // terminate. The policies are executed in the order that you list them. For more // information, see [Configure termination policies for Amazon EC2 Auto Scaling]in the Amazon EC2 Auto Scaling User Guide. diff --git a/service/autoscaling/deserializers.go b/service/autoscaling/deserializers.go index 087654a5bb3..266ddd38ac7 100644 --- a/service/autoscaling/deserializers.go +++ b/service/autoscaling/deserializers.go @@ -8486,6 +8486,12 @@ func awsAwsquery_deserializeDocumentAutoScalingGroup(v **types.AutoScalingGroup, return err } + case strings.EqualFold("AvailabilityZoneImpairmentPolicy", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentAvailabilityZoneImpairmentPolicy(&sv.AvailabilityZoneImpairmentPolicy, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("AvailabilityZones", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsAwsquery_deserializeDocumentAvailabilityZones(&sv.AvailabilityZones, nodeDecoder); err != nil { @@ -8508,6 +8514,12 @@ func awsAwsquery_deserializeDocumentAutoScalingGroup(v **types.AutoScalingGroup, sv.CapacityRebalance = ptr.Bool(xtv) } + case strings.EqualFold("CapacityReservationSpecification", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentCapacityReservationSpecification(&sv.CapacityReservationSpecification, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("Context", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -9311,6 +9323,71 @@ func awsAwsquery_deserializeDocumentAvailabilityZoneDistribution(v **types.Avail return nil } +func awsAwsquery_deserializeDocumentAvailabilityZoneImpairmentPolicy(v **types.AvailabilityZoneImpairmentPolicy, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.AvailabilityZoneImpairmentPolicy + if *v == nil { + sv = &types.AvailabilityZoneImpairmentPolicy{} + } 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("ImpairedZoneHealthCheckBehavior", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ImpairedZoneHealthCheckBehavior = types.ImpairedZoneHealthCheckBehavior(xtv) + } + + case strings.EqualFold("ZonalShiftEnabled", 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 ZonalShiftEnabled to be of type *bool, got %T instead", val) + } + sv.ZonalShiftEnabled = 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 awsAwsquery_deserializeDocumentAvailabilityZones(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -9461,6 +9538,48 @@ func awsAwsquery_deserializeDocumentBaselineEbsBandwidthMbpsRequest(v **types.Ba return nil } +func awsAwsquery_deserializeDocumentBaselinePerformanceFactorsRequest(v **types.BaselinePerformanceFactorsRequest, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.BaselinePerformanceFactorsRequest + if *v == nil { + sv = &types.BaselinePerformanceFactorsRequest{} + } 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("Cpu", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentCpuPerformanceFactorRequest(&sv.Cpu, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsAwsquery_deserializeDocumentBlockDeviceMapping(v **types.BlockDeviceMapping, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -9661,6 +9780,269 @@ func awsAwsquery_deserializeDocumentCapacityForecast(v **types.CapacityForecast, return nil } +func awsAwsquery_deserializeDocumentCapacityReservationIds(v *[]string, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + switch { + case strings.EqualFold("member", t.Name.Local): + var col string + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + col = xtv + } + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentCapacityReservationIdsUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + switch { + default: + var mv string + t := decoder.StartEl + _ = t + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + mv = xtv + } + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsAwsquery_deserializeDocumentCapacityReservationResourceGroupArns(v *[]string, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + switch { + case strings.EqualFold("member", t.Name.Local): + var col string + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + col = xtv + } + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentCapacityReservationResourceGroupArnsUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + switch { + default: + var mv string + t := decoder.StartEl + _ = t + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + mv = xtv + } + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsAwsquery_deserializeDocumentCapacityReservationSpecification(v **types.CapacityReservationSpecification, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CapacityReservationSpecification + if *v == nil { + sv = &types.CapacityReservationSpecification{} + } 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("CapacityReservationPreference", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CapacityReservationPreference = types.CapacityReservationPreference(xtv) + } + + case strings.EqualFold("CapacityReservationTarget", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentCapacityReservationTarget(&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 awsAwsquery_deserializeDocumentCapacityReservationTarget(v **types.CapacityReservationTarget, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CapacityReservationTarget + if *v == nil { + sv = &types.CapacityReservationTarget{} + } 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("CapacityReservationIds", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentCapacityReservationIds(&sv.CapacityReservationIds, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("CapacityReservationResourceGroupArns", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentCapacityReservationResourceGroupArns(&sv.CapacityReservationResourceGroupArns, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsAwsquery_deserializeDocumentCheckpointPercentages(v *[]int32, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -9909,6 +10291,48 @@ func awsAwsquery_deserializeDocumentCpuManufacturersUnwrapped(v *[]types.CpuManu *v = sv return nil } +func awsAwsquery_deserializeDocumentCpuPerformanceFactorRequest(v **types.CpuPerformanceFactorRequest, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CpuPerformanceFactorRequest + if *v == nil { + sv = &types.CpuPerformanceFactorRequest{} + } 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("Reference", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentPerformanceFactorReferenceSetRequest(&sv.References, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsAwsquery_deserializeDocumentCustomizedMetricSpecification(v **types.CustomizedMetricSpecification, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -11547,6 +11971,12 @@ func awsAwsquery_deserializeDocumentInstanceRequirements(v **types.InstanceRequi return err } + case strings.EqualFold("BaselinePerformanceFactors", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentBaselinePerformanceFactorsRequest(&sv.BaselinePerformanceFactors, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("BurstablePerformance", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -14618,6 +15048,123 @@ func awsAwsquery_deserializeDocumentOverridesUnwrapped(v *[]types.LaunchTemplate *v = sv return nil } +func awsAwsquery_deserializeDocumentPerformanceFactorReferenceRequest(v **types.PerformanceFactorReferenceRequest, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.PerformanceFactorReferenceRequest + if *v == nil { + sv = &types.PerformanceFactorReferenceRequest{} + } 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("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) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentPerformanceFactorReferenceSetRequest(v *[]types.PerformanceFactorReferenceRequest, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.PerformanceFactorReferenceRequest + if *v == nil { + sv = make([]types.PerformanceFactorReferenceRequest, 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.PerformanceFactorReferenceRequest + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsAwsquery_deserializeDocumentPerformanceFactorReferenceRequest(&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 awsAwsquery_deserializeDocumentPerformanceFactorReferenceSetRequestUnwrapped(v *[]types.PerformanceFactorReferenceRequest, decoder smithyxml.NodeDecoder) error { + var sv []types.PerformanceFactorReferenceRequest + if *v == nil { + sv = make([]types.PerformanceFactorReferenceRequest, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.PerformanceFactorReferenceRequest + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsAwsquery_deserializeDocumentPerformanceFactorReferenceRequest(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} func awsAwsquery_deserializeDocumentPredefinedMetricSpecification(v **types.PredefinedMetricSpecification, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/autoscaling/go.mod b/service/autoscaling/go.mod index cef135d1ffb..2275439a276 100644 --- a/service/autoscaling/go.mod +++ b/service/autoscaling/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/autoscaling go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/autoscaling/go.sum b/service/autoscaling/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/autoscaling/go.sum +++ b/service/autoscaling/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/autoscaling/go_module_metadata.go b/service/autoscaling/go_module_metadata.go index 42d53717d62..1762ed1cdbe 100644 --- a/service/autoscaling/go_module_metadata.go +++ b/service/autoscaling/go_module_metadata.go @@ -3,4 +3,4 @@ package autoscaling // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.48.0" +const goModuleVersion = "1.50.0" diff --git a/service/autoscaling/serializers.go b/service/autoscaling/serializers.go index 2a3b9402fb0..f4e004c9873 100644 --- a/service/autoscaling/serializers.go +++ b/service/autoscaling/serializers.go @@ -4679,6 +4679,23 @@ func awsAwsquery_serializeDocumentAvailabilityZoneDistribution(v *types.Availabi return nil } +func awsAwsquery_serializeDocumentAvailabilityZoneImpairmentPolicy(v *types.AvailabilityZoneImpairmentPolicy, value query.Value) error { + object := value.Object() + _ = object + + if len(v.ImpairedZoneHealthCheckBehavior) > 0 { + objectKey := object.Key("ImpairedZoneHealthCheckBehavior") + objectKey.String(string(v.ImpairedZoneHealthCheckBehavior)) + } + + if v.ZonalShiftEnabled != nil { + objectKey := object.Key("ZonalShiftEnabled") + objectKey.Boolean(*v.ZonalShiftEnabled) + } + + return nil +} + func awsAwsquery_serializeDocumentAvailabilityZones(v []string, value query.Value) error { array := value.Array("member") @@ -4706,6 +4723,20 @@ func awsAwsquery_serializeDocumentBaselineEbsBandwidthMbpsRequest(v *types.Basel return nil } +func awsAwsquery_serializeDocumentBaselinePerformanceFactorsRequest(v *types.BaselinePerformanceFactorsRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.Cpu != nil { + objectKey := object.Key("Cpu") + if err := awsAwsquery_serializeDocumentCpuPerformanceFactorRequest(v.Cpu, objectKey); err != nil { + return err + } + } + + return nil +} + func awsAwsquery_serializeDocumentBlockDeviceMapping(v *types.BlockDeviceMapping, value query.Value) error { object := value.Object() _ = object @@ -4747,6 +4778,66 @@ func awsAwsquery_serializeDocumentBlockDeviceMappings(v []types.BlockDeviceMappi return nil } +func awsAwsquery_serializeDocumentCapacityReservationIds(v []string, value query.Value) error { + array := value.Array("member") + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsAwsquery_serializeDocumentCapacityReservationResourceGroupArns(v []string, value query.Value) error { + array := value.Array("member") + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsAwsquery_serializeDocumentCapacityReservationSpecification(v *types.CapacityReservationSpecification, value query.Value) error { + object := value.Object() + _ = object + + if len(v.CapacityReservationPreference) > 0 { + objectKey := object.Key("CapacityReservationPreference") + objectKey.String(string(v.CapacityReservationPreference)) + } + + if v.CapacityReservationTarget != nil { + objectKey := object.Key("CapacityReservationTarget") + if err := awsAwsquery_serializeDocumentCapacityReservationTarget(v.CapacityReservationTarget, objectKey); err != nil { + return err + } + } + + return nil +} + +func awsAwsquery_serializeDocumentCapacityReservationTarget(v *types.CapacityReservationTarget, value query.Value) error { + object := value.Object() + _ = object + + if v.CapacityReservationIds != nil { + objectKey := object.Key("CapacityReservationIds") + if err := awsAwsquery_serializeDocumentCapacityReservationIds(v.CapacityReservationIds, objectKey); err != nil { + return err + } + } + + if v.CapacityReservationResourceGroupArns != nil { + objectKey := object.Key("CapacityReservationResourceGroupArns") + if err := awsAwsquery_serializeDocumentCapacityReservationResourceGroupArns(v.CapacityReservationResourceGroupArns, objectKey); err != nil { + return err + } + } + + return nil +} + func awsAwsquery_serializeDocumentCheckpointPercentages(v []int32, value query.Value) error { array := value.Array("member") @@ -4777,6 +4868,20 @@ func awsAwsquery_serializeDocumentCpuManufacturers(v []types.CpuManufacturer, va return nil } +func awsAwsquery_serializeDocumentCpuPerformanceFactorRequest(v *types.CpuPerformanceFactorRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.References != nil { + objectKey := object.Key("Reference") + if err := awsAwsquery_serializeDocumentPerformanceFactorReferenceSetRequest(v.References, objectKey); err != nil { + return err + } + } + + return nil +} + func awsAwsquery_serializeDocumentCustomizedMetricSpecification(v *types.CustomizedMetricSpecification, value query.Value) error { object := value.Object() _ = object @@ -5061,6 +5166,13 @@ func awsAwsquery_serializeDocumentInstanceRequirements(v *types.InstanceRequirem } } + if v.BaselinePerformanceFactors != nil { + objectKey := object.Key("BaselinePerformanceFactors") + if err := awsAwsquery_serializeDocumentBaselinePerformanceFactorsRequest(v.BaselinePerformanceFactors, objectKey); err != nil { + return err + } + } + if len(v.BurstablePerformance) > 0 { objectKey := object.Key("BurstablePerformance") objectKey.String(string(v.BurstablePerformance)) @@ -5667,6 +5779,30 @@ func awsAwsquery_serializeDocumentOverrides(v []types.LaunchTemplateOverrides, v return nil } +func awsAwsquery_serializeDocumentPerformanceFactorReferenceRequest(v *types.PerformanceFactorReferenceRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.InstanceFamily != nil { + objectKey := object.Key("InstanceFamily") + objectKey.String(*v.InstanceFamily) + } + + return nil +} + +func awsAwsquery_serializeDocumentPerformanceFactorReferenceSetRequest(v []types.PerformanceFactorReferenceRequest, value query.Value) error { + array := value.Array("item") + + for i := range v { + av := array.Value() + if err := awsAwsquery_serializeDocumentPerformanceFactorReferenceRequest(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsAwsquery_serializeDocumentPolicyNames(v []string, value query.Value) error { array := value.Array("member") @@ -6468,6 +6604,11 @@ func awsAwsquery_serializeOpDocumentAttachTrafficSourcesInput(v *AttachTrafficSo objectKey.String(*v.AutoScalingGroupName) } + if v.SkipZonalShiftValidation != nil { + objectKey := object.Key("SkipZonalShiftValidation") + objectKey.Boolean(*v.SkipZonalShiftValidation) + } + if v.TrafficSources != nil { objectKey := object.Key("TrafficSources") if err := awsAwsquery_serializeDocumentTrafficSources(v.TrafficSources, objectKey); err != nil { @@ -6576,6 +6717,13 @@ func awsAwsquery_serializeOpDocumentCreateAutoScalingGroupInput(v *CreateAutoSca } } + if v.AvailabilityZoneImpairmentPolicy != nil { + objectKey := object.Key("AvailabilityZoneImpairmentPolicy") + if err := awsAwsquery_serializeDocumentAvailabilityZoneImpairmentPolicy(v.AvailabilityZoneImpairmentPolicy, objectKey); err != nil { + return err + } + } + if v.AvailabilityZones != nil { objectKey := object.Key("AvailabilityZones") if err := awsAwsquery_serializeDocumentAvailabilityZones(v.AvailabilityZones, objectKey); err != nil { @@ -6588,6 +6736,13 @@ func awsAwsquery_serializeOpDocumentCreateAutoScalingGroupInput(v *CreateAutoSca objectKey.Boolean(*v.CapacityRebalance) } + if v.CapacityReservationSpecification != nil { + objectKey := object.Key("CapacityReservationSpecification") + if err := awsAwsquery_serializeDocumentCapacityReservationSpecification(v.CapacityReservationSpecification, objectKey); err != nil { + return err + } + } + if v.Context != nil { objectKey := object.Key("Context") objectKey.String(*v.Context) @@ -6698,6 +6853,11 @@ func awsAwsquery_serializeOpDocumentCreateAutoScalingGroupInput(v *CreateAutoSca objectKey.String(*v.ServiceLinkedRoleARN) } + if v.SkipZonalShiftValidation != nil { + objectKey := object.Key("SkipZonalShiftValidation") + objectKey.Boolean(*v.SkipZonalShiftValidation) + } + if v.Tags != nil { objectKey := object.Key("Tags") if err := awsAwsquery_serializeDocumentTags(v.Tags, objectKey); err != nil { @@ -8071,6 +8231,13 @@ func awsAwsquery_serializeOpDocumentUpdateAutoScalingGroupInput(v *UpdateAutoSca } } + if v.AvailabilityZoneImpairmentPolicy != nil { + objectKey := object.Key("AvailabilityZoneImpairmentPolicy") + if err := awsAwsquery_serializeDocumentAvailabilityZoneImpairmentPolicy(v.AvailabilityZoneImpairmentPolicy, objectKey); err != nil { + return err + } + } + if v.AvailabilityZones != nil { objectKey := object.Key("AvailabilityZones") if err := awsAwsquery_serializeDocumentAvailabilityZones(v.AvailabilityZones, objectKey); err != nil { @@ -8083,6 +8250,13 @@ func awsAwsquery_serializeOpDocumentUpdateAutoScalingGroupInput(v *UpdateAutoSca objectKey.Boolean(*v.CapacityRebalance) } + if v.CapacityReservationSpecification != nil { + objectKey := object.Key("CapacityReservationSpecification") + if err := awsAwsquery_serializeDocumentCapacityReservationSpecification(v.CapacityReservationSpecification, objectKey); err != nil { + return err + } + } + if v.Context != nil { objectKey := object.Key("Context") objectKey.String(*v.Context) @@ -8174,6 +8348,11 @@ func awsAwsquery_serializeOpDocumentUpdateAutoScalingGroupInput(v *UpdateAutoSca objectKey.String(*v.ServiceLinkedRoleARN) } + if v.SkipZonalShiftValidation != nil { + objectKey := object.Key("SkipZonalShiftValidation") + objectKey.Boolean(*v.SkipZonalShiftValidation) + } + if v.TerminationPolicies != nil { objectKey := object.Key("TerminationPolicies") if err := awsAwsquery_serializeDocumentTerminationPolicies(v.TerminationPolicies, objectKey); err != nil { diff --git a/service/autoscaling/types/enums.go b/service/autoscaling/types/enums.go index d5af5ccf3ad..99556849a72 100644 --- a/service/autoscaling/types/enums.go +++ b/service/autoscaling/types/enums.go @@ -137,6 +137,30 @@ func (CapacityDistributionStrategy) Values() []CapacityDistributionStrategy { } } +type CapacityReservationPreference string + +// Enum values for CapacityReservationPreference +const ( + CapacityReservationPreferenceCapacityReservationsOnly CapacityReservationPreference = "capacity-reservations-only" + CapacityReservationPreferenceCapacityReservationsFirst CapacityReservationPreference = "capacity-reservations-first" + CapacityReservationPreferenceNone CapacityReservationPreference = "none" + CapacityReservationPreferenceDefault CapacityReservationPreference = "default" +) + +// Values returns all known values for CapacityReservationPreference. 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 (CapacityReservationPreference) Values() []CapacityReservationPreference { + return []CapacityReservationPreference{ + "capacity-reservations-only", + "capacity-reservations-first", + "none", + "default", + } +} + type CpuManufacturer string // Enum values for CpuManufacturer @@ -158,6 +182,26 @@ func (CpuManufacturer) Values() []CpuManufacturer { } } +type ImpairedZoneHealthCheckBehavior string + +// Enum values for ImpairedZoneHealthCheckBehavior +const ( + ImpairedZoneHealthCheckBehaviorReplaceUnhealthy ImpairedZoneHealthCheckBehavior = "ReplaceUnhealthy" + ImpairedZoneHealthCheckBehaviorIgnoreUnhealthy ImpairedZoneHealthCheckBehavior = "IgnoreUnhealthy" +) + +// Values returns all known values for ImpairedZoneHealthCheckBehavior. 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 (ImpairedZoneHealthCheckBehavior) Values() []ImpairedZoneHealthCheckBehavior { + return []ImpairedZoneHealthCheckBehavior{ + "ReplaceUnhealthy", + "IgnoreUnhealthy", + } +} + type InstanceGeneration string // Enum values for InstanceGeneration diff --git a/service/autoscaling/types/types.go b/service/autoscaling/types/types.go index 65a47bf5523..0a40210701f 100644 --- a/service/autoscaling/types/types.go +++ b/service/autoscaling/types/types.go @@ -172,9 +172,15 @@ type AutoScalingGroup struct { // The instance capacity distribution across Availability Zones. AvailabilityZoneDistribution *AvailabilityZoneDistribution + // The Availability Zone impairment policy. + AvailabilityZoneImpairmentPolicy *AvailabilityZoneImpairmentPolicy + // Indicates whether Capacity Rebalancing is enabled. CapacityRebalance *bool + // The capacity reservation specification. + CapacityReservationSpecification *CapacityReservationSpecification + // Reserved. Context *string @@ -343,6 +349,25 @@ type AvailabilityZoneDistribution struct { noSmithyDocumentSerde } +// Describes an Availability Zone impairment policy. +type AvailabilityZoneImpairmentPolicy struct { + + // Specifies the health check behavior for the impaired Availability Zone in an + // active zonal shift. If you select Replace unhealthy , instances that appear + // unhealthy will be replaced in all Availability Zones. If you select Ignore + // unhealthy , instances will not be replaced in the Availability Zone with the + // active zonal shift. For more information, see [Auto Scaling group zonal shift]in the Amazon EC2 Auto Scaling + // User Guide. + // + // [Auto Scaling group zonal shift]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-zonal-shift.html + ImpairedZoneHealthCheckBehavior ImpairedZoneHealthCheckBehavior + + // If true , enable zonal shift for your Auto Scaling group. + ZonalShiftEnabled *bool + + noSmithyDocumentSerde +} + // Specifies the minimum and maximum for the BaselineEbsBandwidthMbps object when // you specify [InstanceRequirements]for an Auto Scaling group. // @@ -358,6 +383,25 @@ type BaselineEbsBandwidthMbpsRequest struct { noSmithyDocumentSerde } +// The baseline performance to consider, using an instance family as a baseline +// +// reference. The instance family establishes the lowest acceptable level of +// performance. Auto Scaling uses this baseline to guide instance type selection, +// but there is no guarantee that the selected instance types will always exceed +// the baseline for every application. +// +// Currently, this parameter only supports CPU performance as a baseline +// performance factor. For example, specifying c6i uses the CPU performance of the +// c6i family as the baseline reference. +type BaselinePerformanceFactorsRequest struct { + + // The CPU performance to consider, using an instance family as the baseline + // reference. + Cpu *CpuPerformanceFactorRequest + + noSmithyDocumentSerde +} + // Describes a block device mapping. type BlockDeviceMapping struct { @@ -409,6 +453,66 @@ type CapacityForecast struct { noSmithyDocumentSerde } +// Describes the Capacity Reservation preference and targeting options. If you +// +// specify open or none for CapacityReservationPreference , do not specify a +// CapacityReservationTarget . +type CapacityReservationSpecification struct { + + // The capacity reservation preference. The following options are available: + // + // - capacity-reservations-only - Auto Scaling will only launch instances into a + // Capacity Reservation or Capacity Reservation resource group. If capacity isn't + // available, instances will fail to launch. + // + // - capacity-reservations-first - Auto Scaling will try to launch instances into + // a Capacity Reservation or Capacity Reservation resource group first. If capacity + // isn't available, instances will run in On-Demand capacity. + // + // - none - Auto Scaling will not launch instances into a Capacity Reservation. + // Instances will run in On-Demand capacity. + // + // - default - Auto Scaling uses the Capacity Reservation preference from your + // launch template or an open Capacity Reservation. + CapacityReservationPreference CapacityReservationPreference + + // Describes a target Capacity Reservation or Capacity Reservation resource + // group. + CapacityReservationTarget *CapacityReservationTarget + + noSmithyDocumentSerde +} + +// The target for the Capacity Reservation. Specify Capacity Reservations IDs or +// +// Capacity Reservation resource group ARNs. +type CapacityReservationTarget struct { + + // The Capacity Reservation IDs to launch instances into. + CapacityReservationIds []string + + // The resource group ARNs of the Capacity Reservation to launch instances into. + CapacityReservationResourceGroupArns []string + + noSmithyDocumentSerde +} + +// The CPU performance to consider, using an instance family as the baseline +// +// reference. +type CpuPerformanceFactorRequest struct { + + // Specify an instance family to use as the baseline reference for CPU + // performance. All instance types that match your specified attributes will be + // compared against the CPU performance of the referenced instance family, + // regardless of CPU manufacturer or architecture differences. + // + // Currently only one instance family can be specified in the list. + References []PerformanceFactorReferenceRequest + + noSmithyDocumentSerde +} + // Represents a CloudWatch metric of your choosing for a target tracking scaling // policy to use with Amazon EC2 Auto Scaling. // @@ -1095,6 +1199,9 @@ type InstanceRequirements struct { // [Amazon EBS–optimized instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html BaselineEbsBandwidthMbps *BaselineEbsBandwidthMbpsRequest + // The baseline performance factors for the instance requirements. + BaselinePerformanceFactors *BaselinePerformanceFactorsRequest + // Indicates whether burstable performance instance types are included, excluded, // or required. For more information, see [Burstable performance instances]in the Amazon EC2 User Guide for Linux // Instances. @@ -2146,6 +2253,55 @@ type NotificationConfiguration struct { noSmithyDocumentSerde } +// Specify an instance family to use as the baseline reference for CPU +// +// performance. All instance types that All instance types that match your +// specified attributes will be compared against the CPU performance of the +// referenced instance family, regardless of CPU manufacturer or architecture +// differences. +// +// Currently only one instance family can be specified in the list. +type PerformanceFactorReferenceRequest struct { + + // The instance family to use as a baseline reference. + // + // Make sure that you specify the correct value for the instance family. The + // instance family is everything before the period (.) in the instance type name. + // For example, in the instance c6i.large , the instance family is c6i , not c6 . + // For more information, see [Amazon EC2 instance type naming conventions]in Amazon EC2 Instance Types. + // + // The following instance types are not supported for performance protection. + // + // - c1 + // + // - g3| g3s + // + // - hpc7g + // + // - m1| m2 + // + // - mac1 | mac2 | mac2-m1ultra | mac2-m2 | mac2-m2pro + // + // - p3dn | p4d | p5 + // + // - t1 + // + // - u-12tb1 | u-18tb1 | u-24tb1 | u-3tb1 | u-6tb1 | u-9tb1 | u7i-12tb | + // u7in-16tb | u7in-24tb | u7in-32tb + // + // If you performance protection by specifying a supported instance family, the + // returned instance types will exclude the preceding unsupported instance + // families. + // + // If you specify an unsupported instance family as a value for baseline + // performance, the API returns an empty response. + // + // [Amazon EC2 instance type naming conventions]: https://docs.aws.amazon.com/ec2/latest/instancetypes/instance-type-names.html + InstanceFamily *string + + noSmithyDocumentSerde +} + // Represents a predefined metric for a target tracking scaling policy to use with // Amazon EC2 Auto Scaling. type PredefinedMetricSpecification struct { diff --git a/service/autoscalingplans/CHANGELOG.md b/service/autoscalingplans/CHANGELOG.md index 892bb36afbb..dc9af149ed1 100644 --- a/service/autoscalingplans/CHANGELOG.md +++ b/service/autoscalingplans/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.24.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/autoscalingplans/go.mod b/service/autoscalingplans/go.mod index 3984c78d97b..9f2fa200bdc 100644 --- a/service/autoscalingplans/go.mod +++ b/service/autoscalingplans/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/autoscalingplans go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/autoscalingplans/go.sum b/service/autoscalingplans/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/autoscalingplans/go.sum +++ b/service/autoscalingplans/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/autoscalingplans/go_module_metadata.go b/service/autoscalingplans/go_module_metadata.go index e484eb667a7..b40f1692357 100644 --- a/service/autoscalingplans/go_module_metadata.go +++ b/service/autoscalingplans/go_module_metadata.go @@ -3,4 +3,4 @@ package autoscalingplans // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.5" +const goModuleVersion = "1.24.6" diff --git a/service/b2bi/CHANGELOG.md b/service/b2bi/CHANGELOG.md index 1c8613670c3..b4745408781 100644 --- a/service/b2bi/CHANGELOG.md +++ b/service/b2bi/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.0.0-preview.54 (2024-11-19) + +* **Feature**: Add new X12 transactions sets and versions + +# v1.0.0-preview.53 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.0.0-preview.52 (2024-11-13) * **Feature**: This release adds a GenerateMapping API to allow generation of JSONata or XSLT transformer code based on input and output samples. diff --git a/service/b2bi/go.mod b/service/b2bi/go.mod index b92413f6ad4..574eb9cdc7a 100644 --- a/service/b2bi/go.mod +++ b/service/b2bi/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/b2bi go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/b2bi/go.sum b/service/b2bi/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/b2bi/go.sum +++ b/service/b2bi/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/b2bi/go_module_metadata.go b/service/b2bi/go_module_metadata.go index b36359235e2..6d2bc4176aa 100644 --- a/service/b2bi/go_module_metadata.go +++ b/service/b2bi/go_module_metadata.go @@ -3,4 +3,4 @@ package b2bi // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.0.0-preview.52" +const goModuleVersion = "1.0.0-preview.54" diff --git a/service/b2bi/types/enums.go b/service/b2bi/types/enums.go index 8b7c19e308c..4391a410510 100644 --- a/service/b2bi/types/enums.go +++ b/service/b2bi/types/enums.go @@ -230,57 +230,324 @@ type X12TransactionSet string // Enum values for X12TransactionSet const ( + X12TransactionSetX12100 X12TransactionSet = "X12_100" + X12TransactionSetX12101 X12TransactionSet = "X12_101" + X12TransactionSetX12102 X12TransactionSet = "X12_102" + X12TransactionSetX12103 X12TransactionSet = "X12_103" + X12TransactionSetX12104 X12TransactionSet = "X12_104" + X12TransactionSetX12105 X12TransactionSet = "X12_105" + X12TransactionSetX12106 X12TransactionSet = "X12_106" + X12TransactionSetX12107 X12TransactionSet = "X12_107" + X12TransactionSetX12108 X12TransactionSet = "X12_108" + X12TransactionSetX12109 X12TransactionSet = "X12_109" X12TransactionSetX12110 X12TransactionSet = "X12_110" + X12TransactionSetX12111 X12TransactionSet = "X12_111" + X12TransactionSetX12112 X12TransactionSet = "X12_112" + X12TransactionSetX12113 X12TransactionSet = "X12_113" + X12TransactionSetX12120 X12TransactionSet = "X12_120" + X12TransactionSetX12121 X12TransactionSet = "X12_121" + X12TransactionSetX12124 X12TransactionSet = "X12_124" + X12TransactionSetX12125 X12TransactionSet = "X12_125" + X12TransactionSetX12126 X12TransactionSet = "X12_126" + X12TransactionSetX12127 X12TransactionSet = "X12_127" + X12TransactionSetX12128 X12TransactionSet = "X12_128" + X12TransactionSetX12129 X12TransactionSet = "X12_129" + X12TransactionSetX12130 X12TransactionSet = "X12_130" + X12TransactionSetX12131 X12TransactionSet = "X12_131" + X12TransactionSetX12132 X12TransactionSet = "X12_132" + X12TransactionSetX12133 X12TransactionSet = "X12_133" + X12TransactionSetX12135 X12TransactionSet = "X12_135" + X12TransactionSetX12138 X12TransactionSet = "X12_138" + X12TransactionSetX12139 X12TransactionSet = "X12_139" + X12TransactionSetX12140 X12TransactionSet = "X12_140" + X12TransactionSetX12141 X12TransactionSet = "X12_141" + X12TransactionSetX12142 X12TransactionSet = "X12_142" + X12TransactionSetX12143 X12TransactionSet = "X12_143" + X12TransactionSetX12144 X12TransactionSet = "X12_144" + X12TransactionSetX12146 X12TransactionSet = "X12_146" + X12TransactionSetX12147 X12TransactionSet = "X12_147" + X12TransactionSetX12148 X12TransactionSet = "X12_148" + X12TransactionSetX12149 X12TransactionSet = "X12_149" + X12TransactionSetX12150 X12TransactionSet = "X12_150" + X12TransactionSetX12151 X12TransactionSet = "X12_151" + X12TransactionSetX12152 X12TransactionSet = "X12_152" + X12TransactionSetX12153 X12TransactionSet = "X12_153" + X12TransactionSetX12154 X12TransactionSet = "X12_154" + X12TransactionSetX12155 X12TransactionSet = "X12_155" + X12TransactionSetX12157 X12TransactionSet = "X12_157" + X12TransactionSetX12158 X12TransactionSet = "X12_158" + X12TransactionSetX12159 X12TransactionSet = "X12_159" + X12TransactionSetX12160 X12TransactionSet = "X12_160" + X12TransactionSetX12161 X12TransactionSet = "X12_161" + X12TransactionSetX12163 X12TransactionSet = "X12_163" + X12TransactionSetX12170 X12TransactionSet = "X12_170" + X12TransactionSetX12175 X12TransactionSet = "X12_175" + X12TransactionSetX12176 X12TransactionSet = "X12_176" + X12TransactionSetX12179 X12TransactionSet = "X12_179" X12TransactionSetX12180 X12TransactionSet = "X12_180" + X12TransactionSetX12185 X12TransactionSet = "X12_185" + X12TransactionSetX12186 X12TransactionSet = "X12_186" + X12TransactionSetX12187 X12TransactionSet = "X12_187" + X12TransactionSetX12188 X12TransactionSet = "X12_188" + X12TransactionSetX12189 X12TransactionSet = "X12_189" + X12TransactionSetX12190 X12TransactionSet = "X12_190" + X12TransactionSetX12191 X12TransactionSet = "X12_191" + X12TransactionSetX12194 X12TransactionSet = "X12_194" + X12TransactionSetX12195 X12TransactionSet = "X12_195" + X12TransactionSetX12196 X12TransactionSet = "X12_196" + X12TransactionSetX12197 X12TransactionSet = "X12_197" + X12TransactionSetX12198 X12TransactionSet = "X12_198" + X12TransactionSetX12199 X12TransactionSet = "X12_199" + X12TransactionSetX12200 X12TransactionSet = "X12_200" + X12TransactionSetX12201 X12TransactionSet = "X12_201" + X12TransactionSetX12202 X12TransactionSet = "X12_202" + X12TransactionSetX12203 X12TransactionSet = "X12_203" X12TransactionSetX12204 X12TransactionSet = "X12_204" + X12TransactionSetX12205 X12TransactionSet = "X12_205" + X12TransactionSetX12206 X12TransactionSet = "X12_206" X12TransactionSetX12210 X12TransactionSet = "X12_210" X12TransactionSetX12211 X12TransactionSet = "X12_211" + X12TransactionSetX12212 X12TransactionSet = "X12_212" + X12TransactionSetX12213 X12TransactionSet = "X12_213" X12TransactionSetX12214 X12TransactionSet = "X12_214" X12TransactionSetX12215 X12TransactionSet = "X12_215" + X12TransactionSetX12216 X12TransactionSet = "X12_216" + X12TransactionSetX12217 X12TransactionSet = "X12_217" + X12TransactionSetX12218 X12TransactionSet = "X12_218" + X12TransactionSetX12219 X12TransactionSet = "X12_219" + X12TransactionSetX12220 X12TransactionSet = "X12_220" + X12TransactionSetX12222 X12TransactionSet = "X12_222" + X12TransactionSetX12223 X12TransactionSet = "X12_223" + X12TransactionSetX12224 X12TransactionSet = "X12_224" + X12TransactionSetX12225 X12TransactionSet = "X12_225" + X12TransactionSetX12227 X12TransactionSet = "X12_227" + X12TransactionSetX12228 X12TransactionSet = "X12_228" + X12TransactionSetX12240 X12TransactionSet = "X12_240" + X12TransactionSetX12242 X12TransactionSet = "X12_242" + X12TransactionSetX12244 X12TransactionSet = "X12_244" + X12TransactionSetX12245 X12TransactionSet = "X12_245" + X12TransactionSetX12248 X12TransactionSet = "X12_248" + X12TransactionSetX12249 X12TransactionSet = "X12_249" + X12TransactionSetX12250 X12TransactionSet = "X12_250" + X12TransactionSetX12251 X12TransactionSet = "X12_251" + X12TransactionSetX12252 X12TransactionSet = "X12_252" + X12TransactionSetX12255 X12TransactionSet = "X12_255" + X12TransactionSetX12256 X12TransactionSet = "X12_256" X12TransactionSetX12259 X12TransactionSet = "X12_259" X12TransactionSetX12260 X12TransactionSet = "X12_260" + X12TransactionSetX12261 X12TransactionSet = "X12_261" + X12TransactionSetX12262 X12TransactionSet = "X12_262" + X12TransactionSetX12263 X12TransactionSet = "X12_263" + X12TransactionSetX12264 X12TransactionSet = "X12_264" + X12TransactionSetX12265 X12TransactionSet = "X12_265" X12TransactionSetX12266 X12TransactionSet = "X12_266" + X12TransactionSetX12267 X12TransactionSet = "X12_267" + X12TransactionSetX12268 X12TransactionSet = "X12_268" X12TransactionSetX12269 X12TransactionSet = "X12_269" X12TransactionSetX12270 X12TransactionSet = "X12_270" X12TransactionSetX12271 X12TransactionSet = "X12_271" + X12TransactionSetX12272 X12TransactionSet = "X12_272" + X12TransactionSetX12273 X12TransactionSet = "X12_273" X12TransactionSetX12274 X12TransactionSet = "X12_274" X12TransactionSetX12275 X12TransactionSet = "X12_275" X12TransactionSetX12276 X12TransactionSet = "X12_276" X12TransactionSetX12277 X12TransactionSet = "X12_277" X12TransactionSetX12278 X12TransactionSet = "X12_278" + X12TransactionSetX12280 X12TransactionSet = "X12_280" + X12TransactionSetX12283 X12TransactionSet = "X12_283" + X12TransactionSetX12284 X12TransactionSet = "X12_284" + X12TransactionSetX12285 X12TransactionSet = "X12_285" + X12TransactionSetX12286 X12TransactionSet = "X12_286" + X12TransactionSetX12288 X12TransactionSet = "X12_288" + X12TransactionSetX12290 X12TransactionSet = "X12_290" + X12TransactionSetX12300 X12TransactionSet = "X12_300" + X12TransactionSetX12301 X12TransactionSet = "X12_301" + X12TransactionSetX12303 X12TransactionSet = "X12_303" + X12TransactionSetX12304 X12TransactionSet = "X12_304" + X12TransactionSetX12309 X12TransactionSet = "X12_309" X12TransactionSetX12310 X12TransactionSet = "X12_310" + X12TransactionSetX12311 X12TransactionSet = "X12_311" + X12TransactionSetX12312 X12TransactionSet = "X12_312" + X12TransactionSetX12313 X12TransactionSet = "X12_313" X12TransactionSetX12315 X12TransactionSet = "X12_315" + X12TransactionSetX12317 X12TransactionSet = "X12_317" + X12TransactionSetX12319 X12TransactionSet = "X12_319" X12TransactionSetX12322 X12TransactionSet = "X12_322" + X12TransactionSetX12323 X12TransactionSet = "X12_323" + X12TransactionSetX12324 X12TransactionSet = "X12_324" + X12TransactionSetX12325 X12TransactionSet = "X12_325" + X12TransactionSetX12326 X12TransactionSet = "X12_326" + X12TransactionSetX12350 X12TransactionSet = "X12_350" + X12TransactionSetX12352 X12TransactionSet = "X12_352" + X12TransactionSetX12353 X12TransactionSet = "X12_353" + X12TransactionSetX12354 X12TransactionSet = "X12_354" + X12TransactionSetX12355 X12TransactionSet = "X12_355" + X12TransactionSetX12356 X12TransactionSet = "X12_356" + X12TransactionSetX12357 X12TransactionSet = "X12_357" + X12TransactionSetX12358 X12TransactionSet = "X12_358" + X12TransactionSetX12361 X12TransactionSet = "X12_361" + X12TransactionSetX12362 X12TransactionSet = "X12_362" X12TransactionSetX12404 X12TransactionSet = "X12_404" X12TransactionSetX12410 X12TransactionSet = "X12_410" + X12TransactionSetX12412 X12TransactionSet = "X12_412" + X12TransactionSetX12414 X12TransactionSet = "X12_414" X12TransactionSetX12417 X12TransactionSet = "X12_417" + X12TransactionSetX12418 X12TransactionSet = "X12_418" + X12TransactionSetX12419 X12TransactionSet = "X12_419" + X12TransactionSetX12420 X12TransactionSet = "X12_420" X12TransactionSetX12421 X12TransactionSet = "X12_421" + X12TransactionSetX12422 X12TransactionSet = "X12_422" + X12TransactionSetX12423 X12TransactionSet = "X12_423" + X12TransactionSetX12424 X12TransactionSet = "X12_424" + X12TransactionSetX12425 X12TransactionSet = "X12_425" X12TransactionSetX12426 X12TransactionSet = "X12_426" + X12TransactionSetX12429 X12TransactionSet = "X12_429" + X12TransactionSetX12431 X12TransactionSet = "X12_431" + X12TransactionSetX12432 X12TransactionSet = "X12_432" + X12TransactionSetX12433 X12TransactionSet = "X12_433" + X12TransactionSetX12434 X12TransactionSet = "X12_434" + X12TransactionSetX12435 X12TransactionSet = "X12_435" + X12TransactionSetX12436 X12TransactionSet = "X12_436" + X12TransactionSetX12437 X12TransactionSet = "X12_437" + X12TransactionSetX12440 X12TransactionSet = "X12_440" + X12TransactionSetX12451 X12TransactionSet = "X12_451" + X12TransactionSetX12452 X12TransactionSet = "X12_452" + X12TransactionSetX12453 X12TransactionSet = "X12_453" + X12TransactionSetX12455 X12TransactionSet = "X12_455" + X12TransactionSetX12456 X12TransactionSet = "X12_456" + X12TransactionSetX12460 X12TransactionSet = "X12_460" + X12TransactionSetX12463 X12TransactionSet = "X12_463" + X12TransactionSetX12466 X12TransactionSet = "X12_466" + X12TransactionSetX12468 X12TransactionSet = "X12_468" + X12TransactionSetX12470 X12TransactionSet = "X12_470" + X12TransactionSetX12475 X12TransactionSet = "X12_475" + X12TransactionSetX12485 X12TransactionSet = "X12_485" + X12TransactionSetX12486 X12TransactionSet = "X12_486" + X12TransactionSetX12490 X12TransactionSet = "X12_490" + X12TransactionSetX12492 X12TransactionSet = "X12_492" + X12TransactionSetX12494 X12TransactionSet = "X12_494" + X12TransactionSetX12500 X12TransactionSet = "X12_500" + X12TransactionSetX12501 X12TransactionSet = "X12_501" + X12TransactionSetX12503 X12TransactionSet = "X12_503" + X12TransactionSetX12504 X12TransactionSet = "X12_504" + X12TransactionSetX12511 X12TransactionSet = "X12_511" + X12TransactionSetX12517 X12TransactionSet = "X12_517" + X12TransactionSetX12521 X12TransactionSet = "X12_521" + X12TransactionSetX12527 X12TransactionSet = "X12_527" + X12TransactionSetX12536 X12TransactionSet = "X12_536" + X12TransactionSetX12540 X12TransactionSet = "X12_540" + X12TransactionSetX12561 X12TransactionSet = "X12_561" + X12TransactionSetX12567 X12TransactionSet = "X12_567" + X12TransactionSetX12568 X12TransactionSet = "X12_568" + X12TransactionSetX12601 X12TransactionSet = "X12_601" + X12TransactionSetX12602 X12TransactionSet = "X12_602" + X12TransactionSetX12620 X12TransactionSet = "X12_620" + X12TransactionSetX12625 X12TransactionSet = "X12_625" + X12TransactionSetX12650 X12TransactionSet = "X12_650" + X12TransactionSetX12715 X12TransactionSet = "X12_715" + X12TransactionSetX12753 X12TransactionSet = "X12_753" + X12TransactionSetX12754 X12TransactionSet = "X12_754" + X12TransactionSetX12805 X12TransactionSet = "X12_805" + X12TransactionSetX12806 X12TransactionSet = "X12_806" X12TransactionSetX12810 X12TransactionSet = "X12_810" + X12TransactionSetX12811 X12TransactionSet = "X12_811" + X12TransactionSetX12812 X12TransactionSet = "X12_812" + X12TransactionSetX12813 X12TransactionSet = "X12_813" + X12TransactionSetX12814 X12TransactionSet = "X12_814" + X12TransactionSetX12815 X12TransactionSet = "X12_815" + X12TransactionSetX12816 X12TransactionSet = "X12_816" + X12TransactionSetX12818 X12TransactionSet = "X12_818" + X12TransactionSetX12819 X12TransactionSet = "X12_819" X12TransactionSetX12820 X12TransactionSet = "X12_820" + X12TransactionSetX12821 X12TransactionSet = "X12_821" + X12TransactionSetX12822 X12TransactionSet = "X12_822" + X12TransactionSetX12823 X12TransactionSet = "X12_823" X12TransactionSetX12824 X12TransactionSet = "X12_824" + X12TransactionSetX12826 X12TransactionSet = "X12_826" + X12TransactionSetX12827 X12TransactionSet = "X12_827" + X12TransactionSetX12828 X12TransactionSet = "X12_828" + X12TransactionSetX12829 X12TransactionSet = "X12_829" X12TransactionSetX12830 X12TransactionSet = "X12_830" + X12TransactionSetX12831 X12TransactionSet = "X12_831" X12TransactionSetX12832 X12TransactionSet = "X12_832" + X12TransactionSetX12833 X12TransactionSet = "X12_833" X12TransactionSetX12834 X12TransactionSet = "X12_834" X12TransactionSetX12835 X12TransactionSet = "X12_835" + X12TransactionSetX12836 X12TransactionSet = "X12_836" X12TransactionSetX12837 X12TransactionSet = "X12_837" + X12TransactionSetX12838 X12TransactionSet = "X12_838" + X12TransactionSetX12839 X12TransactionSet = "X12_839" + X12TransactionSetX12840 X12TransactionSet = "X12_840" + X12TransactionSetX12841 X12TransactionSet = "X12_841" + X12TransactionSetX12842 X12TransactionSet = "X12_842" + X12TransactionSetX12843 X12TransactionSet = "X12_843" X12TransactionSetX12844 X12TransactionSet = "X12_844" + X12TransactionSetX12845 X12TransactionSet = "X12_845" X12TransactionSetX12846 X12TransactionSet = "X12_846" + X12TransactionSetX12847 X12TransactionSet = "X12_847" + X12TransactionSetX12848 X12TransactionSet = "X12_848" X12TransactionSetX12849 X12TransactionSet = "X12_849" X12TransactionSetX12850 X12TransactionSet = "X12_850" + X12TransactionSetX12851 X12TransactionSet = "X12_851" X12TransactionSetX12852 X12TransactionSet = "X12_852" + X12TransactionSetX12853 X12TransactionSet = "X12_853" + X12TransactionSetX12854 X12TransactionSet = "X12_854" X12TransactionSetX12855 X12TransactionSet = "X12_855" X12TransactionSetX12856 X12TransactionSet = "X12_856" + X12TransactionSetX12857 X12TransactionSet = "X12_857" + X12TransactionSetX12858 X12TransactionSet = "X12_858" + X12TransactionSetX12859 X12TransactionSet = "X12_859" X12TransactionSetX12860 X12TransactionSet = "X12_860" X12TransactionSetX12861 X12TransactionSet = "X12_861" + X12TransactionSetX12862 X12TransactionSet = "X12_862" + X12TransactionSetX12863 X12TransactionSet = "X12_863" X12TransactionSetX12864 X12TransactionSet = "X12_864" X12TransactionSetX12865 X12TransactionSet = "X12_865" + X12TransactionSetX12866 X12TransactionSet = "X12_866" + X12TransactionSetX12867 X12TransactionSet = "X12_867" + X12TransactionSetX12868 X12TransactionSet = "X12_868" X12TransactionSetX12869 X12TransactionSet = "X12_869" X12TransactionSetX12870 X12TransactionSet = "X12_870" + X12TransactionSetX12871 X12TransactionSet = "X12_871" + X12TransactionSetX12872 X12TransactionSet = "X12_872" + X12TransactionSetX12873 X12TransactionSet = "X12_873" + X12TransactionSetX12874 X12TransactionSet = "X12_874" + X12TransactionSetX12875 X12TransactionSet = "X12_875" + X12TransactionSetX12876 X12TransactionSet = "X12_876" + X12TransactionSetX12877 X12TransactionSet = "X12_877" + X12TransactionSetX12878 X12TransactionSet = "X12_878" + X12TransactionSetX12879 X12TransactionSet = "X12_879" + X12TransactionSetX12880 X12TransactionSet = "X12_880" + X12TransactionSetX12881 X12TransactionSet = "X12_881" + X12TransactionSetX12882 X12TransactionSet = "X12_882" + X12TransactionSetX12883 X12TransactionSet = "X12_883" + X12TransactionSetX12884 X12TransactionSet = "X12_884" + X12TransactionSetX12885 X12TransactionSet = "X12_885" + X12TransactionSetX12886 X12TransactionSet = "X12_886" + X12TransactionSetX12887 X12TransactionSet = "X12_887" + X12TransactionSetX12888 X12TransactionSet = "X12_888" + X12TransactionSetX12889 X12TransactionSet = "X12_889" + X12TransactionSetX12891 X12TransactionSet = "X12_891" + X12TransactionSetX12893 X12TransactionSet = "X12_893" + X12TransactionSetX12894 X12TransactionSet = "X12_894" + X12TransactionSetX12895 X12TransactionSet = "X12_895" + X12TransactionSetX12896 X12TransactionSet = "X12_896" + X12TransactionSetX12920 X12TransactionSet = "X12_920" + X12TransactionSetX12924 X12TransactionSet = "X12_924" + X12TransactionSetX12925 X12TransactionSet = "X12_925" + X12TransactionSetX12926 X12TransactionSet = "X12_926" + X12TransactionSetX12928 X12TransactionSet = "X12_928" X12TransactionSetX12940 X12TransactionSet = "X12_940" + X12TransactionSetX12943 X12TransactionSet = "X12_943" + X12TransactionSetX12944 X12TransactionSet = "X12_944" X12TransactionSetX12945 X12TransactionSet = "X12_945" + X12TransactionSetX12947 X12TransactionSet = "X12_947" + X12TransactionSetX12980 X12TransactionSet = "X12_980" X12TransactionSetX12990 X12TransactionSet = "X12_990" + X12TransactionSetX12993 X12TransactionSet = "X12_993" + X12TransactionSetX12996 X12TransactionSet = "X12_996" X12TransactionSetX12997 X12TransactionSet = "X12_997" + X12TransactionSetX12998 X12TransactionSet = "X12_998" X12TransactionSetX12999 X12TransactionSet = "X12_999" X12TransactionSetX12270X279 X12TransactionSet = "X12_270_X279" X12TransactionSetX12271X279 X12TransactionSet = "X12_271_X279" @@ -313,57 +580,324 @@ const ( // The ordering of this slice is not guaranteed to be stable across updates. func (X12TransactionSet) Values() []X12TransactionSet { return []X12TransactionSet{ + "X12_100", + "X12_101", + "X12_102", + "X12_103", + "X12_104", + "X12_105", + "X12_106", + "X12_107", + "X12_108", + "X12_109", "X12_110", + "X12_111", + "X12_112", + "X12_113", + "X12_120", + "X12_121", + "X12_124", + "X12_125", + "X12_126", + "X12_127", + "X12_128", + "X12_129", + "X12_130", + "X12_131", + "X12_132", + "X12_133", + "X12_135", + "X12_138", + "X12_139", + "X12_140", + "X12_141", + "X12_142", + "X12_143", + "X12_144", + "X12_146", + "X12_147", + "X12_148", + "X12_149", + "X12_150", + "X12_151", + "X12_152", + "X12_153", + "X12_154", + "X12_155", + "X12_157", + "X12_158", + "X12_159", + "X12_160", + "X12_161", + "X12_163", + "X12_170", + "X12_175", + "X12_176", + "X12_179", "X12_180", + "X12_185", + "X12_186", + "X12_187", + "X12_188", + "X12_189", + "X12_190", + "X12_191", + "X12_194", + "X12_195", + "X12_196", + "X12_197", + "X12_198", + "X12_199", + "X12_200", + "X12_201", + "X12_202", + "X12_203", "X12_204", + "X12_205", + "X12_206", "X12_210", "X12_211", + "X12_212", + "X12_213", "X12_214", "X12_215", + "X12_216", + "X12_217", + "X12_218", + "X12_219", + "X12_220", + "X12_222", + "X12_223", + "X12_224", + "X12_225", + "X12_227", + "X12_228", + "X12_240", + "X12_242", + "X12_244", + "X12_245", + "X12_248", + "X12_249", + "X12_250", + "X12_251", + "X12_252", + "X12_255", + "X12_256", "X12_259", "X12_260", + "X12_261", + "X12_262", + "X12_263", + "X12_264", + "X12_265", "X12_266", + "X12_267", + "X12_268", "X12_269", "X12_270", "X12_271", + "X12_272", + "X12_273", "X12_274", "X12_275", "X12_276", "X12_277", "X12_278", + "X12_280", + "X12_283", + "X12_284", + "X12_285", + "X12_286", + "X12_288", + "X12_290", + "X12_300", + "X12_301", + "X12_303", + "X12_304", + "X12_309", "X12_310", + "X12_311", + "X12_312", + "X12_313", "X12_315", + "X12_317", + "X12_319", "X12_322", + "X12_323", + "X12_324", + "X12_325", + "X12_326", + "X12_350", + "X12_352", + "X12_353", + "X12_354", + "X12_355", + "X12_356", + "X12_357", + "X12_358", + "X12_361", + "X12_362", "X12_404", "X12_410", + "X12_412", + "X12_414", "X12_417", + "X12_418", + "X12_419", + "X12_420", "X12_421", + "X12_422", + "X12_423", + "X12_424", + "X12_425", "X12_426", + "X12_429", + "X12_431", + "X12_432", + "X12_433", + "X12_434", + "X12_435", + "X12_436", + "X12_437", + "X12_440", + "X12_451", + "X12_452", + "X12_453", + "X12_455", + "X12_456", + "X12_460", + "X12_463", + "X12_466", + "X12_468", + "X12_470", + "X12_475", + "X12_485", + "X12_486", + "X12_490", + "X12_492", + "X12_494", + "X12_500", + "X12_501", + "X12_503", + "X12_504", + "X12_511", + "X12_517", + "X12_521", + "X12_527", + "X12_536", + "X12_540", + "X12_561", + "X12_567", + "X12_568", + "X12_601", + "X12_602", + "X12_620", + "X12_625", + "X12_650", + "X12_715", + "X12_753", + "X12_754", + "X12_805", + "X12_806", "X12_810", + "X12_811", + "X12_812", + "X12_813", + "X12_814", + "X12_815", + "X12_816", + "X12_818", + "X12_819", "X12_820", + "X12_821", + "X12_822", + "X12_823", "X12_824", + "X12_826", + "X12_827", + "X12_828", + "X12_829", "X12_830", + "X12_831", "X12_832", + "X12_833", "X12_834", "X12_835", + "X12_836", "X12_837", + "X12_838", + "X12_839", + "X12_840", + "X12_841", + "X12_842", + "X12_843", "X12_844", + "X12_845", "X12_846", + "X12_847", + "X12_848", "X12_849", "X12_850", + "X12_851", "X12_852", + "X12_853", + "X12_854", "X12_855", "X12_856", + "X12_857", + "X12_858", + "X12_859", "X12_860", "X12_861", + "X12_862", + "X12_863", "X12_864", "X12_865", + "X12_866", + "X12_867", + "X12_868", "X12_869", "X12_870", + "X12_871", + "X12_872", + "X12_873", + "X12_874", + "X12_875", + "X12_876", + "X12_877", + "X12_878", + "X12_879", + "X12_880", + "X12_881", + "X12_882", + "X12_883", + "X12_884", + "X12_885", + "X12_886", + "X12_887", + "X12_888", + "X12_889", + "X12_891", + "X12_893", + "X12_894", + "X12_895", + "X12_896", + "X12_920", + "X12_924", + "X12_925", + "X12_926", + "X12_928", "X12_940", + "X12_943", + "X12_944", "X12_945", + "X12_947", + "X12_980", "X12_990", + "X12_993", + "X12_996", "X12_997", + "X12_998", "X12_999", "X12_270_X279", "X12_271_X279", @@ -397,6 +931,8 @@ type X12Version string const ( X12VersionVersion4010 X12Version = "VERSION_4010" X12VersionVersion4030 X12Version = "VERSION_4030" + X12VersionVersion4050 X12Version = "VERSION_4050" + X12VersionVersion4060 X12Version = "VERSION_4060" X12VersionVersion5010 X12Version = "VERSION_5010" X12VersionVersion5010Hipaa X12Version = "VERSION_5010_HIPAA" ) @@ -409,6 +945,8 @@ func (X12Version) Values() []X12Version { return []X12Version{ "VERSION_4010", "VERSION_4030", + "VERSION_4050", + "VERSION_4060", "VERSION_5010", "VERSION_5010_HIPAA", } diff --git a/service/backup/CHANGELOG.md b/service/backup/CHANGELOG.md index 38163e804ea..d0eb146604a 100644 --- a/service/backup/CHANGELOG.md +++ b/service/backup/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.39.7 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.39.6 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/backup/go.mod b/service/backup/go.mod index 1b301ddadeb..6981f74b632 100644 --- a/service/backup/go.mod +++ b/service/backup/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/backup go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/backup/go.sum b/service/backup/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/backup/go.sum +++ b/service/backup/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/backup/go_module_metadata.go b/service/backup/go_module_metadata.go index 80463711c11..1f12f8a7c67 100644 --- a/service/backup/go_module_metadata.go +++ b/service/backup/go_module_metadata.go @@ -3,4 +3,4 @@ package backup // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.39.6" +const goModuleVersion = "1.39.7" diff --git a/service/backupgateway/CHANGELOG.md b/service/backupgateway/CHANGELOG.md index d75c2548c94..77f0eea3fbf 100644 --- a/service/backupgateway/CHANGELOG.md +++ b/service/backupgateway/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.20.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/backupgateway/go.mod b/service/backupgateway/go.mod index e9b179729f2..113ba2e234e 100644 --- a/service/backupgateway/go.mod +++ b/service/backupgateway/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/backupgateway go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/backupgateway/go.sum b/service/backupgateway/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/backupgateway/go.sum +++ b/service/backupgateway/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/backupgateway/go_module_metadata.go b/service/backupgateway/go_module_metadata.go index acbfae8ec09..76fd0bea002 100644 --- a/service/backupgateway/go_module_metadata.go +++ b/service/backupgateway/go_module_metadata.go @@ -3,4 +3,4 @@ package backupgateway // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.5" +const goModuleVersion = "1.20.6" diff --git a/service/batch/CHANGELOG.md b/service/batch/CHANGELOG.md index 9424ded8b40..4fbadf50db8 100644 --- a/service/batch/CHANGELOG.md +++ b/service/batch/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.48.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.48.0 (2024-11-08) * **Feature**: This feature allows override LaunchTemplates to be specified in an AWS Batch Compute Environment. diff --git a/service/batch/go.mod b/service/batch/go.mod index f90ba993e1d..02b41894c43 100644 --- a/service/batch/go.mod +++ b/service/batch/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/batch go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/batch/go.sum b/service/batch/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/batch/go.sum +++ b/service/batch/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/batch/go_module_metadata.go b/service/batch/go_module_metadata.go index 05f6f4491ca..733085ac2ce 100644 --- a/service/batch/go_module_metadata.go +++ b/service/batch/go_module_metadata.go @@ -3,4 +3,4 @@ package batch // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.48.0" +const goModuleVersion = "1.48.1" diff --git a/service/bcmdataexports/CHANGELOG.md b/service/bcmdataexports/CHANGELOG.md index c2b6c8f8122..3edd7bf4053 100644 --- a/service/bcmdataexports/CHANGELOG.md +++ b/service/bcmdataexports/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.7.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.7.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/bcmdataexports/go.mod b/service/bcmdataexports/go.mod index 2e464cf818f..da58ab07dea 100644 --- a/service/bcmdataexports/go.mod +++ b/service/bcmdataexports/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/bcmdataexports go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/bcmdataexports/go.sum b/service/bcmdataexports/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/bcmdataexports/go.sum +++ b/service/bcmdataexports/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/bcmdataexports/go_module_metadata.go b/service/bcmdataexports/go_module_metadata.go index afd86f8028d..0d93630110b 100644 --- a/service/bcmdataexports/go_module_metadata.go +++ b/service/bcmdataexports/go_module_metadata.go @@ -3,4 +3,4 @@ package bcmdataexports // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.7.5" +const goModuleVersion = "1.7.6" diff --git a/service/bedrock/CHANGELOG.md b/service/bedrock/CHANGELOG.md index 5fcb93611a6..1f59e0be97f 100644 --- a/service/bedrock/CHANGELOG.md +++ b/service/bedrock/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.22.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.3 (2024-11-11) * No change notes available for this release. diff --git a/service/bedrock/go.mod b/service/bedrock/go.mod index f2c9537dce4..00ff0105d03 100644 --- a/service/bedrock/go.mod +++ b/service/bedrock/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/bedrock go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/bedrock/go.sum b/service/bedrock/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/bedrock/go.sum +++ b/service/bedrock/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/bedrock/go_module_metadata.go b/service/bedrock/go_module_metadata.go index 3e04380ca29..c12e109c676 100644 --- a/service/bedrock/go_module_metadata.go +++ b/service/bedrock/go_module_metadata.go @@ -3,4 +3,4 @@ package bedrock // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.3" +const goModuleVersion = "1.22.4" diff --git a/service/bedrockagent/CHANGELOG.md b/service/bedrockagent/CHANGELOG.md index fbd50fc6e54..3b25bce3dbc 100644 --- a/service/bedrockagent/CHANGELOG.md +++ b/service/bedrockagent/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.0 (2024-11-07) * **Feature**: Add prompt support for chat template configuration and agent generative AI resource. Add support for configuring an optional guardrail in Prompt and Knowledge Base nodes in Prompt Flows. Add API to validate flow definition diff --git a/service/bedrockagent/go.mod b/service/bedrockagent/go.mod index 81683ae74e3..f7b497ffdf0 100644 --- a/service/bedrockagent/go.mod +++ b/service/bedrockagent/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/bedrockagent go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/bedrockagent/go.sum b/service/bedrockagent/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/bedrockagent/go.sum +++ b/service/bedrockagent/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/bedrockagent/go_module_metadata.go b/service/bedrockagent/go_module_metadata.go index 6f57f94e9a3..8a314181abd 100644 --- a/service/bedrockagent/go_module_metadata.go +++ b/service/bedrockagent/go_module_metadata.go @@ -3,4 +3,4 @@ package bedrockagent // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.0" +const goModuleVersion = "1.27.1" diff --git a/service/bedrockagentruntime/CHANGELOG.md b/service/bedrockagentruntime/CHANGELOG.md index f3fff45d26c..1e043f35240 100644 --- a/service/bedrockagentruntime/CHANGELOG.md +++ b/service/bedrockagentruntime/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.25.0 (2024-11-20) + +* **Feature**: Releasing new Prompt Optimization to enhance your prompts for improved performance + +# v1.24.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.0 (2024-11-08) * **Feature**: This release adds trace functionality to Bedrock Prompt Flows diff --git a/service/bedrockagentruntime/api_op_InvokeFlow.go b/service/bedrockagentruntime/api_op_InvokeFlow.go index 10fe202164a..8ab09cc3b3c 100644 --- a/service/bedrockagentruntime/api_op_InvokeFlow.go +++ b/service/bedrockagentruntime/api_op_InvokeFlow.go @@ -14,12 +14,13 @@ import ( // Invokes an alias of a flow to run the inputs that you specify and return the // output of each node as a stream. If there's an error, the error is returned. For -// more information, see [Test a flow in Amazon Bedrock]in the Amazon Bedrock User Guide. +// more information, see [Test a flow in Amazon Bedrock]in the [Amazon Bedrock User Guide]. // // The CLI doesn't support streaming operations in Amazon Bedrock, including // InvokeFlow . // // [Test a flow in Amazon Bedrock]: https://docs.aws.amazon.com/bedrock/latest/userguide/flows-test.html +// [Amazon Bedrock User Guide]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html func (c *Client) InvokeFlow(ctx context.Context, params *InvokeFlowInput, optFns ...func(*Options)) (*InvokeFlowOutput, error) { if params == nil { params = &InvokeFlowInput{} diff --git a/service/bedrockagentruntime/api_op_OptimizePrompt.go b/service/bedrockagentruntime/api_op_OptimizePrompt.go new file mode 100644 index 00000000000..918e364306a --- /dev/null +++ b/service/bedrockagentruntime/api_op_OptimizePrompt.go @@ -0,0 +1,267 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package bedrockagentruntime + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/bedrockagentruntime/types" + "github.com/aws/smithy-go/middleware" + smithysync "github.com/aws/smithy-go/sync" + "sync" +) + +// Optimizes a prompt for the task that you specify. For more information, see [Optimize a prompt] in +// the [Amazon Bedrock User Guide]. +// +// [Optimize a prompt]: https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-optimize.html +// [Amazon Bedrock User Guide]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html +func (c *Client) OptimizePrompt(ctx context.Context, params *OptimizePromptInput, optFns ...func(*Options)) (*OptimizePromptOutput, error) { + if params == nil { + params = &OptimizePromptInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "OptimizePrompt", params, optFns, c.addOperationOptimizePromptMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*OptimizePromptOutput) + out.ResultMetadata = metadata + return out, nil +} + +type OptimizePromptInput struct { + + // Contains the prompt to optimize. + // + // This member is required. + Input types.InputPrompt + + // The unique identifier of the model that you want to optimize the prompt for. + // + // This member is required. + TargetModelId *string + + noSmithyDocumentSerde +} + +type OptimizePromptOutput struct { + eventStream *OptimizePromptEventStream + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +// GetStream returns the type to interact with the event stream. +func (o *OptimizePromptOutput) GetStream() *OptimizePromptEventStream { + return o.eventStream +} + +func (c *Client) addOperationOptimizePromptMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpOptimizePrompt{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpOptimizePrompt{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "OptimizePrompt"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addEventStreamOptimizePromptMiddleware(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpOptimizePromptValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opOptimizePrompt(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opOptimizePrompt(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "OptimizePrompt", + } +} + +// OptimizePromptEventStream provides the event stream handling for the OptimizePrompt operation. +// +// For testing and mocking the event stream this type should be initialized via +// the NewOptimizePromptEventStream constructor function. Using the functional options +// to pass in nested mock behavior. +type OptimizePromptEventStream struct { + // OptimizedPromptStreamReader is the EventStream reader for the + // OptimizedPromptStream events. This value is automatically set by the SDK when + // the API call is made Use this member when unit testing your code with the SDK to + // mock out the EventStream Reader. + // + // Must not be nil. + Reader OptimizedPromptStreamReader + + done chan struct{} + closeOnce sync.Once + err *smithysync.OnceErr +} + +// NewOptimizePromptEventStream initializes an OptimizePromptEventStream. +// This function should only be used for testing and mocking the OptimizePromptEventStream +// stream within your application. +// +// The Reader member must be set before reading events from the stream. +func NewOptimizePromptEventStream(optFns ...func(*OptimizePromptEventStream)) *OptimizePromptEventStream { + es := &OptimizePromptEventStream{ + done: make(chan struct{}), + err: smithysync.NewOnceErr(), + } + for _, fn := range optFns { + fn(es) + } + return es +} + +// Events returns a channel to read events from. +func (es *OptimizePromptEventStream) Events() <-chan types.OptimizedPromptStream { + return es.Reader.Events() +} + +// Close closes the stream. This will also cause the stream to be closed. +// Close must be called when done using the stream API. Not calling Close +// may result in resource leaks. +// +// Will close the underlying EventStream writer and reader, and no more events can be +// sent or received. +func (es *OptimizePromptEventStream) Close() error { + es.closeOnce.Do(es.safeClose) + return es.Err() +} + +func (es *OptimizePromptEventStream) safeClose() { + close(es.done) + + es.Reader.Close() +} + +// Err returns any error that occurred while reading or writing EventStream Events +// from the service API's response. Returns nil if there were no errors. +func (es *OptimizePromptEventStream) Err() error { + if err := es.err.Err(); err != nil { + return err + } + + if err := es.Reader.Err(); err != nil { + return err + } + + return nil +} + +func (es *OptimizePromptEventStream) waitStreamClose() { + type errorSet interface { + ErrorSet() <-chan struct{} + } + + var outputErrCh <-chan struct{} + if v, ok := es.Reader.(errorSet); ok { + outputErrCh = v.ErrorSet() + } + var outputClosedCh <-chan struct{} + if v, ok := es.Reader.(interface{ Closed() <-chan struct{} }); ok { + outputClosedCh = v.Closed() + } + + select { + case <-es.done: + case <-outputErrCh: + es.err.SetError(es.Reader.Err()) + es.Close() + + case <-outputClosedCh: + if err := es.Reader.Err(); err != nil { + es.err.SetError(es.Reader.Err()) + } + es.Close() + + } +} diff --git a/service/bedrockagentruntime/deserializers.go b/service/bedrockagentruntime/deserializers.go index 416c15ca754..448f4b1fc67 100644 --- a/service/bedrockagentruntime/deserializers.go +++ b/service/bedrockagentruntime/deserializers.go @@ -584,6 +584,109 @@ func awsRestjson1_deserializeOpErrorInvokeFlow(response *smithyhttp.Response, me } } +type awsRestjson1_deserializeOpOptimizePrompt struct { +} + +func (*awsRestjson1_deserializeOpOptimizePrompt) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpOptimizePrompt) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorOptimizePrompt(response, &metadata) + } + output := &OptimizePromptOutput{} + out.Result = output + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorOptimizePrompt(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("BadGatewayException", errorCode): + return awsRestjson1_deserializeErrorBadGatewayException(response, errorBody) + + case strings.EqualFold("DependencyFailedException", errorCode): + return awsRestjson1_deserializeErrorDependencyFailedException(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_deserializeOpRetrieve struct { } @@ -6046,6 +6149,332 @@ func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationExc return nil } +func awsRestjson1_deserializeEventStreamOptimizedPromptStream(v *types.OptimizedPromptStream, msg *eventstream.Message) error { + if v == nil { + return fmt.Errorf("unexpected serialization of nil %T", v) + } + + eventType := msg.Headers.Get(eventstreamapi.EventTypeHeader) + if eventType == nil { + return fmt.Errorf("%s event header not present", eventstreamapi.EventTypeHeader) + } + + switch { + case strings.EqualFold("analyzePromptEvent", eventType.String()): + vv := &types.OptimizedPromptStreamMemberAnalyzePromptEvent{} + if err := awsRestjson1_deserializeEventMessageAnalyzePromptEvent(&vv.Value, msg); err != nil { + return err + } + *v = vv + return nil + + case strings.EqualFold("optimizedPromptEvent", eventType.String()): + vv := &types.OptimizedPromptStreamMemberOptimizedPromptEvent{} + if err := awsRestjson1_deserializeEventMessageOptimizedPromptEvent(&vv.Value, msg); err != nil { + return err + } + *v = vv + return nil + + default: + buffer := bytes.NewBuffer(nil) + eventstream.NewEncoder().Encode(buffer, *msg) + *v = &types.UnknownUnionMember{ + Tag: eventType.String(), + Value: buffer.Bytes(), + } + return nil + + } +} + +func awsRestjson1_deserializeEventStreamExceptionOptimizedPromptStream(msg *eventstream.Message) error { + exceptionType := msg.Headers.Get(eventstreamapi.ExceptionTypeHeader) + if exceptionType == nil { + return fmt.Errorf("%s event header not present", eventstreamapi.ExceptionTypeHeader) + } + + switch { + case strings.EqualFold("accessDeniedException", exceptionType.String()): + return awsRestjson1_deserializeEventMessageExceptionAccessDeniedException(msg) + + case strings.EqualFold("badGatewayException", exceptionType.String()): + return awsRestjson1_deserializeEventMessageExceptionBadGatewayException(msg) + + case strings.EqualFold("dependencyFailedException", exceptionType.String()): + return awsRestjson1_deserializeEventMessageExceptionDependencyFailedException(msg) + + case strings.EqualFold("internalServerException", exceptionType.String()): + return awsRestjson1_deserializeEventMessageExceptionInternalServerException(msg) + + case strings.EqualFold("throttlingException", exceptionType.String()): + return awsRestjson1_deserializeEventMessageExceptionThrottlingException(msg) + + case strings.EqualFold("validationException", exceptionType.String()): + return awsRestjson1_deserializeEventMessageExceptionValidationException(msg) + + default: + br := bytes.NewReader(msg.Payload) + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(br, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + return err + } + errorCode := "UnknownError" + errorMessage := errorCode + if ev := exceptionType.String(); len(ev) > 0 { + errorCode = ev + } else if ev := code; len(ev) > 0 { + errorCode = ev + } + if ev := message; len(ev) > 0 { + errorMessage = ev + } + return &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + + } +} + +func awsRestjson1_deserializeEventMessageOptimizedPromptEvent(v *types.OptimizedPromptEvent, msg *eventstream.Message) error { + if v == nil { + return fmt.Errorf("unexpected serialization of nil %T", v) + } + + br := bytes.NewReader(msg.Payload) + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(br, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + if err := awsRestjson1_deserializeDocumentOptimizedPromptEvent(&v, shape); err != nil { + if err != nil { + var snapshot 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 nil +} + +func awsRestjson1_deserializeEventMessageAnalyzePromptEvent(v *types.AnalyzePromptEvent, msg *eventstream.Message) error { + if v == nil { + return fmt.Errorf("unexpected serialization of nil %T", v) + } + + br := bytes.NewReader(msg.Payload) + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(br, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + if err := awsRestjson1_deserializeDocumentAnalyzePromptEvent(&v, shape); err != nil { + if err != nil { + var snapshot 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 nil +} + +func awsRestjson1_deserializeDocumentAnalyzePromptEvent(v **types.AnalyzePromptEvent, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AnalyzePromptEvent + if *v == nil { + sv = &types.AnalyzePromptEvent{} + } 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 awsRestjson1_deserializeDocumentOptimizedPrompt(v *types.OptimizedPrompt, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var uv types.OptimizedPrompt +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "textPrompt": + var mv types.TextPrompt + destAddr := &mv + if err := awsRestjson1_deserializeDocumentTextPrompt(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.OptimizedPromptMemberTextPrompt{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + +func awsRestjson1_deserializeDocumentOptimizedPromptEvent(v **types.OptimizedPromptEvent, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.OptimizedPromptEvent + if *v == nil { + sv = &types.OptimizedPromptEvent{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "optimizedPrompt": + if err := awsRestjson1_deserializeDocumentOptimizedPrompt(&sv.OptimizedPrompt, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentTextPrompt(v **types.TextPrompt, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.TextPrompt + if *v == nil { + sv = &types.TextPrompt{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "text": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Text = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeEventStreamFlowResponseStream(v *types.FlowResponseStream, msg *eventstream.Message) error { if v == nil { return fmt.Errorf("unexpected serialization of nil %T", v) diff --git a/service/bedrockagentruntime/eventstream.go b/service/bedrockagentruntime/eventstream.go index 8da2718f9af..0d58526ef82 100644 --- a/service/bedrockagentruntime/eventstream.go +++ b/service/bedrockagentruntime/eventstream.go @@ -28,6 +28,16 @@ type FlowResponseStreamReader interface { Err() error } +// OptimizedPromptStreamReader provides the interface for reading events from a +// stream. +// +// The writer's Close method must allow multiple concurrent calls. +type OptimizedPromptStreamReader interface { + Events() <-chan types.OptimizedPromptStream + Close() error + Err() error +} + // ResponseStreamReader provides the interface for reading events from a stream. // // The writer's Close method must allow multiple concurrent calls. @@ -165,6 +175,134 @@ func (r *responseStreamReader) Closed() <-chan struct{} { return r.done } +type optimizedPromptStreamReader struct { + stream chan types.OptimizedPromptStream + decoder *eventstream.Decoder + eventStream io.ReadCloser + err *smithysync.OnceErr + payloadBuf []byte + done chan struct{} + closeOnce sync.Once +} + +func newOptimizedPromptStreamReader(readCloser io.ReadCloser, decoder *eventstream.Decoder) *optimizedPromptStreamReader { + w := &optimizedPromptStreamReader{ + stream: make(chan types.OptimizedPromptStream), + decoder: decoder, + eventStream: readCloser, + err: smithysync.NewOnceErr(), + done: make(chan struct{}), + payloadBuf: make([]byte, 10*1024), + } + + go w.readEventStream() + + return w +} + +func (r *optimizedPromptStreamReader) Events() <-chan types.OptimizedPromptStream { + return r.stream +} + +func (r *optimizedPromptStreamReader) readEventStream() { + defer r.Close() + defer close(r.stream) + + for { + r.payloadBuf = r.payloadBuf[0:0] + decodedMessage, err := r.decoder.Decode(r.eventStream, r.payloadBuf) + if err != nil { + if err == io.EOF { + return + } + select { + case <-r.done: + return + default: + r.err.SetError(err) + return + } + } + + event, err := r.deserializeEventMessage(&decodedMessage) + if err != nil { + r.err.SetError(err) + return + } + + select { + case r.stream <- event: + case <-r.done: + return + } + + } +} + +func (r *optimizedPromptStreamReader) deserializeEventMessage(msg *eventstream.Message) (types.OptimizedPromptStream, error) { + messageType := msg.Headers.Get(eventstreamapi.MessageTypeHeader) + if messageType == nil { + return nil, fmt.Errorf("%s event header not present", eventstreamapi.MessageTypeHeader) + } + + switch messageType.String() { + case eventstreamapi.EventMessageType: + var v types.OptimizedPromptStream + if err := awsRestjson1_deserializeEventStreamOptimizedPromptStream(&v, msg); err != nil { + return nil, err + } + return v, nil + + case eventstreamapi.ExceptionMessageType: + return nil, awsRestjson1_deserializeEventStreamExceptionOptimizedPromptStream(msg) + + case eventstreamapi.ErrorMessageType: + errorCode := "UnknownError" + errorMessage := errorCode + if header := msg.Headers.Get(eventstreamapi.ErrorCodeHeader); header != nil { + errorCode = header.String() + } + if header := msg.Headers.Get(eventstreamapi.ErrorMessageHeader); header != nil { + errorMessage = header.String() + } + return nil, &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + + default: + mc := msg.Clone() + return nil, &UnknownEventMessageError{ + Type: messageType.String(), + Message: &mc, + } + + } +} + +func (r *optimizedPromptStreamReader) ErrorSet() <-chan struct{} { + return r.err.ErrorSet() +} + +func (r *optimizedPromptStreamReader) Close() error { + r.closeOnce.Do(r.safeClose) + return r.Err() +} + +func (r *optimizedPromptStreamReader) safeClose() { + close(r.done) + r.eventStream.Close() + +} + +func (r *optimizedPromptStreamReader) Err() error { + return r.err.Err() +} + +func (r *optimizedPromptStreamReader) Closed() <-chan struct{} { + return r.done +} + type flowResponseStreamReader struct { stream chan types.FlowResponseStream decoder *eventstream.Decoder @@ -469,6 +607,94 @@ func addEventStreamInvokeFlowMiddleware(stack *middleware.Stack, options Options } +type awsRestjson1_deserializeOpEventStreamOptimizePrompt struct { + LogEventStreamWrites bool + LogEventStreamReads bool +} + +func (*awsRestjson1_deserializeOpEventStreamOptimizePrompt) ID() string { + return "OperationEventStreamDeserializer" +} + +func (m *awsRestjson1_deserializeOpEventStreamOptimizePrompt) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + defer func() { + if err == nil { + return + } + m.closeResponseBody(out) + }() + + logger := middleware.GetLogger(ctx) + + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type: %T", in.Request) + } + _ = request + + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + deserializeOutput, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type: %T", out.RawResponse) + } + _ = deserializeOutput + + output, ok := out.Result.(*OptimizePromptOutput) + if out.Result != nil && !ok { + return out, metadata, fmt.Errorf("unexpected output result type: %T", out.Result) + } else if out.Result == nil { + output = &OptimizePromptOutput{} + out.Result = output + } + + eventReader := newOptimizedPromptStreamReader( + deserializeOutput.Body, + eventstream.NewDecoder(func(options *eventstream.DecoderOptions) { + options.Logger = logger + options.LogMessages = m.LogEventStreamReads + + }), + ) + defer func() { + if err == nil { + return + } + _ = eventReader.Close() + }() + + output.eventStream = NewOptimizePromptEventStream(func(stream *OptimizePromptEventStream) { + stream.Reader = eventReader + }) + + go output.eventStream.waitStreamClose() + + return out, metadata, nil +} + +func (*awsRestjson1_deserializeOpEventStreamOptimizePrompt) closeResponseBody(out middleware.DeserializeOutput) { + if resp, ok := out.RawResponse.(*smithyhttp.Response); ok && resp != nil && resp.Body != nil { + _, _ = io.Copy(ioutil.Discard, resp.Body) + _ = resp.Body.Close() + } +} + +func addEventStreamOptimizePromptMiddleware(stack *middleware.Stack, options Options) error { + if err := stack.Deserialize.Insert(&awsRestjson1_deserializeOpEventStreamOptimizePrompt{ + LogEventStreamWrites: options.ClientLogMode.IsRequestEventMessage(), + LogEventStreamReads: options.ClientLogMode.IsResponseEventMessage(), + }, "OperationDeserializer", middleware.Before); err != nil { + return err + } + return nil + +} + // UnknownEventMessageError provides an error when a message is received from the stream, // but the reader is unable to determine what kind of message it is. type UnknownEventMessageError struct { @@ -491,6 +717,10 @@ func setSafeEventStreamClientLogMode(o *Options, operation string) { toggleEventStreamClientLogMode(o, false, true) return + case "OptimizePrompt": + toggleEventStreamClientLogMode(o, false, true) + return + default: return diff --git a/service/bedrockagentruntime/generated.json b/service/bedrockagentruntime/generated.json index 25281b57a5b..d171a946f92 100644 --- a/service/bedrockagentruntime/generated.json +++ b/service/bedrockagentruntime/generated.json @@ -13,6 +13,7 @@ "api_op_GetAgentMemory.go", "api_op_InvokeAgent.go", "api_op_InvokeFlow.go", + "api_op_OptimizePrompt.go", "api_op_Retrieve.go", "api_op_RetrieveAndGenerate.go", "auth.go", diff --git a/service/bedrockagentruntime/go.mod b/service/bedrockagentruntime/go.mod index 2f1babf1910..f7b3ace25cc 100644 --- a/service/bedrockagentruntime/go.mod +++ b/service/bedrockagentruntime/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/bedrockagentruntime go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.6 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.7 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/bedrockagentruntime/go.sum b/service/bedrockagentruntime/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/bedrockagentruntime/go.sum +++ b/service/bedrockagentruntime/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/bedrockagentruntime/go_module_metadata.go b/service/bedrockagentruntime/go_module_metadata.go index 76bf2e8703f..d20a497f7a7 100644 --- a/service/bedrockagentruntime/go_module_metadata.go +++ b/service/bedrockagentruntime/go_module_metadata.go @@ -3,4 +3,4 @@ package bedrockagentruntime // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.0" +const goModuleVersion = "1.25.0" diff --git a/service/bedrockagentruntime/serializers.go b/service/bedrockagentruntime/serializers.go index 8908f1e3b16..64ae87184ab 100644 --- a/service/bedrockagentruntime/serializers.go +++ b/service/bedrockagentruntime/serializers.go @@ -442,6 +442,94 @@ func awsRestjson1_serializeOpDocumentInvokeFlowInput(v *InvokeFlowInput, value s return nil } +type awsRestjson1_serializeOpOptimizePrompt struct { +} + +func (*awsRestjson1_serializeOpOptimizePrompt) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpOptimizePrompt) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*OptimizePromptInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/optimize-prompt") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, 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_serializeOpDocumentOptimizePromptInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsOptimizePromptInput(v *OptimizePromptInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentOptimizePromptInput(v *OptimizePromptInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Input != nil { + ok := object.Key("input") + if err := awsRestjson1_serializeDocumentInputPrompt(v.Input, ok); err != nil { + return err + } + } + + if v.TargetModelId != nil { + ok := object.Key("targetModelId") + ok.String(*v.TargetModelId) + } + + return nil +} + type awsRestjson1_serializeOpRetrieve struct { } @@ -1130,6 +1218,24 @@ func awsRestjson1_serializeDocumentInputFiles(v []types.InputFile, value smithyj return nil } +func awsRestjson1_serializeDocumentInputPrompt(v types.InputPrompt, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.InputPromptMemberTextPrompt: + av := object.Key("textPrompt") + if err := awsRestjson1_serializeDocumentTextPrompt(&uv.Value, av); err != nil { + return err + } + + default: + return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) + + } + return nil +} + func awsRestjson1_serializeDocumentInvocationResultMember(v types.InvocationResultMember, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -1678,6 +1784,18 @@ func awsRestjson1_serializeDocumentTextInferenceConfig(v *types.TextInferenceCon return nil } +func awsRestjson1_serializeDocumentTextPrompt(v *types.TextPrompt, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Text != nil { + ok := object.Key("text") + ok.String(*v.Text) + } + + return nil +} + func awsRestjson1_serializeDocumentDocument(v document.Interface, value smithyjson.Value) error { if v == nil { return nil diff --git a/service/bedrockagentruntime/snapshot/api_op_OptimizePrompt.go.snap b/service/bedrockagentruntime/snapshot/api_op_OptimizePrompt.go.snap new file mode 100644 index 00000000000..77a988ad17f --- /dev/null +++ b/service/bedrockagentruntime/snapshot/api_op_OptimizePrompt.go.snap @@ -0,0 +1,40 @@ +OptimizePrompt + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + OperationEventStreamDeserializer + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/bedrockagentruntime/snapshot_test.go b/service/bedrockagentruntime/snapshot_test.go index 5b6e9bbdd9d..cab96f87ed5 100644 --- a/service/bedrockagentruntime/snapshot_test.go +++ b/service/bedrockagentruntime/snapshot_test.go @@ -110,6 +110,18 @@ func TestCheckSnapshot_InvokeFlow(t *testing.T) { } } +func TestCheckSnapshot_OptimizePrompt(t *testing.T) { + svc := New(Options{}) + _, err := svc.OptimizePrompt(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "OptimizePrompt") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_Retrieve(t *testing.T) { svc := New(Options{}) _, err := svc.Retrieve(context.Background(), nil, func(o *Options) { @@ -181,6 +193,18 @@ func TestUpdateSnapshot_InvokeFlow(t *testing.T) { } } +func TestUpdateSnapshot_OptimizePrompt(t *testing.T) { + svc := New(Options{}) + _, err := svc.OptimizePrompt(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "OptimizePrompt") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_Retrieve(t *testing.T) { svc := New(Options{}) _, err := svc.Retrieve(context.Background(), nil, func(o *Options) { diff --git a/service/bedrockagentruntime/types/types.go b/service/bedrockagentruntime/types/types.go index 2f4aeb58335..ad423dc3959 100644 --- a/service/bedrockagentruntime/types/types.go +++ b/service/bedrockagentruntime/types/types.go @@ -9,10 +9,10 @@ import ( ) // Contains information about the action group being invoked. For more information -// about the possible structures, see the InvocationInput tab in [OrchestrationTrace]in the Amazon -// Bedrock User Guide. +// about the possible structures, see the InvocationInput tab in [OrchestrationTrace]in the [Amazon Bedrock User Guide]. // // [OrchestrationTrace]: https://docs.aws.amazon.com/bedrock/latest/userguide/trace-orchestration.html +// [Amazon Bedrock User Guide]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html type ActionGroupInvocationInput struct { // The name of the action group. @@ -55,6 +55,15 @@ type ActionGroupInvocationOutput struct { noSmithyDocumentSerde } +// An event in which the prompt was analyzed in preparation for optimization. +type AnalyzePromptEvent struct { + + // A message describing the analysis of the prompt. + Message *string + + noSmithyDocumentSerde +} + // Contains information about the API operation that the agent predicts should be // called. // @@ -1165,6 +1174,24 @@ type InputFile struct { noSmithyDocumentSerde } +// Contains information about the prompt to optimize. +// +// The following types satisfy this interface: +// +// InputPromptMemberTextPrompt +type InputPrompt interface { + isInputPrompt() +} + +// Contains information about the text prompt to optimize. +type InputPromptMemberTextPrompt struct { + Value TextPrompt + + noSmithyDocumentSerde +} + +func (*InputPromptMemberTextPrompt) isInputPrompt() {} + // Contains information pertaining to the action group or knowledge base that is // being invoked. type InvocationInput struct { @@ -1592,6 +1619,61 @@ type Observation struct { noSmithyDocumentSerde } +// Contains information about the optimized prompt. +// +// The following types satisfy this interface: +// +// OptimizedPromptMemberTextPrompt +type OptimizedPrompt interface { + isOptimizedPrompt() +} + +// Contains information about the text in the prompt that was optimized. +type OptimizedPromptMemberTextPrompt struct { + Value TextPrompt + + noSmithyDocumentSerde +} + +func (*OptimizedPromptMemberTextPrompt) isOptimizedPrompt() {} + +// An event in which the prompt was optimized. +type OptimizedPromptEvent struct { + + // Contains information about the optimized prompt. + OptimizedPrompt OptimizedPrompt + + noSmithyDocumentSerde +} + +// The stream containing events in the prompt optimization process. +// +// The following types satisfy this interface: +// +// OptimizedPromptStreamMemberAnalyzePromptEvent +// OptimizedPromptStreamMemberOptimizedPromptEvent +type OptimizedPromptStream interface { + isOptimizedPromptStream() +} + +// An event in which the prompt was analyzed in preparation for optimization. +type OptimizedPromptStreamMemberAnalyzePromptEvent struct { + Value AnalyzePromptEvent + + noSmithyDocumentSerde +} + +func (*OptimizedPromptStreamMemberAnalyzePromptEvent) isOptimizedPromptStream() {} + +// An event in which the prompt was optimized. +type OptimizedPromptStreamMemberOptimizedPromptEvent struct { + Value OptimizedPromptEvent + + noSmithyDocumentSerde +} + +func (*OptimizedPromptStreamMemberOptimizedPromptEvent) isOptimizedPromptStream() {} + // Settings for how the model processes the prompt prior to retrieval and // generation. type OrchestrationConfiguration struct { @@ -2676,6 +2758,17 @@ type TextInferenceConfig struct { noSmithyDocumentSerde } +// Contains information about the text prompt to optimize. +type TextPrompt struct { + + // The text in the text prompt to optimize. + // + // This member is required. + Text *string + + noSmithyDocumentSerde +} + // Contains the part of the generated text that contains a citation, alongside // where it begins and ends. // @@ -2827,9 +2920,12 @@ func (*UnknownUnionMember) isFlowResponseStream() {} func (*UnknownUnionMember) isFlowTrace() {} func (*UnknownUnionMember) isFlowTraceNodeInputContent() {} func (*UnknownUnionMember) isFlowTraceNodeOutputContent() {} +func (*UnknownUnionMember) isInputPrompt() {} func (*UnknownUnionMember) isInvocationInputMember() {} func (*UnknownUnionMember) isInvocationResultMember() {} func (*UnknownUnionMember) isMemory() {} +func (*UnknownUnionMember) isOptimizedPrompt() {} +func (*UnknownUnionMember) isOptimizedPromptStream() {} func (*UnknownUnionMember) isOrchestrationTrace() {} func (*UnknownUnionMember) isPostProcessingTrace() {} func (*UnknownUnionMember) isPreProcessingTrace() {} diff --git a/service/bedrockagentruntime/types/types_exported_test.go b/service/bedrockagentruntime/types/types_exported_test.go index 4d48a65ce1b..5405569e4d4 100644 --- a/service/bedrockagentruntime/types/types_exported_test.go +++ b/service/bedrockagentruntime/types/types_exported_test.go @@ -132,6 +132,24 @@ func ExampleFlowTraceNodeOutputContent_outputUsage() { var _ document.Interface +func ExampleInputPrompt_outputUsage() { + var union types.InputPrompt + // type switches can be used to check the union value + switch v := union.(type) { + case *types.InputPromptMemberTextPrompt: + _ = v.Value // Value is types.TextPrompt + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.TextPrompt + func ExampleInvocationInputMember_outputUsage() { var union types.InvocationInputMember // type switches can be used to check the union value @@ -194,6 +212,46 @@ func ExampleMemory_outputUsage() { var _ *types.MemorySessionSummary +func ExampleOptimizedPrompt_outputUsage() { + var union types.OptimizedPrompt + // type switches can be used to check the union value + switch v := union.(type) { + case *types.OptimizedPromptMemberTextPrompt: + _ = v.Value // Value is types.TextPrompt + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.TextPrompt + +func ExampleOptimizedPromptStream_outputUsage() { + var union types.OptimizedPromptStream + // type switches can be used to check the union value + switch v := union.(type) { + case *types.OptimizedPromptStreamMemberAnalyzePromptEvent: + _ = v.Value // Value is types.AnalyzePromptEvent + + case *types.OptimizedPromptStreamMemberOptimizedPromptEvent: + _ = v.Value // Value is types.OptimizedPromptEvent + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.OptimizedPromptEvent +var _ *types.AnalyzePromptEvent + func ExampleOrchestrationTrace_outputUsage() { var union types.OrchestrationTrace // type switches can be used to check the union value diff --git a/service/bedrockagentruntime/validators.go b/service/bedrockagentruntime/validators.go index f22a09135b3..c2d249022a5 100644 --- a/service/bedrockagentruntime/validators.go +++ b/service/bedrockagentruntime/validators.go @@ -90,6 +90,26 @@ func (m *validateOpInvokeFlow) HandleInitialize(ctx context.Context, in middlewa return next.HandleInitialize(ctx, in) } +type validateOpOptimizePrompt struct { +} + +func (*validateOpOptimizePrompt) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpOptimizePrompt) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*OptimizePromptInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpOptimizePromptInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpRetrieveAndGenerate struct { } @@ -146,6 +166,10 @@ func addOpInvokeFlowValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpInvokeFlow{}, middleware.After) } +func addOpOptimizePromptValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpOptimizePrompt{}, middleware.After) +} + func addOpRetrieveAndGenerateValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpRetrieveAndGenerate{}, middleware.After) } @@ -467,6 +491,25 @@ func validateInputFiles(v []types.InputFile) error { } } +func validateInputPrompt(v types.InputPrompt) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "InputPrompt"} + switch uv := v.(type) { + case *types.InputPromptMemberTextPrompt: + if err := validateTextPrompt(&uv.Value); err != nil { + invalidParams.AddNested("[textPrompt]", err.(smithy.InvalidParamsError)) + } + + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateInvocationResultMember(v types.InvocationResultMember) error { if v == nil { return nil @@ -871,6 +914,21 @@ func validateSessionState(v *types.SessionState) error { } } +func validateTextPrompt(v *types.TextPrompt) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TextPrompt"} + if v.Text == nil { + invalidParams.Add(smithy.NewErrParamRequired("Text")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteAgentMemoryInput(v *DeleteAgentMemoryInput) error { if v == nil { return nil @@ -964,6 +1022,28 @@ func validateOpInvokeFlowInput(v *InvokeFlowInput) error { } } +func validateOpOptimizePromptInput(v *OptimizePromptInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "OptimizePromptInput"} + if v.Input == nil { + invalidParams.Add(smithy.NewErrParamRequired("Input")) + } else if v.Input != nil { + if err := validateInputPrompt(v.Input); err != nil { + invalidParams.AddNested("Input", err.(smithy.InvalidParamsError)) + } + } + if v.TargetModelId == nil { + invalidParams.Add(smithy.NewErrParamRequired("TargetModelId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpRetrieveAndGenerateInput(v *RetrieveAndGenerateInput) error { if v == nil { return nil diff --git a/service/bedrockruntime/CHANGELOG.md b/service/bedrockruntime/CHANGELOG.md index 7fecc0b0383..17ccfec9b90 100644 --- a/service/bedrockruntime/CHANGELOG.md +++ b/service/bedrockruntime/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.20.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2024-11-07) * **Feature**: Add Prompt management support to Bedrock runtime APIs: Converse, ConverseStream, InvokeModel, InvokeModelWithStreamingResponse diff --git a/service/bedrockruntime/go.mod b/service/bedrockruntime/go.mod index 7a8dd5d925a..aefa9d9ed85 100644 --- a/service/bedrockruntime/go.mod +++ b/service/bedrockruntime/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/bedrockruntime go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.6 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.7 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/bedrockruntime/go.sum b/service/bedrockruntime/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/bedrockruntime/go.sum +++ b/service/bedrockruntime/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/bedrockruntime/go_module_metadata.go b/service/bedrockruntime/go_module_metadata.go index 77e28b31041..04eeb8f4a06 100644 --- a/service/bedrockruntime/go_module_metadata.go +++ b/service/bedrockruntime/go_module_metadata.go @@ -3,4 +3,4 @@ package bedrockruntime // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.1" diff --git a/service/billing/CHANGELOG.md b/service/billing/CHANGELOG.md index 29f61fe741e..ee93ea36248 100644 --- a/service/billing/CHANGELOG.md +++ b/service/billing/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.0.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.0.0 (2024-11-13) * **Release**: New AWS service client module diff --git a/service/billing/go.mod b/service/billing/go.mod index cbade2b887c..d5bf49ed27f 100644 --- a/service/billing/go.mod +++ b/service/billing/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/billing go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/billing/go.sum b/service/billing/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/billing/go.sum +++ b/service/billing/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/billing/go_module_metadata.go b/service/billing/go_module_metadata.go index efe41ba7041..d7df64f78c6 100644 --- a/service/billing/go_module_metadata.go +++ b/service/billing/go_module_metadata.go @@ -3,4 +3,4 @@ package billing // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.0.0" +const goModuleVersion = "1.0.1" diff --git a/service/billingconductor/CHANGELOG.md b/service/billingconductor/CHANGELOG.md index 87d722464c4..70430e80dbc 100644 --- a/service/billingconductor/CHANGELOG.md +++ b/service/billingconductor/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.20.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/billingconductor/go.mod b/service/billingconductor/go.mod index 3e83b836c42..0a0feedc337 100644 --- a/service/billingconductor/go.mod +++ b/service/billingconductor/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/billingconductor go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/billingconductor/go.sum b/service/billingconductor/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/billingconductor/go.sum +++ b/service/billingconductor/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/billingconductor/go_module_metadata.go b/service/billingconductor/go_module_metadata.go index b916a152d8d..8337473a605 100644 --- a/service/billingconductor/go_module_metadata.go +++ b/service/billingconductor/go_module_metadata.go @@ -3,4 +3,4 @@ package billingconductor // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.5" +const goModuleVersion = "1.20.6" diff --git a/service/braket/CHANGELOG.md b/service/braket/CHANGELOG.md index 232f45e9add..f9b7cc3dcd6 100644 --- a/service/braket/CHANGELOG.md +++ b/service/braket/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.31.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.31.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/braket/go.mod b/service/braket/go.mod index 6f012455cd0..3fd16a093cc 100644 --- a/service/braket/go.mod +++ b/service/braket/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/braket go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/braket/go.sum b/service/braket/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/braket/go.sum +++ b/service/braket/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/braket/go_module_metadata.go b/service/braket/go_module_metadata.go index 67c0df5e928..696f79d810d 100644 --- a/service/braket/go_module_metadata.go +++ b/service/braket/go_module_metadata.go @@ -3,4 +3,4 @@ package braket // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.31.5" +const goModuleVersion = "1.31.6" diff --git a/service/budgets/CHANGELOG.md b/service/budgets/CHANGELOG.md index 094275f3061..383bed8491a 100644 --- a/service/budgets/CHANGELOG.md +++ b/service/budgets/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.28.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/budgets/go.mod b/service/budgets/go.mod index ac9a4e6b099..01c06507b0c 100644 --- a/service/budgets/go.mod +++ b/service/budgets/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/budgets go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/budgets/go.sum b/service/budgets/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/budgets/go.sum +++ b/service/budgets/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/budgets/go_module_metadata.go b/service/budgets/go_module_metadata.go index d53a59a2880..7b8ded2828a 100644 --- a/service/budgets/go_module_metadata.go +++ b/service/budgets/go_module_metadata.go @@ -3,4 +3,4 @@ package budgets // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.5" +const goModuleVersion = "1.28.6" diff --git a/service/chatbot/CHANGELOG.md b/service/chatbot/CHANGELOG.md index 50857484ce0..42818c8b684 100644 --- a/service/chatbot/CHANGELOG.md +++ b/service/chatbot/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.8.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.8.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/chatbot/go.mod b/service/chatbot/go.mod index a8ed847f9ce..161a8c36144 100644 --- a/service/chatbot/go.mod +++ b/service/chatbot/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/chatbot go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/chatbot/go.sum b/service/chatbot/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/chatbot/go.sum +++ b/service/chatbot/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/chatbot/go_module_metadata.go b/service/chatbot/go_module_metadata.go index b6a00ffb0a7..76803b4bb35 100644 --- a/service/chatbot/go_module_metadata.go +++ b/service/chatbot/go_module_metadata.go @@ -3,4 +3,4 @@ package chatbot // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.8.5" +const goModuleVersion = "1.8.6" diff --git a/service/chime/CHANGELOG.md b/service/chime/CHANGELOG.md index 2eeae233973..f2573766a3a 100644 --- a/service/chime/CHANGELOG.md +++ b/service/chime/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.34.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.34.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/chime/go.mod b/service/chime/go.mod index 80b2d7acfb5..209736a0671 100644 --- a/service/chime/go.mod +++ b/service/chime/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/chime go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/chime/go.sum b/service/chime/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/chime/go.sum +++ b/service/chime/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/chime/go_module_metadata.go b/service/chime/go_module_metadata.go index d3920072e41..ddc8b35a03d 100644 --- a/service/chime/go_module_metadata.go +++ b/service/chime/go_module_metadata.go @@ -3,4 +3,4 @@ package chime // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.34.5" +const goModuleVersion = "1.34.6" diff --git a/service/chimesdkidentity/CHANGELOG.md b/service/chimesdkidentity/CHANGELOG.md index 2497892c7b1..429620475c3 100644 --- a/service/chimesdkidentity/CHANGELOG.md +++ b/service/chimesdkidentity/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.22.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/chimesdkidentity/go.mod b/service/chimesdkidentity/go.mod index c674bb0e4dc..4ad3a324a43 100644 --- a/service/chimesdkidentity/go.mod +++ b/service/chimesdkidentity/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/chimesdkidentity go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/chimesdkidentity/go.sum b/service/chimesdkidentity/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/chimesdkidentity/go.sum +++ b/service/chimesdkidentity/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/chimesdkidentity/go_module_metadata.go b/service/chimesdkidentity/go_module_metadata.go index 4a866f53672..0b848a222d7 100644 --- a/service/chimesdkidentity/go_module_metadata.go +++ b/service/chimesdkidentity/go_module_metadata.go @@ -3,4 +3,4 @@ package chimesdkidentity // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.5" +const goModuleVersion = "1.22.6" diff --git a/service/chimesdkmediapipelines/CHANGELOG.md b/service/chimesdkmediapipelines/CHANGELOG.md index f523109a1ad..efebeacf740 100644 --- a/service/chimesdkmediapipelines/CHANGELOG.md +++ b/service/chimesdkmediapipelines/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.21.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2024-11-08) * **Feature**: Added support for Media Capture Pipeline and Media Concatenation Pipeline for customer managed server side encryption. Now Media Capture Pipeline can use IAM sink role to get access to KMS key and encrypt/decrypt recorded artifacts. KMS key ID can also be supplied with encryption context. diff --git a/service/chimesdkmediapipelines/go.mod b/service/chimesdkmediapipelines/go.mod index bc96724c8fa..6f50c533cf7 100644 --- a/service/chimesdkmediapipelines/go.mod +++ b/service/chimesdkmediapipelines/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/chimesdkmediapipelines go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/chimesdkmediapipelines/go.sum b/service/chimesdkmediapipelines/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/chimesdkmediapipelines/go.sum +++ b/service/chimesdkmediapipelines/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/chimesdkmediapipelines/go_module_metadata.go b/service/chimesdkmediapipelines/go_module_metadata.go index 6153f85d34c..7c671aca99a 100644 --- a/service/chimesdkmediapipelines/go_module_metadata.go +++ b/service/chimesdkmediapipelines/go_module_metadata.go @@ -3,4 +3,4 @@ package chimesdkmediapipelines // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.21.1" diff --git a/service/chimesdkmeetings/CHANGELOG.md b/service/chimesdkmeetings/CHANGELOG.md index ab6a9f41787..544dc7f2a0a 100644 --- a/service/chimesdkmeetings/CHANGELOG.md +++ b/service/chimesdkmeetings/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/chimesdkmeetings/go.mod b/service/chimesdkmeetings/go.mod index 5b105538fa0..0a87ff719ca 100644 --- a/service/chimesdkmeetings/go.mod +++ b/service/chimesdkmeetings/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/chimesdkmeetings go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/chimesdkmeetings/go.sum b/service/chimesdkmeetings/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/chimesdkmeetings/go.sum +++ b/service/chimesdkmeetings/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/chimesdkmeetings/go_module_metadata.go b/service/chimesdkmeetings/go_module_metadata.go index 87452936be9..8c8650878b5 100644 --- a/service/chimesdkmeetings/go_module_metadata.go +++ b/service/chimesdkmeetings/go_module_metadata.go @@ -3,4 +3,4 @@ package chimesdkmeetings // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.5" +const goModuleVersion = "1.27.6" diff --git a/service/chimesdkmessaging/CHANGELOG.md b/service/chimesdkmessaging/CHANGELOG.md index 72c10855d0e..34d01d7b1c4 100644 --- a/service/chimesdkmessaging/CHANGELOG.md +++ b/service/chimesdkmessaging/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.26.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/chimesdkmessaging/go.mod b/service/chimesdkmessaging/go.mod index 4f7b2b01a8d..027cb95bbc8 100644 --- a/service/chimesdkmessaging/go.mod +++ b/service/chimesdkmessaging/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/chimesdkmessaging go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/chimesdkmessaging/go.sum b/service/chimesdkmessaging/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/chimesdkmessaging/go.sum +++ b/service/chimesdkmessaging/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/chimesdkmessaging/go_module_metadata.go b/service/chimesdkmessaging/go_module_metadata.go index fc3ce088d3e..e14f8360be8 100644 --- a/service/chimesdkmessaging/go_module_metadata.go +++ b/service/chimesdkmessaging/go_module_metadata.go @@ -3,4 +3,4 @@ package chimesdkmessaging // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.5" +const goModuleVersion = "1.26.6" diff --git a/service/chimesdkvoice/CHANGELOG.md b/service/chimesdkvoice/CHANGELOG.md index f5c0a3a46b2..92f6a2671df 100644 --- a/service/chimesdkvoice/CHANGELOG.md +++ b/service/chimesdkvoice/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.19.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/chimesdkvoice/go.mod b/service/chimesdkvoice/go.mod index 463d1e202a8..57730ed65ca 100644 --- a/service/chimesdkvoice/go.mod +++ b/service/chimesdkvoice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/chimesdkvoice go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/chimesdkvoice/go.sum b/service/chimesdkvoice/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/chimesdkvoice/go.sum +++ b/service/chimesdkvoice/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/chimesdkvoice/go_module_metadata.go b/service/chimesdkvoice/go_module_metadata.go index bf0c5c342d6..4139bbb6404 100644 --- a/service/chimesdkvoice/go_module_metadata.go +++ b/service/chimesdkvoice/go_module_metadata.go @@ -3,4 +3,4 @@ package chimesdkvoice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.5" +const goModuleVersion = "1.19.6" diff --git a/service/cleanrooms/CHANGELOG.md b/service/cleanrooms/CHANGELOG.md index 90328dbea6e..bfd259b5c65 100644 --- a/service/cleanrooms/CHANGELOG.md +++ b/service/cleanrooms/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.20.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2024-11-07) * **Feature**: This release introduces support for Custom Models in AWS Clean Rooms ML. diff --git a/service/cleanrooms/go.mod b/service/cleanrooms/go.mod index ce5472839d3..09d34ae249e 100644 --- a/service/cleanrooms/go.mod +++ b/service/cleanrooms/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cleanrooms go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cleanrooms/go.sum b/service/cleanrooms/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/cleanrooms/go.sum +++ b/service/cleanrooms/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/cleanrooms/go_module_metadata.go b/service/cleanrooms/go_module_metadata.go index aeeb082064a..df20a770dfd 100644 --- a/service/cleanrooms/go_module_metadata.go +++ b/service/cleanrooms/go_module_metadata.go @@ -3,4 +3,4 @@ package cleanrooms // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.1" diff --git a/service/cleanroomsml/CHANGELOG.md b/service/cleanroomsml/CHANGELOG.md index b3dd873b6cb..ab41879219a 100644 --- a/service/cleanroomsml/CHANGELOG.md +++ b/service/cleanroomsml/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.10.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.10.0 (2024-11-07) * **Feature**: This release introduces support for Custom Models in AWS Clean Rooms ML. diff --git a/service/cleanroomsml/go.mod b/service/cleanroomsml/go.mod index c9f587b1521..886b501975d 100644 --- a/service/cleanroomsml/go.mod +++ b/service/cleanroomsml/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cleanroomsml go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cleanroomsml/go.sum b/service/cleanroomsml/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/cleanroomsml/go.sum +++ b/service/cleanroomsml/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/cleanroomsml/go_module_metadata.go b/service/cleanroomsml/go_module_metadata.go index 3fe6217ea79..727229589eb 100644 --- a/service/cleanroomsml/go_module_metadata.go +++ b/service/cleanroomsml/go_module_metadata.go @@ -3,4 +3,4 @@ package cleanroomsml // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.10.0" +const goModuleVersion = "1.10.1" diff --git a/service/cloud9/CHANGELOG.md b/service/cloud9/CHANGELOG.md index 1ee6518ac32..3e843b49c52 100644 --- a/service/cloud9/CHANGELOG.md +++ b/service/cloud9/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.28.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/cloud9/go.mod b/service/cloud9/go.mod index ad9e05ede31..abc5b4ebcbf 100644 --- a/service/cloud9/go.mod +++ b/service/cloud9/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloud9 go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloud9/go.sum b/service/cloud9/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/cloud9/go.sum +++ b/service/cloud9/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/cloud9/go_module_metadata.go b/service/cloud9/go_module_metadata.go index a8fa56992b9..498a16ee99d 100644 --- a/service/cloud9/go_module_metadata.go +++ b/service/cloud9/go_module_metadata.go @@ -3,4 +3,4 @@ package cloud9 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.5" +const goModuleVersion = "1.28.6" diff --git a/service/cloudcontrol/CHANGELOG.md b/service/cloudcontrol/CHANGELOG.md index fde2a7bd540..943ce2c9566 100644 --- a/service/cloudcontrol/CHANGELOG.md +++ b/service/cloudcontrol/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.23.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.0 (2024-11-14) * **Feature**: Added support for CloudFormation Hooks with Cloud Control API. The GetResourceRequestStatus API response now includes an optional HooksProgressEvent and HooksRequestToken parameter for Hooks Invocation Progress as part of resource operation with Cloud Control. diff --git a/service/cloudcontrol/go.mod b/service/cloudcontrol/go.mod index dcc7b7c1540..9a49fa673f7 100644 --- a/service/cloudcontrol/go.mod +++ b/service/cloudcontrol/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudcontrol go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/cloudcontrol/go.sum b/service/cloudcontrol/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/cloudcontrol/go.sum +++ b/service/cloudcontrol/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/cloudcontrol/go_module_metadata.go b/service/cloudcontrol/go_module_metadata.go index 4fd9b4b754e..71d56829601 100644 --- a/service/cloudcontrol/go_module_metadata.go +++ b/service/cloudcontrol/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudcontrol // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.0" +const goModuleVersion = "1.23.1" diff --git a/service/clouddirectory/CHANGELOG.md b/service/clouddirectory/CHANGELOG.md index 7c0c2f3e13e..f4206396c23 100644 --- a/service/clouddirectory/CHANGELOG.md +++ b/service/clouddirectory/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.24.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/clouddirectory/go.mod b/service/clouddirectory/go.mod index ec3737d5c54..35b44bd5611 100644 --- a/service/clouddirectory/go.mod +++ b/service/clouddirectory/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/clouddirectory go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/clouddirectory/go.sum b/service/clouddirectory/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/clouddirectory/go.sum +++ b/service/clouddirectory/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/clouddirectory/go_module_metadata.go b/service/clouddirectory/go_module_metadata.go index c411c682877..fc65d4b8577 100644 --- a/service/clouddirectory/go_module_metadata.go +++ b/service/clouddirectory/go_module_metadata.go @@ -3,4 +3,4 @@ package clouddirectory // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.5" +const goModuleVersion = "1.24.6" diff --git a/service/cloudformation/CHANGELOG.md b/service/cloudformation/CHANGELOG.md index eeee9f935e8..2998938d396 100644 --- a/service/cloudformation/CHANGELOG.md +++ b/service/cloudformation/CHANGELOG.md @@ -1,3 +1,9 @@ +# v1.56.0 (2024-11-18) + +* **Feature**: This release adds a new API, ListHookResults, that allows retrieving CloudFormation Hooks invocation results for hooks invoked during a create change set operation or Cloud Control API operation +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.55.5 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/cloudformation/api_op_ListHookResults.go b/service/cloudformation/api_op_ListHookResults.go new file mode 100644 index 00000000000..6fe2161800c --- /dev/null +++ b/service/cloudformation/api_op_ListHookResults.go @@ -0,0 +1,190 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cloudformation + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/cloudformation/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns summaries of invoked Hooks when a change set or Cloud Control API +// operation target is provided. +func (c *Client) ListHookResults(ctx context.Context, params *ListHookResultsInput, optFns ...func(*Options)) (*ListHookResultsOutput, error) { + if params == nil { + params = &ListHookResultsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListHookResults", params, optFns, c.addOperationListHookResultsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListHookResultsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListHookResultsInput struct { + + // The logical ID of the target the operation is acting on by the Hook. If the + // target is a change set, it's the ARN of the change set. + // + // If the target is a Cloud Control API operation, this will be the + // HookRequestToken returned by the Cloud Control API operation request. For more + // information on the HookRequestToken , see [ProgressEvent]. + // + // [ProgressEvent]: https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_ProgressEvent.html + // + // This member is required. + TargetId *string + + // The type of operation being targeted by the Hook. + // + // This member is required. + TargetType types.ListHookResultsTargetType + + // A string that identifies the next page of events that you want to retrieve. + NextToken *string + + noSmithyDocumentSerde +} + +type ListHookResultsOutput struct { + + // A list of HookResultSummary structures that provides the status and Hook status + // reason for each Hook invocation for the specified target. + HookResults []types.HookResultSummary + + // Pagination token, null or empty if no more results. + NextToken *string + + // The logical ID of the target the operation is acting on by the Hook. If the + // target is a change set, it's the ARN of the change set. + // + // If the target is a Cloud Control API operation, this will be the + // HooksRequestToken returned by the Cloud Control API operation request. For more + // information on the HooksRequestToken , see [ProgressEvent]. + // + // [ProgressEvent]: https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_ProgressEvent.html + TargetId *string + + // The type of operation being targeted by the Hook. + TargetType types.ListHookResultsTargetType + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListHookResultsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsquery_serializeOpListHookResults{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsquery_deserializeOpListHookResults{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListHookResults"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpListHookResultsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListHookResults(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opListHookResults(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListHookResults", + } +} diff --git a/service/cloudformation/deserializers.go b/service/cloudformation/deserializers.go index 2c9b621e3c3..1ae2f2963ed 100644 --- a/service/cloudformation/deserializers.go +++ b/service/cloudformation/deserializers.go @@ -5497,6 +5497,118 @@ func awsAwsquery_deserializeOpErrorListGeneratedTemplates(response *smithyhttp.R } } +type awsAwsquery_deserializeOpListHookResults struct { +} + +func (*awsAwsquery_deserializeOpListHookResults) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsquery_deserializeOpListHookResults) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsquery_deserializeOpErrorListHookResults(response, &metadata) + } + output := &ListHookResultsOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("ListHookResultsResult") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeOpDocumentListHookResultsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsquery_deserializeOpErrorListHookResults(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("HookResultNotFound", errorCode): + return awsAwsquery_deserializeErrorHookResultNotFoundException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsAwsquery_deserializeOpListImports struct { } @@ -9438,6 +9550,50 @@ func awsAwsquery_deserializeErrorGeneratedTemplateNotFoundException(response *sm return output } +func awsAwsquery_deserializeErrorHookResultNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.HookResultNotFoundException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentHookResultNotFoundException(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + func awsAwsquery_deserializeErrorInsufficientCapabilitiesException(response *smithyhttp.Response, errorBody *bytes.Reader) error { output := &types.InsufficientCapabilitiesException{} var buff [1024]byte @@ -12241,6 +12397,250 @@ func awsAwsquery_deserializeDocumentGeneratedTemplateNotFoundException(v **types return nil } +func awsAwsquery_deserializeDocumentHookResultNotFoundException(v **types.HookResultNotFoundException, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.HookResultNotFoundException + if *v == nil { + sv = &types.HookResultNotFoundException{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("Message", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentHookResultSummaries(v *[]types.HookResultSummary, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.HookResultSummary + if *v == nil { + sv = make([]types.HookResultSummary, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("member", t.Name.Local): + var col types.HookResultSummary + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsAwsquery_deserializeDocumentHookResultSummary(&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 awsAwsquery_deserializeDocumentHookResultSummariesUnwrapped(v *[]types.HookResultSummary, decoder smithyxml.NodeDecoder) error { + var sv []types.HookResultSummary + if *v == nil { + sv = make([]types.HookResultSummary, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.HookResultSummary + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsAwsquery_deserializeDocumentHookResultSummary(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsAwsquery_deserializeDocumentHookResultSummary(v **types.HookResultSummary, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.HookResultSummary + if *v == nil { + sv = &types.HookResultSummary{} + } 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("FailureMode", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.FailureMode = types.HookFailureMode(xtv) + } + + case strings.EqualFold("HookStatusReason", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.HookStatusReason = ptr.String(xtv) + } + + case strings.EqualFold("InvocationPoint", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InvocationPoint = types.HookInvocationPoint(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.HookStatus(xtv) + } + + case strings.EqualFold("TypeConfigurationVersionId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.TypeConfigurationVersionId = ptr.String(xtv) + } + + case strings.EqualFold("TypeName", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.TypeName = ptr.String(xtv) + } + + case strings.EqualFold("TypeVersionId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.TypeVersionId = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsAwsquery_deserializeDocumentImports(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -26293,6 +26693,87 @@ func awsAwsquery_deserializeOpDocumentListGeneratedTemplatesOutput(v **ListGener return nil } +func awsAwsquery_deserializeOpDocumentListHookResultsOutput(v **ListHookResultsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ListHookResultsOutput + if *v == nil { + sv = &ListHookResultsOutput{} + } 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("HookResults", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentHookResultSummaries(&sv.HookResults, 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) + } + + case strings.EqualFold("TargetId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.TargetId = ptr.String(xtv) + } + + case strings.EqualFold("TargetType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.TargetType = types.ListHookResultsTargetType(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsAwsquery_deserializeOpDocumentListImportsOutput(v **ListImportsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/cloudformation/generated.json b/service/cloudformation/generated.json index 48742990176..733157974c1 100644 --- a/service/cloudformation/generated.json +++ b/service/cloudformation/generated.json @@ -58,6 +58,7 @@ "api_op_ListChangeSets.go", "api_op_ListExports.go", "api_op_ListGeneratedTemplates.go", + "api_op_ListHookResults.go", "api_op_ListImports.go", "api_op_ListResourceScanRelatedResources.go", "api_op_ListResourceScanResources.go", diff --git a/service/cloudformation/go.mod b/service/cloudformation/go.mod index 551979f9e6f..1d6beee13ab 100644 --- a/service/cloudformation/go.mod +++ b/service/cloudformation/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudformation go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/cloudformation/go.sum b/service/cloudformation/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/cloudformation/go.sum +++ b/service/cloudformation/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/cloudformation/go_module_metadata.go b/service/cloudformation/go_module_metadata.go index 4af76fbe4ac..dcd2d1f22ce 100644 --- a/service/cloudformation/go_module_metadata.go +++ b/service/cloudformation/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudformation // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.55.5" +const goModuleVersion = "1.56.0" diff --git a/service/cloudformation/serializers.go b/service/cloudformation/serializers.go index 7a288172d6a..688ba31458b 100644 --- a/service/cloudformation/serializers.go +++ b/service/cloudformation/serializers.go @@ -3439,6 +3439,76 @@ func (m *awsAwsquery_serializeOpListGeneratedTemplates) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } +type awsAwsquery_serializeOpListHookResults struct { +} + +func (*awsAwsquery_serializeOpListHookResults) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsquery_serializeOpListHookResults) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*ListHookResultsInput) + _ = 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("ListHookResults") + body.Key("Version").String("2010-05-15") + + if err := awsAwsquery_serializeOpDocumentListHookResultsInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + type awsAwsquery_serializeOpListImports struct { } @@ -7779,6 +7849,28 @@ func awsAwsquery_serializeOpDocumentListGeneratedTemplatesInput(v *ListGenerated return nil } +func awsAwsquery_serializeOpDocumentListHookResultsInput(v *ListHookResultsInput, value query.Value) error { + object := value.Object() + _ = object + + if v.NextToken != nil { + objectKey := object.Key("NextToken") + objectKey.String(*v.NextToken) + } + + if v.TargetId != nil { + objectKey := object.Key("TargetId") + objectKey.String(*v.TargetId) + } + + if len(v.TargetType) > 0 { + objectKey := object.Key("TargetType") + objectKey.String(string(v.TargetType)) + } + + return nil +} + func awsAwsquery_serializeOpDocumentListImportsInput(v *ListImportsInput, value query.Value) error { object := value.Object() _ = object diff --git a/service/cloudformation/snapshot/api_op_ListHookResults.go.snap b/service/cloudformation/snapshot/api_op_ListHookResults.go.snap new file mode 100644 index 00000000000..b92841fb9fb --- /dev/null +++ b/service/cloudformation/snapshot/api_op_ListHookResults.go.snap @@ -0,0 +1,41 @@ +ListHookResults + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/cloudformation/snapshot_test.go b/service/cloudformation/snapshot_test.go index 6261808d9d4..1418efe8f47 100644 --- a/service/cloudformation/snapshot_test.go +++ b/service/cloudformation/snapshot_test.go @@ -650,6 +650,18 @@ func TestCheckSnapshot_ListGeneratedTemplates(t *testing.T) { } } +func TestCheckSnapshot_ListHookResults(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListHookResults(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "ListHookResults") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_ListImports(t *testing.T) { svc := New(Options{}) _, err := svc.ListImports(context.Background(), nil, func(o *Options) { @@ -1633,6 +1645,18 @@ func TestUpdateSnapshot_ListGeneratedTemplates(t *testing.T) { } } +func TestUpdateSnapshot_ListHookResults(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListHookResults(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "ListHookResults") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_ListImports(t *testing.T) { svc := New(Options{}) _, err := svc.ListImports(context.Background(), nil, func(o *Options) { diff --git a/service/cloudformation/types/enums.go b/service/cloudformation/types/enums.go index 39c94dac326..935d809da6f 100644 --- a/service/cloudformation/types/enums.go +++ b/service/cloudformation/types/enums.go @@ -658,6 +658,29 @@ func (IdentityProvider) Values() []IdentityProvider { } } +type ListHookResultsTargetType string + +// Enum values for ListHookResultsTargetType +const ( + ListHookResultsTargetTypeChangeSet ListHookResultsTargetType = "CHANGE_SET" + ListHookResultsTargetTypeStack ListHookResultsTargetType = "STACK" + ListHookResultsTargetTypeResource ListHookResultsTargetType = "RESOURCE" + ListHookResultsTargetTypeCloudControl ListHookResultsTargetType = "CLOUD_CONTROL" +) + +// Values returns all known values for ListHookResultsTargetType. 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 (ListHookResultsTargetType) Values() []ListHookResultsTargetType { + return []ListHookResultsTargetType{ + "CHANGE_SET", + "STACK", + "RESOURCE", + "CLOUD_CONTROL", + } +} + type OnFailure string // Enum values for OnFailure diff --git a/service/cloudformation/types/errors.go b/service/cloudformation/types/errors.go index 984a0352154..aab78a5bc6b 100644 --- a/service/cloudformation/types/errors.go +++ b/service/cloudformation/types/errors.go @@ -170,6 +170,32 @@ func (e *GeneratedTemplateNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// The specified target doesn't have any requested Hook invocations. +type HookResultNotFoundException struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *HookResultNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *HookResultNotFoundException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *HookResultNotFoundException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "HookResultNotFound" + } + return *e.ErrorCodeOverride +} +func (e *HookResultNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + // The template contains resources with capabilities that weren't specified in the // Capabilities parameter. type InsufficientCapabilitiesException struct { diff --git a/service/cloudformation/types/types.go b/service/cloudformation/types/types.go index 066e47e1ac4..7282130af83 100644 --- a/service/cloudformation/types/types.go +++ b/service/cloudformation/types/types.go @@ -327,6 +327,40 @@ type Export struct { noSmithyDocumentSerde } +// Describes a Hook invocation, its status, and the reason for its status. +type HookResultSummary struct { + + // The failure mode of the invocation. The following are potential modes: + // + // - FAIL : If the hook invocation returns a failure, then the requested target + // operation should fail. + // + // - WARN : If the hook invocation returns a failure, then the requested target + // operation should warn. + FailureMode HookFailureMode + + // A description of the Hook results status. For example, if the Hook result is in + // a FAILED state, this may contain additional information for the FAILED state. + HookStatusReason *string + + // The exact point in the provisioning logic where the Hook runs. + InvocationPoint HookInvocationPoint + + // The state of the Hook invocation. + Status HookStatus + + // The version of the Hook type configuration. + TypeConfigurationVersionId *string + + // The type name of the Hook being invoked. + TypeName *string + + // The version of the Hook being invoked. + TypeVersionId *string + + noSmithyDocumentSerde +} + // Contains logging configuration information for an extension. type LoggingConfig struct { diff --git a/service/cloudformation/validators.go b/service/cloudformation/validators.go index 79e54aa5d37..f951fbe7dc7 100644 --- a/service/cloudformation/validators.go +++ b/service/cloudformation/validators.go @@ -670,6 +670,26 @@ func (m *validateOpListChangeSets) HandleInitialize(ctx context.Context, in midd return next.HandleInitialize(ctx, in) } +type validateOpListHookResults struct { +} + +func (*validateOpListHookResults) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListHookResults) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListHookResultsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListHookResultsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListImports struct { } @@ -1222,6 +1242,10 @@ func addOpListChangeSetsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListChangeSets{}, middleware.After) } +func addOpListHookResultsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListHookResults{}, middleware.After) +} + func addOpListImportsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListImports{}, middleware.After) } @@ -2078,6 +2102,24 @@ func validateOpListChangeSetsInput(v *ListChangeSetsInput) error { } } +func validateOpListHookResultsInput(v *ListHookResultsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListHookResultsInput"} + if len(v.TargetType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("TargetType")) + } + if v.TargetId == nil { + invalidParams.Add(smithy.NewErrParamRequired("TargetId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListImportsInput(v *ListImportsInput) error { if v == nil { return nil diff --git a/service/cloudfront/CHANGELOG.md b/service/cloudfront/CHANGELOG.md index 83c75f07d8d..9f6953a6b52 100644 --- a/service/cloudfront/CHANGELOG.md +++ b/service/cloudfront/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.42.0 (2024-11-20) + +* **Feature**: Add support for gRPC, VPC origins, and Anycast IP Lists. Allow LoggingConfig IncludeCookies to be set regardless of whether the LoggingConfig is enabled. + +# v1.41.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.41.0 (2024-11-11) * **Feature**: No API changes from previous release. This release migrated the model to Smithy keeping all features unchanged. diff --git a/service/cloudfront/api_op_CreateAnycastIpList.go b/service/cloudfront/api_op_CreateAnycastIpList.go new file mode 100644 index 00000000000..6ed7760f34b --- /dev/null +++ b/service/cloudfront/api_op_CreateAnycastIpList.go @@ -0,0 +1,170 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cloudfront + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/cloudfront/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates an Anycast static IP list. +func (c *Client) CreateAnycastIpList(ctx context.Context, params *CreateAnycastIpListInput, optFns ...func(*Options)) (*CreateAnycastIpListOutput, error) { + if params == nil { + params = &CreateAnycastIpListInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateAnycastIpList", params, optFns, c.addOperationCreateAnycastIpListMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateAnycastIpListOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateAnycastIpListInput struct { + + // The number of static IP addresses that are allocated to the Anycast static IP + // list. + // + // This member is required. + IpCount *int32 + + // Name of the Anycast static IP list. + // + // This member is required. + Name *string + + // A complex type that contains zero or more Tag elements. + Tags *types.Tags + + noSmithyDocumentSerde +} + +type CreateAnycastIpListOutput struct { + + // A response structure that includes the version identifier (ETag) and the + // created AnycastIpListstructure. + AnycastIpList *types.AnycastIpList + + // The version identifier for the current version of the Anycast static IP list. + ETag *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateAnycastIpListMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestxml_serializeOpCreateAnycastIpList{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestxml_deserializeOpCreateAnycastIpList{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateAnycastIpList"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpCreateAnycastIpListValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateAnycastIpList(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateAnycastIpList(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateAnycastIpList", + } +} diff --git a/service/cloudfront/api_op_CreateVpcOrigin.go b/service/cloudfront/api_op_CreateVpcOrigin.go new file mode 100644 index 00000000000..73743c5ccc5 --- /dev/null +++ b/service/cloudfront/api_op_CreateVpcOrigin.go @@ -0,0 +1,166 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cloudfront + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/cloudfront/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Create an Amazon CloudFront VPC origin. +func (c *Client) CreateVpcOrigin(ctx context.Context, params *CreateVpcOriginInput, optFns ...func(*Options)) (*CreateVpcOriginOutput, error) { + if params == nil { + params = &CreateVpcOriginInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateVpcOrigin", params, optFns, c.addOperationCreateVpcOriginMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateVpcOriginOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateVpcOriginInput struct { + + // The VPC origin endpoint configuration. + // + // This member is required. + VpcOriginEndpointConfig *types.VpcOriginEndpointConfig + + // A complex type that contains zero or more Tag elements. + Tags *types.Tags + + noSmithyDocumentSerde +} + +type CreateVpcOriginOutput struct { + + // The VPC origin ETag. + ETag *string + + // The VPC origin location. + Location *string + + // The VPC origin. + VpcOrigin *types.VpcOrigin + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateVpcOriginMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestxml_serializeOpCreateVpcOrigin{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestxml_deserializeOpCreateVpcOrigin{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateVpcOrigin"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpCreateVpcOriginValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateVpcOrigin(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateVpcOrigin(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateVpcOrigin", + } +} diff --git a/service/cloudfront/api_op_DeleteAnycastIpList.go b/service/cloudfront/api_op_DeleteAnycastIpList.go new file mode 100644 index 00000000000..d4ab735236c --- /dev/null +++ b/service/cloudfront/api_op_DeleteAnycastIpList.go @@ -0,0 +1,158 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cloudfront + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes an Anycast static IP list. +func (c *Client) DeleteAnycastIpList(ctx context.Context, params *DeleteAnycastIpListInput, optFns ...func(*Options)) (*DeleteAnycastIpListOutput, error) { + if params == nil { + params = &DeleteAnycastIpListInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteAnycastIpList", params, optFns, c.addOperationDeleteAnycastIpListMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteAnycastIpListOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteAnycastIpListInput struct { + + // The ID of the Anycast static IP list. + // + // This member is required. + Id *string + + // The current version ( ETag value) of the Anycast static IP list that you are + // deleting. + // + // This member is required. + IfMatch *string + + noSmithyDocumentSerde +} + +type DeleteAnycastIpListOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteAnycastIpListMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestxml_serializeOpDeleteAnycastIpList{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestxml_deserializeOpDeleteAnycastIpList{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteAnycastIpList"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpDeleteAnycastIpListValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteAnycastIpList(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteAnycastIpList(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteAnycastIpList", + } +} diff --git a/service/cloudfront/api_op_DeleteVpcOrigin.go b/service/cloudfront/api_op_DeleteVpcOrigin.go new file mode 100644 index 00000000000..917f2b48fc7 --- /dev/null +++ b/service/cloudfront/api_op_DeleteVpcOrigin.go @@ -0,0 +1,165 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cloudfront + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/cloudfront/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Delete an Amazon CloudFront VPC origin. +func (c *Client) DeleteVpcOrigin(ctx context.Context, params *DeleteVpcOriginInput, optFns ...func(*Options)) (*DeleteVpcOriginOutput, error) { + if params == nil { + params = &DeleteVpcOriginInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteVpcOrigin", params, optFns, c.addOperationDeleteVpcOriginMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteVpcOriginOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteVpcOriginInput struct { + + // The VPC origin ID. + // + // This member is required. + Id *string + + // The VPC origin to delete, if a match occurs. + // + // This member is required. + IfMatch *string + + noSmithyDocumentSerde +} + +type DeleteVpcOriginOutput struct { + + // The VPC origin ETag. + ETag *string + + // The VPC origin. + VpcOrigin *types.VpcOrigin + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteVpcOriginMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestxml_serializeOpDeleteVpcOrigin{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestxml_deserializeOpDeleteVpcOrigin{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteVpcOrigin"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpDeleteVpcOriginValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteVpcOrigin(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteVpcOrigin(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteVpcOrigin", + } +} diff --git a/service/cloudfront/api_op_GetAnycastIpList.go b/service/cloudfront/api_op_GetAnycastIpList.go new file mode 100644 index 00000000000..0ce6faaf0f6 --- /dev/null +++ b/service/cloudfront/api_op_GetAnycastIpList.go @@ -0,0 +1,160 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cloudfront + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/cloudfront/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Gets an Anycast static IP list. +func (c *Client) GetAnycastIpList(ctx context.Context, params *GetAnycastIpListInput, optFns ...func(*Options)) (*GetAnycastIpListOutput, error) { + if params == nil { + params = &GetAnycastIpListInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetAnycastIpList", params, optFns, c.addOperationGetAnycastIpListMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetAnycastIpListOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetAnycastIpListInput struct { + + // The ID of the Anycast static IP list. + // + // This member is required. + Id *string + + noSmithyDocumentSerde +} + +type GetAnycastIpListOutput struct { + + // The Anycast static IP list details. + AnycastIpList *types.AnycastIpList + + // The version identifier for the current version of the Anycast static IP list. + ETag *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetAnycastIpListMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestxml_serializeOpGetAnycastIpList{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestxml_deserializeOpGetAnycastIpList{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetAnycastIpList"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpGetAnycastIpListValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetAnycastIpList(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetAnycastIpList(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetAnycastIpList", + } +} diff --git a/service/cloudfront/api_op_GetVpcOrigin.go b/service/cloudfront/api_op_GetVpcOrigin.go new file mode 100644 index 00000000000..50011545bd8 --- /dev/null +++ b/service/cloudfront/api_op_GetVpcOrigin.go @@ -0,0 +1,160 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cloudfront + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/cloudfront/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Get the details of an Amazon CloudFront VPC origin. +func (c *Client) GetVpcOrigin(ctx context.Context, params *GetVpcOriginInput, optFns ...func(*Options)) (*GetVpcOriginOutput, error) { + if params == nil { + params = &GetVpcOriginInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetVpcOrigin", params, optFns, c.addOperationGetVpcOriginMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetVpcOriginOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetVpcOriginInput struct { + + // The VPC origin ID. + // + // This member is required. + Id *string + + noSmithyDocumentSerde +} + +type GetVpcOriginOutput struct { + + // The VPC origin ETag. + ETag *string + + // The VPC origin. + VpcOrigin *types.VpcOrigin + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetVpcOriginMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestxml_serializeOpGetVpcOrigin{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestxml_deserializeOpGetVpcOrigin{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetVpcOrigin"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpGetVpcOriginValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetVpcOrigin(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetVpcOrigin(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetVpcOrigin", + } +} diff --git a/service/cloudfront/api_op_ListAnycastIpLists.go b/service/cloudfront/api_op_ListAnycastIpLists.go new file mode 100644 index 00000000000..464c6e511ce --- /dev/null +++ b/service/cloudfront/api_op_ListAnycastIpLists.go @@ -0,0 +1,159 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cloudfront + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/cloudfront/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists your Anycast static IP lists. +func (c *Client) ListAnycastIpLists(ctx context.Context, params *ListAnycastIpListsInput, optFns ...func(*Options)) (*ListAnycastIpListsOutput, error) { + if params == nil { + params = &ListAnycastIpListsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListAnycastIpLists", params, optFns, c.addOperationListAnycastIpListsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListAnycastIpListsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListAnycastIpListsInput struct { + + // Use this field when paginating results to indicate where to begin in your list. + // The response includes items in the list that occur after the marker. To get the + // next page of the list, set this field's value to the value of NextMarker from + // the current page's response. + Marker *string + + // The maximum number of Anycast static IP lists that you want returned in the + // response. + MaxItems *int32 + + noSmithyDocumentSerde +} + +type ListAnycastIpListsOutput struct { + + // Root level tag for the AnycastIpLists parameters. + AnycastIpLists *types.AnycastIpListCollection + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListAnycastIpListsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestxml_serializeOpListAnycastIpLists{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestxml_deserializeOpListAnycastIpLists{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListAnycastIpLists"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListAnycastIpLists(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opListAnycastIpLists(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListAnycastIpLists", + } +} diff --git a/service/cloudfront/api_op_ListDistributionsByAnycastIpListId.go b/service/cloudfront/api_op_ListDistributionsByAnycastIpListId.go new file mode 100644 index 00000000000..23230348a82 --- /dev/null +++ b/service/cloudfront/api_op_ListDistributionsByAnycastIpListId.go @@ -0,0 +1,167 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cloudfront + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/cloudfront/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists the distributions in your account that are associated with the specified +// AnycastIpListId . +func (c *Client) ListDistributionsByAnycastIpListId(ctx context.Context, params *ListDistributionsByAnycastIpListIdInput, optFns ...func(*Options)) (*ListDistributionsByAnycastIpListIdOutput, error) { + if params == nil { + params = &ListDistributionsByAnycastIpListIdInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListDistributionsByAnycastIpListId", params, optFns, c.addOperationListDistributionsByAnycastIpListIdMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListDistributionsByAnycastIpListIdOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListDistributionsByAnycastIpListIdInput struct { + + // The ID of the Anycast static IP list. + // + // This member is required. + AnycastIpListId *string + + // Use this field when paginating results to indicate where to begin in your list. + // The response includes items in the list that occur after the marker. To get the + // next page of the list, set this field's value to the value of NextMarker from + // the current page's response. + Marker *string + + // The maximum number of distributions that you want returned in the response. + MaxItems *int32 + + noSmithyDocumentSerde +} + +type ListDistributionsByAnycastIpListIdOutput struct { + + // A distribution list. + DistributionList *types.DistributionList + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListDistributionsByAnycastIpListIdMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestxml_serializeOpListDistributionsByAnycastIpListId{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestxml_deserializeOpListDistributionsByAnycastIpListId{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListDistributionsByAnycastIpListId"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpListDistributionsByAnycastIpListIdValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListDistributionsByAnycastIpListId(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opListDistributionsByAnycastIpListId(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListDistributionsByAnycastIpListId", + } +} diff --git a/service/cloudfront/api_op_ListDistributionsByVpcOriginId.go b/service/cloudfront/api_op_ListDistributionsByVpcOriginId.go new file mode 100644 index 00000000000..61c7a48c36f --- /dev/null +++ b/service/cloudfront/api_op_ListDistributionsByVpcOriginId.go @@ -0,0 +1,163 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cloudfront + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/cloudfront/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// List CloudFront distributions by their VPC origin ID. +func (c *Client) ListDistributionsByVpcOriginId(ctx context.Context, params *ListDistributionsByVpcOriginIdInput, optFns ...func(*Options)) (*ListDistributionsByVpcOriginIdOutput, error) { + if params == nil { + params = &ListDistributionsByVpcOriginIdInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListDistributionsByVpcOriginId", params, optFns, c.addOperationListDistributionsByVpcOriginIdMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListDistributionsByVpcOriginIdOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListDistributionsByVpcOriginIdInput struct { + + // The VPC origin ID. + // + // This member is required. + VpcOriginId *string + + // The marker associated with the VPC origin distributions list. + Marker *string + + // The maximum number of items included in the list. + MaxItems *int32 + + noSmithyDocumentSerde +} + +type ListDistributionsByVpcOriginIdOutput struct { + + // A list of distribution IDs. + DistributionIdList *types.DistributionIdList + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListDistributionsByVpcOriginIdMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestxml_serializeOpListDistributionsByVpcOriginId{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestxml_deserializeOpListDistributionsByVpcOriginId{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListDistributionsByVpcOriginId"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpListDistributionsByVpcOriginIdValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListDistributionsByVpcOriginId(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opListDistributionsByVpcOriginId(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListDistributionsByVpcOriginId", + } +} diff --git a/service/cloudfront/api_op_ListVpcOrigins.go b/service/cloudfront/api_op_ListVpcOrigins.go new file mode 100644 index 00000000000..323e9fd45ba --- /dev/null +++ b/service/cloudfront/api_op_ListVpcOrigins.go @@ -0,0 +1,155 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cloudfront + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/cloudfront/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// List the CloudFront VPC origins in your account. +func (c *Client) ListVpcOrigins(ctx context.Context, params *ListVpcOriginsInput, optFns ...func(*Options)) (*ListVpcOriginsOutput, error) { + if params == nil { + params = &ListVpcOriginsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListVpcOrigins", params, optFns, c.addOperationListVpcOriginsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListVpcOriginsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListVpcOriginsInput struct { + + // The marker associated with the VPC origins list. + Marker *string + + // The maximum number of items included in the list. + MaxItems *int32 + + noSmithyDocumentSerde +} + +type ListVpcOriginsOutput struct { + + // List of VPC origins. + VpcOriginList *types.VpcOriginList + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListVpcOriginsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestxml_serializeOpListVpcOrigins{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestxml_deserializeOpListVpcOrigins{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListVpcOrigins"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListVpcOrigins(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opListVpcOrigins(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListVpcOrigins", + } +} diff --git a/service/cloudfront/api_op_UpdateVpcOrigin.go b/service/cloudfront/api_op_UpdateVpcOrigin.go new file mode 100644 index 00000000000..1f40e58a381 --- /dev/null +++ b/service/cloudfront/api_op_UpdateVpcOrigin.go @@ -0,0 +1,170 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cloudfront + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/cloudfront/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Update an Amazon CloudFront VPC origin in your account. +func (c *Client) UpdateVpcOrigin(ctx context.Context, params *UpdateVpcOriginInput, optFns ...func(*Options)) (*UpdateVpcOriginOutput, error) { + if params == nil { + params = &UpdateVpcOriginInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateVpcOrigin", params, optFns, c.addOperationUpdateVpcOriginMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateVpcOriginOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateVpcOriginInput struct { + + // The VPC origin ID. + // + // This member is required. + Id *string + + // The VPC origin to update, if a match occurs. + // + // This member is required. + IfMatch *string + + // The VPC origin endpoint configuration. + // + // This member is required. + VpcOriginEndpointConfig *types.VpcOriginEndpointConfig + + noSmithyDocumentSerde +} + +type UpdateVpcOriginOutput struct { + + // The VPC origin ETag. + ETag *string + + // The VPC origin. + VpcOrigin *types.VpcOrigin + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateVpcOriginMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestxml_serializeOpUpdateVpcOrigin{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestxml_deserializeOpUpdateVpcOrigin{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateVpcOrigin"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpUpdateVpcOriginValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateVpcOrigin(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateVpcOrigin(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "UpdateVpcOrigin", + } +} diff --git a/service/cloudfront/deserializers.go b/service/cloudfront/deserializers.go index abdc42d7fdd..e29e0af7135 100644 --- a/service/cloudfront/deserializers.go +++ b/service/cloudfront/deserializers.go @@ -476,6 +476,180 @@ func awsRestxml_deserializeOpDocumentCopyDistributionOutput(v **CopyDistribution return nil } +type awsRestxml_deserializeOpCreateAnycastIpList struct { +} + +func (*awsRestxml_deserializeOpCreateAnycastIpList) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_deserializeOpCreateAnycastIpList) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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, awsRestxml_deserializeOpErrorCreateAnycastIpList(response, &metadata) + } + output := &CreateAnycastIpListOutput{} + out.Result = output + + err = awsRestxml_deserializeOpHttpBindingsCreateAnycastIpListOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %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 + } + 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 = awsRestxml_deserializeDocumentAnycastIpList(&output.AnycastIpList, decoder) + 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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorCreateAnycastIpList(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("AccessDenied", errorCode): + return awsRestxml_deserializeErrorAccessDenied(response, errorBody) + + case strings.EqualFold("EntityAlreadyExists", errorCode): + return awsRestxml_deserializeErrorEntityAlreadyExists(response, errorBody) + + case strings.EqualFold("EntityLimitExceeded", errorCode): + return awsRestxml_deserializeErrorEntityLimitExceeded(response, errorBody) + + case strings.EqualFold("InvalidArgument", errorCode): + return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) + + case strings.EqualFold("InvalidTagging", errorCode): + return awsRestxml_deserializeErrorInvalidTagging(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsRestxml_deserializeErrorUnsupportedOperation(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestxml_deserializeOpHttpBindingsCreateAnycastIpListOutput(v *CreateAnycastIpListOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + if headerValues := response.Header.Values("ETag"); len(headerValues) != 0 { + headerValues[0] = strings.TrimSpace(headerValues[0]) + v.ETag = ptr.String(headerValues[0]) + } + + return nil +} +func awsRestxml_deserializeOpDocumentCreateAnycastIpListOutput(v **CreateAnycastIpListOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *CreateAnycastIpListOutput + if *v == nil { + sv = &CreateAnycastIpListOutput{} + } 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("AnycastIpList", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentAnycastIpList(&sv.AnycastIpList, 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 +} + type awsRestxml_deserializeOpCreateCachePolicy struct { } @@ -1120,6 +1294,9 @@ func awsRestxml_deserializeOpErrorCreateDistribution(response *smithyhttp.Respon case strings.EqualFold("DistributionAlreadyExists", errorCode): return awsRestxml_deserializeErrorDistributionAlreadyExists(response, errorBody) + case strings.EqualFold("EntityNotFound", errorCode): + return awsRestxml_deserializeErrorEntityNotFound(response, errorBody) + case strings.EqualFold("IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior", errorCode): return awsRestxml_deserializeErrorIllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(response, errorBody) @@ -1476,6 +1653,9 @@ func awsRestxml_deserializeOpErrorCreateDistributionWithTags(response *smithyhtt case strings.EqualFold("DistributionAlreadyExists", errorCode): return awsRestxml_deserializeErrorDistributionAlreadyExists(response, errorBody) + case strings.EqualFold("EntityNotFound", errorCode): + return awsRestxml_deserializeErrorEntityNotFound(response, errorBody) + case strings.EqualFold("IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior", errorCode): return awsRestxml_deserializeErrorIllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(response, errorBody) @@ -4221,14 +4401,14 @@ func awsRestxml_deserializeOpDocumentCreateStreamingDistributionWithTagsOutput(v return nil } -type awsRestxml_deserializeOpDeleteCachePolicy struct { +type awsRestxml_deserializeOpCreateVpcOrigin struct { } -func (*awsRestxml_deserializeOpDeleteCachePolicy) ID() string { +func (*awsRestxml_deserializeOpCreateVpcOrigin) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpDeleteCachePolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpCreateVpcOrigin) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4246,107 +4426,41 @@ func (m *awsRestxml_deserializeOpDeleteCachePolicy) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorDeleteCachePolicy(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorCreateVpcOrigin(response, &metadata) } - output := &DeleteCachePolicyOutput{} + output := &CreateVpcOriginOutput{} 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 = awsRestxml_deserializeOpHttpBindingsCreateVpcOriginOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } - span.End() - return out, metadata, err -} - -func awsRestxml_deserializeOpErrorDeleteCachePolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.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 := awsxml.GetErrorResponseComponents(errorBody, false) if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("AccessDenied", errorCode): - return awsRestxml_deserializeErrorAccessDenied(response, errorBody) - - case strings.EqualFold("CachePolicyInUse", errorCode): - return awsRestxml_deserializeErrorCachePolicyInUse(response, errorBody) - - case strings.EqualFold("IllegalDelete", errorCode): - return awsRestxml_deserializeErrorIllegalDelete(response, errorBody) - - case strings.EqualFold("InvalidIfMatchVersion", errorCode): - return awsRestxml_deserializeErrorInvalidIfMatchVersion(response, errorBody) - - case strings.EqualFold("NoSuchCachePolicy", errorCode): - return awsRestxml_deserializeErrorNoSuchCachePolicy(response, errorBody) - - case strings.EqualFold("PreconditionFailed", errorCode): - return awsRestxml_deserializeErrorPreconditionFailed(response, errorBody) - - 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 awsRestxml_deserializeOpDeleteCloudFrontOriginAccessIdentity struct { -} -func (*awsRestxml_deserializeOpDeleteCloudFrontOriginAccessIdentity) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestxml_deserializeOpDeleteCloudFrontOriginAccessIdentity) HandleDeserialize(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 = awsRestxml_deserializeDocumentVpcOrigin(&output.VpcOrigin, decoder) if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - 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, awsRestxml_deserializeOpErrorDeleteCloudFrontOriginAccessIdentity(response, &metadata) - } - output := &DeleteCloudFrontOriginAccessIdentityOutput{} - out.Result = output - - if _, err = io.Copy(ioutil.Discard, response.Body); 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(), } } @@ -4354,7 +4468,7 @@ func (m *awsRestxml_deserializeOpDeleteCloudFrontOriginAccessIdentity) HandleDes return out, metadata, err } -func awsRestxml_deserializeOpErrorDeleteCloudFrontOriginAccessIdentity(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorCreateVpcOrigin(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4382,17 +4496,23 @@ func awsRestxml_deserializeOpErrorDeleteCloudFrontOriginAccessIdentity(response case strings.EqualFold("AccessDenied", errorCode): return awsRestxml_deserializeErrorAccessDenied(response, errorBody) - case strings.EqualFold("CloudFrontOriginAccessIdentityInUse", errorCode): - return awsRestxml_deserializeErrorCloudFrontOriginAccessIdentityInUse(response, errorBody) + case strings.EqualFold("EntityAlreadyExists", errorCode): + return awsRestxml_deserializeErrorEntityAlreadyExists(response, errorBody) - case strings.EqualFold("InvalidIfMatchVersion", errorCode): - return awsRestxml_deserializeErrorInvalidIfMatchVersion(response, errorBody) + case strings.EqualFold("EntityLimitExceeded", errorCode): + return awsRestxml_deserializeErrorEntityLimitExceeded(response, errorBody) - case strings.EqualFold("NoSuchCloudFrontOriginAccessIdentity", errorCode): - return awsRestxml_deserializeErrorNoSuchCloudFrontOriginAccessIdentity(response, errorBody) + case strings.EqualFold("InconsistentQuantities", errorCode): + return awsRestxml_deserializeErrorInconsistentQuantities(response, errorBody) - case strings.EqualFold("PreconditionFailed", errorCode): - return awsRestxml_deserializeErrorPreconditionFailed(response, errorBody) + case strings.EqualFold("InvalidArgument", errorCode): + return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) + + case strings.EqualFold("InvalidTagging", errorCode): + return awsRestxml_deserializeErrorInvalidTagging(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsRestxml_deserializeErrorUnsupportedOperation(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -4404,14 +4524,73 @@ func awsRestxml_deserializeOpErrorDeleteCloudFrontOriginAccessIdentity(response } } -type awsRestxml_deserializeOpDeleteContinuousDeploymentPolicy struct { +func awsRestxml_deserializeOpHttpBindingsCreateVpcOriginOutput(v *CreateVpcOriginOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + if headerValues := response.Header.Values("ETag"); len(headerValues) != 0 { + headerValues[0] = strings.TrimSpace(headerValues[0]) + v.ETag = ptr.String(headerValues[0]) + } + + if headerValues := response.Header.Values("Location"); len(headerValues) != 0 { + headerValues[0] = strings.TrimSpace(headerValues[0]) + v.Location = ptr.String(headerValues[0]) + } + + return nil } +func awsRestxml_deserializeOpDocumentCreateVpcOriginOutput(v **CreateVpcOriginOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *CreateVpcOriginOutput + if *v == nil { + sv = &CreateVpcOriginOutput{} + } else { + sv = *v + } -func (*awsRestxml_deserializeOpDeleteContinuousDeploymentPolicy) ID() 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("VpcOrigin", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentVpcOrigin(&sv.VpcOrigin, 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 +} + +type awsRestxml_deserializeOpDeleteAnycastIpList struct { +} + +func (*awsRestxml_deserializeOpDeleteAnycastIpList) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpDeleteContinuousDeploymentPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpDeleteAnycastIpList) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4429,9 +4608,9 @@ func (m *awsRestxml_deserializeOpDeleteContinuousDeploymentPolicy) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorDeleteContinuousDeploymentPolicy(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorDeleteAnycastIpList(response, &metadata) } - output := &DeleteContinuousDeploymentPolicyOutput{} + output := &DeleteAnycastIpListOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -4444,7 +4623,7 @@ func (m *awsRestxml_deserializeOpDeleteContinuousDeploymentPolicy) HandleDeseria return out, metadata, err } -func awsRestxml_deserializeOpErrorDeleteContinuousDeploymentPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorDeleteAnycastIpList(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4472,8 +4651,14 @@ func awsRestxml_deserializeOpErrorDeleteContinuousDeploymentPolicy(response *smi case strings.EqualFold("AccessDenied", errorCode): return awsRestxml_deserializeErrorAccessDenied(response, errorBody) - case strings.EqualFold("ContinuousDeploymentPolicyInUse", errorCode): - return awsRestxml_deserializeErrorContinuousDeploymentPolicyInUse(response, errorBody) + case strings.EqualFold("CannotDeleteEntityWhileInUse", errorCode): + return awsRestxml_deserializeErrorCannotDeleteEntityWhileInUse(response, errorBody) + + case strings.EqualFold("EntityNotFound", errorCode): + return awsRestxml_deserializeErrorEntityNotFound(response, errorBody) + + case strings.EqualFold("IllegalDelete", errorCode): + return awsRestxml_deserializeErrorIllegalDelete(response, errorBody) case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) @@ -4481,12 +4666,12 @@ func awsRestxml_deserializeOpErrorDeleteContinuousDeploymentPolicy(response *smi case strings.EqualFold("InvalidIfMatchVersion", errorCode): return awsRestxml_deserializeErrorInvalidIfMatchVersion(response, errorBody) - case strings.EqualFold("NoSuchContinuousDeploymentPolicy", errorCode): - return awsRestxml_deserializeErrorNoSuchContinuousDeploymentPolicy(response, errorBody) - case strings.EqualFold("PreconditionFailed", errorCode): return awsRestxml_deserializeErrorPreconditionFailed(response, errorBody) + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsRestxml_deserializeErrorUnsupportedOperation(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -4497,14 +4682,14 @@ func awsRestxml_deserializeOpErrorDeleteContinuousDeploymentPolicy(response *smi } } -type awsRestxml_deserializeOpDeleteDistribution struct { +type awsRestxml_deserializeOpDeleteCachePolicy struct { } -func (*awsRestxml_deserializeOpDeleteDistribution) ID() string { +func (*awsRestxml_deserializeOpDeleteCachePolicy) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpDeleteDistribution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpDeleteCachePolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4522,9 +4707,9 @@ func (m *awsRestxml_deserializeOpDeleteDistribution) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorDeleteDistribution(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorDeleteCachePolicy(response, &metadata) } - output := &DeleteDistributionOutput{} + output := &DeleteCachePolicyOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -4537,7 +4722,7 @@ func (m *awsRestxml_deserializeOpDeleteDistribution) HandleDeserialize(ctx conte return out, metadata, err } -func awsRestxml_deserializeOpErrorDeleteDistribution(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorDeleteCachePolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4565,14 +4750,17 @@ func awsRestxml_deserializeOpErrorDeleteDistribution(response *smithyhttp.Respon case strings.EqualFold("AccessDenied", errorCode): return awsRestxml_deserializeErrorAccessDenied(response, errorBody) - case strings.EqualFold("DistributionNotDisabled", errorCode): - return awsRestxml_deserializeErrorDistributionNotDisabled(response, errorBody) + case strings.EqualFold("CachePolicyInUse", errorCode): + return awsRestxml_deserializeErrorCachePolicyInUse(response, errorBody) + + case strings.EqualFold("IllegalDelete", errorCode): + return awsRestxml_deserializeErrorIllegalDelete(response, errorBody) case strings.EqualFold("InvalidIfMatchVersion", errorCode): return awsRestxml_deserializeErrorInvalidIfMatchVersion(response, errorBody) - case strings.EqualFold("NoSuchDistribution", errorCode): - return awsRestxml_deserializeErrorNoSuchDistribution(response, errorBody) + case strings.EqualFold("NoSuchCachePolicy", errorCode): + return awsRestxml_deserializeErrorNoSuchCachePolicy(response, errorBody) case strings.EqualFold("PreconditionFailed", errorCode): return awsRestxml_deserializeErrorPreconditionFailed(response, errorBody) @@ -4587,14 +4775,14 @@ func awsRestxml_deserializeOpErrorDeleteDistribution(response *smithyhttp.Respon } } -type awsRestxml_deserializeOpDeleteFieldLevelEncryptionConfig struct { +type awsRestxml_deserializeOpDeleteCloudFrontOriginAccessIdentity struct { } -func (*awsRestxml_deserializeOpDeleteFieldLevelEncryptionConfig) ID() string { +func (*awsRestxml_deserializeOpDeleteCloudFrontOriginAccessIdentity) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpDeleteFieldLevelEncryptionConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpDeleteCloudFrontOriginAccessIdentity) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4612,9 +4800,9 @@ func (m *awsRestxml_deserializeOpDeleteFieldLevelEncryptionConfig) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorDeleteFieldLevelEncryptionConfig(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorDeleteCloudFrontOriginAccessIdentity(response, &metadata) } - output := &DeleteFieldLevelEncryptionConfigOutput{} + output := &DeleteCloudFrontOriginAccessIdentityOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -4627,7 +4815,7 @@ func (m *awsRestxml_deserializeOpDeleteFieldLevelEncryptionConfig) HandleDeseria return out, metadata, err } -func awsRestxml_deserializeOpErrorDeleteFieldLevelEncryptionConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorDeleteCloudFrontOriginAccessIdentity(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4655,14 +4843,14 @@ func awsRestxml_deserializeOpErrorDeleteFieldLevelEncryptionConfig(response *smi case strings.EqualFold("AccessDenied", errorCode): return awsRestxml_deserializeErrorAccessDenied(response, errorBody) - case strings.EqualFold("FieldLevelEncryptionConfigInUse", errorCode): - return awsRestxml_deserializeErrorFieldLevelEncryptionConfigInUse(response, errorBody) + case strings.EqualFold("CloudFrontOriginAccessIdentityInUse", errorCode): + return awsRestxml_deserializeErrorCloudFrontOriginAccessIdentityInUse(response, errorBody) case strings.EqualFold("InvalidIfMatchVersion", errorCode): return awsRestxml_deserializeErrorInvalidIfMatchVersion(response, errorBody) - case strings.EqualFold("NoSuchFieldLevelEncryptionConfig", errorCode): - return awsRestxml_deserializeErrorNoSuchFieldLevelEncryptionConfig(response, errorBody) + case strings.EqualFold("NoSuchCloudFrontOriginAccessIdentity", errorCode): + return awsRestxml_deserializeErrorNoSuchCloudFrontOriginAccessIdentity(response, errorBody) case strings.EqualFold("PreconditionFailed", errorCode): return awsRestxml_deserializeErrorPreconditionFailed(response, errorBody) @@ -4677,14 +4865,14 @@ func awsRestxml_deserializeOpErrorDeleteFieldLevelEncryptionConfig(response *smi } } -type awsRestxml_deserializeOpDeleteFieldLevelEncryptionProfile struct { +type awsRestxml_deserializeOpDeleteContinuousDeploymentPolicy struct { } -func (*awsRestxml_deserializeOpDeleteFieldLevelEncryptionProfile) ID() string { +func (*awsRestxml_deserializeOpDeleteContinuousDeploymentPolicy) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpDeleteFieldLevelEncryptionProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpDeleteContinuousDeploymentPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4702,9 +4890,9 @@ func (m *awsRestxml_deserializeOpDeleteFieldLevelEncryptionProfile) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorDeleteFieldLevelEncryptionProfile(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorDeleteContinuousDeploymentPolicy(response, &metadata) } - output := &DeleteFieldLevelEncryptionProfileOutput{} + output := &DeleteContinuousDeploymentPolicyOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -4717,7 +4905,7 @@ func (m *awsRestxml_deserializeOpDeleteFieldLevelEncryptionProfile) HandleDeseri return out, metadata, err } -func awsRestxml_deserializeOpErrorDeleteFieldLevelEncryptionProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorDeleteContinuousDeploymentPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4745,14 +4933,17 @@ func awsRestxml_deserializeOpErrorDeleteFieldLevelEncryptionProfile(response *sm case strings.EqualFold("AccessDenied", errorCode): return awsRestxml_deserializeErrorAccessDenied(response, errorBody) - case strings.EqualFold("FieldLevelEncryptionProfileInUse", errorCode): - return awsRestxml_deserializeErrorFieldLevelEncryptionProfileInUse(response, errorBody) + case strings.EqualFold("ContinuousDeploymentPolicyInUse", errorCode): + return awsRestxml_deserializeErrorContinuousDeploymentPolicyInUse(response, errorBody) + + case strings.EqualFold("InvalidArgument", errorCode): + return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) case strings.EqualFold("InvalidIfMatchVersion", errorCode): return awsRestxml_deserializeErrorInvalidIfMatchVersion(response, errorBody) - case strings.EqualFold("NoSuchFieldLevelEncryptionProfile", errorCode): - return awsRestxml_deserializeErrorNoSuchFieldLevelEncryptionProfile(response, errorBody) + case strings.EqualFold("NoSuchContinuousDeploymentPolicy", errorCode): + return awsRestxml_deserializeErrorNoSuchContinuousDeploymentPolicy(response, errorBody) case strings.EqualFold("PreconditionFailed", errorCode): return awsRestxml_deserializeErrorPreconditionFailed(response, errorBody) @@ -4767,14 +4958,14 @@ func awsRestxml_deserializeOpErrorDeleteFieldLevelEncryptionProfile(response *sm } } -type awsRestxml_deserializeOpDeleteFunction struct { +type awsRestxml_deserializeOpDeleteDistribution struct { } -func (*awsRestxml_deserializeOpDeleteFunction) ID() string { +func (*awsRestxml_deserializeOpDeleteDistribution) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpDeleteFunction) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpDeleteDistribution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4792,9 +4983,9 @@ func (m *awsRestxml_deserializeOpDeleteFunction) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorDeleteFunction(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorDeleteDistribution(response, &metadata) } - output := &DeleteFunctionOutput{} + output := &DeleteDistributionOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -4807,7 +4998,7 @@ func (m *awsRestxml_deserializeOpDeleteFunction) HandleDeserialize(ctx context.C return out, metadata, err } -func awsRestxml_deserializeOpErrorDeleteFunction(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorDeleteDistribution(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4832,21 +5023,21 @@ func awsRestxml_deserializeOpErrorDeleteFunction(response *smithyhttp.Response, } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("FunctionInUse", errorCode): - return awsRestxml_deserializeErrorFunctionInUse(response, errorBody) + case strings.EqualFold("AccessDenied", errorCode): + return awsRestxml_deserializeErrorAccessDenied(response, errorBody) + + case strings.EqualFold("DistributionNotDisabled", errorCode): + return awsRestxml_deserializeErrorDistributionNotDisabled(response, errorBody) case strings.EqualFold("InvalidIfMatchVersion", errorCode): return awsRestxml_deserializeErrorInvalidIfMatchVersion(response, errorBody) - case strings.EqualFold("NoSuchFunctionExists", errorCode): - return awsRestxml_deserializeErrorNoSuchFunctionExists(response, errorBody) + case strings.EqualFold("NoSuchDistribution", errorCode): + return awsRestxml_deserializeErrorNoSuchDistribution(response, errorBody) case strings.EqualFold("PreconditionFailed", errorCode): return awsRestxml_deserializeErrorPreconditionFailed(response, errorBody) - case strings.EqualFold("UnsupportedOperation", errorCode): - return awsRestxml_deserializeErrorUnsupportedOperation(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -4857,14 +5048,14 @@ func awsRestxml_deserializeOpErrorDeleteFunction(response *smithyhttp.Response, } } -type awsRestxml_deserializeOpDeleteKeyGroup struct { +type awsRestxml_deserializeOpDeleteFieldLevelEncryptionConfig struct { } -func (*awsRestxml_deserializeOpDeleteKeyGroup) ID() string { +func (*awsRestxml_deserializeOpDeleteFieldLevelEncryptionConfig) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpDeleteKeyGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpDeleteFieldLevelEncryptionConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4882,9 +5073,9 @@ func (m *awsRestxml_deserializeOpDeleteKeyGroup) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorDeleteKeyGroup(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorDeleteFieldLevelEncryptionConfig(response, &metadata) } - output := &DeleteKeyGroupOutput{} + output := &DeleteFieldLevelEncryptionConfigOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -4897,7 +5088,7 @@ func (m *awsRestxml_deserializeOpDeleteKeyGroup) HandleDeserialize(ctx context.C return out, metadata, err } -func awsRestxml_deserializeOpErrorDeleteKeyGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorDeleteFieldLevelEncryptionConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4922,18 +5113,21 @@ func awsRestxml_deserializeOpErrorDeleteKeyGroup(response *smithyhttp.Response, } errorBody.Seek(0, io.SeekStart) switch { + case strings.EqualFold("AccessDenied", errorCode): + return awsRestxml_deserializeErrorAccessDenied(response, errorBody) + + case strings.EqualFold("FieldLevelEncryptionConfigInUse", errorCode): + return awsRestxml_deserializeErrorFieldLevelEncryptionConfigInUse(response, errorBody) + case strings.EqualFold("InvalidIfMatchVersion", errorCode): return awsRestxml_deserializeErrorInvalidIfMatchVersion(response, errorBody) - case strings.EqualFold("NoSuchResource", errorCode): - return awsRestxml_deserializeErrorNoSuchResource(response, errorBody) + case strings.EqualFold("NoSuchFieldLevelEncryptionConfig", errorCode): + return awsRestxml_deserializeErrorNoSuchFieldLevelEncryptionConfig(response, errorBody) case strings.EqualFold("PreconditionFailed", errorCode): return awsRestxml_deserializeErrorPreconditionFailed(response, errorBody) - case strings.EqualFold("ResourceInUse", errorCode): - return awsRestxml_deserializeErrorResourceInUse(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -4944,14 +5138,14 @@ func awsRestxml_deserializeOpErrorDeleteKeyGroup(response *smithyhttp.Response, } } -type awsRestxml_deserializeOpDeleteKeyValueStore struct { +type awsRestxml_deserializeOpDeleteFieldLevelEncryptionProfile struct { } -func (*awsRestxml_deserializeOpDeleteKeyValueStore) ID() string { +func (*awsRestxml_deserializeOpDeleteFieldLevelEncryptionProfile) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpDeleteKeyValueStore) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpDeleteFieldLevelEncryptionProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4969,9 +5163,9 @@ func (m *awsRestxml_deserializeOpDeleteKeyValueStore) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorDeleteKeyValueStore(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorDeleteFieldLevelEncryptionProfile(response, &metadata) } - output := &DeleteKeyValueStoreOutput{} + output := &DeleteFieldLevelEncryptionProfileOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -4984,7 +5178,7 @@ func (m *awsRestxml_deserializeOpDeleteKeyValueStore) HandleDeserialize(ctx cont return out, metadata, err } -func awsRestxml_deserializeOpErrorDeleteKeyValueStore(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorDeleteFieldLevelEncryptionProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5012,21 +5206,18 @@ func awsRestxml_deserializeOpErrorDeleteKeyValueStore(response *smithyhttp.Respo case strings.EqualFold("AccessDenied", errorCode): return awsRestxml_deserializeErrorAccessDenied(response, errorBody) - case strings.EqualFold("CannotDeleteEntityWhileInUse", errorCode): - return awsRestxml_deserializeErrorCannotDeleteEntityWhileInUse(response, errorBody) - - case strings.EqualFold("EntityNotFound", errorCode): - return awsRestxml_deserializeErrorEntityNotFound(response, errorBody) + case strings.EqualFold("FieldLevelEncryptionProfileInUse", errorCode): + return awsRestxml_deserializeErrorFieldLevelEncryptionProfileInUse(response, errorBody) case strings.EqualFold("InvalidIfMatchVersion", errorCode): return awsRestxml_deserializeErrorInvalidIfMatchVersion(response, errorBody) + case strings.EqualFold("NoSuchFieldLevelEncryptionProfile", errorCode): + return awsRestxml_deserializeErrorNoSuchFieldLevelEncryptionProfile(response, errorBody) + case strings.EqualFold("PreconditionFailed", errorCode): return awsRestxml_deserializeErrorPreconditionFailed(response, errorBody) - case strings.EqualFold("UnsupportedOperation", errorCode): - return awsRestxml_deserializeErrorUnsupportedOperation(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -5037,14 +5228,14 @@ func awsRestxml_deserializeOpErrorDeleteKeyValueStore(response *smithyhttp.Respo } } -type awsRestxml_deserializeOpDeleteMonitoringSubscription struct { +type awsRestxml_deserializeOpDeleteFunction struct { } -func (*awsRestxml_deserializeOpDeleteMonitoringSubscription) ID() string { +func (*awsRestxml_deserializeOpDeleteFunction) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpDeleteMonitoringSubscription) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpDeleteFunction) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5062,16 +5253,286 @@ func (m *awsRestxml_deserializeOpDeleteMonitoringSubscription) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorDeleteMonitoringSubscription(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorDeleteFunction(response, &metadata) } - output := &DeleteMonitoringSubscriptionOutput{} + output := &DeleteFunctionOutput{} 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), + } + } + span.End() return out, metadata, err } -func awsRestxml_deserializeOpErrorDeleteMonitoringSubscription(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorDeleteFunction(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("FunctionInUse", errorCode): + return awsRestxml_deserializeErrorFunctionInUse(response, errorBody) + + case strings.EqualFold("InvalidIfMatchVersion", errorCode): + return awsRestxml_deserializeErrorInvalidIfMatchVersion(response, errorBody) + + case strings.EqualFold("NoSuchFunctionExists", errorCode): + return awsRestxml_deserializeErrorNoSuchFunctionExists(response, errorBody) + + case strings.EqualFold("PreconditionFailed", errorCode): + return awsRestxml_deserializeErrorPreconditionFailed(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsRestxml_deserializeErrorUnsupportedOperation(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestxml_deserializeOpDeleteKeyGroup struct { +} + +func (*awsRestxml_deserializeOpDeleteKeyGroup) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_deserializeOpDeleteKeyGroup) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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, awsRestxml_deserializeOpErrorDeleteKeyGroup(response, &metadata) + } + output := &DeleteKeyGroupOutput{} + 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), + } + } + + span.End() + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorDeleteKeyGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("InvalidIfMatchVersion", errorCode): + return awsRestxml_deserializeErrorInvalidIfMatchVersion(response, errorBody) + + case strings.EqualFold("NoSuchResource", errorCode): + return awsRestxml_deserializeErrorNoSuchResource(response, errorBody) + + case strings.EqualFold("PreconditionFailed", errorCode): + return awsRestxml_deserializeErrorPreconditionFailed(response, errorBody) + + case strings.EqualFold("ResourceInUse", errorCode): + return awsRestxml_deserializeErrorResourceInUse(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestxml_deserializeOpDeleteKeyValueStore struct { +} + +func (*awsRestxml_deserializeOpDeleteKeyValueStore) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_deserializeOpDeleteKeyValueStore) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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, awsRestxml_deserializeOpErrorDeleteKeyValueStore(response, &metadata) + } + output := &DeleteKeyValueStoreOutput{} + 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), + } + } + + span.End() + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorDeleteKeyValueStore(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("AccessDenied", errorCode): + return awsRestxml_deserializeErrorAccessDenied(response, errorBody) + + case strings.EqualFold("CannotDeleteEntityWhileInUse", errorCode): + return awsRestxml_deserializeErrorCannotDeleteEntityWhileInUse(response, errorBody) + + case strings.EqualFold("EntityNotFound", errorCode): + return awsRestxml_deserializeErrorEntityNotFound(response, errorBody) + + case strings.EqualFold("InvalidIfMatchVersion", errorCode): + return awsRestxml_deserializeErrorInvalidIfMatchVersion(response, errorBody) + + case strings.EqualFold("PreconditionFailed", errorCode): + return awsRestxml_deserializeErrorPreconditionFailed(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsRestxml_deserializeErrorUnsupportedOperation(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestxml_deserializeOpDeleteMonitoringSubscription struct { +} + +func (*awsRestxml_deserializeOpDeleteMonitoringSubscription) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_deserializeOpDeleteMonitoringSubscription) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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, awsRestxml_deserializeOpErrorDeleteMonitoringSubscription(response, &metadata) + } + output := &DeleteMonitoringSubscriptionOutput{} + out.Result = output + + span.End() + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorDeleteMonitoringSubscription(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5661,6 +6122,186 @@ func awsRestxml_deserializeOpErrorDeleteStreamingDistribution(response *smithyht } } +type awsRestxml_deserializeOpDeleteVpcOrigin struct { +} + +func (*awsRestxml_deserializeOpDeleteVpcOrigin) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_deserializeOpDeleteVpcOrigin) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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, awsRestxml_deserializeOpErrorDeleteVpcOrigin(response, &metadata) + } + output := &DeleteVpcOriginOutput{} + out.Result = output + + err = awsRestxml_deserializeOpHttpBindingsDeleteVpcOriginOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %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 + } + 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 = awsRestxml_deserializeDocumentVpcOrigin(&output.VpcOrigin, decoder) + 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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorDeleteVpcOrigin(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("AccessDenied", errorCode): + return awsRestxml_deserializeErrorAccessDenied(response, errorBody) + + case strings.EqualFold("CannotDeleteEntityWhileInUse", errorCode): + return awsRestxml_deserializeErrorCannotDeleteEntityWhileInUse(response, errorBody) + + case strings.EqualFold("EntityNotFound", errorCode): + return awsRestxml_deserializeErrorEntityNotFound(response, errorBody) + + case strings.EqualFold("IllegalDelete", errorCode): + return awsRestxml_deserializeErrorIllegalDelete(response, errorBody) + + case strings.EqualFold("InvalidArgument", errorCode): + return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) + + case strings.EqualFold("InvalidIfMatchVersion", errorCode): + return awsRestxml_deserializeErrorInvalidIfMatchVersion(response, errorBody) + + case strings.EqualFold("PreconditionFailed", errorCode): + return awsRestxml_deserializeErrorPreconditionFailed(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsRestxml_deserializeErrorUnsupportedOperation(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestxml_deserializeOpHttpBindingsDeleteVpcOriginOutput(v *DeleteVpcOriginOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + if headerValues := response.Header.Values("ETag"); len(headerValues) != 0 { + headerValues[0] = strings.TrimSpace(headerValues[0]) + v.ETag = ptr.String(headerValues[0]) + } + + return nil +} +func awsRestxml_deserializeOpDocumentDeleteVpcOriginOutput(v **DeleteVpcOriginOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DeleteVpcOriginOutput + if *v == nil { + sv = &DeleteVpcOriginOutput{} + } 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("VpcOrigin", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentVpcOrigin(&sv.VpcOrigin, 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 +} + type awsRestxml_deserializeOpDescribeFunction struct { } @@ -5991,14 +6632,14 @@ func awsRestxml_deserializeOpDocumentDescribeKeyValueStoreOutput(v **DescribeKey return nil } -type awsRestxml_deserializeOpGetCachePolicy struct { +type awsRestxml_deserializeOpGetAnycastIpList struct { } -func (*awsRestxml_deserializeOpGetCachePolicy) ID() string { +func (*awsRestxml_deserializeOpGetAnycastIpList) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpGetCachePolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpGetAnycastIpList) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6016,12 +6657,12 @@ func (m *awsRestxml_deserializeOpGetCachePolicy) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorGetCachePolicy(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorGetAnycastIpList(response, &metadata) } - output := &GetCachePolicyOutput{} + output := &GetAnycastIpListOutput{} out.Result = output - err = awsRestxml_deserializeOpHttpBindingsGetCachePolicyOutput(output, response) + err = awsRestxml_deserializeOpHttpBindingsGetAnycastIpListOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -6044,7 +6685,7 @@ func (m *awsRestxml_deserializeOpGetCachePolicy) HandleDeserialize(ctx context.C } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentCachePolicy(&output.CachePolicy, decoder) + err = awsRestxml_deserializeDocumentAnycastIpList(&output.AnycastIpList, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6058,7 +6699,7 @@ func (m *awsRestxml_deserializeOpGetCachePolicy) HandleDeserialize(ctx context.C return out, metadata, err } -func awsRestxml_deserializeOpErrorGetCachePolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorGetAnycastIpList(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6086,8 +6727,14 @@ func awsRestxml_deserializeOpErrorGetCachePolicy(response *smithyhttp.Response, case strings.EqualFold("AccessDenied", errorCode): return awsRestxml_deserializeErrorAccessDenied(response, errorBody) - case strings.EqualFold("NoSuchCachePolicy", errorCode): - return awsRestxml_deserializeErrorNoSuchCachePolicy(response, errorBody) + case strings.EqualFold("EntityNotFound", errorCode): + return awsRestxml_deserializeErrorEntityNotFound(response, errorBody) + + case strings.EqualFold("InvalidArgument", errorCode): + return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsRestxml_deserializeErrorUnsupportedOperation(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -6099,7 +6746,7 @@ func awsRestxml_deserializeOpErrorGetCachePolicy(response *smithyhttp.Response, } } -func awsRestxml_deserializeOpHttpBindingsGetCachePolicyOutput(v *GetCachePolicyOutput, response *smithyhttp.Response) error { +func awsRestxml_deserializeOpHttpBindingsGetAnycastIpListOutput(v *GetAnycastIpListOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -6111,13 +6758,13 @@ func awsRestxml_deserializeOpHttpBindingsGetCachePolicyOutput(v *GetCachePolicyO return nil } -func awsRestxml_deserializeOpDocumentGetCachePolicyOutput(v **GetCachePolicyOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentGetAnycastIpListOutput(v **GetAnycastIpListOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *GetCachePolicyOutput + var sv *GetAnycastIpListOutput if *v == nil { - sv = &GetCachePolicyOutput{} + sv = &GetAnycastIpListOutput{} } else { sv = *v } @@ -6133,9 +6780,9 @@ func awsRestxml_deserializeOpDocumentGetCachePolicyOutput(v **GetCachePolicyOutp originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("CachePolicy", t.Name.Local): + case strings.EqualFold("AnycastIpList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentCachePolicy(&sv.CachePolicy, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentAnycastIpList(&sv.AnycastIpList, nodeDecoder); err != nil { return err } @@ -6153,14 +6800,14 @@ func awsRestxml_deserializeOpDocumentGetCachePolicyOutput(v **GetCachePolicyOutp return nil } -type awsRestxml_deserializeOpGetCachePolicyConfig struct { +type awsRestxml_deserializeOpGetCachePolicy struct { } -func (*awsRestxml_deserializeOpGetCachePolicyConfig) ID() string { +func (*awsRestxml_deserializeOpGetCachePolicy) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpGetCachePolicyConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpGetCachePolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6178,12 +6825,12 @@ func (m *awsRestxml_deserializeOpGetCachePolicyConfig) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorGetCachePolicyConfig(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorGetCachePolicy(response, &metadata) } - output := &GetCachePolicyConfigOutput{} + output := &GetCachePolicyOutput{} out.Result = output - err = awsRestxml_deserializeOpHttpBindingsGetCachePolicyConfigOutput(output, response) + err = awsRestxml_deserializeOpHttpBindingsGetCachePolicyOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -6206,7 +6853,7 @@ func (m *awsRestxml_deserializeOpGetCachePolicyConfig) HandleDeserialize(ctx con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentCachePolicyConfig(&output.CachePolicyConfig, decoder) + err = awsRestxml_deserializeDocumentCachePolicy(&output.CachePolicy, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6220,7 +6867,7 @@ func (m *awsRestxml_deserializeOpGetCachePolicyConfig) HandleDeserialize(ctx con return out, metadata, err } -func awsRestxml_deserializeOpErrorGetCachePolicyConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorGetCachePolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6261,7 +6908,7 @@ func awsRestxml_deserializeOpErrorGetCachePolicyConfig(response *smithyhttp.Resp } } -func awsRestxml_deserializeOpHttpBindingsGetCachePolicyConfigOutput(v *GetCachePolicyConfigOutput, response *smithyhttp.Response) error { +func awsRestxml_deserializeOpHttpBindingsGetCachePolicyOutput(v *GetCachePolicyOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -6273,13 +6920,13 @@ func awsRestxml_deserializeOpHttpBindingsGetCachePolicyConfigOutput(v *GetCacheP return nil } -func awsRestxml_deserializeOpDocumentGetCachePolicyConfigOutput(v **GetCachePolicyConfigOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentGetCachePolicyOutput(v **GetCachePolicyOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *GetCachePolicyConfigOutput + var sv *GetCachePolicyOutput if *v == nil { - sv = &GetCachePolicyConfigOutput{} + sv = &GetCachePolicyOutput{} } else { sv = *v } @@ -6295,9 +6942,9 @@ func awsRestxml_deserializeOpDocumentGetCachePolicyConfigOutput(v **GetCachePoli originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("CachePolicyConfig", t.Name.Local): + case strings.EqualFold("CachePolicy", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentCachePolicyConfig(&sv.CachePolicyConfig, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentCachePolicy(&sv.CachePolicy, nodeDecoder); err != nil { return err } @@ -6315,14 +6962,14 @@ func awsRestxml_deserializeOpDocumentGetCachePolicyConfigOutput(v **GetCachePoli return nil } -type awsRestxml_deserializeOpGetCloudFrontOriginAccessIdentity struct { +type awsRestxml_deserializeOpGetCachePolicyConfig struct { } -func (*awsRestxml_deserializeOpGetCloudFrontOriginAccessIdentity) ID() string { +func (*awsRestxml_deserializeOpGetCachePolicyConfig) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpGetCloudFrontOriginAccessIdentity) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpGetCachePolicyConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6340,12 +6987,12 @@ func (m *awsRestxml_deserializeOpGetCloudFrontOriginAccessIdentity) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorGetCloudFrontOriginAccessIdentity(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorGetCachePolicyConfig(response, &metadata) } - output := &GetCloudFrontOriginAccessIdentityOutput{} + output := &GetCachePolicyConfigOutput{} out.Result = output - err = awsRestxml_deserializeOpHttpBindingsGetCloudFrontOriginAccessIdentityOutput(output, response) + err = awsRestxml_deserializeOpHttpBindingsGetCachePolicyConfigOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -6368,7 +7015,7 @@ func (m *awsRestxml_deserializeOpGetCloudFrontOriginAccessIdentity) HandleDeseri } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentity(&output.CloudFrontOriginAccessIdentity, decoder) + err = awsRestxml_deserializeDocumentCachePolicyConfig(&output.CachePolicyConfig, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6382,7 +7029,7 @@ func (m *awsRestxml_deserializeOpGetCloudFrontOriginAccessIdentity) HandleDeseri return out, metadata, err } -func awsRestxml_deserializeOpErrorGetCloudFrontOriginAccessIdentity(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorGetCachePolicyConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6410,8 +7057,8 @@ func awsRestxml_deserializeOpErrorGetCloudFrontOriginAccessIdentity(response *sm case strings.EqualFold("AccessDenied", errorCode): return awsRestxml_deserializeErrorAccessDenied(response, errorBody) - case strings.EqualFold("NoSuchCloudFrontOriginAccessIdentity", errorCode): - return awsRestxml_deserializeErrorNoSuchCloudFrontOriginAccessIdentity(response, errorBody) + case strings.EqualFold("NoSuchCachePolicy", errorCode): + return awsRestxml_deserializeErrorNoSuchCachePolicy(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -6423,7 +7070,7 @@ func awsRestxml_deserializeOpErrorGetCloudFrontOriginAccessIdentity(response *sm } } -func awsRestxml_deserializeOpHttpBindingsGetCloudFrontOriginAccessIdentityOutput(v *GetCloudFrontOriginAccessIdentityOutput, response *smithyhttp.Response) error { +func awsRestxml_deserializeOpHttpBindingsGetCachePolicyConfigOutput(v *GetCachePolicyConfigOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -6435,13 +7082,13 @@ func awsRestxml_deserializeOpHttpBindingsGetCloudFrontOriginAccessIdentityOutput return nil } -func awsRestxml_deserializeOpDocumentGetCloudFrontOriginAccessIdentityOutput(v **GetCloudFrontOriginAccessIdentityOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentGetCachePolicyConfigOutput(v **GetCachePolicyConfigOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *GetCloudFrontOriginAccessIdentityOutput + var sv *GetCachePolicyConfigOutput if *v == nil { - sv = &GetCloudFrontOriginAccessIdentityOutput{} + sv = &GetCachePolicyConfigOutput{} } else { sv = *v } @@ -6457,9 +7104,9 @@ func awsRestxml_deserializeOpDocumentGetCloudFrontOriginAccessIdentityOutput(v * originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("CloudFrontOriginAccessIdentity", t.Name.Local): + case strings.EqualFold("CachePolicyConfig", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentity(&sv.CloudFrontOriginAccessIdentity, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentCachePolicyConfig(&sv.CachePolicyConfig, nodeDecoder); err != nil { return err } @@ -6477,14 +7124,14 @@ func awsRestxml_deserializeOpDocumentGetCloudFrontOriginAccessIdentityOutput(v * return nil } -type awsRestxml_deserializeOpGetCloudFrontOriginAccessIdentityConfig struct { +type awsRestxml_deserializeOpGetCloudFrontOriginAccessIdentity struct { } -func (*awsRestxml_deserializeOpGetCloudFrontOriginAccessIdentityConfig) ID() string { +func (*awsRestxml_deserializeOpGetCloudFrontOriginAccessIdentity) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpGetCloudFrontOriginAccessIdentityConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpGetCloudFrontOriginAccessIdentity) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6502,12 +7149,174 @@ func (m *awsRestxml_deserializeOpGetCloudFrontOriginAccessIdentityConfig) Handle } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorGetCloudFrontOriginAccessIdentityConfig(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorGetCloudFrontOriginAccessIdentity(response, &metadata) } - output := &GetCloudFrontOriginAccessIdentityConfigOutput{} + output := &GetCloudFrontOriginAccessIdentityOutput{} out.Result = output - err = awsRestxml_deserializeOpHttpBindingsGetCloudFrontOriginAccessIdentityConfigOutput(output, response) + err = awsRestxml_deserializeOpHttpBindingsGetCloudFrontOriginAccessIdentityOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %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 + } + 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 = awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentity(&output.CloudFrontOriginAccessIdentity, decoder) + 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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorGetCloudFrontOriginAccessIdentity(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("AccessDenied", errorCode): + return awsRestxml_deserializeErrorAccessDenied(response, errorBody) + + case strings.EqualFold("NoSuchCloudFrontOriginAccessIdentity", errorCode): + return awsRestxml_deserializeErrorNoSuchCloudFrontOriginAccessIdentity(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestxml_deserializeOpHttpBindingsGetCloudFrontOriginAccessIdentityOutput(v *GetCloudFrontOriginAccessIdentityOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + if headerValues := response.Header.Values("ETag"); len(headerValues) != 0 { + headerValues[0] = strings.TrimSpace(headerValues[0]) + v.ETag = ptr.String(headerValues[0]) + } + + return nil +} +func awsRestxml_deserializeOpDocumentGetCloudFrontOriginAccessIdentityOutput(v **GetCloudFrontOriginAccessIdentityOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *GetCloudFrontOriginAccessIdentityOutput + if *v == nil { + sv = &GetCloudFrontOriginAccessIdentityOutput{} + } 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("CloudFrontOriginAccessIdentity", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentity(&sv.CloudFrontOriginAccessIdentity, 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 +} + +type awsRestxml_deserializeOpGetCloudFrontOriginAccessIdentityConfig struct { +} + +func (*awsRestxml_deserializeOpGetCloudFrontOriginAccessIdentityConfig) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_deserializeOpGetCloudFrontOriginAccessIdentityConfig) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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, awsRestxml_deserializeOpErrorGetCloudFrontOriginAccessIdentityConfig(response, &metadata) + } + output := &GetCloudFrontOriginAccessIdentityConfigOutput{} + out.Result = output + + err = awsRestxml_deserializeOpHttpBindingsGetCloudFrontOriginAccessIdentityConfigOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -10443,14 +11252,14 @@ func awsRestxml_deserializeOpDocumentGetStreamingDistributionConfigOutput(v **Ge return nil } -type awsRestxml_deserializeOpListCachePolicies struct { +type awsRestxml_deserializeOpGetVpcOrigin struct { } -func (*awsRestxml_deserializeOpListCachePolicies) ID() string { +func (*awsRestxml_deserializeOpGetVpcOrigin) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListCachePolicies) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpGetVpcOrigin) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -10468,11 +11277,16 @@ func (m *awsRestxml_deserializeOpListCachePolicies) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListCachePolicies(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorGetVpcOrigin(response, &metadata) } - output := &ListCachePoliciesOutput{} + output := &GetVpcOriginOutput{} out.Result = output + err = awsRestxml_deserializeOpHttpBindingsGetVpcOriginOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(response.Body, ringBuffer) @@ -10491,7 +11305,7 @@ func (m *awsRestxml_deserializeOpListCachePolicies) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentCachePolicyList(&output.CachePolicyList, decoder) + err = awsRestxml_deserializeDocumentVpcOrigin(&output.VpcOrigin, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10505,7 +11319,7 @@ func (m *awsRestxml_deserializeOpListCachePolicies) HandleDeserialize(ctx contex return out, metadata, err } -func awsRestxml_deserializeOpErrorListCachePolicies(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorGetVpcOrigin(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -10533,11 +11347,14 @@ func awsRestxml_deserializeOpErrorListCachePolicies(response *smithyhttp.Respons case strings.EqualFold("AccessDenied", errorCode): return awsRestxml_deserializeErrorAccessDenied(response, errorBody) + case strings.EqualFold("EntityNotFound", errorCode): + return awsRestxml_deserializeErrorEntityNotFound(response, errorBody) + case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) - case strings.EqualFold("NoSuchCachePolicy", errorCode): - return awsRestxml_deserializeErrorNoSuchCachePolicy(response, errorBody) + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsRestxml_deserializeErrorUnsupportedOperation(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -10549,13 +11366,25 @@ func awsRestxml_deserializeOpErrorListCachePolicies(response *smithyhttp.Respons } } -func awsRestxml_deserializeOpDocumentListCachePoliciesOutput(v **ListCachePoliciesOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpHttpBindingsGetVpcOriginOutput(v *GetVpcOriginOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + if headerValues := response.Header.Values("ETag"); len(headerValues) != 0 { + headerValues[0] = strings.TrimSpace(headerValues[0]) + v.ETag = ptr.String(headerValues[0]) + } + + return nil +} +func awsRestxml_deserializeOpDocumentGetVpcOriginOutput(v **GetVpcOriginOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListCachePoliciesOutput + var sv *GetVpcOriginOutput if *v == nil { - sv = &ListCachePoliciesOutput{} + sv = &GetVpcOriginOutput{} } else { sv = *v } @@ -10571,9 +11400,9 @@ func awsRestxml_deserializeOpDocumentListCachePoliciesOutput(v **ListCachePolici originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("CachePolicyList", t.Name.Local): + case strings.EqualFold("VpcOrigin", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentCachePolicyList(&sv.CachePolicyList, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentVpcOrigin(&sv.VpcOrigin, nodeDecoder); err != nil { return err } @@ -10591,14 +11420,14 @@ func awsRestxml_deserializeOpDocumentListCachePoliciesOutput(v **ListCachePolici return nil } -type awsRestxml_deserializeOpListCloudFrontOriginAccessIdentities struct { +type awsRestxml_deserializeOpListAnycastIpLists struct { } -func (*awsRestxml_deserializeOpListCloudFrontOriginAccessIdentities) ID() string { +func (*awsRestxml_deserializeOpListAnycastIpLists) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListCloudFrontOriginAccessIdentities) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListAnycastIpLists) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -10616,9 +11445,9 @@ func (m *awsRestxml_deserializeOpListCloudFrontOriginAccessIdentities) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListCloudFrontOriginAccessIdentities(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListAnycastIpLists(response, &metadata) } - output := &ListCloudFrontOriginAccessIdentitiesOutput{} + output := &ListAnycastIpListsOutput{} out.Result = output var buff [1024]byte @@ -10639,7 +11468,7 @@ func (m *awsRestxml_deserializeOpListCloudFrontOriginAccessIdentities) HandleDes } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentityList(&output.CloudFrontOriginAccessIdentityList, decoder) + err = awsRestxml_deserializeDocumentAnycastIpListCollection(&output.AnycastIpLists, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10653,7 +11482,7 @@ func (m *awsRestxml_deserializeOpListCloudFrontOriginAccessIdentities) HandleDes return out, metadata, err } -func awsRestxml_deserializeOpErrorListCloudFrontOriginAccessIdentities(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListAnycastIpLists(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -10678,9 +11507,18 @@ func awsRestxml_deserializeOpErrorListCloudFrontOriginAccessIdentities(response } errorBody.Seek(0, io.SeekStart) switch { + case strings.EqualFold("AccessDenied", errorCode): + return awsRestxml_deserializeErrorAccessDenied(response, errorBody) + + case strings.EqualFold("EntityNotFound", errorCode): + return awsRestxml_deserializeErrorEntityNotFound(response, errorBody) + case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsRestxml_deserializeErrorUnsupportedOperation(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -10691,13 +11529,13 @@ func awsRestxml_deserializeOpErrorListCloudFrontOriginAccessIdentities(response } } -func awsRestxml_deserializeOpDocumentListCloudFrontOriginAccessIdentitiesOutput(v **ListCloudFrontOriginAccessIdentitiesOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListAnycastIpListsOutput(v **ListAnycastIpListsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListCloudFrontOriginAccessIdentitiesOutput + var sv *ListAnycastIpListsOutput if *v == nil { - sv = &ListCloudFrontOriginAccessIdentitiesOutput{} + sv = &ListAnycastIpListsOutput{} } else { sv = *v } @@ -10713,9 +11551,9 @@ func awsRestxml_deserializeOpDocumentListCloudFrontOriginAccessIdentitiesOutput( originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("CloudFrontOriginAccessIdentityList", t.Name.Local): + case strings.EqualFold("AnycastIpListCollection", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentityList(&sv.CloudFrontOriginAccessIdentityList, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentAnycastIpListCollection(&sv.AnycastIpLists, nodeDecoder); err != nil { return err } @@ -10733,14 +11571,14 @@ func awsRestxml_deserializeOpDocumentListCloudFrontOriginAccessIdentitiesOutput( return nil } -type awsRestxml_deserializeOpListConflictingAliases struct { +type awsRestxml_deserializeOpListCachePolicies struct { } -func (*awsRestxml_deserializeOpListConflictingAliases) ID() string { +func (*awsRestxml_deserializeOpListCachePolicies) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListConflictingAliases) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListCachePolicies) HandleDeserialize(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 +11596,9 @@ func (m *awsRestxml_deserializeOpListConflictingAliases) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListConflictingAliases(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListCachePolicies(response, &metadata) } - output := &ListConflictingAliasesOutput{} + output := &ListCachePoliciesOutput{} out.Result = output var buff [1024]byte @@ -10781,7 +11619,7 @@ func (m *awsRestxml_deserializeOpListConflictingAliases) HandleDeserialize(ctx c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentConflictingAliasesList(&output.ConflictingAliasesList, decoder) + err = awsRestxml_deserializeDocumentCachePolicyList(&output.CachePolicyList, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10795,7 +11633,7 @@ func (m *awsRestxml_deserializeOpListConflictingAliases) HandleDeserialize(ctx c return out, metadata, err } -func awsRestxml_deserializeOpErrorListConflictingAliases(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListCachePolicies(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -10820,11 +11658,14 @@ func awsRestxml_deserializeOpErrorListConflictingAliases(response *smithyhttp.Re } errorBody.Seek(0, io.SeekStart) switch { + case strings.EqualFold("AccessDenied", errorCode): + return awsRestxml_deserializeErrorAccessDenied(response, errorBody) + case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) - case strings.EqualFold("NoSuchDistribution", errorCode): - return awsRestxml_deserializeErrorNoSuchDistribution(response, errorBody) + case strings.EqualFold("NoSuchCachePolicy", errorCode): + return awsRestxml_deserializeErrorNoSuchCachePolicy(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -10836,13 +11677,13 @@ func awsRestxml_deserializeOpErrorListConflictingAliases(response *smithyhttp.Re } } -func awsRestxml_deserializeOpDocumentListConflictingAliasesOutput(v **ListConflictingAliasesOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListCachePoliciesOutput(v **ListCachePoliciesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListConflictingAliasesOutput + var sv *ListCachePoliciesOutput if *v == nil { - sv = &ListConflictingAliasesOutput{} + sv = &ListCachePoliciesOutput{} } else { sv = *v } @@ -10858,9 +11699,9 @@ func awsRestxml_deserializeOpDocumentListConflictingAliasesOutput(v **ListConfli originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("ConflictingAliasesList", t.Name.Local): + case strings.EqualFold("CachePolicyList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentConflictingAliasesList(&sv.ConflictingAliasesList, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentCachePolicyList(&sv.CachePolicyList, nodeDecoder); err != nil { return err } @@ -10878,14 +11719,14 @@ func awsRestxml_deserializeOpDocumentListConflictingAliasesOutput(v **ListConfli return nil } -type awsRestxml_deserializeOpListContinuousDeploymentPolicies struct { +type awsRestxml_deserializeOpListCloudFrontOriginAccessIdentities struct { } -func (*awsRestxml_deserializeOpListContinuousDeploymentPolicies) ID() string { +func (*awsRestxml_deserializeOpListCloudFrontOriginAccessIdentities) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListContinuousDeploymentPolicies) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListCloudFrontOriginAccessIdentities) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -10903,9 +11744,9 @@ func (m *awsRestxml_deserializeOpListContinuousDeploymentPolicies) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListContinuousDeploymentPolicies(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListCloudFrontOriginAccessIdentities(response, &metadata) } - output := &ListContinuousDeploymentPoliciesOutput{} + output := &ListCloudFrontOriginAccessIdentitiesOutput{} out.Result = output var buff [1024]byte @@ -10926,7 +11767,7 @@ func (m *awsRestxml_deserializeOpListContinuousDeploymentPolicies) HandleDeseria } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentContinuousDeploymentPolicyList(&output.ContinuousDeploymentPolicyList, decoder) + err = awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentityList(&output.CloudFrontOriginAccessIdentityList, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10940,7 +11781,7 @@ func (m *awsRestxml_deserializeOpListContinuousDeploymentPolicies) HandleDeseria return out, metadata, err } -func awsRestxml_deserializeOpErrorListContinuousDeploymentPolicies(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListCloudFrontOriginAccessIdentities(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -10965,15 +11806,9 @@ func awsRestxml_deserializeOpErrorListContinuousDeploymentPolicies(response *smi } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("AccessDenied", errorCode): - return awsRestxml_deserializeErrorAccessDenied(response, errorBody) - case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) - case strings.EqualFold("NoSuchContinuousDeploymentPolicy", errorCode): - return awsRestxml_deserializeErrorNoSuchContinuousDeploymentPolicy(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -10984,13 +11819,13 @@ func awsRestxml_deserializeOpErrorListContinuousDeploymentPolicies(response *smi } } -func awsRestxml_deserializeOpDocumentListContinuousDeploymentPoliciesOutput(v **ListContinuousDeploymentPoliciesOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListCloudFrontOriginAccessIdentitiesOutput(v **ListCloudFrontOriginAccessIdentitiesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListContinuousDeploymentPoliciesOutput + var sv *ListCloudFrontOriginAccessIdentitiesOutput if *v == nil { - sv = &ListContinuousDeploymentPoliciesOutput{} + sv = &ListCloudFrontOriginAccessIdentitiesOutput{} } else { sv = *v } @@ -11006,9 +11841,9 @@ func awsRestxml_deserializeOpDocumentListContinuousDeploymentPoliciesOutput(v ** originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("ContinuousDeploymentPolicyList", t.Name.Local): + case strings.EqualFold("CloudFrontOriginAccessIdentityList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentContinuousDeploymentPolicyList(&sv.ContinuousDeploymentPolicyList, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentityList(&sv.CloudFrontOriginAccessIdentityList, nodeDecoder); err != nil { return err } @@ -11026,14 +11861,14 @@ func awsRestxml_deserializeOpDocumentListContinuousDeploymentPoliciesOutput(v ** return nil } -type awsRestxml_deserializeOpListDistributions struct { +type awsRestxml_deserializeOpListConflictingAliases struct { } -func (*awsRestxml_deserializeOpListDistributions) ID() string { +func (*awsRestxml_deserializeOpListConflictingAliases) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListDistributions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListConflictingAliases) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -11051,9 +11886,9 @@ func (m *awsRestxml_deserializeOpListDistributions) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListDistributions(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListConflictingAliases(response, &metadata) } - output := &ListDistributionsOutput{} + output := &ListConflictingAliasesOutput{} out.Result = output var buff [1024]byte @@ -11074,7 +11909,7 @@ func (m *awsRestxml_deserializeOpListDistributions) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentDistributionList(&output.DistributionList, decoder) + err = awsRestxml_deserializeDocumentConflictingAliasesList(&output.ConflictingAliasesList, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11088,7 +11923,7 @@ func (m *awsRestxml_deserializeOpListDistributions) HandleDeserialize(ctx contex return out, metadata, err } -func awsRestxml_deserializeOpErrorListDistributions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListConflictingAliases(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -11116,6 +11951,9 @@ func awsRestxml_deserializeOpErrorListDistributions(response *smithyhttp.Respons case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) + case strings.EqualFold("NoSuchDistribution", errorCode): + return awsRestxml_deserializeErrorNoSuchDistribution(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -11126,13 +11964,13 @@ func awsRestxml_deserializeOpErrorListDistributions(response *smithyhttp.Respons } } -func awsRestxml_deserializeOpDocumentListDistributionsOutput(v **ListDistributionsOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListConflictingAliasesOutput(v **ListConflictingAliasesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListDistributionsOutput + var sv *ListConflictingAliasesOutput if *v == nil { - sv = &ListDistributionsOutput{} + sv = &ListConflictingAliasesOutput{} } else { sv = *v } @@ -11148,9 +11986,9 @@ func awsRestxml_deserializeOpDocumentListDistributionsOutput(v **ListDistributio originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("DistributionList", t.Name.Local): + case strings.EqualFold("ConflictingAliasesList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentDistributionList(&sv.DistributionList, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentConflictingAliasesList(&sv.ConflictingAliasesList, nodeDecoder); err != nil { return err } @@ -11168,14 +12006,14 @@ func awsRestxml_deserializeOpDocumentListDistributionsOutput(v **ListDistributio return nil } -type awsRestxml_deserializeOpListDistributionsByCachePolicyId struct { +type awsRestxml_deserializeOpListContinuousDeploymentPolicies struct { } -func (*awsRestxml_deserializeOpListDistributionsByCachePolicyId) ID() string { +func (*awsRestxml_deserializeOpListContinuousDeploymentPolicies) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListDistributionsByCachePolicyId) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListContinuousDeploymentPolicies) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -11193,9 +12031,9 @@ func (m *awsRestxml_deserializeOpListDistributionsByCachePolicyId) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListDistributionsByCachePolicyId(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListContinuousDeploymentPolicies(response, &metadata) } - output := &ListDistributionsByCachePolicyIdOutput{} + output := &ListContinuousDeploymentPoliciesOutput{} out.Result = output var buff [1024]byte @@ -11216,7 +12054,7 @@ func (m *awsRestxml_deserializeOpListDistributionsByCachePolicyId) HandleDeseria } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentDistributionIdList(&output.DistributionIdList, decoder) + err = awsRestxml_deserializeDocumentContinuousDeploymentPolicyList(&output.ContinuousDeploymentPolicyList, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11230,7 +12068,7 @@ func (m *awsRestxml_deserializeOpListDistributionsByCachePolicyId) HandleDeseria return out, metadata, err } -func awsRestxml_deserializeOpErrorListDistributionsByCachePolicyId(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListContinuousDeploymentPolicies(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -11261,8 +12099,8 @@ func awsRestxml_deserializeOpErrorListDistributionsByCachePolicyId(response *smi case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) - case strings.EqualFold("NoSuchCachePolicy", errorCode): - return awsRestxml_deserializeErrorNoSuchCachePolicy(response, errorBody) + case strings.EqualFold("NoSuchContinuousDeploymentPolicy", errorCode): + return awsRestxml_deserializeErrorNoSuchContinuousDeploymentPolicy(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -11274,13 +12112,13 @@ func awsRestxml_deserializeOpErrorListDistributionsByCachePolicyId(response *smi } } -func awsRestxml_deserializeOpDocumentListDistributionsByCachePolicyIdOutput(v **ListDistributionsByCachePolicyIdOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListContinuousDeploymentPoliciesOutput(v **ListContinuousDeploymentPoliciesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListDistributionsByCachePolicyIdOutput + var sv *ListContinuousDeploymentPoliciesOutput if *v == nil { - sv = &ListDistributionsByCachePolicyIdOutput{} + sv = &ListContinuousDeploymentPoliciesOutput{} } else { sv = *v } @@ -11296,9 +12134,9 @@ func awsRestxml_deserializeOpDocumentListDistributionsByCachePolicyIdOutput(v ** originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("DistributionIdList", t.Name.Local): + case strings.EqualFold("ContinuousDeploymentPolicyList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentDistributionIdList(&sv.DistributionIdList, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentContinuousDeploymentPolicyList(&sv.ContinuousDeploymentPolicyList, nodeDecoder); err != nil { return err } @@ -11316,14 +12154,14 @@ func awsRestxml_deserializeOpDocumentListDistributionsByCachePolicyIdOutput(v ** return nil } -type awsRestxml_deserializeOpListDistributionsByKeyGroup struct { +type awsRestxml_deserializeOpListDistributions struct { } -func (*awsRestxml_deserializeOpListDistributionsByKeyGroup) ID() string { +func (*awsRestxml_deserializeOpListDistributions) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListDistributionsByKeyGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListDistributions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -11341,9 +12179,9 @@ func (m *awsRestxml_deserializeOpListDistributionsByKeyGroup) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListDistributionsByKeyGroup(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListDistributions(response, &metadata) } - output := &ListDistributionsByKeyGroupOutput{} + output := &ListDistributionsOutput{} out.Result = output var buff [1024]byte @@ -11364,7 +12202,7 @@ func (m *awsRestxml_deserializeOpListDistributionsByKeyGroup) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentDistributionIdList(&output.DistributionIdList, decoder) + err = awsRestxml_deserializeDocumentDistributionList(&output.DistributionList, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11378,7 +12216,7 @@ func (m *awsRestxml_deserializeOpListDistributionsByKeyGroup) HandleDeserialize( return out, metadata, err } -func awsRestxml_deserializeOpErrorListDistributionsByKeyGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListDistributions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -11406,8 +12244,156 @@ func awsRestxml_deserializeOpErrorListDistributionsByKeyGroup(response *smithyht case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) - case strings.EqualFold("NoSuchResource", errorCode): - return awsRestxml_deserializeErrorNoSuchResource(response, errorBody) + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestxml_deserializeOpDocumentListDistributionsOutput(v **ListDistributionsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ListDistributionsOutput + if *v == nil { + sv = &ListDistributionsOutput{} + } 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("DistributionList", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentDistributionList(&sv.DistributionList, 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 +} + +type awsRestxml_deserializeOpListDistributionsByAnycastIpListId struct { +} + +func (*awsRestxml_deserializeOpListDistributionsByAnycastIpListId) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_deserializeOpListDistributionsByAnycastIpListId) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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, awsRestxml_deserializeOpErrorListDistributionsByAnycastIpListId(response, &metadata) + } + output := &ListDistributionsByAnycastIpListIdOutput{} + 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 = awsRestxml_deserializeDocumentDistributionList(&output.DistributionList, decoder) + 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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorListDistributionsByAnycastIpListId(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("AccessDenied", errorCode): + return awsRestxml_deserializeErrorAccessDenied(response, errorBody) + + case strings.EqualFold("EntityNotFound", errorCode): + return awsRestxml_deserializeErrorEntityNotFound(response, errorBody) + + case strings.EqualFold("InvalidArgument", errorCode): + return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsRestxml_deserializeErrorUnsupportedOperation(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -11419,13 +12405,13 @@ func awsRestxml_deserializeOpErrorListDistributionsByKeyGroup(response *smithyht } } -func awsRestxml_deserializeOpDocumentListDistributionsByKeyGroupOutput(v **ListDistributionsByKeyGroupOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListDistributionsByAnycastIpListIdOutput(v **ListDistributionsByAnycastIpListIdOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListDistributionsByKeyGroupOutput + var sv *ListDistributionsByAnycastIpListIdOutput if *v == nil { - sv = &ListDistributionsByKeyGroupOutput{} + sv = &ListDistributionsByAnycastIpListIdOutput{} } else { sv = *v } @@ -11441,9 +12427,9 @@ func awsRestxml_deserializeOpDocumentListDistributionsByKeyGroupOutput(v **ListD originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("DistributionIdList", t.Name.Local): + case strings.EqualFold("DistributionList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentDistributionIdList(&sv.DistributionIdList, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentDistributionList(&sv.DistributionList, nodeDecoder); err != nil { return err } @@ -11461,14 +12447,14 @@ func awsRestxml_deserializeOpDocumentListDistributionsByKeyGroupOutput(v **ListD return nil } -type awsRestxml_deserializeOpListDistributionsByOriginRequestPolicyId struct { +type awsRestxml_deserializeOpListDistributionsByCachePolicyId struct { } -func (*awsRestxml_deserializeOpListDistributionsByOriginRequestPolicyId) ID() string { +func (*awsRestxml_deserializeOpListDistributionsByCachePolicyId) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListDistributionsByOriginRequestPolicyId) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListDistributionsByCachePolicyId) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -11486,9 +12472,9 @@ func (m *awsRestxml_deserializeOpListDistributionsByOriginRequestPolicyId) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListDistributionsByOriginRequestPolicyId(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListDistributionsByCachePolicyId(response, &metadata) } - output := &ListDistributionsByOriginRequestPolicyIdOutput{} + output := &ListDistributionsByCachePolicyIdOutput{} out.Result = output var buff [1024]byte @@ -11523,7 +12509,7 @@ func (m *awsRestxml_deserializeOpListDistributionsByOriginRequestPolicyId) Handl return out, metadata, err } -func awsRestxml_deserializeOpErrorListDistributionsByOriginRequestPolicyId(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListDistributionsByCachePolicyId(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -11554,8 +12540,8 @@ func awsRestxml_deserializeOpErrorListDistributionsByOriginRequestPolicyId(respo case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) - case strings.EqualFold("NoSuchOriginRequestPolicy", errorCode): - return awsRestxml_deserializeErrorNoSuchOriginRequestPolicy(response, errorBody) + case strings.EqualFold("NoSuchCachePolicy", errorCode): + return awsRestxml_deserializeErrorNoSuchCachePolicy(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -11567,13 +12553,13 @@ func awsRestxml_deserializeOpErrorListDistributionsByOriginRequestPolicyId(respo } } -func awsRestxml_deserializeOpDocumentListDistributionsByOriginRequestPolicyIdOutput(v **ListDistributionsByOriginRequestPolicyIdOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListDistributionsByCachePolicyIdOutput(v **ListDistributionsByCachePolicyIdOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListDistributionsByOriginRequestPolicyIdOutput + var sv *ListDistributionsByCachePolicyIdOutput if *v == nil { - sv = &ListDistributionsByOriginRequestPolicyIdOutput{} + sv = &ListDistributionsByCachePolicyIdOutput{} } else { sv = *v } @@ -11609,14 +12595,14 @@ func awsRestxml_deserializeOpDocumentListDistributionsByOriginRequestPolicyIdOut return nil } -type awsRestxml_deserializeOpListDistributionsByRealtimeLogConfig struct { +type awsRestxml_deserializeOpListDistributionsByKeyGroup struct { } -func (*awsRestxml_deserializeOpListDistributionsByRealtimeLogConfig) ID() string { +func (*awsRestxml_deserializeOpListDistributionsByKeyGroup) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListDistributionsByRealtimeLogConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListDistributionsByKeyGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -11634,9 +12620,9 @@ func (m *awsRestxml_deserializeOpListDistributionsByRealtimeLogConfig) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListDistributionsByRealtimeLogConfig(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListDistributionsByKeyGroup(response, &metadata) } - output := &ListDistributionsByRealtimeLogConfigOutput{} + output := &ListDistributionsByKeyGroupOutput{} out.Result = output var buff [1024]byte @@ -11657,7 +12643,7 @@ func (m *awsRestxml_deserializeOpListDistributionsByRealtimeLogConfig) HandleDes } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentDistributionList(&output.DistributionList, decoder) + err = awsRestxml_deserializeDocumentDistributionIdList(&output.DistributionIdList, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11671,7 +12657,7 @@ func (m *awsRestxml_deserializeOpListDistributionsByRealtimeLogConfig) HandleDes return out, metadata, err } -func awsRestxml_deserializeOpErrorListDistributionsByRealtimeLogConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListDistributionsByKeyGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -11699,6 +12685,9 @@ func awsRestxml_deserializeOpErrorListDistributionsByRealtimeLogConfig(response case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) + case strings.EqualFold("NoSuchResource", errorCode): + return awsRestxml_deserializeErrorNoSuchResource(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -11709,13 +12698,13 @@ func awsRestxml_deserializeOpErrorListDistributionsByRealtimeLogConfig(response } } -func awsRestxml_deserializeOpDocumentListDistributionsByRealtimeLogConfigOutput(v **ListDistributionsByRealtimeLogConfigOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListDistributionsByKeyGroupOutput(v **ListDistributionsByKeyGroupOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListDistributionsByRealtimeLogConfigOutput + var sv *ListDistributionsByKeyGroupOutput if *v == nil { - sv = &ListDistributionsByRealtimeLogConfigOutput{} + sv = &ListDistributionsByKeyGroupOutput{} } else { sv = *v } @@ -11731,9 +12720,9 @@ func awsRestxml_deserializeOpDocumentListDistributionsByRealtimeLogConfigOutput( originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("DistributionList", t.Name.Local): + case strings.EqualFold("DistributionIdList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentDistributionList(&sv.DistributionList, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentDistributionIdList(&sv.DistributionIdList, nodeDecoder); err != nil { return err } @@ -11751,14 +12740,14 @@ func awsRestxml_deserializeOpDocumentListDistributionsByRealtimeLogConfigOutput( return nil } -type awsRestxml_deserializeOpListDistributionsByResponseHeadersPolicyId struct { +type awsRestxml_deserializeOpListDistributionsByOriginRequestPolicyId struct { } -func (*awsRestxml_deserializeOpListDistributionsByResponseHeadersPolicyId) ID() string { +func (*awsRestxml_deserializeOpListDistributionsByOriginRequestPolicyId) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListDistributionsByResponseHeadersPolicyId) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListDistributionsByOriginRequestPolicyId) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -11776,9 +12765,9 @@ func (m *awsRestxml_deserializeOpListDistributionsByResponseHeadersPolicyId) Han } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListDistributionsByResponseHeadersPolicyId(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListDistributionsByOriginRequestPolicyId(response, &metadata) } - output := &ListDistributionsByResponseHeadersPolicyIdOutput{} + output := &ListDistributionsByOriginRequestPolicyIdOutput{} out.Result = output var buff [1024]byte @@ -11813,7 +12802,7 @@ func (m *awsRestxml_deserializeOpListDistributionsByResponseHeadersPolicyId) Han return out, metadata, err } -func awsRestxml_deserializeOpErrorListDistributionsByResponseHeadersPolicyId(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListDistributionsByOriginRequestPolicyId(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -11844,8 +12833,8 @@ func awsRestxml_deserializeOpErrorListDistributionsByResponseHeadersPolicyId(res case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) - case strings.EqualFold("NoSuchResponseHeadersPolicy", errorCode): - return awsRestxml_deserializeErrorNoSuchResponseHeadersPolicy(response, errorBody) + case strings.EqualFold("NoSuchOriginRequestPolicy", errorCode): + return awsRestxml_deserializeErrorNoSuchOriginRequestPolicy(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -11857,13 +12846,13 @@ func awsRestxml_deserializeOpErrorListDistributionsByResponseHeadersPolicyId(res } } -func awsRestxml_deserializeOpDocumentListDistributionsByResponseHeadersPolicyIdOutput(v **ListDistributionsByResponseHeadersPolicyIdOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListDistributionsByOriginRequestPolicyIdOutput(v **ListDistributionsByOriginRequestPolicyIdOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListDistributionsByResponseHeadersPolicyIdOutput + var sv *ListDistributionsByOriginRequestPolicyIdOutput if *v == nil { - sv = &ListDistributionsByResponseHeadersPolicyIdOutput{} + sv = &ListDistributionsByOriginRequestPolicyIdOutput{} } else { sv = *v } @@ -11899,14 +12888,14 @@ func awsRestxml_deserializeOpDocumentListDistributionsByResponseHeadersPolicyIdO return nil } -type awsRestxml_deserializeOpListDistributionsByWebACLId struct { +type awsRestxml_deserializeOpListDistributionsByRealtimeLogConfig struct { } -func (*awsRestxml_deserializeOpListDistributionsByWebACLId) ID() string { +func (*awsRestxml_deserializeOpListDistributionsByRealtimeLogConfig) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListDistributionsByWebACLId) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListDistributionsByRealtimeLogConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -11924,9 +12913,9 @@ func (m *awsRestxml_deserializeOpListDistributionsByWebACLId) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListDistributionsByWebACLId(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListDistributionsByRealtimeLogConfig(response, &metadata) } - output := &ListDistributionsByWebACLIdOutput{} + output := &ListDistributionsByRealtimeLogConfigOutput{} out.Result = output var buff [1024]byte @@ -11961,7 +12950,7 @@ func (m *awsRestxml_deserializeOpListDistributionsByWebACLId) HandleDeserialize( return out, metadata, err } -func awsRestxml_deserializeOpErrorListDistributionsByWebACLId(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListDistributionsByRealtimeLogConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -11989,9 +12978,6 @@ func awsRestxml_deserializeOpErrorListDistributionsByWebACLId(response *smithyht case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) - case strings.EqualFold("InvalidWebACLId", errorCode): - return awsRestxml_deserializeErrorInvalidWebACLId(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -12002,13 +12988,13 @@ func awsRestxml_deserializeOpErrorListDistributionsByWebACLId(response *smithyht } } -func awsRestxml_deserializeOpDocumentListDistributionsByWebACLIdOutput(v **ListDistributionsByWebACLIdOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListDistributionsByRealtimeLogConfigOutput(v **ListDistributionsByRealtimeLogConfigOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListDistributionsByWebACLIdOutput + var sv *ListDistributionsByRealtimeLogConfigOutput if *v == nil { - sv = &ListDistributionsByWebACLIdOutput{} + sv = &ListDistributionsByRealtimeLogConfigOutput{} } else { sv = *v } @@ -12044,14 +13030,14 @@ func awsRestxml_deserializeOpDocumentListDistributionsByWebACLIdOutput(v **ListD return nil } -type awsRestxml_deserializeOpListFieldLevelEncryptionConfigs struct { +type awsRestxml_deserializeOpListDistributionsByResponseHeadersPolicyId struct { } -func (*awsRestxml_deserializeOpListFieldLevelEncryptionConfigs) ID() string { +func (*awsRestxml_deserializeOpListDistributionsByResponseHeadersPolicyId) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListFieldLevelEncryptionConfigs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListDistributionsByResponseHeadersPolicyId) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -12069,9 +13055,9 @@ func (m *awsRestxml_deserializeOpListFieldLevelEncryptionConfigs) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListFieldLevelEncryptionConfigs(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListDistributionsByResponseHeadersPolicyId(response, &metadata) } - output := &ListFieldLevelEncryptionConfigsOutput{} + output := &ListDistributionsByResponseHeadersPolicyIdOutput{} out.Result = output var buff [1024]byte @@ -12092,7 +13078,7 @@ func (m *awsRestxml_deserializeOpListFieldLevelEncryptionConfigs) HandleDeserial } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentFieldLevelEncryptionList(&output.FieldLevelEncryptionList, decoder) + err = awsRestxml_deserializeDocumentDistributionIdList(&output.DistributionIdList, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12106,7 +13092,7 @@ func (m *awsRestxml_deserializeOpListFieldLevelEncryptionConfigs) HandleDeserial return out, metadata, err } -func awsRestxml_deserializeOpErrorListFieldLevelEncryptionConfigs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListDistributionsByResponseHeadersPolicyId(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -12131,9 +13117,15 @@ func awsRestxml_deserializeOpErrorListFieldLevelEncryptionConfigs(response *smit } errorBody.Seek(0, io.SeekStart) switch { + case strings.EqualFold("AccessDenied", errorCode): + return awsRestxml_deserializeErrorAccessDenied(response, errorBody) + case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) + case strings.EqualFold("NoSuchResponseHeadersPolicy", errorCode): + return awsRestxml_deserializeErrorNoSuchResponseHeadersPolicy(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -12144,13 +13136,13 @@ func awsRestxml_deserializeOpErrorListFieldLevelEncryptionConfigs(response *smit } } -func awsRestxml_deserializeOpDocumentListFieldLevelEncryptionConfigsOutput(v **ListFieldLevelEncryptionConfigsOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListDistributionsByResponseHeadersPolicyIdOutput(v **ListDistributionsByResponseHeadersPolicyIdOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListFieldLevelEncryptionConfigsOutput + var sv *ListDistributionsByResponseHeadersPolicyIdOutput if *v == nil { - sv = &ListFieldLevelEncryptionConfigsOutput{} + sv = &ListDistributionsByResponseHeadersPolicyIdOutput{} } else { sv = *v } @@ -12166,9 +13158,9 @@ func awsRestxml_deserializeOpDocumentListFieldLevelEncryptionConfigsOutput(v **L originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("FieldLevelEncryptionList", t.Name.Local): + case strings.EqualFold("DistributionIdList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentFieldLevelEncryptionList(&sv.FieldLevelEncryptionList, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentDistributionIdList(&sv.DistributionIdList, nodeDecoder); err != nil { return err } @@ -12186,14 +13178,14 @@ func awsRestxml_deserializeOpDocumentListFieldLevelEncryptionConfigsOutput(v **L return nil } -type awsRestxml_deserializeOpListFieldLevelEncryptionProfiles struct { +type awsRestxml_deserializeOpListDistributionsByVpcOriginId struct { } -func (*awsRestxml_deserializeOpListFieldLevelEncryptionProfiles) ID() string { +func (*awsRestxml_deserializeOpListDistributionsByVpcOriginId) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListFieldLevelEncryptionProfiles) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListDistributionsByVpcOriginId) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -12211,9 +13203,9 @@ func (m *awsRestxml_deserializeOpListFieldLevelEncryptionProfiles) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListFieldLevelEncryptionProfiles(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListDistributionsByVpcOriginId(response, &metadata) } - output := &ListFieldLevelEncryptionProfilesOutput{} + output := &ListDistributionsByVpcOriginIdOutput{} out.Result = output var buff [1024]byte @@ -12234,7 +13226,7 @@ func (m *awsRestxml_deserializeOpListFieldLevelEncryptionProfiles) HandleDeseria } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentFieldLevelEncryptionProfileList(&output.FieldLevelEncryptionProfileList, decoder) + err = awsRestxml_deserializeDocumentDistributionIdList(&output.DistributionIdList, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12248,7 +13240,7 @@ func (m *awsRestxml_deserializeOpListFieldLevelEncryptionProfiles) HandleDeseria return out, metadata, err } -func awsRestxml_deserializeOpErrorListFieldLevelEncryptionProfiles(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListDistributionsByVpcOriginId(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -12273,9 +13265,18 @@ func awsRestxml_deserializeOpErrorListFieldLevelEncryptionProfiles(response *smi } errorBody.Seek(0, io.SeekStart) switch { + case strings.EqualFold("AccessDenied", errorCode): + return awsRestxml_deserializeErrorAccessDenied(response, errorBody) + + case strings.EqualFold("EntityNotFound", errorCode): + return awsRestxml_deserializeErrorEntityNotFound(response, errorBody) + case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsRestxml_deserializeErrorUnsupportedOperation(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -12286,13 +13287,13 @@ func awsRestxml_deserializeOpErrorListFieldLevelEncryptionProfiles(response *smi } } -func awsRestxml_deserializeOpDocumentListFieldLevelEncryptionProfilesOutput(v **ListFieldLevelEncryptionProfilesOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListDistributionsByVpcOriginIdOutput(v **ListDistributionsByVpcOriginIdOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListFieldLevelEncryptionProfilesOutput + var sv *ListDistributionsByVpcOriginIdOutput if *v == nil { - sv = &ListFieldLevelEncryptionProfilesOutput{} + sv = &ListDistributionsByVpcOriginIdOutput{} } else { sv = *v } @@ -12308,9 +13309,9 @@ func awsRestxml_deserializeOpDocumentListFieldLevelEncryptionProfilesOutput(v ** originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("FieldLevelEncryptionProfileList", t.Name.Local): + case strings.EqualFold("DistributionIdList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentFieldLevelEncryptionProfileList(&sv.FieldLevelEncryptionProfileList, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentDistributionIdList(&sv.DistributionIdList, nodeDecoder); err != nil { return err } @@ -12328,14 +13329,14 @@ func awsRestxml_deserializeOpDocumentListFieldLevelEncryptionProfilesOutput(v ** return nil } -type awsRestxml_deserializeOpListFunctions struct { +type awsRestxml_deserializeOpListDistributionsByWebACLId struct { } -func (*awsRestxml_deserializeOpListFunctions) ID() string { +func (*awsRestxml_deserializeOpListDistributionsByWebACLId) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListFunctions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListDistributionsByWebACLId) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -12353,9 +13354,9 @@ func (m *awsRestxml_deserializeOpListFunctions) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListFunctions(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListDistributionsByWebACLId(response, &metadata) } - output := &ListFunctionsOutput{} + output := &ListDistributionsByWebACLIdOutput{} out.Result = output var buff [1024]byte @@ -12376,7 +13377,7 @@ func (m *awsRestxml_deserializeOpListFunctions) HandleDeserialize(ctx context.Co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentFunctionList(&output.FunctionList, decoder) + err = awsRestxml_deserializeDocumentDistributionList(&output.DistributionList, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12390,7 +13391,7 @@ func (m *awsRestxml_deserializeOpListFunctions) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsRestxml_deserializeOpErrorListFunctions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListDistributionsByWebACLId(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.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,8 +13419,8 @@ func awsRestxml_deserializeOpErrorListFunctions(response *smithyhttp.Response, m case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) - case strings.EqualFold("UnsupportedOperation", errorCode): - return awsRestxml_deserializeErrorUnsupportedOperation(response, errorBody) + case strings.EqualFold("InvalidWebACLId", errorCode): + return awsRestxml_deserializeErrorInvalidWebACLId(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -12431,13 +13432,13 @@ func awsRestxml_deserializeOpErrorListFunctions(response *smithyhttp.Response, m } } -func awsRestxml_deserializeOpDocumentListFunctionsOutput(v **ListFunctionsOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListDistributionsByWebACLIdOutput(v **ListDistributionsByWebACLIdOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListFunctionsOutput + var sv *ListDistributionsByWebACLIdOutput if *v == nil { - sv = &ListFunctionsOutput{} + sv = &ListDistributionsByWebACLIdOutput{} } else { sv = *v } @@ -12453,9 +13454,9 @@ func awsRestxml_deserializeOpDocumentListFunctionsOutput(v **ListFunctionsOutput originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("FunctionList", t.Name.Local): + case strings.EqualFold("DistributionList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentFunctionList(&sv.FunctionList, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentDistributionList(&sv.DistributionList, nodeDecoder); err != nil { return err } @@ -12473,14 +13474,14 @@ func awsRestxml_deserializeOpDocumentListFunctionsOutput(v **ListFunctionsOutput return nil } -type awsRestxml_deserializeOpListInvalidations struct { +type awsRestxml_deserializeOpListFieldLevelEncryptionConfigs struct { } -func (*awsRestxml_deserializeOpListInvalidations) ID() string { +func (*awsRestxml_deserializeOpListFieldLevelEncryptionConfigs) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListInvalidations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListFieldLevelEncryptionConfigs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -12498,9 +13499,9 @@ func (m *awsRestxml_deserializeOpListInvalidations) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListInvalidations(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListFieldLevelEncryptionConfigs(response, &metadata) } - output := &ListInvalidationsOutput{} + output := &ListFieldLevelEncryptionConfigsOutput{} out.Result = output var buff [1024]byte @@ -12521,7 +13522,7 @@ func (m *awsRestxml_deserializeOpListInvalidations) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentInvalidationList(&output.InvalidationList, decoder) + err = awsRestxml_deserializeDocumentFieldLevelEncryptionList(&output.FieldLevelEncryptionList, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12535,7 +13536,7 @@ func (m *awsRestxml_deserializeOpListInvalidations) HandleDeserialize(ctx contex return out, metadata, err } -func awsRestxml_deserializeOpErrorListInvalidations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListFieldLevelEncryptionConfigs(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -12560,15 +13561,9 @@ func awsRestxml_deserializeOpErrorListInvalidations(response *smithyhttp.Respons } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("AccessDenied", errorCode): - return awsRestxml_deserializeErrorAccessDenied(response, errorBody) - case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) - case strings.EqualFold("NoSuchDistribution", errorCode): - return awsRestxml_deserializeErrorNoSuchDistribution(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -12579,13 +13574,13 @@ func awsRestxml_deserializeOpErrorListInvalidations(response *smithyhttp.Respons } } -func awsRestxml_deserializeOpDocumentListInvalidationsOutput(v **ListInvalidationsOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListFieldLevelEncryptionConfigsOutput(v **ListFieldLevelEncryptionConfigsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListInvalidationsOutput + var sv *ListFieldLevelEncryptionConfigsOutput if *v == nil { - sv = &ListInvalidationsOutput{} + sv = &ListFieldLevelEncryptionConfigsOutput{} } else { sv = *v } @@ -12601,9 +13596,9 @@ func awsRestxml_deserializeOpDocumentListInvalidationsOutput(v **ListInvalidatio originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("InvalidationList", t.Name.Local): + case strings.EqualFold("FieldLevelEncryptionList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentInvalidationList(&sv.InvalidationList, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentFieldLevelEncryptionList(&sv.FieldLevelEncryptionList, nodeDecoder); err != nil { return err } @@ -12621,14 +13616,14 @@ func awsRestxml_deserializeOpDocumentListInvalidationsOutput(v **ListInvalidatio return nil } -type awsRestxml_deserializeOpListKeyGroups struct { +type awsRestxml_deserializeOpListFieldLevelEncryptionProfiles struct { } -func (*awsRestxml_deserializeOpListKeyGroups) ID() string { +func (*awsRestxml_deserializeOpListFieldLevelEncryptionProfiles) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListKeyGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListFieldLevelEncryptionProfiles) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -12646,9 +13641,9 @@ func (m *awsRestxml_deserializeOpListKeyGroups) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListKeyGroups(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListFieldLevelEncryptionProfiles(response, &metadata) } - output := &ListKeyGroupsOutput{} + output := &ListFieldLevelEncryptionProfilesOutput{} out.Result = output var buff [1024]byte @@ -12669,7 +13664,7 @@ func (m *awsRestxml_deserializeOpListKeyGroups) HandleDeserialize(ctx context.Co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentKeyGroupList(&output.KeyGroupList, decoder) + err = awsRestxml_deserializeDocumentFieldLevelEncryptionProfileList(&output.FieldLevelEncryptionProfileList, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12683,7 +13678,7 @@ func (m *awsRestxml_deserializeOpListKeyGroups) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsRestxml_deserializeOpErrorListKeyGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListFieldLevelEncryptionProfiles(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -12721,13 +13716,13 @@ func awsRestxml_deserializeOpErrorListKeyGroups(response *smithyhttp.Response, m } } -func awsRestxml_deserializeOpDocumentListKeyGroupsOutput(v **ListKeyGroupsOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListFieldLevelEncryptionProfilesOutput(v **ListFieldLevelEncryptionProfilesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListKeyGroupsOutput + var sv *ListFieldLevelEncryptionProfilesOutput if *v == nil { - sv = &ListKeyGroupsOutput{} + sv = &ListFieldLevelEncryptionProfilesOutput{} } else { sv = *v } @@ -12743,9 +13738,9 @@ func awsRestxml_deserializeOpDocumentListKeyGroupsOutput(v **ListKeyGroupsOutput originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("KeyGroupList", t.Name.Local): + case strings.EqualFold("FieldLevelEncryptionProfileList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentKeyGroupList(&sv.KeyGroupList, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentFieldLevelEncryptionProfileList(&sv.FieldLevelEncryptionProfileList, nodeDecoder); err != nil { return err } @@ -12763,14 +13758,14 @@ func awsRestxml_deserializeOpDocumentListKeyGroupsOutput(v **ListKeyGroupsOutput return nil } -type awsRestxml_deserializeOpListKeyValueStores struct { +type awsRestxml_deserializeOpListFunctions struct { } -func (*awsRestxml_deserializeOpListKeyValueStores) ID() string { +func (*awsRestxml_deserializeOpListFunctions) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListKeyValueStores) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListFunctions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -12788,9 +13783,9 @@ func (m *awsRestxml_deserializeOpListKeyValueStores) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListKeyValueStores(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListFunctions(response, &metadata) } - output := &ListKeyValueStoresOutput{} + output := &ListFunctionsOutput{} out.Result = output var buff [1024]byte @@ -12811,7 +13806,7 @@ func (m *awsRestxml_deserializeOpListKeyValueStores) HandleDeserialize(ctx conte } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentKeyValueStoreList(&output.KeyValueStoreList, decoder) + err = awsRestxml_deserializeDocumentFunctionList(&output.FunctionList, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12825,7 +13820,7 @@ func (m *awsRestxml_deserializeOpListKeyValueStores) HandleDeserialize(ctx conte return out, metadata, err } -func awsRestxml_deserializeOpErrorListKeyValueStores(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListFunctions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -12850,9 +13845,6 @@ func awsRestxml_deserializeOpErrorListKeyValueStores(response *smithyhttp.Respon } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("AccessDenied", errorCode): - return awsRestxml_deserializeErrorAccessDenied(response, errorBody) - case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) @@ -12869,13 +13861,13 @@ func awsRestxml_deserializeOpErrorListKeyValueStores(response *smithyhttp.Respon } } -func awsRestxml_deserializeOpDocumentListKeyValueStoresOutput(v **ListKeyValueStoresOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListFunctionsOutput(v **ListFunctionsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListKeyValueStoresOutput + var sv *ListFunctionsOutput if *v == nil { - sv = &ListKeyValueStoresOutput{} + sv = &ListFunctionsOutput{} } else { sv = *v } @@ -12891,9 +13883,9 @@ func awsRestxml_deserializeOpDocumentListKeyValueStoresOutput(v **ListKeyValueSt originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("KeyValueStoreList", t.Name.Local): + case strings.EqualFold("FunctionList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentKeyValueStoreList(&sv.KeyValueStoreList, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentFunctionList(&sv.FunctionList, nodeDecoder); err != nil { return err } @@ -12911,14 +13903,14 @@ func awsRestxml_deserializeOpDocumentListKeyValueStoresOutput(v **ListKeyValueSt return nil } -type awsRestxml_deserializeOpListOriginAccessControls struct { +type awsRestxml_deserializeOpListInvalidations struct { } -func (*awsRestxml_deserializeOpListOriginAccessControls) ID() string { +func (*awsRestxml_deserializeOpListInvalidations) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListOriginAccessControls) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListInvalidations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -12936,9 +13928,9 @@ func (m *awsRestxml_deserializeOpListOriginAccessControls) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListOriginAccessControls(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListInvalidations(response, &metadata) } - output := &ListOriginAccessControlsOutput{} + output := &ListInvalidationsOutput{} out.Result = output var buff [1024]byte @@ -12959,7 +13951,7 @@ func (m *awsRestxml_deserializeOpListOriginAccessControls) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentOriginAccessControlList(&output.OriginAccessControlList, decoder) + err = awsRestxml_deserializeDocumentInvalidationList(&output.InvalidationList, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12973,7 +13965,7 @@ func (m *awsRestxml_deserializeOpListOriginAccessControls) HandleDeserialize(ctx return out, metadata, err } -func awsRestxml_deserializeOpErrorListOriginAccessControls(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListInvalidations(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -12998,9 +13990,15 @@ func awsRestxml_deserializeOpErrorListOriginAccessControls(response *smithyhttp. } errorBody.Seek(0, io.SeekStart) switch { + case strings.EqualFold("AccessDenied", errorCode): + return awsRestxml_deserializeErrorAccessDenied(response, errorBody) + case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) + case strings.EqualFold("NoSuchDistribution", errorCode): + return awsRestxml_deserializeErrorNoSuchDistribution(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -13011,13 +14009,13 @@ func awsRestxml_deserializeOpErrorListOriginAccessControls(response *smithyhttp. } } -func awsRestxml_deserializeOpDocumentListOriginAccessControlsOutput(v **ListOriginAccessControlsOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListInvalidationsOutput(v **ListInvalidationsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListOriginAccessControlsOutput + var sv *ListInvalidationsOutput if *v == nil { - sv = &ListOriginAccessControlsOutput{} + sv = &ListInvalidationsOutput{} } else { sv = *v } @@ -13033,9 +14031,9 @@ func awsRestxml_deserializeOpDocumentListOriginAccessControlsOutput(v **ListOrig originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("OriginAccessControlList", t.Name.Local): + case strings.EqualFold("InvalidationList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentOriginAccessControlList(&sv.OriginAccessControlList, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentInvalidationList(&sv.InvalidationList, nodeDecoder); err != nil { return err } @@ -13053,14 +14051,14 @@ func awsRestxml_deserializeOpDocumentListOriginAccessControlsOutput(v **ListOrig return nil } -type awsRestxml_deserializeOpListOriginRequestPolicies struct { +type awsRestxml_deserializeOpListKeyGroups struct { } -func (*awsRestxml_deserializeOpListOriginRequestPolicies) ID() string { +func (*awsRestxml_deserializeOpListKeyGroups) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListOriginRequestPolicies) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListKeyGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -13078,9 +14076,9 @@ func (m *awsRestxml_deserializeOpListOriginRequestPolicies) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListOriginRequestPolicies(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListKeyGroups(response, &metadata) } - output := &ListOriginRequestPoliciesOutput{} + output := &ListKeyGroupsOutput{} out.Result = output var buff [1024]byte @@ -13101,7 +14099,7 @@ func (m *awsRestxml_deserializeOpListOriginRequestPolicies) HandleDeserialize(ct } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentOriginRequestPolicyList(&output.OriginRequestPolicyList, decoder) + err = awsRestxml_deserializeDocumentKeyGroupList(&output.KeyGroupList, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13115,7 +14113,149 @@ func (m *awsRestxml_deserializeOpListOriginRequestPolicies) HandleDeserialize(ct return out, metadata, err } -func awsRestxml_deserializeOpErrorListOriginRequestPolicies(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListKeyGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("InvalidArgument", errorCode): + return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestxml_deserializeOpDocumentListKeyGroupsOutput(v **ListKeyGroupsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ListKeyGroupsOutput + if *v == nil { + sv = &ListKeyGroupsOutput{} + } 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("KeyGroupList", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentKeyGroupList(&sv.KeyGroupList, 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 +} + +type awsRestxml_deserializeOpListKeyValueStores struct { +} + +func (*awsRestxml_deserializeOpListKeyValueStores) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_deserializeOpListKeyValueStores) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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, awsRestxml_deserializeOpErrorListKeyValueStores(response, &metadata) + } + output := &ListKeyValueStoresOutput{} + 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 = awsRestxml_deserializeDocumentKeyValueStoreList(&output.KeyValueStoreList, decoder) + 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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorListKeyValueStores(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -13146,8 +14286,8 @@ func awsRestxml_deserializeOpErrorListOriginRequestPolicies(response *smithyhttp case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) - case strings.EqualFold("NoSuchOriginRequestPolicy", errorCode): - return awsRestxml_deserializeErrorNoSuchOriginRequestPolicy(response, errorBody) + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsRestxml_deserializeErrorUnsupportedOperation(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -13159,13 +14299,13 @@ func awsRestxml_deserializeOpErrorListOriginRequestPolicies(response *smithyhttp } } -func awsRestxml_deserializeOpDocumentListOriginRequestPoliciesOutput(v **ListOriginRequestPoliciesOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListKeyValueStoresOutput(v **ListKeyValueStoresOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListOriginRequestPoliciesOutput + var sv *ListKeyValueStoresOutput if *v == nil { - sv = &ListOriginRequestPoliciesOutput{} + sv = &ListKeyValueStoresOutput{} } else { sv = *v } @@ -13181,9 +14321,9 @@ func awsRestxml_deserializeOpDocumentListOriginRequestPoliciesOutput(v **ListOri originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("OriginRequestPolicyList", t.Name.Local): + case strings.EqualFold("KeyValueStoreList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentOriginRequestPolicyList(&sv.OriginRequestPolicyList, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentKeyValueStoreList(&sv.KeyValueStoreList, nodeDecoder); err != nil { return err } @@ -13201,14 +14341,14 @@ func awsRestxml_deserializeOpDocumentListOriginRequestPoliciesOutput(v **ListOri return nil } -type awsRestxml_deserializeOpListPublicKeys struct { +type awsRestxml_deserializeOpListOriginAccessControls struct { } -func (*awsRestxml_deserializeOpListPublicKeys) ID() string { +func (*awsRestxml_deserializeOpListOriginAccessControls) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListPublicKeys) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListOriginAccessControls) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -13226,9 +14366,9 @@ func (m *awsRestxml_deserializeOpListPublicKeys) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListPublicKeys(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListOriginAccessControls(response, &metadata) } - output := &ListPublicKeysOutput{} + output := &ListOriginAccessControlsOutput{} out.Result = output var buff [1024]byte @@ -13249,7 +14389,7 @@ func (m *awsRestxml_deserializeOpListPublicKeys) HandleDeserialize(ctx context.C } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentPublicKeyList(&output.PublicKeyList, decoder) + err = awsRestxml_deserializeDocumentOriginAccessControlList(&output.OriginAccessControlList, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13263,7 +14403,7 @@ func (m *awsRestxml_deserializeOpListPublicKeys) HandleDeserialize(ctx context.C return out, metadata, err } -func awsRestxml_deserializeOpErrorListPublicKeys(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListOriginAccessControls(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -13301,13 +14441,13 @@ func awsRestxml_deserializeOpErrorListPublicKeys(response *smithyhttp.Response, } } -func awsRestxml_deserializeOpDocumentListPublicKeysOutput(v **ListPublicKeysOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListOriginAccessControlsOutput(v **ListOriginAccessControlsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListPublicKeysOutput + var sv *ListOriginAccessControlsOutput if *v == nil { - sv = &ListPublicKeysOutput{} + sv = &ListOriginAccessControlsOutput{} } else { sv = *v } @@ -13323,9 +14463,9 @@ func awsRestxml_deserializeOpDocumentListPublicKeysOutput(v **ListPublicKeysOutp originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("PublicKeyList", t.Name.Local): + case strings.EqualFold("OriginAccessControlList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentPublicKeyList(&sv.PublicKeyList, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentOriginAccessControlList(&sv.OriginAccessControlList, nodeDecoder); err != nil { return err } @@ -13343,14 +14483,14 @@ func awsRestxml_deserializeOpDocumentListPublicKeysOutput(v **ListPublicKeysOutp return nil } -type awsRestxml_deserializeOpListRealtimeLogConfigs struct { +type awsRestxml_deserializeOpListOriginRequestPolicies struct { } -func (*awsRestxml_deserializeOpListRealtimeLogConfigs) ID() string { +func (*awsRestxml_deserializeOpListOriginRequestPolicies) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListRealtimeLogConfigs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListOriginRequestPolicies) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -13368,9 +14508,9 @@ func (m *awsRestxml_deserializeOpListRealtimeLogConfigs) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListRealtimeLogConfigs(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListOriginRequestPolicies(response, &metadata) } - output := &ListRealtimeLogConfigsOutput{} + output := &ListOriginRequestPoliciesOutput{} out.Result = output var buff [1024]byte @@ -13391,7 +14531,7 @@ func (m *awsRestxml_deserializeOpListRealtimeLogConfigs) HandleDeserialize(ctx c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentRealtimeLogConfigs(&output.RealtimeLogConfigs, decoder) + err = awsRestxml_deserializeDocumentOriginRequestPolicyList(&output.OriginRequestPolicyList, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13405,7 +14545,7 @@ func (m *awsRestxml_deserializeOpListRealtimeLogConfigs) HandleDeserialize(ctx c return out, metadata, err } -func awsRestxml_deserializeOpErrorListRealtimeLogConfigs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListOriginRequestPolicies(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -13436,8 +14576,8 @@ func awsRestxml_deserializeOpErrorListRealtimeLogConfigs(response *smithyhttp.Re case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) - case strings.EqualFold("NoSuchRealtimeLogConfig", errorCode): - return awsRestxml_deserializeErrorNoSuchRealtimeLogConfig(response, errorBody) + case strings.EqualFold("NoSuchOriginRequestPolicy", errorCode): + return awsRestxml_deserializeErrorNoSuchOriginRequestPolicy(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -13449,13 +14589,13 @@ func awsRestxml_deserializeOpErrorListRealtimeLogConfigs(response *smithyhttp.Re } } -func awsRestxml_deserializeOpDocumentListRealtimeLogConfigsOutput(v **ListRealtimeLogConfigsOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListOriginRequestPoliciesOutput(v **ListOriginRequestPoliciesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListRealtimeLogConfigsOutput + var sv *ListOriginRequestPoliciesOutput if *v == nil { - sv = &ListRealtimeLogConfigsOutput{} + sv = &ListOriginRequestPoliciesOutput{} } else { sv = *v } @@ -13471,9 +14611,9 @@ func awsRestxml_deserializeOpDocumentListRealtimeLogConfigsOutput(v **ListRealti originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("RealtimeLogConfigs", t.Name.Local): + case strings.EqualFold("OriginRequestPolicyList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentRealtimeLogConfigs(&sv.RealtimeLogConfigs, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentOriginRequestPolicyList(&sv.OriginRequestPolicyList, nodeDecoder); err != nil { return err } @@ -13491,14 +14631,14 @@ func awsRestxml_deserializeOpDocumentListRealtimeLogConfigsOutput(v **ListRealti return nil } -type awsRestxml_deserializeOpListResponseHeadersPolicies struct { +type awsRestxml_deserializeOpListPublicKeys struct { } -func (*awsRestxml_deserializeOpListResponseHeadersPolicies) ID() string { +func (*awsRestxml_deserializeOpListPublicKeys) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListResponseHeadersPolicies) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListPublicKeys) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -13516,9 +14656,9 @@ func (m *awsRestxml_deserializeOpListResponseHeadersPolicies) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListResponseHeadersPolicies(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListPublicKeys(response, &metadata) } - output := &ListResponseHeadersPoliciesOutput{} + output := &ListPublicKeysOutput{} out.Result = output var buff [1024]byte @@ -13539,7 +14679,7 @@ func (m *awsRestxml_deserializeOpListResponseHeadersPolicies) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentResponseHeadersPolicyList(&output.ResponseHeadersPolicyList, decoder) + err = awsRestxml_deserializeDocumentPublicKeyList(&output.PublicKeyList, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13553,7 +14693,7 @@ func (m *awsRestxml_deserializeOpListResponseHeadersPolicies) HandleDeserialize( return out, metadata, err } -func awsRestxml_deserializeOpErrorListResponseHeadersPolicies(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListPublicKeys(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -13578,15 +14718,9 @@ func awsRestxml_deserializeOpErrorListResponseHeadersPolicies(response *smithyht } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("AccessDenied", errorCode): - return awsRestxml_deserializeErrorAccessDenied(response, errorBody) - case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) - case strings.EqualFold("NoSuchResponseHeadersPolicy", errorCode): - return awsRestxml_deserializeErrorNoSuchResponseHeadersPolicy(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -13597,13 +14731,13 @@ func awsRestxml_deserializeOpErrorListResponseHeadersPolicies(response *smithyht } } -func awsRestxml_deserializeOpDocumentListResponseHeadersPoliciesOutput(v **ListResponseHeadersPoliciesOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListPublicKeysOutput(v **ListPublicKeysOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListResponseHeadersPoliciesOutput + var sv *ListPublicKeysOutput if *v == nil { - sv = &ListResponseHeadersPoliciesOutput{} + sv = &ListPublicKeysOutput{} } else { sv = *v } @@ -13619,9 +14753,9 @@ func awsRestxml_deserializeOpDocumentListResponseHeadersPoliciesOutput(v **ListR originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("ResponseHeadersPolicyList", t.Name.Local): + case strings.EqualFold("PublicKeyList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentResponseHeadersPolicyList(&sv.ResponseHeadersPolicyList, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentPublicKeyList(&sv.PublicKeyList, nodeDecoder); err != nil { return err } @@ -13639,14 +14773,14 @@ func awsRestxml_deserializeOpDocumentListResponseHeadersPoliciesOutput(v **ListR return nil } -type awsRestxml_deserializeOpListStreamingDistributions struct { +type awsRestxml_deserializeOpListRealtimeLogConfigs struct { } -func (*awsRestxml_deserializeOpListStreamingDistributions) ID() string { +func (*awsRestxml_deserializeOpListRealtimeLogConfigs) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListStreamingDistributions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListRealtimeLogConfigs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -13664,9 +14798,9 @@ func (m *awsRestxml_deserializeOpListStreamingDistributions) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListStreamingDistributions(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListRealtimeLogConfigs(response, &metadata) } - output := &ListStreamingDistributionsOutput{} + output := &ListRealtimeLogConfigsOutput{} out.Result = output var buff [1024]byte @@ -13687,7 +14821,7 @@ func (m *awsRestxml_deserializeOpListStreamingDistributions) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentStreamingDistributionList(&output.StreamingDistributionList, decoder) + err = awsRestxml_deserializeDocumentRealtimeLogConfigs(&output.RealtimeLogConfigs, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13701,7 +14835,7 @@ func (m *awsRestxml_deserializeOpListStreamingDistributions) HandleDeserialize(c return out, metadata, err } -func awsRestxml_deserializeOpErrorListStreamingDistributions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListRealtimeLogConfigs(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -13726,9 +14860,15 @@ func awsRestxml_deserializeOpErrorListStreamingDistributions(response *smithyhtt } errorBody.Seek(0, io.SeekStart) switch { + case strings.EqualFold("AccessDenied", errorCode): + return awsRestxml_deserializeErrorAccessDenied(response, errorBody) + case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) + case strings.EqualFold("NoSuchRealtimeLogConfig", errorCode): + return awsRestxml_deserializeErrorNoSuchRealtimeLogConfig(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -13739,13 +14879,13 @@ func awsRestxml_deserializeOpErrorListStreamingDistributions(response *smithyhtt } } -func awsRestxml_deserializeOpDocumentListStreamingDistributionsOutput(v **ListStreamingDistributionsOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListRealtimeLogConfigsOutput(v **ListRealtimeLogConfigsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListStreamingDistributionsOutput + var sv *ListRealtimeLogConfigsOutput if *v == nil { - sv = &ListStreamingDistributionsOutput{} + sv = &ListRealtimeLogConfigsOutput{} } else { sv = *v } @@ -13761,9 +14901,9 @@ func awsRestxml_deserializeOpDocumentListStreamingDistributionsOutput(v **ListSt originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("StreamingDistributionList", t.Name.Local): + case strings.EqualFold("RealtimeLogConfigs", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentStreamingDistributionList(&sv.StreamingDistributionList, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentRealtimeLogConfigs(&sv.RealtimeLogConfigs, nodeDecoder); err != nil { return err } @@ -13781,14 +14921,14 @@ func awsRestxml_deserializeOpDocumentListStreamingDistributionsOutput(v **ListSt return nil } -type awsRestxml_deserializeOpListTagsForResource struct { +type awsRestxml_deserializeOpListResponseHeadersPolicies struct { } -func (*awsRestxml_deserializeOpListTagsForResource) ID() string { +func (*awsRestxml_deserializeOpListResponseHeadersPolicies) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListResponseHeadersPolicies) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -13806,9 +14946,9 @@ func (m *awsRestxml_deserializeOpListTagsForResource) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorListTagsForResource(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListResponseHeadersPolicies(response, &metadata) } - output := &ListTagsForResourceOutput{} + output := &ListResponseHeadersPoliciesOutput{} out.Result = output var buff [1024]byte @@ -13829,7 +14969,7 @@ func (m *awsRestxml_deserializeOpListTagsForResource) HandleDeserialize(ctx cont } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentTags(&output.Tags, decoder) + err = awsRestxml_deserializeDocumentResponseHeadersPolicyList(&output.ResponseHeadersPolicyList, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13843,7 +14983,7 @@ func (m *awsRestxml_deserializeOpListTagsForResource) HandleDeserialize(ctx cont return out, metadata, err } -func awsRestxml_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListResponseHeadersPolicies(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -13874,11 +15014,8 @@ func awsRestxml_deserializeOpErrorListTagsForResource(response *smithyhttp.Respo case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) - case strings.EqualFold("InvalidTagging", errorCode): - return awsRestxml_deserializeErrorInvalidTagging(response, errorBody) - - case strings.EqualFold("NoSuchResource", errorCode): - return awsRestxml_deserializeErrorNoSuchResource(response, errorBody) + case strings.EqualFold("NoSuchResponseHeadersPolicy", errorCode): + return awsRestxml_deserializeErrorNoSuchResponseHeadersPolicy(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -13890,13 +15027,13 @@ func awsRestxml_deserializeOpErrorListTagsForResource(response *smithyhttp.Respo } } -func awsRestxml_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListResponseHeadersPoliciesOutput(v **ListResponseHeadersPoliciesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ListTagsForResourceOutput + var sv *ListResponseHeadersPoliciesOutput if *v == nil { - sv = &ListTagsForResourceOutput{} + sv = &ListResponseHeadersPoliciesOutput{} } else { sv = *v } @@ -13912,9 +15049,9 @@ func awsRestxml_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForRe originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Tags", t.Name.Local): + case strings.EqualFold("ResponseHeadersPolicyList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTags(&sv.Tags, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentResponseHeadersPolicyList(&sv.ResponseHeadersPolicyList, nodeDecoder); err != nil { return err } @@ -13932,14 +15069,14 @@ func awsRestxml_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForRe return nil } -type awsRestxml_deserializeOpPublishFunction struct { +type awsRestxml_deserializeOpListStreamingDistributions struct { } -func (*awsRestxml_deserializeOpPublishFunction) ID() string { +func (*awsRestxml_deserializeOpListStreamingDistributions) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpPublishFunction) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListStreamingDistributions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -13957,9 +15094,9 @@ func (m *awsRestxml_deserializeOpPublishFunction) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorPublishFunction(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListStreamingDistributions(response, &metadata) } - output := &PublishFunctionOutput{} + output := &ListStreamingDistributionsOutput{} out.Result = output var buff [1024]byte @@ -13980,7 +15117,7 @@ func (m *awsRestxml_deserializeOpPublishFunction) HandleDeserialize(ctx context. } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentFunctionSummary(&output.FunctionSummary, decoder) + err = awsRestxml_deserializeDocumentStreamingDistributionList(&output.StreamingDistributionList, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13994,7 +15131,7 @@ func (m *awsRestxml_deserializeOpPublishFunction) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestxml_deserializeOpErrorPublishFunction(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListStreamingDistributions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -14022,18 +15159,6 @@ func awsRestxml_deserializeOpErrorPublishFunction(response *smithyhttp.Response, case strings.EqualFold("InvalidArgument", errorCode): return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) - case strings.EqualFold("InvalidIfMatchVersion", errorCode): - return awsRestxml_deserializeErrorInvalidIfMatchVersion(response, errorBody) - - case strings.EqualFold("NoSuchFunctionExists", errorCode): - return awsRestxml_deserializeErrorNoSuchFunctionExists(response, errorBody) - - case strings.EqualFold("PreconditionFailed", errorCode): - return awsRestxml_deserializeErrorPreconditionFailed(response, errorBody) - - case strings.EqualFold("UnsupportedOperation", errorCode): - return awsRestxml_deserializeErrorUnsupportedOperation(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -14044,13 +15169,13 @@ func awsRestxml_deserializeOpErrorPublishFunction(response *smithyhttp.Response, } } -func awsRestxml_deserializeOpDocumentPublishFunctionOutput(v **PublishFunctionOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListStreamingDistributionsOutput(v **ListStreamingDistributionsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *PublishFunctionOutput + var sv *ListStreamingDistributionsOutput if *v == nil { - sv = &PublishFunctionOutput{} + sv = &ListStreamingDistributionsOutput{} } else { sv = *v } @@ -14066,9 +15191,9 @@ func awsRestxml_deserializeOpDocumentPublishFunctionOutput(v **PublishFunctionOu originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("FunctionSummary", t.Name.Local): + case strings.EqualFold("StreamingDistributionList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentFunctionSummary(&sv.FunctionSummary, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentStreamingDistributionList(&sv.StreamingDistributionList, nodeDecoder); err != nil { return err } @@ -14086,14 +15211,14 @@ func awsRestxml_deserializeOpDocumentPublishFunctionOutput(v **PublishFunctionOu return nil } -type awsRestxml_deserializeOpTagResource struct { +type awsRestxml_deserializeOpListTagsForResource struct { } -func (*awsRestxml_deserializeOpTagResource) ID() string { +func (*awsRestxml_deserializeOpListTagsForResource) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_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) @@ -14111,14 +15236,36 @@ func (m *awsRestxml_deserializeOpTagResource) HandleDeserialize(ctx context.Cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorTagResource(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListTagsForResource(response, &metadata) } - output := &TagResourceOutput{} + output := &ListTagsForResourceOutput{} 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 = awsRestxml_deserializeDocumentTags(&output.Tags, decoder) + 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(), } } @@ -14126,7 +15273,7 @@ func (m *awsRestxml_deserializeOpTagResource) HandleDeserialize(ctx context.Cont return out, metadata, err } -func awsRestxml_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_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)} @@ -14173,14 +15320,56 @@ func awsRestxml_deserializeOpErrorTagResource(response *smithyhttp.Response, met } } -type awsRestxml_deserializeOpTestFunction struct { +func awsRestxml_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ListTagsForResourceOutput + if *v == nil { + sv = &ListTagsForResourceOutput{} + } 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("Tags", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentTags(&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 (*awsRestxml_deserializeOpTestFunction) ID() string { +type awsRestxml_deserializeOpListVpcOrigins struct { +} + +func (*awsRestxml_deserializeOpListVpcOrigins) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpTestFunction) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpListVpcOrigins) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -14198,9 +15387,9 @@ func (m *awsRestxml_deserializeOpTestFunction) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorTestFunction(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorListVpcOrigins(response, &metadata) } - output := &TestFunctionOutput{} + output := &ListVpcOriginsOutput{} out.Result = output var buff [1024]byte @@ -14221,7 +15410,7 @@ func (m *awsRestxml_deserializeOpTestFunction) HandleDeserialize(ctx context.Con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentTestResult(&output.TestResult, decoder) + err = awsRestxml_deserializeDocumentVpcOriginList(&output.VpcOriginList, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14235,7 +15424,7 @@ func (m *awsRestxml_deserializeOpTestFunction) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsRestxml_deserializeOpErrorTestFunction(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorListVpcOrigins(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -14260,17 +15449,14 @@ func awsRestxml_deserializeOpErrorTestFunction(response *smithyhttp.Response, me } errorBody.Seek(0, io.SeekStart) switch { - case strings.EqualFold("InvalidArgument", errorCode): - return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) - - case strings.EqualFold("InvalidIfMatchVersion", errorCode): - return awsRestxml_deserializeErrorInvalidIfMatchVersion(response, errorBody) + case strings.EqualFold("AccessDenied", errorCode): + return awsRestxml_deserializeErrorAccessDenied(response, errorBody) - case strings.EqualFold("NoSuchFunctionExists", errorCode): - return awsRestxml_deserializeErrorNoSuchFunctionExists(response, errorBody) + case strings.EqualFold("EntityNotFound", errorCode): + return awsRestxml_deserializeErrorEntityNotFound(response, errorBody) - case strings.EqualFold("TestFunctionFailed", errorCode): - return awsRestxml_deserializeErrorTestFunctionFailed(response, errorBody) + case strings.EqualFold("InvalidArgument", errorCode): + return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) case strings.EqualFold("UnsupportedOperation", errorCode): return awsRestxml_deserializeErrorUnsupportedOperation(response, errorBody) @@ -14285,13 +15471,13 @@ func awsRestxml_deserializeOpErrorTestFunction(response *smithyhttp.Response, me } } -func awsRestxml_deserializeOpDocumentTestFunctionOutput(v **TestFunctionOutput, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeOpDocumentListVpcOriginsOutput(v **ListVpcOriginsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *TestFunctionOutput + var sv *ListVpcOriginsOutput if *v == nil { - sv = &TestFunctionOutput{} + sv = &ListVpcOriginsOutput{} } else { sv = *v } @@ -14307,9 +15493,9 @@ func awsRestxml_deserializeOpDocumentTestFunctionOutput(v **TestFunctionOutput, originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("TestResult", t.Name.Local): + case strings.EqualFold("VpcOriginList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTestResult(&sv.TestResult, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentVpcOriginList(&sv.VpcOriginList, nodeDecoder); err != nil { return err } @@ -14327,101 +15513,14 @@ func awsRestxml_deserializeOpDocumentTestFunctionOutput(v **TestFunctionOutput, return nil } -type awsRestxml_deserializeOpUntagResource struct { -} - -func (*awsRestxml_deserializeOpUntagResource) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestxml_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 - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - 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, awsRestxml_deserializeOpErrorUntagResource(response, &metadata) - } - output := &UntagResourceOutput{} - 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), - } - } - - span.End() - return out, metadata, err -} - -func awsRestxml_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 - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("AccessDenied", errorCode): - return awsRestxml_deserializeErrorAccessDenied(response, errorBody) - - case strings.EqualFold("InvalidArgument", errorCode): - return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) - - case strings.EqualFold("InvalidTagging", errorCode): - return awsRestxml_deserializeErrorInvalidTagging(response, errorBody) - - case strings.EqualFold("NoSuchResource", errorCode): - return awsRestxml_deserializeErrorNoSuchResource(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsRestxml_deserializeOpUpdateCachePolicy struct { +type awsRestxml_deserializeOpPublishFunction struct { } -func (*awsRestxml_deserializeOpUpdateCachePolicy) ID() string { +func (*awsRestxml_deserializeOpPublishFunction) ID() string { return "OperationDeserializer" } -func (m *awsRestxml_deserializeOpUpdateCachePolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestxml_deserializeOpPublishFunction) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -14439,16 +15538,11 @@ func (m *awsRestxml_deserializeOpUpdateCachePolicy) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestxml_deserializeOpErrorUpdateCachePolicy(response, &metadata) + return out, metadata, awsRestxml_deserializeOpErrorPublishFunction(response, &metadata) } - output := &UpdateCachePolicyOutput{} + output := &PublishFunctionOutput{} out.Result = output - err = awsRestxml_deserializeOpHttpBindingsUpdateCachePolicyOutput(output, response) - if err != nil { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} - } - var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(response.Body, ringBuffer) @@ -14467,7 +15561,7 @@ func (m *awsRestxml_deserializeOpUpdateCachePolicy) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsRestxml_deserializeDocumentCachePolicy(&output.CachePolicy, decoder) + err = awsRestxml_deserializeDocumentFunctionSummary(&output.FunctionSummary, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14481,7 +15575,494 @@ func (m *awsRestxml_deserializeOpUpdateCachePolicy) HandleDeserialize(ctx contex return out, metadata, err } -func awsRestxml_deserializeOpErrorUpdateCachePolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestxml_deserializeOpErrorPublishFunction(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("InvalidArgument", errorCode): + return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) + + case strings.EqualFold("InvalidIfMatchVersion", errorCode): + return awsRestxml_deserializeErrorInvalidIfMatchVersion(response, errorBody) + + case strings.EqualFold("NoSuchFunctionExists", errorCode): + return awsRestxml_deserializeErrorNoSuchFunctionExists(response, errorBody) + + case strings.EqualFold("PreconditionFailed", errorCode): + return awsRestxml_deserializeErrorPreconditionFailed(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsRestxml_deserializeErrorUnsupportedOperation(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestxml_deserializeOpDocumentPublishFunctionOutput(v **PublishFunctionOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *PublishFunctionOutput + if *v == nil { + sv = &PublishFunctionOutput{} + } 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("FunctionSummary", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentFunctionSummary(&sv.FunctionSummary, 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 +} + +type awsRestxml_deserializeOpTagResource struct { +} + +func (*awsRestxml_deserializeOpTagResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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, awsRestxml_deserializeOpErrorTagResource(response, &metadata) + } + output := &TagResourceOutput{} + 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), + } + } + + span.End() + return out, metadata, err +} + +func awsRestxml_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 + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("AccessDenied", errorCode): + return awsRestxml_deserializeErrorAccessDenied(response, errorBody) + + case strings.EqualFold("InvalidArgument", errorCode): + return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) + + case strings.EqualFold("InvalidTagging", errorCode): + return awsRestxml_deserializeErrorInvalidTagging(response, errorBody) + + case strings.EqualFold("NoSuchResource", errorCode): + return awsRestxml_deserializeErrorNoSuchResource(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestxml_deserializeOpTestFunction struct { +} + +func (*awsRestxml_deserializeOpTestFunction) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_deserializeOpTestFunction) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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, awsRestxml_deserializeOpErrorTestFunction(response, &metadata) + } + output := &TestFunctionOutput{} + 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 = awsRestxml_deserializeDocumentTestResult(&output.TestResult, decoder) + 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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorTestFunction(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("InvalidArgument", errorCode): + return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) + + case strings.EqualFold("InvalidIfMatchVersion", errorCode): + return awsRestxml_deserializeErrorInvalidIfMatchVersion(response, errorBody) + + case strings.EqualFold("NoSuchFunctionExists", errorCode): + return awsRestxml_deserializeErrorNoSuchFunctionExists(response, errorBody) + + case strings.EqualFold("TestFunctionFailed", errorCode): + return awsRestxml_deserializeErrorTestFunctionFailed(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsRestxml_deserializeErrorUnsupportedOperation(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestxml_deserializeOpDocumentTestFunctionOutput(v **TestFunctionOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *TestFunctionOutput + if *v == nil { + sv = &TestFunctionOutput{} + } 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("TestResult", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentTestResult(&sv.TestResult, 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 +} + +type awsRestxml_deserializeOpUntagResource struct { +} + +func (*awsRestxml_deserializeOpUntagResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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, awsRestxml_deserializeOpErrorUntagResource(response, &metadata) + } + output := &UntagResourceOutput{} + 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), + } + } + + span.End() + return out, metadata, err +} + +func awsRestxml_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 + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("AccessDenied", errorCode): + return awsRestxml_deserializeErrorAccessDenied(response, errorBody) + + case strings.EqualFold("InvalidArgument", errorCode): + return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) + + case strings.EqualFold("InvalidTagging", errorCode): + return awsRestxml_deserializeErrorInvalidTagging(response, errorBody) + + case strings.EqualFold("NoSuchResource", errorCode): + return awsRestxml_deserializeErrorNoSuchResource(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestxml_deserializeOpUpdateCachePolicy struct { +} + +func (*awsRestxml_deserializeOpUpdateCachePolicy) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_deserializeOpUpdateCachePolicy) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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, awsRestxml_deserializeOpErrorUpdateCachePolicy(response, &metadata) + } + output := &UpdateCachePolicyOutput{} + out.Result = output + + err = awsRestxml_deserializeOpHttpBindingsUpdateCachePolicyOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %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 + } + 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 = awsRestxml_deserializeDocumentCachePolicy(&output.CachePolicy, decoder) + 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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorUpdateCachePolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -15061,6 +16642,9 @@ func awsRestxml_deserializeOpErrorUpdateDistribution(response *smithyhttp.Respon case strings.EqualFold("ContinuousDeploymentPolicyInUse", errorCode): return awsRestxml_deserializeErrorContinuousDeploymentPolicyInUse(response, errorBody) + case strings.EqualFold("EntityNotFound", errorCode): + return awsRestxml_deserializeErrorEntityNotFound(response, errorBody) + case strings.EqualFold("IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior", errorCode): return awsRestxml_deserializeErrorIllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(response, errorBody) @@ -15412,6 +16996,9 @@ func awsRestxml_deserializeOpErrorUpdateDistributionWithStagingConfig(response * case strings.EqualFold("CNAMEAlreadyExists", errorCode): return awsRestxml_deserializeErrorCNAMEAlreadyExists(response, errorBody) + case strings.EqualFold("EntityNotFound", errorCode): + return awsRestxml_deserializeErrorEntityNotFound(response, errorBody) + case strings.EqualFold("IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior", errorCode): return awsRestxml_deserializeErrorIllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(response, errorBody) @@ -17634,96 +19221,197 @@ func awsRestxml_deserializeOpDocumentUpdateStreamingDistributionOutput(v **Updat return nil } -func awsRestxml_deserializeErrorAccessDenied(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.AccessDenied{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } +type awsRestxml_deserializeOpUpdateVpcOrigin struct { +} + +func (*awsRestxml_deserializeOpUpdateVpcOrigin) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestxml_deserializeOpUpdateVpcOrigin) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } + return out, metadata, err } - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} } - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentAccessDenied(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestxml_deserializeOpErrorUpdateVpcOrigin(response, &metadata) } + output := &UpdateVpcOriginOutput{} + out.Result = output - return output -} + err = awsRestxml_deserializeOpHttpBindingsUpdateVpcOriginOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } -func awsRestxml_deserializeErrorBatchTooLarge(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.BatchTooLarge{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) rootDecoder := xml.NewDecoder(body) t, err := smithyxml.FetchRootElement(rootDecoder) if err == io.EOF { - return output + return out, metadata, nil } if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ + return out, metadata, &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") + err = awsRestxml_deserializeDocumentVpcOrigin(&output.VpcOrigin, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ + return out, metadata, &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } } - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentBatchTooLarge(&output, decoder) + span.End() + return out, metadata, err +} + +func awsRestxml_deserializeOpErrorUpdateVpcOrigin(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("AccessDenied", errorCode): + return awsRestxml_deserializeErrorAccessDenied(response, errorBody) + + case strings.EqualFold("CannotUpdateEntityWhileInUse", errorCode): + return awsRestxml_deserializeErrorCannotUpdateEntityWhileInUse(response, errorBody) + + case strings.EqualFold("EntityAlreadyExists", errorCode): + return awsRestxml_deserializeErrorEntityAlreadyExists(response, errorBody) + + case strings.EqualFold("EntityLimitExceeded", errorCode): + return awsRestxml_deserializeErrorEntityLimitExceeded(response, errorBody) + + case strings.EqualFold("EntityNotFound", errorCode): + return awsRestxml_deserializeErrorEntityNotFound(response, errorBody) + + case strings.EqualFold("IllegalUpdate", errorCode): + return awsRestxml_deserializeErrorIllegalUpdate(response, errorBody) + + case strings.EqualFold("InconsistentQuantities", errorCode): + return awsRestxml_deserializeErrorInconsistentQuantities(response, errorBody) + + case strings.EqualFold("InvalidArgument", errorCode): + return awsRestxml_deserializeErrorInvalidArgument(response, errorBody) + + case strings.EqualFold("InvalidIfMatchVersion", errorCode): + return awsRestxml_deserializeErrorInvalidIfMatchVersion(response, errorBody) + + case strings.EqualFold("PreconditionFailed", errorCode): + return awsRestxml_deserializeErrorPreconditionFailed(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsRestxml_deserializeErrorUnsupportedOperation(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } + return genericError + } +} - return output +func awsRestxml_deserializeOpHttpBindingsUpdateVpcOriginOutput(v *UpdateVpcOriginOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + if headerValues := response.Header.Values("ETag"); len(headerValues) != 0 { + headerValues[0] = strings.TrimSpace(headerValues[0]) + v.ETag = ptr.String(headerValues[0]) + } + + return nil } +func awsRestxml_deserializeOpDocumentUpdateVpcOriginOutput(v **UpdateVpcOriginOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *UpdateVpcOriginOutput + if *v == nil { + sv = &UpdateVpcOriginOutput{} + } else { + sv = *v + } -func awsRestxml_deserializeErrorCachePolicyAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CachePolicyAlreadyExists{} + 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("VpcOrigin", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentVpcOrigin(&sv.VpcOrigin, 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 awsRestxml_deserializeErrorAccessDenied(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.AccessDenied{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -17753,7 +19441,7 @@ func awsRestxml_deserializeErrorCachePolicyAlreadyExists(response *smithyhttp.Re } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentCachePolicyAlreadyExists(&output, decoder) + err = awsRestxml_deserializeDocumentAccessDenied(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17766,8 +19454,8 @@ func awsRestxml_deserializeErrorCachePolicyAlreadyExists(response *smithyhttp.Re return output } -func awsRestxml_deserializeErrorCachePolicyInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CachePolicyInUse{} +func awsRestxml_deserializeErrorBatchTooLarge(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.BatchTooLarge{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -17797,7 +19485,7 @@ func awsRestxml_deserializeErrorCachePolicyInUse(response *smithyhttp.Response, } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentCachePolicyInUse(&output, decoder) + err = awsRestxml_deserializeDocumentBatchTooLarge(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17810,8 +19498,8 @@ func awsRestxml_deserializeErrorCachePolicyInUse(response *smithyhttp.Response, return output } -func awsRestxml_deserializeErrorCannotChangeImmutablePublicKeyFields(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CannotChangeImmutablePublicKeyFields{} +func awsRestxml_deserializeErrorCachePolicyAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CachePolicyAlreadyExists{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -17841,7 +19529,7 @@ func awsRestxml_deserializeErrorCannotChangeImmutablePublicKeyFields(response *s } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentCannotChangeImmutablePublicKeyFields(&output, decoder) + err = awsRestxml_deserializeDocumentCachePolicyAlreadyExists(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17854,8 +19542,8 @@ func awsRestxml_deserializeErrorCannotChangeImmutablePublicKeyFields(response *s return output } -func awsRestxml_deserializeErrorCannotDeleteEntityWhileInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CannotDeleteEntityWhileInUse{} +func awsRestxml_deserializeErrorCachePolicyInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CachePolicyInUse{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -17885,7 +19573,7 @@ func awsRestxml_deserializeErrorCannotDeleteEntityWhileInUse(response *smithyhtt } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentCannotDeleteEntityWhileInUse(&output, decoder) + err = awsRestxml_deserializeDocumentCachePolicyInUse(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17898,8 +19586,8 @@ func awsRestxml_deserializeErrorCannotDeleteEntityWhileInUse(response *smithyhtt return output } -func awsRestxml_deserializeErrorCloudFrontOriginAccessIdentityAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CloudFrontOriginAccessIdentityAlreadyExists{} +func awsRestxml_deserializeErrorCannotChangeImmutablePublicKeyFields(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CannotChangeImmutablePublicKeyFields{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -17929,7 +19617,7 @@ func awsRestxml_deserializeErrorCloudFrontOriginAccessIdentityAlreadyExists(resp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentityAlreadyExists(&output, decoder) + err = awsRestxml_deserializeDocumentCannotChangeImmutablePublicKeyFields(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17942,8 +19630,8 @@ func awsRestxml_deserializeErrorCloudFrontOriginAccessIdentityAlreadyExists(resp return output } -func awsRestxml_deserializeErrorCloudFrontOriginAccessIdentityInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CloudFrontOriginAccessIdentityInUse{} +func awsRestxml_deserializeErrorCannotDeleteEntityWhileInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CannotDeleteEntityWhileInUse{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -17973,7 +19661,7 @@ func awsRestxml_deserializeErrorCloudFrontOriginAccessIdentityInUse(response *sm } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentityInUse(&output, decoder) + err = awsRestxml_deserializeDocumentCannotDeleteEntityWhileInUse(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17986,8 +19674,8 @@ func awsRestxml_deserializeErrorCloudFrontOriginAccessIdentityInUse(response *sm return output } -func awsRestxml_deserializeErrorCNAMEAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CNAMEAlreadyExists{} +func awsRestxml_deserializeErrorCannotUpdateEntityWhileInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CannotUpdateEntityWhileInUse{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -18017,7 +19705,7 @@ func awsRestxml_deserializeErrorCNAMEAlreadyExists(response *smithyhttp.Response } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentCNAMEAlreadyExists(&output, decoder) + err = awsRestxml_deserializeDocumentCannotUpdateEntityWhileInUse(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18030,8 +19718,8 @@ func awsRestxml_deserializeErrorCNAMEAlreadyExists(response *smithyhttp.Response return output } -func awsRestxml_deserializeErrorContinuousDeploymentPolicyAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ContinuousDeploymentPolicyAlreadyExists{} +func awsRestxml_deserializeErrorCloudFrontOriginAccessIdentityAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CloudFrontOriginAccessIdentityAlreadyExists{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -18061,7 +19749,7 @@ func awsRestxml_deserializeErrorContinuousDeploymentPolicyAlreadyExists(response } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentContinuousDeploymentPolicyAlreadyExists(&output, decoder) + err = awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentityAlreadyExists(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18074,8 +19762,8 @@ func awsRestxml_deserializeErrorContinuousDeploymentPolicyAlreadyExists(response return output } -func awsRestxml_deserializeErrorContinuousDeploymentPolicyInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ContinuousDeploymentPolicyInUse{} +func awsRestxml_deserializeErrorCloudFrontOriginAccessIdentityInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CloudFrontOriginAccessIdentityInUse{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -18105,7 +19793,7 @@ func awsRestxml_deserializeErrorContinuousDeploymentPolicyInUse(response *smithy } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentContinuousDeploymentPolicyInUse(&output, decoder) + err = awsRestxml_deserializeDocumentCloudFrontOriginAccessIdentityInUse(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18118,8 +19806,8 @@ func awsRestxml_deserializeErrorContinuousDeploymentPolicyInUse(response *smithy return output } -func awsRestxml_deserializeErrorDistributionAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.DistributionAlreadyExists{} +func awsRestxml_deserializeErrorCNAMEAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CNAMEAlreadyExists{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -18149,7 +19837,7 @@ func awsRestxml_deserializeErrorDistributionAlreadyExists(response *smithyhttp.R } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentDistributionAlreadyExists(&output, decoder) + err = awsRestxml_deserializeDocumentCNAMEAlreadyExists(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18162,8 +19850,8 @@ func awsRestxml_deserializeErrorDistributionAlreadyExists(response *smithyhttp.R return output } -func awsRestxml_deserializeErrorDistributionNotDisabled(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.DistributionNotDisabled{} +func awsRestxml_deserializeErrorContinuousDeploymentPolicyAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ContinuousDeploymentPolicyAlreadyExists{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -18193,7 +19881,7 @@ func awsRestxml_deserializeErrorDistributionNotDisabled(response *smithyhttp.Res } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentDistributionNotDisabled(&output, decoder) + err = awsRestxml_deserializeDocumentContinuousDeploymentPolicyAlreadyExists(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18206,8 +19894,8 @@ func awsRestxml_deserializeErrorDistributionNotDisabled(response *smithyhttp.Res return output } -func awsRestxml_deserializeErrorEntityAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.EntityAlreadyExists{} +func awsRestxml_deserializeErrorContinuousDeploymentPolicyInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ContinuousDeploymentPolicyInUse{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -18237,7 +19925,7 @@ func awsRestxml_deserializeErrorEntityAlreadyExists(response *smithyhttp.Respons } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentEntityAlreadyExists(&output, decoder) + err = awsRestxml_deserializeDocumentContinuousDeploymentPolicyInUse(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18250,8 +19938,8 @@ func awsRestxml_deserializeErrorEntityAlreadyExists(response *smithyhttp.Respons return output } -func awsRestxml_deserializeErrorEntityLimitExceeded(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.EntityLimitExceeded{} +func awsRestxml_deserializeErrorDistributionAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.DistributionAlreadyExists{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -18281,7 +19969,7 @@ func awsRestxml_deserializeErrorEntityLimitExceeded(response *smithyhttp.Respons } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentEntityLimitExceeded(&output, decoder) + err = awsRestxml_deserializeDocumentDistributionAlreadyExists(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18294,8 +19982,8 @@ func awsRestxml_deserializeErrorEntityLimitExceeded(response *smithyhttp.Respons return output } -func awsRestxml_deserializeErrorEntityNotFound(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.EntityNotFound{} +func awsRestxml_deserializeErrorDistributionNotDisabled(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.DistributionNotDisabled{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -18325,7 +20013,7 @@ func awsRestxml_deserializeErrorEntityNotFound(response *smithyhttp.Response, er } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentEntityNotFound(&output, decoder) + err = awsRestxml_deserializeDocumentDistributionNotDisabled(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18338,8 +20026,8 @@ func awsRestxml_deserializeErrorEntityNotFound(response *smithyhttp.Response, er return output } -func awsRestxml_deserializeErrorEntitySizeLimitExceeded(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.EntitySizeLimitExceeded{} +func awsRestxml_deserializeErrorEntityAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.EntityAlreadyExists{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -18369,7 +20057,7 @@ func awsRestxml_deserializeErrorEntitySizeLimitExceeded(response *smithyhttp.Res } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentEntitySizeLimitExceeded(&output, decoder) + err = awsRestxml_deserializeDocumentEntityAlreadyExists(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18382,8 +20070,8 @@ func awsRestxml_deserializeErrorEntitySizeLimitExceeded(response *smithyhttp.Res return output } -func awsRestxml_deserializeErrorFieldLevelEncryptionConfigAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.FieldLevelEncryptionConfigAlreadyExists{} +func awsRestxml_deserializeErrorEntityLimitExceeded(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.EntityLimitExceeded{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -18413,7 +20101,7 @@ func awsRestxml_deserializeErrorFieldLevelEncryptionConfigAlreadyExists(response } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentFieldLevelEncryptionConfigAlreadyExists(&output, decoder) + err = awsRestxml_deserializeDocumentEntityLimitExceeded(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18426,8 +20114,8 @@ func awsRestxml_deserializeErrorFieldLevelEncryptionConfigAlreadyExists(response return output } -func awsRestxml_deserializeErrorFieldLevelEncryptionConfigInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.FieldLevelEncryptionConfigInUse{} +func awsRestxml_deserializeErrorEntityNotFound(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.EntityNotFound{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -18457,7 +20145,7 @@ func awsRestxml_deserializeErrorFieldLevelEncryptionConfigInUse(response *smithy } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentFieldLevelEncryptionConfigInUse(&output, decoder) + err = awsRestxml_deserializeDocumentEntityNotFound(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18470,8 +20158,8 @@ func awsRestxml_deserializeErrorFieldLevelEncryptionConfigInUse(response *smithy return output } -func awsRestxml_deserializeErrorFieldLevelEncryptionProfileAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.FieldLevelEncryptionProfileAlreadyExists{} +func awsRestxml_deserializeErrorEntitySizeLimitExceeded(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.EntitySizeLimitExceeded{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -18501,7 +20189,7 @@ func awsRestxml_deserializeErrorFieldLevelEncryptionProfileAlreadyExists(respons } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentFieldLevelEncryptionProfileAlreadyExists(&output, decoder) + err = awsRestxml_deserializeDocumentEntitySizeLimitExceeded(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18514,8 +20202,8 @@ func awsRestxml_deserializeErrorFieldLevelEncryptionProfileAlreadyExists(respons return output } -func awsRestxml_deserializeErrorFieldLevelEncryptionProfileInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.FieldLevelEncryptionProfileInUse{} +func awsRestxml_deserializeErrorFieldLevelEncryptionConfigAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.FieldLevelEncryptionConfigAlreadyExists{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -18545,7 +20233,7 @@ func awsRestxml_deserializeErrorFieldLevelEncryptionProfileInUse(response *smith } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentFieldLevelEncryptionProfileInUse(&output, decoder) + err = awsRestxml_deserializeDocumentFieldLevelEncryptionConfigAlreadyExists(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18558,8 +20246,8 @@ func awsRestxml_deserializeErrorFieldLevelEncryptionProfileInUse(response *smith return output } -func awsRestxml_deserializeErrorFieldLevelEncryptionProfileSizeExceeded(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.FieldLevelEncryptionProfileSizeExceeded{} +func awsRestxml_deserializeErrorFieldLevelEncryptionConfigInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.FieldLevelEncryptionConfigInUse{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -18589,7 +20277,7 @@ func awsRestxml_deserializeErrorFieldLevelEncryptionProfileSizeExceeded(response } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentFieldLevelEncryptionProfileSizeExceeded(&output, decoder) + err = awsRestxml_deserializeDocumentFieldLevelEncryptionConfigInUse(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18602,8 +20290,8 @@ func awsRestxml_deserializeErrorFieldLevelEncryptionProfileSizeExceeded(response return output } -func awsRestxml_deserializeErrorFunctionAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.FunctionAlreadyExists{} +func awsRestxml_deserializeErrorFieldLevelEncryptionProfileAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.FieldLevelEncryptionProfileAlreadyExists{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -18633,7 +20321,7 @@ func awsRestxml_deserializeErrorFunctionAlreadyExists(response *smithyhttp.Respo } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentFunctionAlreadyExists(&output, decoder) + err = awsRestxml_deserializeDocumentFieldLevelEncryptionProfileAlreadyExists(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18646,8 +20334,8 @@ func awsRestxml_deserializeErrorFunctionAlreadyExists(response *smithyhttp.Respo return output } -func awsRestxml_deserializeErrorFunctionInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.FunctionInUse{} +func awsRestxml_deserializeErrorFieldLevelEncryptionProfileInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.FieldLevelEncryptionProfileInUse{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -18677,7 +20365,7 @@ func awsRestxml_deserializeErrorFunctionInUse(response *smithyhttp.Response, err } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentFunctionInUse(&output, decoder) + err = awsRestxml_deserializeDocumentFieldLevelEncryptionProfileInUse(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18690,8 +20378,8 @@ func awsRestxml_deserializeErrorFunctionInUse(response *smithyhttp.Response, err return output } -func awsRestxml_deserializeErrorFunctionSizeLimitExceeded(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.FunctionSizeLimitExceeded{} +func awsRestxml_deserializeErrorFieldLevelEncryptionProfileSizeExceeded(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.FieldLevelEncryptionProfileSizeExceeded{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -18721,7 +20409,7 @@ func awsRestxml_deserializeErrorFunctionSizeLimitExceeded(response *smithyhttp.R } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentFunctionSizeLimitExceeded(&output, decoder) + err = awsRestxml_deserializeDocumentFieldLevelEncryptionProfileSizeExceeded(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18734,8 +20422,8 @@ func awsRestxml_deserializeErrorFunctionSizeLimitExceeded(response *smithyhttp.R return output } -func awsRestxml_deserializeErrorIllegalDelete(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.IllegalDelete{} +func awsRestxml_deserializeErrorFunctionAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.FunctionAlreadyExists{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -18765,7 +20453,7 @@ func awsRestxml_deserializeErrorIllegalDelete(response *smithyhttp.Response, err } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentIllegalDelete(&output, decoder) + err = awsRestxml_deserializeDocumentFunctionAlreadyExists(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18778,8 +20466,8 @@ func awsRestxml_deserializeErrorIllegalDelete(response *smithyhttp.Response, err return output } -func awsRestxml_deserializeErrorIllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior{} +func awsRestxml_deserializeErrorFunctionInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.FunctionInUse{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -18809,7 +20497,7 @@ func awsRestxml_deserializeErrorIllegalFieldLevelEncryptionConfigAssociationWith } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentIllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(&output, decoder) + err = awsRestxml_deserializeDocumentFunctionInUse(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18822,8 +20510,8 @@ func awsRestxml_deserializeErrorIllegalFieldLevelEncryptionConfigAssociationWith return output } -func awsRestxml_deserializeErrorIllegalOriginAccessConfiguration(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.IllegalOriginAccessConfiguration{} +func awsRestxml_deserializeErrorFunctionSizeLimitExceeded(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.FunctionSizeLimitExceeded{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -18853,7 +20541,7 @@ func awsRestxml_deserializeErrorIllegalOriginAccessConfiguration(response *smith } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentIllegalOriginAccessConfiguration(&output, decoder) + err = awsRestxml_deserializeDocumentFunctionSizeLimitExceeded(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18866,8 +20554,8 @@ func awsRestxml_deserializeErrorIllegalOriginAccessConfiguration(response *smith return output } -func awsRestxml_deserializeErrorIllegalUpdate(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.IllegalUpdate{} +func awsRestxml_deserializeErrorIllegalDelete(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.IllegalDelete{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -18897,7 +20585,7 @@ func awsRestxml_deserializeErrorIllegalUpdate(response *smithyhttp.Response, err } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentIllegalUpdate(&output, decoder) + err = awsRestxml_deserializeDocumentIllegalDelete(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18910,8 +20598,8 @@ func awsRestxml_deserializeErrorIllegalUpdate(response *smithyhttp.Response, err return output } -func awsRestxml_deserializeErrorInconsistentQuantities(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InconsistentQuantities{} +func awsRestxml_deserializeErrorIllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -18941,7 +20629,7 @@ func awsRestxml_deserializeErrorInconsistentQuantities(response *smithyhttp.Resp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInconsistentQuantities(&output, decoder) + err = awsRestxml_deserializeDocumentIllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18954,8 +20642,8 @@ func awsRestxml_deserializeErrorInconsistentQuantities(response *smithyhttp.Resp return output } -func awsRestxml_deserializeErrorInvalidArgument(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidArgument{} +func awsRestxml_deserializeErrorIllegalOriginAccessConfiguration(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.IllegalOriginAccessConfiguration{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -18985,7 +20673,7 @@ func awsRestxml_deserializeErrorInvalidArgument(response *smithyhttp.Response, e } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidArgument(&output, decoder) + err = awsRestxml_deserializeDocumentIllegalOriginAccessConfiguration(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18998,8 +20686,8 @@ func awsRestxml_deserializeErrorInvalidArgument(response *smithyhttp.Response, e return output } -func awsRestxml_deserializeErrorInvalidDefaultRootObject(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidDefaultRootObject{} +func awsRestxml_deserializeErrorIllegalUpdate(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.IllegalUpdate{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -19029,7 +20717,7 @@ func awsRestxml_deserializeErrorInvalidDefaultRootObject(response *smithyhttp.Re } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidDefaultRootObject(&output, decoder) + err = awsRestxml_deserializeDocumentIllegalUpdate(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19042,8 +20730,8 @@ func awsRestxml_deserializeErrorInvalidDefaultRootObject(response *smithyhttp.Re return output } -func awsRestxml_deserializeErrorInvalidDomainNameForOriginAccessControl(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidDomainNameForOriginAccessControl{} +func awsRestxml_deserializeErrorInconsistentQuantities(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InconsistentQuantities{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -19073,7 +20761,7 @@ func awsRestxml_deserializeErrorInvalidDomainNameForOriginAccessControl(response } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidDomainNameForOriginAccessControl(&output, decoder) + err = awsRestxml_deserializeDocumentInconsistentQuantities(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19086,8 +20774,8 @@ func awsRestxml_deserializeErrorInvalidDomainNameForOriginAccessControl(response return output } -func awsRestxml_deserializeErrorInvalidErrorCode(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidErrorCode{} +func awsRestxml_deserializeErrorInvalidArgument(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidArgument{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -19117,7 +20805,7 @@ func awsRestxml_deserializeErrorInvalidErrorCode(response *smithyhttp.Response, } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidErrorCode(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidArgument(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19130,8 +20818,8 @@ func awsRestxml_deserializeErrorInvalidErrorCode(response *smithyhttp.Response, return output } -func awsRestxml_deserializeErrorInvalidForwardCookies(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidForwardCookies{} +func awsRestxml_deserializeErrorInvalidDefaultRootObject(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidDefaultRootObject{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -19161,7 +20849,7 @@ func awsRestxml_deserializeErrorInvalidForwardCookies(response *smithyhttp.Respo } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidForwardCookies(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidDefaultRootObject(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19174,8 +20862,8 @@ func awsRestxml_deserializeErrorInvalidForwardCookies(response *smithyhttp.Respo return output } -func awsRestxml_deserializeErrorInvalidFunctionAssociation(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidFunctionAssociation{} +func awsRestxml_deserializeErrorInvalidDomainNameForOriginAccessControl(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidDomainNameForOriginAccessControl{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -19205,7 +20893,7 @@ func awsRestxml_deserializeErrorInvalidFunctionAssociation(response *smithyhttp. } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidFunctionAssociation(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidDomainNameForOriginAccessControl(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19218,8 +20906,8 @@ func awsRestxml_deserializeErrorInvalidFunctionAssociation(response *smithyhttp. return output } -func awsRestxml_deserializeErrorInvalidGeoRestrictionParameter(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidGeoRestrictionParameter{} +func awsRestxml_deserializeErrorInvalidErrorCode(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidErrorCode{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -19249,7 +20937,7 @@ func awsRestxml_deserializeErrorInvalidGeoRestrictionParameter(response *smithyh } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidGeoRestrictionParameter(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidErrorCode(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19262,8 +20950,8 @@ func awsRestxml_deserializeErrorInvalidGeoRestrictionParameter(response *smithyh return output } -func awsRestxml_deserializeErrorInvalidHeadersForS3Origin(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidHeadersForS3Origin{} +func awsRestxml_deserializeErrorInvalidForwardCookies(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidForwardCookies{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -19293,7 +20981,7 @@ func awsRestxml_deserializeErrorInvalidHeadersForS3Origin(response *smithyhttp.R } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidHeadersForS3Origin(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidForwardCookies(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19306,8 +20994,8 @@ func awsRestxml_deserializeErrorInvalidHeadersForS3Origin(response *smithyhttp.R return output } -func awsRestxml_deserializeErrorInvalidIfMatchVersion(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidIfMatchVersion{} +func awsRestxml_deserializeErrorInvalidFunctionAssociation(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidFunctionAssociation{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -19337,7 +21025,7 @@ func awsRestxml_deserializeErrorInvalidIfMatchVersion(response *smithyhttp.Respo } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidIfMatchVersion(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidFunctionAssociation(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19350,8 +21038,8 @@ func awsRestxml_deserializeErrorInvalidIfMatchVersion(response *smithyhttp.Respo return output } -func awsRestxml_deserializeErrorInvalidLambdaFunctionAssociation(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidLambdaFunctionAssociation{} +func awsRestxml_deserializeErrorInvalidGeoRestrictionParameter(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidGeoRestrictionParameter{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -19381,7 +21069,7 @@ func awsRestxml_deserializeErrorInvalidLambdaFunctionAssociation(response *smith } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidLambdaFunctionAssociation(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidGeoRestrictionParameter(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19394,8 +21082,8 @@ func awsRestxml_deserializeErrorInvalidLambdaFunctionAssociation(response *smith return output } -func awsRestxml_deserializeErrorInvalidLocationCode(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidLocationCode{} +func awsRestxml_deserializeErrorInvalidHeadersForS3Origin(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidHeadersForS3Origin{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -19425,7 +21113,7 @@ func awsRestxml_deserializeErrorInvalidLocationCode(response *smithyhttp.Respons } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidLocationCode(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidHeadersForS3Origin(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19438,8 +21126,8 @@ func awsRestxml_deserializeErrorInvalidLocationCode(response *smithyhttp.Respons return output } -func awsRestxml_deserializeErrorInvalidMinimumProtocolVersion(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidMinimumProtocolVersion{} +func awsRestxml_deserializeErrorInvalidIfMatchVersion(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidIfMatchVersion{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -19469,7 +21157,7 @@ func awsRestxml_deserializeErrorInvalidMinimumProtocolVersion(response *smithyht } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidMinimumProtocolVersion(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidIfMatchVersion(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19482,8 +21170,8 @@ func awsRestxml_deserializeErrorInvalidMinimumProtocolVersion(response *smithyht return output } -func awsRestxml_deserializeErrorInvalidOrigin(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidOrigin{} +func awsRestxml_deserializeErrorInvalidLambdaFunctionAssociation(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidLambdaFunctionAssociation{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -19513,7 +21201,7 @@ func awsRestxml_deserializeErrorInvalidOrigin(response *smithyhttp.Response, err } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidOrigin(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidLambdaFunctionAssociation(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19526,8 +21214,8 @@ func awsRestxml_deserializeErrorInvalidOrigin(response *smithyhttp.Response, err return output } -func awsRestxml_deserializeErrorInvalidOriginAccessControl(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidOriginAccessControl{} +func awsRestxml_deserializeErrorInvalidLocationCode(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidLocationCode{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -19557,7 +21245,7 @@ func awsRestxml_deserializeErrorInvalidOriginAccessControl(response *smithyhttp. } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidOriginAccessControl(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidLocationCode(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19570,8 +21258,8 @@ func awsRestxml_deserializeErrorInvalidOriginAccessControl(response *smithyhttp. return output } -func awsRestxml_deserializeErrorInvalidOriginAccessIdentity(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidOriginAccessIdentity{} +func awsRestxml_deserializeErrorInvalidMinimumProtocolVersion(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidMinimumProtocolVersion{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -19601,7 +21289,7 @@ func awsRestxml_deserializeErrorInvalidOriginAccessIdentity(response *smithyhttp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidOriginAccessIdentity(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidMinimumProtocolVersion(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19614,8 +21302,8 @@ func awsRestxml_deserializeErrorInvalidOriginAccessIdentity(response *smithyhttp return output } -func awsRestxml_deserializeErrorInvalidOriginKeepaliveTimeout(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidOriginKeepaliveTimeout{} +func awsRestxml_deserializeErrorInvalidOrigin(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidOrigin{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -19645,7 +21333,7 @@ func awsRestxml_deserializeErrorInvalidOriginKeepaliveTimeout(response *smithyht } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidOriginKeepaliveTimeout(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidOrigin(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19658,8 +21346,8 @@ func awsRestxml_deserializeErrorInvalidOriginKeepaliveTimeout(response *smithyht return output } -func awsRestxml_deserializeErrorInvalidOriginReadTimeout(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidOriginReadTimeout{} +func awsRestxml_deserializeErrorInvalidOriginAccessControl(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidOriginAccessControl{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -19689,7 +21377,7 @@ func awsRestxml_deserializeErrorInvalidOriginReadTimeout(response *smithyhttp.Re } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidOriginReadTimeout(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidOriginAccessControl(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19702,8 +21390,8 @@ func awsRestxml_deserializeErrorInvalidOriginReadTimeout(response *smithyhttp.Re return output } -func awsRestxml_deserializeErrorInvalidProtocolSettings(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidProtocolSettings{} +func awsRestxml_deserializeErrorInvalidOriginAccessIdentity(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidOriginAccessIdentity{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -19733,7 +21421,7 @@ func awsRestxml_deserializeErrorInvalidProtocolSettings(response *smithyhttp.Res } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidProtocolSettings(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidOriginAccessIdentity(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19746,8 +21434,8 @@ func awsRestxml_deserializeErrorInvalidProtocolSettings(response *smithyhttp.Res return output } -func awsRestxml_deserializeErrorInvalidQueryStringParameters(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidQueryStringParameters{} +func awsRestxml_deserializeErrorInvalidOriginKeepaliveTimeout(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidOriginKeepaliveTimeout{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -19777,7 +21465,7 @@ func awsRestxml_deserializeErrorInvalidQueryStringParameters(response *smithyhtt } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidQueryStringParameters(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidOriginKeepaliveTimeout(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19790,8 +21478,8 @@ func awsRestxml_deserializeErrorInvalidQueryStringParameters(response *smithyhtt return output } -func awsRestxml_deserializeErrorInvalidRelativePath(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidRelativePath{} +func awsRestxml_deserializeErrorInvalidOriginReadTimeout(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidOriginReadTimeout{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -19821,7 +21509,7 @@ func awsRestxml_deserializeErrorInvalidRelativePath(response *smithyhttp.Respons } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidRelativePath(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidOriginReadTimeout(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19834,8 +21522,8 @@ func awsRestxml_deserializeErrorInvalidRelativePath(response *smithyhttp.Respons return output } -func awsRestxml_deserializeErrorInvalidRequiredProtocol(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidRequiredProtocol{} +func awsRestxml_deserializeErrorInvalidProtocolSettings(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidProtocolSettings{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -19865,7 +21553,7 @@ func awsRestxml_deserializeErrorInvalidRequiredProtocol(response *smithyhttp.Res } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidRequiredProtocol(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidProtocolSettings(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19878,8 +21566,8 @@ func awsRestxml_deserializeErrorInvalidRequiredProtocol(response *smithyhttp.Res return output } -func awsRestxml_deserializeErrorInvalidResponseCode(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidResponseCode{} +func awsRestxml_deserializeErrorInvalidQueryStringParameters(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidQueryStringParameters{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -19909,7 +21597,7 @@ func awsRestxml_deserializeErrorInvalidResponseCode(response *smithyhttp.Respons } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidResponseCode(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidQueryStringParameters(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19922,8 +21610,8 @@ func awsRestxml_deserializeErrorInvalidResponseCode(response *smithyhttp.Respons return output } -func awsRestxml_deserializeErrorInvalidTagging(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidTagging{} +func awsRestxml_deserializeErrorInvalidRelativePath(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidRelativePath{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -19953,7 +21641,7 @@ func awsRestxml_deserializeErrorInvalidTagging(response *smithyhttp.Response, er } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidTagging(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidRelativePath(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19966,8 +21654,8 @@ func awsRestxml_deserializeErrorInvalidTagging(response *smithyhttp.Response, er return output } -func awsRestxml_deserializeErrorInvalidTTLOrder(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidTTLOrder{} +func awsRestxml_deserializeErrorInvalidRequiredProtocol(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidRequiredProtocol{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -19997,7 +21685,7 @@ func awsRestxml_deserializeErrorInvalidTTLOrder(response *smithyhttp.Response, e } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidTTLOrder(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidRequiredProtocol(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20010,8 +21698,8 @@ func awsRestxml_deserializeErrorInvalidTTLOrder(response *smithyhttp.Response, e return output } -func awsRestxml_deserializeErrorInvalidViewerCertificate(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidViewerCertificate{} +func awsRestxml_deserializeErrorInvalidResponseCode(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidResponseCode{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -20041,7 +21729,7 @@ func awsRestxml_deserializeErrorInvalidViewerCertificate(response *smithyhttp.Re } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidViewerCertificate(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidResponseCode(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20054,8 +21742,8 @@ func awsRestxml_deserializeErrorInvalidViewerCertificate(response *smithyhttp.Re return output } -func awsRestxml_deserializeErrorInvalidWebACLId(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidWebACLId{} +func awsRestxml_deserializeErrorInvalidTagging(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidTagging{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -20085,7 +21773,7 @@ func awsRestxml_deserializeErrorInvalidWebACLId(response *smithyhttp.Response, e } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentInvalidWebACLId(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidTagging(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20098,8 +21786,8 @@ func awsRestxml_deserializeErrorInvalidWebACLId(response *smithyhttp.Response, e return output } -func awsRestxml_deserializeErrorKeyGroupAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.KeyGroupAlreadyExists{} +func awsRestxml_deserializeErrorInvalidTTLOrder(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidTTLOrder{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -20129,7 +21817,7 @@ func awsRestxml_deserializeErrorKeyGroupAlreadyExists(response *smithyhttp.Respo } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentKeyGroupAlreadyExists(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidTTLOrder(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20142,8 +21830,8 @@ func awsRestxml_deserializeErrorKeyGroupAlreadyExists(response *smithyhttp.Respo return output } -func awsRestxml_deserializeErrorMissingBody(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.MissingBody{} +func awsRestxml_deserializeErrorInvalidViewerCertificate(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidViewerCertificate{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -20173,7 +21861,7 @@ func awsRestxml_deserializeErrorMissingBody(response *smithyhttp.Response, error } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentMissingBody(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidViewerCertificate(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20186,8 +21874,8 @@ func awsRestxml_deserializeErrorMissingBody(response *smithyhttp.Response, error return output } -func awsRestxml_deserializeErrorMonitoringSubscriptionAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.MonitoringSubscriptionAlreadyExists{} +func awsRestxml_deserializeErrorInvalidWebACLId(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidWebACLId{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -20217,7 +21905,7 @@ func awsRestxml_deserializeErrorMonitoringSubscriptionAlreadyExists(response *sm } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentMonitoringSubscriptionAlreadyExists(&output, decoder) + err = awsRestxml_deserializeDocumentInvalidWebACLId(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20230,8 +21918,8 @@ func awsRestxml_deserializeErrorMonitoringSubscriptionAlreadyExists(response *sm return output } -func awsRestxml_deserializeErrorNoSuchCachePolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.NoSuchCachePolicy{} +func awsRestxml_deserializeErrorKeyGroupAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.KeyGroupAlreadyExists{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -20261,7 +21949,7 @@ func awsRestxml_deserializeErrorNoSuchCachePolicy(response *smithyhttp.Response, } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentNoSuchCachePolicy(&output, decoder) + err = awsRestxml_deserializeDocumentKeyGroupAlreadyExists(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20274,8 +21962,8 @@ func awsRestxml_deserializeErrorNoSuchCachePolicy(response *smithyhttp.Response, return output } -func awsRestxml_deserializeErrorNoSuchCloudFrontOriginAccessIdentity(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.NoSuchCloudFrontOriginAccessIdentity{} +func awsRestxml_deserializeErrorMissingBody(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.MissingBody{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -20305,7 +21993,7 @@ func awsRestxml_deserializeErrorNoSuchCloudFrontOriginAccessIdentity(response *s } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentNoSuchCloudFrontOriginAccessIdentity(&output, decoder) + err = awsRestxml_deserializeDocumentMissingBody(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20318,8 +22006,8 @@ func awsRestxml_deserializeErrorNoSuchCloudFrontOriginAccessIdentity(response *s return output } -func awsRestxml_deserializeErrorNoSuchContinuousDeploymentPolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.NoSuchContinuousDeploymentPolicy{} +func awsRestxml_deserializeErrorMonitoringSubscriptionAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.MonitoringSubscriptionAlreadyExists{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -20349,7 +22037,7 @@ func awsRestxml_deserializeErrorNoSuchContinuousDeploymentPolicy(response *smith } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentNoSuchContinuousDeploymentPolicy(&output, decoder) + err = awsRestxml_deserializeDocumentMonitoringSubscriptionAlreadyExists(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20362,8 +22050,8 @@ func awsRestxml_deserializeErrorNoSuchContinuousDeploymentPolicy(response *smith return output } -func awsRestxml_deserializeErrorNoSuchDistribution(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.NoSuchDistribution{} +func awsRestxml_deserializeErrorNoSuchCachePolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.NoSuchCachePolicy{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -20393,7 +22081,7 @@ func awsRestxml_deserializeErrorNoSuchDistribution(response *smithyhttp.Response } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentNoSuchDistribution(&output, decoder) + err = awsRestxml_deserializeDocumentNoSuchCachePolicy(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20406,8 +22094,8 @@ func awsRestxml_deserializeErrorNoSuchDistribution(response *smithyhttp.Response return output } -func awsRestxml_deserializeErrorNoSuchFieldLevelEncryptionConfig(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.NoSuchFieldLevelEncryptionConfig{} +func awsRestxml_deserializeErrorNoSuchCloudFrontOriginAccessIdentity(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.NoSuchCloudFrontOriginAccessIdentity{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -20437,7 +22125,7 @@ func awsRestxml_deserializeErrorNoSuchFieldLevelEncryptionConfig(response *smith } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentNoSuchFieldLevelEncryptionConfig(&output, decoder) + err = awsRestxml_deserializeDocumentNoSuchCloudFrontOriginAccessIdentity(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20450,8 +22138,8 @@ func awsRestxml_deserializeErrorNoSuchFieldLevelEncryptionConfig(response *smith return output } -func awsRestxml_deserializeErrorNoSuchFieldLevelEncryptionProfile(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.NoSuchFieldLevelEncryptionProfile{} +func awsRestxml_deserializeErrorNoSuchContinuousDeploymentPolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.NoSuchContinuousDeploymentPolicy{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -20481,7 +22169,7 @@ func awsRestxml_deserializeErrorNoSuchFieldLevelEncryptionProfile(response *smit } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentNoSuchFieldLevelEncryptionProfile(&output, decoder) + err = awsRestxml_deserializeDocumentNoSuchContinuousDeploymentPolicy(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20494,8 +22182,8 @@ func awsRestxml_deserializeErrorNoSuchFieldLevelEncryptionProfile(response *smit return output } -func awsRestxml_deserializeErrorNoSuchFunctionExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.NoSuchFunctionExists{} +func awsRestxml_deserializeErrorNoSuchDistribution(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.NoSuchDistribution{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -20525,7 +22213,7 @@ func awsRestxml_deserializeErrorNoSuchFunctionExists(response *smithyhttp.Respon } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentNoSuchFunctionExists(&output, decoder) + err = awsRestxml_deserializeDocumentNoSuchDistribution(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20538,8 +22226,8 @@ func awsRestxml_deserializeErrorNoSuchFunctionExists(response *smithyhttp.Respon return output } -func awsRestxml_deserializeErrorNoSuchInvalidation(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.NoSuchInvalidation{} +func awsRestxml_deserializeErrorNoSuchFieldLevelEncryptionConfig(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.NoSuchFieldLevelEncryptionConfig{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -20569,7 +22257,7 @@ func awsRestxml_deserializeErrorNoSuchInvalidation(response *smithyhttp.Response } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentNoSuchInvalidation(&output, decoder) + err = awsRestxml_deserializeDocumentNoSuchFieldLevelEncryptionConfig(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20582,8 +22270,8 @@ func awsRestxml_deserializeErrorNoSuchInvalidation(response *smithyhttp.Response return output } -func awsRestxml_deserializeErrorNoSuchMonitoringSubscription(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.NoSuchMonitoringSubscription{} +func awsRestxml_deserializeErrorNoSuchFieldLevelEncryptionProfile(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.NoSuchFieldLevelEncryptionProfile{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -20613,7 +22301,7 @@ func awsRestxml_deserializeErrorNoSuchMonitoringSubscription(response *smithyhtt } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentNoSuchMonitoringSubscription(&output, decoder) + err = awsRestxml_deserializeDocumentNoSuchFieldLevelEncryptionProfile(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20626,8 +22314,8 @@ func awsRestxml_deserializeErrorNoSuchMonitoringSubscription(response *smithyhtt return output } -func awsRestxml_deserializeErrorNoSuchOrigin(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.NoSuchOrigin{} +func awsRestxml_deserializeErrorNoSuchFunctionExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.NoSuchFunctionExists{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -20657,7 +22345,7 @@ func awsRestxml_deserializeErrorNoSuchOrigin(response *smithyhttp.Response, erro } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentNoSuchOrigin(&output, decoder) + err = awsRestxml_deserializeDocumentNoSuchFunctionExists(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20670,8 +22358,8 @@ func awsRestxml_deserializeErrorNoSuchOrigin(response *smithyhttp.Response, erro return output } -func awsRestxml_deserializeErrorNoSuchOriginAccessControl(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.NoSuchOriginAccessControl{} +func awsRestxml_deserializeErrorNoSuchInvalidation(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.NoSuchInvalidation{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -20701,7 +22389,7 @@ func awsRestxml_deserializeErrorNoSuchOriginAccessControl(response *smithyhttp.R } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentNoSuchOriginAccessControl(&output, decoder) + err = awsRestxml_deserializeDocumentNoSuchInvalidation(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20714,8 +22402,8 @@ func awsRestxml_deserializeErrorNoSuchOriginAccessControl(response *smithyhttp.R return output } -func awsRestxml_deserializeErrorNoSuchOriginRequestPolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.NoSuchOriginRequestPolicy{} +func awsRestxml_deserializeErrorNoSuchMonitoringSubscription(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.NoSuchMonitoringSubscription{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -20745,7 +22433,7 @@ func awsRestxml_deserializeErrorNoSuchOriginRequestPolicy(response *smithyhttp.R } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentNoSuchOriginRequestPolicy(&output, decoder) + err = awsRestxml_deserializeDocumentNoSuchMonitoringSubscription(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20758,8 +22446,8 @@ func awsRestxml_deserializeErrorNoSuchOriginRequestPolicy(response *smithyhttp.R return output } -func awsRestxml_deserializeErrorNoSuchPublicKey(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.NoSuchPublicKey{} +func awsRestxml_deserializeErrorNoSuchOrigin(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.NoSuchOrigin{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -20789,7 +22477,7 @@ func awsRestxml_deserializeErrorNoSuchPublicKey(response *smithyhttp.Response, e } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentNoSuchPublicKey(&output, decoder) + err = awsRestxml_deserializeDocumentNoSuchOrigin(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20802,8 +22490,8 @@ func awsRestxml_deserializeErrorNoSuchPublicKey(response *smithyhttp.Response, e return output } -func awsRestxml_deserializeErrorNoSuchRealtimeLogConfig(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.NoSuchRealtimeLogConfig{} +func awsRestxml_deserializeErrorNoSuchOriginAccessControl(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.NoSuchOriginAccessControl{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -20833,7 +22521,7 @@ func awsRestxml_deserializeErrorNoSuchRealtimeLogConfig(response *smithyhttp.Res } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentNoSuchRealtimeLogConfig(&output, decoder) + err = awsRestxml_deserializeDocumentNoSuchOriginAccessControl(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20846,8 +22534,8 @@ func awsRestxml_deserializeErrorNoSuchRealtimeLogConfig(response *smithyhttp.Res return output } -func awsRestxml_deserializeErrorNoSuchResource(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.NoSuchResource{} +func awsRestxml_deserializeErrorNoSuchOriginRequestPolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.NoSuchOriginRequestPolicy{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -20877,7 +22565,7 @@ func awsRestxml_deserializeErrorNoSuchResource(response *smithyhttp.Response, er } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentNoSuchResource(&output, decoder) + err = awsRestxml_deserializeDocumentNoSuchOriginRequestPolicy(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20890,8 +22578,8 @@ func awsRestxml_deserializeErrorNoSuchResource(response *smithyhttp.Response, er return output } -func awsRestxml_deserializeErrorNoSuchResponseHeadersPolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.NoSuchResponseHeadersPolicy{} +func awsRestxml_deserializeErrorNoSuchPublicKey(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.NoSuchPublicKey{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -20921,7 +22609,7 @@ func awsRestxml_deserializeErrorNoSuchResponseHeadersPolicy(response *smithyhttp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentNoSuchResponseHeadersPolicy(&output, decoder) + err = awsRestxml_deserializeDocumentNoSuchPublicKey(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20934,8 +22622,8 @@ func awsRestxml_deserializeErrorNoSuchResponseHeadersPolicy(response *smithyhttp return output } -func awsRestxml_deserializeErrorNoSuchStreamingDistribution(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.NoSuchStreamingDistribution{} +func awsRestxml_deserializeErrorNoSuchRealtimeLogConfig(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.NoSuchRealtimeLogConfig{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -20965,7 +22653,7 @@ func awsRestxml_deserializeErrorNoSuchStreamingDistribution(response *smithyhttp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentNoSuchStreamingDistribution(&output, decoder) + err = awsRestxml_deserializeDocumentNoSuchRealtimeLogConfig(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20978,8 +22666,8 @@ func awsRestxml_deserializeErrorNoSuchStreamingDistribution(response *smithyhttp return output } -func awsRestxml_deserializeErrorOriginAccessControlAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.OriginAccessControlAlreadyExists{} +func awsRestxml_deserializeErrorNoSuchResource(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.NoSuchResource{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -21009,7 +22697,7 @@ func awsRestxml_deserializeErrorOriginAccessControlAlreadyExists(response *smith } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentOriginAccessControlAlreadyExists(&output, decoder) + err = awsRestxml_deserializeDocumentNoSuchResource(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21022,8 +22710,8 @@ func awsRestxml_deserializeErrorOriginAccessControlAlreadyExists(response *smith return output } -func awsRestxml_deserializeErrorOriginAccessControlInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.OriginAccessControlInUse{} +func awsRestxml_deserializeErrorNoSuchResponseHeadersPolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.NoSuchResponseHeadersPolicy{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -21053,7 +22741,7 @@ func awsRestxml_deserializeErrorOriginAccessControlInUse(response *smithyhttp.Re } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentOriginAccessControlInUse(&output, decoder) + err = awsRestxml_deserializeDocumentNoSuchResponseHeadersPolicy(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21066,8 +22754,8 @@ func awsRestxml_deserializeErrorOriginAccessControlInUse(response *smithyhttp.Re return output } -func awsRestxml_deserializeErrorOriginRequestPolicyAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.OriginRequestPolicyAlreadyExists{} +func awsRestxml_deserializeErrorNoSuchStreamingDistribution(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.NoSuchStreamingDistribution{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -21097,7 +22785,7 @@ func awsRestxml_deserializeErrorOriginRequestPolicyAlreadyExists(response *smith } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentOriginRequestPolicyAlreadyExists(&output, decoder) + err = awsRestxml_deserializeDocumentNoSuchStreamingDistribution(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21110,8 +22798,8 @@ func awsRestxml_deserializeErrorOriginRequestPolicyAlreadyExists(response *smith return output } -func awsRestxml_deserializeErrorOriginRequestPolicyInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.OriginRequestPolicyInUse{} +func awsRestxml_deserializeErrorOriginAccessControlAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.OriginAccessControlAlreadyExists{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -21141,7 +22829,7 @@ func awsRestxml_deserializeErrorOriginRequestPolicyInUse(response *smithyhttp.Re } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentOriginRequestPolicyInUse(&output, decoder) + err = awsRestxml_deserializeDocumentOriginAccessControlAlreadyExists(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21154,8 +22842,8 @@ func awsRestxml_deserializeErrorOriginRequestPolicyInUse(response *smithyhttp.Re return output } -func awsRestxml_deserializeErrorPreconditionFailed(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.PreconditionFailed{} +func awsRestxml_deserializeErrorOriginAccessControlInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.OriginAccessControlInUse{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -21185,7 +22873,7 @@ func awsRestxml_deserializeErrorPreconditionFailed(response *smithyhttp.Response } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentPreconditionFailed(&output, decoder) + err = awsRestxml_deserializeDocumentOriginAccessControlInUse(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21198,8 +22886,8 @@ func awsRestxml_deserializeErrorPreconditionFailed(response *smithyhttp.Response return output } -func awsRestxml_deserializeErrorPublicKeyAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.PublicKeyAlreadyExists{} +func awsRestxml_deserializeErrorOriginRequestPolicyAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.OriginRequestPolicyAlreadyExists{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -21229,7 +22917,7 @@ func awsRestxml_deserializeErrorPublicKeyAlreadyExists(response *smithyhttp.Resp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentPublicKeyAlreadyExists(&output, decoder) + err = awsRestxml_deserializeDocumentOriginRequestPolicyAlreadyExists(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21242,8 +22930,8 @@ func awsRestxml_deserializeErrorPublicKeyAlreadyExists(response *smithyhttp.Resp return output } -func awsRestxml_deserializeErrorPublicKeyInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.PublicKeyInUse{} +func awsRestxml_deserializeErrorOriginRequestPolicyInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.OriginRequestPolicyInUse{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -21273,7 +22961,7 @@ func awsRestxml_deserializeErrorPublicKeyInUse(response *smithyhttp.Response, er } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentPublicKeyInUse(&output, decoder) + err = awsRestxml_deserializeDocumentOriginRequestPolicyInUse(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21286,8 +22974,8 @@ func awsRestxml_deserializeErrorPublicKeyInUse(response *smithyhttp.Response, er return output } -func awsRestxml_deserializeErrorQueryArgProfileEmpty(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.QueryArgProfileEmpty{} +func awsRestxml_deserializeErrorPreconditionFailed(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.PreconditionFailed{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -21317,7 +23005,7 @@ func awsRestxml_deserializeErrorQueryArgProfileEmpty(response *smithyhttp.Respon } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentQueryArgProfileEmpty(&output, decoder) + err = awsRestxml_deserializeDocumentPreconditionFailed(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21330,8 +23018,8 @@ func awsRestxml_deserializeErrorQueryArgProfileEmpty(response *smithyhttp.Respon return output } -func awsRestxml_deserializeErrorRealtimeLogConfigAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.RealtimeLogConfigAlreadyExists{} +func awsRestxml_deserializeErrorPublicKeyAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.PublicKeyAlreadyExists{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -21361,7 +23049,7 @@ func awsRestxml_deserializeErrorRealtimeLogConfigAlreadyExists(response *smithyh } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentRealtimeLogConfigAlreadyExists(&output, decoder) + err = awsRestxml_deserializeDocumentPublicKeyAlreadyExists(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21374,8 +23062,8 @@ func awsRestxml_deserializeErrorRealtimeLogConfigAlreadyExists(response *smithyh return output } -func awsRestxml_deserializeErrorRealtimeLogConfigInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.RealtimeLogConfigInUse{} +func awsRestxml_deserializeErrorPublicKeyInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.PublicKeyInUse{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -21405,7 +23093,7 @@ func awsRestxml_deserializeErrorRealtimeLogConfigInUse(response *smithyhttp.Resp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentRealtimeLogConfigInUse(&output, decoder) + err = awsRestxml_deserializeDocumentPublicKeyInUse(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21418,8 +23106,8 @@ func awsRestxml_deserializeErrorRealtimeLogConfigInUse(response *smithyhttp.Resp return output } -func awsRestxml_deserializeErrorRealtimeLogConfigOwnerMismatch(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.RealtimeLogConfigOwnerMismatch{} +func awsRestxml_deserializeErrorQueryArgProfileEmpty(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.QueryArgProfileEmpty{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -21449,7 +23137,7 @@ func awsRestxml_deserializeErrorRealtimeLogConfigOwnerMismatch(response *smithyh } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentRealtimeLogConfigOwnerMismatch(&output, decoder) + err = awsRestxml_deserializeDocumentQueryArgProfileEmpty(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21462,8 +23150,8 @@ func awsRestxml_deserializeErrorRealtimeLogConfigOwnerMismatch(response *smithyh return output } -func awsRestxml_deserializeErrorResourceInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ResourceInUse{} +func awsRestxml_deserializeErrorRealtimeLogConfigAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.RealtimeLogConfigAlreadyExists{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -21493,7 +23181,7 @@ func awsRestxml_deserializeErrorResourceInUse(response *smithyhttp.Response, err } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentResourceInUse(&output, decoder) + err = awsRestxml_deserializeDocumentRealtimeLogConfigAlreadyExists(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21506,8 +23194,8 @@ func awsRestxml_deserializeErrorResourceInUse(response *smithyhttp.Response, err return output } -func awsRestxml_deserializeErrorResponseHeadersPolicyAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ResponseHeadersPolicyAlreadyExists{} +func awsRestxml_deserializeErrorRealtimeLogConfigInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.RealtimeLogConfigInUse{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -21537,7 +23225,7 @@ func awsRestxml_deserializeErrorResponseHeadersPolicyAlreadyExists(response *smi } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentResponseHeadersPolicyAlreadyExists(&output, decoder) + err = awsRestxml_deserializeDocumentRealtimeLogConfigInUse(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21550,8 +23238,8 @@ func awsRestxml_deserializeErrorResponseHeadersPolicyAlreadyExists(response *smi return output } -func awsRestxml_deserializeErrorResponseHeadersPolicyInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ResponseHeadersPolicyInUse{} +func awsRestxml_deserializeErrorRealtimeLogConfigOwnerMismatch(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.RealtimeLogConfigOwnerMismatch{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -21581,7 +23269,7 @@ func awsRestxml_deserializeErrorResponseHeadersPolicyInUse(response *smithyhttp. } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentResponseHeadersPolicyInUse(&output, decoder) + err = awsRestxml_deserializeDocumentRealtimeLogConfigOwnerMismatch(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21594,8 +23282,8 @@ func awsRestxml_deserializeErrorResponseHeadersPolicyInUse(response *smithyhttp. return output } -func awsRestxml_deserializeErrorStagingDistributionInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.StagingDistributionInUse{} +func awsRestxml_deserializeErrorResourceInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ResourceInUse{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -21625,7 +23313,7 @@ func awsRestxml_deserializeErrorStagingDistributionInUse(response *smithyhttp.Re } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentStagingDistributionInUse(&output, decoder) + err = awsRestxml_deserializeDocumentResourceInUse(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21638,8 +23326,8 @@ func awsRestxml_deserializeErrorStagingDistributionInUse(response *smithyhttp.Re return output } -func awsRestxml_deserializeErrorStreamingDistributionAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.StreamingDistributionAlreadyExists{} +func awsRestxml_deserializeErrorResponseHeadersPolicyAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ResponseHeadersPolicyAlreadyExists{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -21669,7 +23357,7 @@ func awsRestxml_deserializeErrorStreamingDistributionAlreadyExists(response *smi } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentStreamingDistributionAlreadyExists(&output, decoder) + err = awsRestxml_deserializeDocumentResponseHeadersPolicyAlreadyExists(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21682,8 +23370,8 @@ func awsRestxml_deserializeErrorStreamingDistributionAlreadyExists(response *smi return output } -func awsRestxml_deserializeErrorStreamingDistributionNotDisabled(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.StreamingDistributionNotDisabled{} +func awsRestxml_deserializeErrorResponseHeadersPolicyInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ResponseHeadersPolicyInUse{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -21713,7 +23401,7 @@ func awsRestxml_deserializeErrorStreamingDistributionNotDisabled(response *smith } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentStreamingDistributionNotDisabled(&output, decoder) + err = awsRestxml_deserializeDocumentResponseHeadersPolicyInUse(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21726,8 +23414,8 @@ func awsRestxml_deserializeErrorStreamingDistributionNotDisabled(response *smith return output } -func awsRestxml_deserializeErrorTestFunctionFailed(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TestFunctionFailed{} +func awsRestxml_deserializeErrorStagingDistributionInUse(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.StagingDistributionInUse{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -21757,7 +23445,7 @@ func awsRestxml_deserializeErrorTestFunctionFailed(response *smithyhttp.Response } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTestFunctionFailed(&output, decoder) + err = awsRestxml_deserializeDocumentStagingDistributionInUse(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21770,8 +23458,8 @@ func awsRestxml_deserializeErrorTestFunctionFailed(response *smithyhttp.Response return output } -func awsRestxml_deserializeErrorTooLongCSPInResponseHeadersPolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooLongCSPInResponseHeadersPolicy{} +func awsRestxml_deserializeErrorStreamingDistributionAlreadyExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.StreamingDistributionAlreadyExists{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -21801,7 +23489,7 @@ func awsRestxml_deserializeErrorTooLongCSPInResponseHeadersPolicy(response *smit } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooLongCSPInResponseHeadersPolicy(&output, decoder) + err = awsRestxml_deserializeDocumentStreamingDistributionAlreadyExists(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21814,8 +23502,8 @@ func awsRestxml_deserializeErrorTooLongCSPInResponseHeadersPolicy(response *smit return output } -func awsRestxml_deserializeErrorTooManyCacheBehaviors(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyCacheBehaviors{} +func awsRestxml_deserializeErrorStreamingDistributionNotDisabled(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.StreamingDistributionNotDisabled{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -21845,7 +23533,7 @@ func awsRestxml_deserializeErrorTooManyCacheBehaviors(response *smithyhttp.Respo } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyCacheBehaviors(&output, decoder) + err = awsRestxml_deserializeDocumentStreamingDistributionNotDisabled(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21858,8 +23546,8 @@ func awsRestxml_deserializeErrorTooManyCacheBehaviors(response *smithyhttp.Respo return output } -func awsRestxml_deserializeErrorTooManyCachePolicies(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyCachePolicies{} +func awsRestxml_deserializeErrorTestFunctionFailed(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TestFunctionFailed{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -21889,7 +23577,7 @@ func awsRestxml_deserializeErrorTooManyCachePolicies(response *smithyhttp.Respon } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyCachePolicies(&output, decoder) + err = awsRestxml_deserializeDocumentTestFunctionFailed(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21902,8 +23590,8 @@ func awsRestxml_deserializeErrorTooManyCachePolicies(response *smithyhttp.Respon return output } -func awsRestxml_deserializeErrorTooManyCertificates(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyCertificates{} +func awsRestxml_deserializeErrorTooLongCSPInResponseHeadersPolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooLongCSPInResponseHeadersPolicy{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -21933,7 +23621,7 @@ func awsRestxml_deserializeErrorTooManyCertificates(response *smithyhttp.Respons } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyCertificates(&output, decoder) + err = awsRestxml_deserializeDocumentTooLongCSPInResponseHeadersPolicy(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21946,8 +23634,8 @@ func awsRestxml_deserializeErrorTooManyCertificates(response *smithyhttp.Respons return output } -func awsRestxml_deserializeErrorTooManyCloudFrontOriginAccessIdentities(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyCloudFrontOriginAccessIdentities{} +func awsRestxml_deserializeErrorTooManyCacheBehaviors(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyCacheBehaviors{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -21977,7 +23665,7 @@ func awsRestxml_deserializeErrorTooManyCloudFrontOriginAccessIdentities(response } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyCloudFrontOriginAccessIdentities(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyCacheBehaviors(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21990,8 +23678,8 @@ func awsRestxml_deserializeErrorTooManyCloudFrontOriginAccessIdentities(response return output } -func awsRestxml_deserializeErrorTooManyContinuousDeploymentPolicies(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyContinuousDeploymentPolicies{} +func awsRestxml_deserializeErrorTooManyCachePolicies(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyCachePolicies{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -22021,7 +23709,7 @@ func awsRestxml_deserializeErrorTooManyContinuousDeploymentPolicies(response *sm } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyContinuousDeploymentPolicies(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyCachePolicies(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22034,8 +23722,8 @@ func awsRestxml_deserializeErrorTooManyContinuousDeploymentPolicies(response *sm return output } -func awsRestxml_deserializeErrorTooManyCookieNamesInWhiteList(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyCookieNamesInWhiteList{} +func awsRestxml_deserializeErrorTooManyCertificates(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyCertificates{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -22065,7 +23753,7 @@ func awsRestxml_deserializeErrorTooManyCookieNamesInWhiteList(response *smithyht } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyCookieNamesInWhiteList(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyCertificates(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22078,8 +23766,8 @@ func awsRestxml_deserializeErrorTooManyCookieNamesInWhiteList(response *smithyht return output } -func awsRestxml_deserializeErrorTooManyCookiesInCachePolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyCookiesInCachePolicy{} +func awsRestxml_deserializeErrorTooManyCloudFrontOriginAccessIdentities(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyCloudFrontOriginAccessIdentities{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -22109,7 +23797,7 @@ func awsRestxml_deserializeErrorTooManyCookiesInCachePolicy(response *smithyhttp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyCookiesInCachePolicy(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyCloudFrontOriginAccessIdentities(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22122,8 +23810,8 @@ func awsRestxml_deserializeErrorTooManyCookiesInCachePolicy(response *smithyhttp return output } -func awsRestxml_deserializeErrorTooManyCookiesInOriginRequestPolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyCookiesInOriginRequestPolicy{} +func awsRestxml_deserializeErrorTooManyContinuousDeploymentPolicies(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyContinuousDeploymentPolicies{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -22153,7 +23841,7 @@ func awsRestxml_deserializeErrorTooManyCookiesInOriginRequestPolicy(response *sm } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyCookiesInOriginRequestPolicy(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyContinuousDeploymentPolicies(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22166,8 +23854,8 @@ func awsRestxml_deserializeErrorTooManyCookiesInOriginRequestPolicy(response *sm return output } -func awsRestxml_deserializeErrorTooManyCustomHeadersInResponseHeadersPolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyCustomHeadersInResponseHeadersPolicy{} +func awsRestxml_deserializeErrorTooManyCookieNamesInWhiteList(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyCookieNamesInWhiteList{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -22197,7 +23885,7 @@ func awsRestxml_deserializeErrorTooManyCustomHeadersInResponseHeadersPolicy(resp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyCustomHeadersInResponseHeadersPolicy(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyCookieNamesInWhiteList(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22210,8 +23898,8 @@ func awsRestxml_deserializeErrorTooManyCustomHeadersInResponseHeadersPolicy(resp return output } -func awsRestxml_deserializeErrorTooManyDistributionCNAMEs(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyDistributionCNAMEs{} +func awsRestxml_deserializeErrorTooManyCookiesInCachePolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyCookiesInCachePolicy{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -22241,7 +23929,7 @@ func awsRestxml_deserializeErrorTooManyDistributionCNAMEs(response *smithyhttp.R } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyDistributionCNAMEs(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyCookiesInCachePolicy(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22254,8 +23942,8 @@ func awsRestxml_deserializeErrorTooManyDistributionCNAMEs(response *smithyhttp.R return output } -func awsRestxml_deserializeErrorTooManyDistributions(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyDistributions{} +func awsRestxml_deserializeErrorTooManyCookiesInOriginRequestPolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyCookiesInOriginRequestPolicy{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -22285,7 +23973,7 @@ func awsRestxml_deserializeErrorTooManyDistributions(response *smithyhttp.Respon } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyDistributions(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyCookiesInOriginRequestPolicy(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22298,8 +23986,8 @@ func awsRestxml_deserializeErrorTooManyDistributions(response *smithyhttp.Respon return output } -func awsRestxml_deserializeErrorTooManyDistributionsAssociatedToCachePolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyDistributionsAssociatedToCachePolicy{} +func awsRestxml_deserializeErrorTooManyCustomHeadersInResponseHeadersPolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyCustomHeadersInResponseHeadersPolicy{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -22329,7 +24017,7 @@ func awsRestxml_deserializeErrorTooManyDistributionsAssociatedToCachePolicy(resp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToCachePolicy(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyCustomHeadersInResponseHeadersPolicy(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22342,8 +24030,8 @@ func awsRestxml_deserializeErrorTooManyDistributionsAssociatedToCachePolicy(resp return output } -func awsRestxml_deserializeErrorTooManyDistributionsAssociatedToFieldLevelEncryptionConfig(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyDistributionsAssociatedToFieldLevelEncryptionConfig{} +func awsRestxml_deserializeErrorTooManyDistributionCNAMEs(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyDistributionCNAMEs{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -22373,7 +24061,7 @@ func awsRestxml_deserializeErrorTooManyDistributionsAssociatedToFieldLevelEncryp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToFieldLevelEncryptionConfig(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyDistributionCNAMEs(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22386,8 +24074,8 @@ func awsRestxml_deserializeErrorTooManyDistributionsAssociatedToFieldLevelEncryp return output } -func awsRestxml_deserializeErrorTooManyDistributionsAssociatedToKeyGroup(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyDistributionsAssociatedToKeyGroup{} +func awsRestxml_deserializeErrorTooManyDistributions(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyDistributions{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -22417,7 +24105,7 @@ func awsRestxml_deserializeErrorTooManyDistributionsAssociatedToKeyGroup(respons } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToKeyGroup(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyDistributions(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22430,8 +24118,8 @@ func awsRestxml_deserializeErrorTooManyDistributionsAssociatedToKeyGroup(respons return output } -func awsRestxml_deserializeErrorTooManyDistributionsAssociatedToOriginAccessControl(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyDistributionsAssociatedToOriginAccessControl{} +func awsRestxml_deserializeErrorTooManyDistributionsAssociatedToCachePolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyDistributionsAssociatedToCachePolicy{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -22461,7 +24149,7 @@ func awsRestxml_deserializeErrorTooManyDistributionsAssociatedToOriginAccessCont } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToOriginAccessControl(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToCachePolicy(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22474,8 +24162,8 @@ func awsRestxml_deserializeErrorTooManyDistributionsAssociatedToOriginAccessCont return output } -func awsRestxml_deserializeErrorTooManyDistributionsAssociatedToOriginRequestPolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyDistributionsAssociatedToOriginRequestPolicy{} +func awsRestxml_deserializeErrorTooManyDistributionsAssociatedToFieldLevelEncryptionConfig(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyDistributionsAssociatedToFieldLevelEncryptionConfig{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -22505,7 +24193,7 @@ func awsRestxml_deserializeErrorTooManyDistributionsAssociatedToOriginRequestPol } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToOriginRequestPolicy(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToFieldLevelEncryptionConfig(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22518,8 +24206,8 @@ func awsRestxml_deserializeErrorTooManyDistributionsAssociatedToOriginRequestPol return output } -func awsRestxml_deserializeErrorTooManyDistributionsAssociatedToResponseHeadersPolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyDistributionsAssociatedToResponseHeadersPolicy{} +func awsRestxml_deserializeErrorTooManyDistributionsAssociatedToKeyGroup(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyDistributionsAssociatedToKeyGroup{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -22549,7 +24237,7 @@ func awsRestxml_deserializeErrorTooManyDistributionsAssociatedToResponseHeadersP } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToResponseHeadersPolicy(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToKeyGroup(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22562,8 +24250,8 @@ func awsRestxml_deserializeErrorTooManyDistributionsAssociatedToResponseHeadersP return output } -func awsRestxml_deserializeErrorTooManyDistributionsWithFunctionAssociations(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyDistributionsWithFunctionAssociations{} +func awsRestxml_deserializeErrorTooManyDistributionsAssociatedToOriginAccessControl(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyDistributionsAssociatedToOriginAccessControl{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -22593,7 +24281,7 @@ func awsRestxml_deserializeErrorTooManyDistributionsWithFunctionAssociations(res } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyDistributionsWithFunctionAssociations(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToOriginAccessControl(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22606,8 +24294,8 @@ func awsRestxml_deserializeErrorTooManyDistributionsWithFunctionAssociations(res return output } -func awsRestxml_deserializeErrorTooManyDistributionsWithLambdaAssociations(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyDistributionsWithLambdaAssociations{} +func awsRestxml_deserializeErrorTooManyDistributionsAssociatedToOriginRequestPolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyDistributionsAssociatedToOriginRequestPolicy{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -22637,7 +24325,7 @@ func awsRestxml_deserializeErrorTooManyDistributionsWithLambdaAssociations(respo } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyDistributionsWithLambdaAssociations(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToOriginRequestPolicy(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22650,8 +24338,8 @@ func awsRestxml_deserializeErrorTooManyDistributionsWithLambdaAssociations(respo return output } -func awsRestxml_deserializeErrorTooManyDistributionsWithSingleFunctionARN(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyDistributionsWithSingleFunctionARN{} +func awsRestxml_deserializeErrorTooManyDistributionsAssociatedToResponseHeadersPolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyDistributionsAssociatedToResponseHeadersPolicy{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -22681,7 +24369,7 @@ func awsRestxml_deserializeErrorTooManyDistributionsWithSingleFunctionARN(respon } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyDistributionsWithSingleFunctionARN(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToResponseHeadersPolicy(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22694,8 +24382,8 @@ func awsRestxml_deserializeErrorTooManyDistributionsWithSingleFunctionARN(respon return output } -func awsRestxml_deserializeErrorTooManyFieldLevelEncryptionConfigs(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyFieldLevelEncryptionConfigs{} +func awsRestxml_deserializeErrorTooManyDistributionsWithFunctionAssociations(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyDistributionsWithFunctionAssociations{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -22725,7 +24413,7 @@ func awsRestxml_deserializeErrorTooManyFieldLevelEncryptionConfigs(response *smi } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionConfigs(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyDistributionsWithFunctionAssociations(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22738,8 +24426,8 @@ func awsRestxml_deserializeErrorTooManyFieldLevelEncryptionConfigs(response *smi return output } -func awsRestxml_deserializeErrorTooManyFieldLevelEncryptionContentTypeProfiles(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyFieldLevelEncryptionContentTypeProfiles{} +func awsRestxml_deserializeErrorTooManyDistributionsWithLambdaAssociations(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyDistributionsWithLambdaAssociations{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -22769,7 +24457,7 @@ func awsRestxml_deserializeErrorTooManyFieldLevelEncryptionContentTypeProfiles(r } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionContentTypeProfiles(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyDistributionsWithLambdaAssociations(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22782,8 +24470,8 @@ func awsRestxml_deserializeErrorTooManyFieldLevelEncryptionContentTypeProfiles(r return output } -func awsRestxml_deserializeErrorTooManyFieldLevelEncryptionEncryptionEntities(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyFieldLevelEncryptionEncryptionEntities{} +func awsRestxml_deserializeErrorTooManyDistributionsWithSingleFunctionARN(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyDistributionsWithSingleFunctionARN{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -22813,7 +24501,7 @@ func awsRestxml_deserializeErrorTooManyFieldLevelEncryptionEncryptionEntities(re } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionEncryptionEntities(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyDistributionsWithSingleFunctionARN(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22826,8 +24514,8 @@ func awsRestxml_deserializeErrorTooManyFieldLevelEncryptionEncryptionEntities(re return output } -func awsRestxml_deserializeErrorTooManyFieldLevelEncryptionFieldPatterns(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyFieldLevelEncryptionFieldPatterns{} +func awsRestxml_deserializeErrorTooManyFieldLevelEncryptionConfigs(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyFieldLevelEncryptionConfigs{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -22857,7 +24545,7 @@ func awsRestxml_deserializeErrorTooManyFieldLevelEncryptionFieldPatterns(respons } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionFieldPatterns(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionConfigs(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22870,8 +24558,8 @@ func awsRestxml_deserializeErrorTooManyFieldLevelEncryptionFieldPatterns(respons return output } -func awsRestxml_deserializeErrorTooManyFieldLevelEncryptionProfiles(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyFieldLevelEncryptionProfiles{} +func awsRestxml_deserializeErrorTooManyFieldLevelEncryptionContentTypeProfiles(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyFieldLevelEncryptionContentTypeProfiles{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -22901,7 +24589,7 @@ func awsRestxml_deserializeErrorTooManyFieldLevelEncryptionProfiles(response *sm } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionProfiles(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionContentTypeProfiles(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22914,8 +24602,8 @@ func awsRestxml_deserializeErrorTooManyFieldLevelEncryptionProfiles(response *sm return output } -func awsRestxml_deserializeErrorTooManyFieldLevelEncryptionQueryArgProfiles(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyFieldLevelEncryptionQueryArgProfiles{} +func awsRestxml_deserializeErrorTooManyFieldLevelEncryptionEncryptionEntities(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyFieldLevelEncryptionEncryptionEntities{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -22945,7 +24633,7 @@ func awsRestxml_deserializeErrorTooManyFieldLevelEncryptionQueryArgProfiles(resp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionQueryArgProfiles(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionEncryptionEntities(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22958,8 +24646,8 @@ func awsRestxml_deserializeErrorTooManyFieldLevelEncryptionQueryArgProfiles(resp return output } -func awsRestxml_deserializeErrorTooManyFunctionAssociations(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyFunctionAssociations{} +func awsRestxml_deserializeErrorTooManyFieldLevelEncryptionFieldPatterns(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyFieldLevelEncryptionFieldPatterns{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -22989,7 +24677,7 @@ func awsRestxml_deserializeErrorTooManyFunctionAssociations(response *smithyhttp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyFunctionAssociations(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionFieldPatterns(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23002,8 +24690,8 @@ func awsRestxml_deserializeErrorTooManyFunctionAssociations(response *smithyhttp return output } -func awsRestxml_deserializeErrorTooManyFunctions(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyFunctions{} +func awsRestxml_deserializeErrorTooManyFieldLevelEncryptionProfiles(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyFieldLevelEncryptionProfiles{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -23033,7 +24721,7 @@ func awsRestxml_deserializeErrorTooManyFunctions(response *smithyhttp.Response, } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyFunctions(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionProfiles(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23046,8 +24734,8 @@ func awsRestxml_deserializeErrorTooManyFunctions(response *smithyhttp.Response, return output } -func awsRestxml_deserializeErrorTooManyHeadersInCachePolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyHeadersInCachePolicy{} +func awsRestxml_deserializeErrorTooManyFieldLevelEncryptionQueryArgProfiles(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyFieldLevelEncryptionQueryArgProfiles{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -23077,7 +24765,7 @@ func awsRestxml_deserializeErrorTooManyHeadersInCachePolicy(response *smithyhttp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyHeadersInCachePolicy(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionQueryArgProfiles(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23090,8 +24778,8 @@ func awsRestxml_deserializeErrorTooManyHeadersInCachePolicy(response *smithyhttp return output } -func awsRestxml_deserializeErrorTooManyHeadersInForwardedValues(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyHeadersInForwardedValues{} +func awsRestxml_deserializeErrorTooManyFunctionAssociations(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyFunctionAssociations{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -23121,7 +24809,7 @@ func awsRestxml_deserializeErrorTooManyHeadersInForwardedValues(response *smithy } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyHeadersInForwardedValues(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyFunctionAssociations(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23134,8 +24822,8 @@ func awsRestxml_deserializeErrorTooManyHeadersInForwardedValues(response *smithy return output } -func awsRestxml_deserializeErrorTooManyHeadersInOriginRequestPolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyHeadersInOriginRequestPolicy{} +func awsRestxml_deserializeErrorTooManyFunctions(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyFunctions{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -23165,7 +24853,7 @@ func awsRestxml_deserializeErrorTooManyHeadersInOriginRequestPolicy(response *sm } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyHeadersInOriginRequestPolicy(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyFunctions(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23178,8 +24866,8 @@ func awsRestxml_deserializeErrorTooManyHeadersInOriginRequestPolicy(response *sm return output } -func awsRestxml_deserializeErrorTooManyInvalidationsInProgress(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyInvalidationsInProgress{} +func awsRestxml_deserializeErrorTooManyHeadersInCachePolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyHeadersInCachePolicy{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -23209,7 +24897,7 @@ func awsRestxml_deserializeErrorTooManyInvalidationsInProgress(response *smithyh } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyInvalidationsInProgress(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyHeadersInCachePolicy(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23222,8 +24910,8 @@ func awsRestxml_deserializeErrorTooManyInvalidationsInProgress(response *smithyh return output } -func awsRestxml_deserializeErrorTooManyKeyGroups(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyKeyGroups{} +func awsRestxml_deserializeErrorTooManyHeadersInForwardedValues(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyHeadersInForwardedValues{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -23253,7 +24941,7 @@ func awsRestxml_deserializeErrorTooManyKeyGroups(response *smithyhttp.Response, } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyKeyGroups(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyHeadersInForwardedValues(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23266,8 +24954,8 @@ func awsRestxml_deserializeErrorTooManyKeyGroups(response *smithyhttp.Response, return output } -func awsRestxml_deserializeErrorTooManyKeyGroupsAssociatedToDistribution(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyKeyGroupsAssociatedToDistribution{} +func awsRestxml_deserializeErrorTooManyHeadersInOriginRequestPolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyHeadersInOriginRequestPolicy{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -23297,7 +24985,7 @@ func awsRestxml_deserializeErrorTooManyKeyGroupsAssociatedToDistribution(respons } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyKeyGroupsAssociatedToDistribution(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyHeadersInOriginRequestPolicy(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23310,8 +24998,8 @@ func awsRestxml_deserializeErrorTooManyKeyGroupsAssociatedToDistribution(respons return output } -func awsRestxml_deserializeErrorTooManyLambdaFunctionAssociations(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyLambdaFunctionAssociations{} +func awsRestxml_deserializeErrorTooManyInvalidationsInProgress(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyInvalidationsInProgress{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -23341,7 +25029,7 @@ func awsRestxml_deserializeErrorTooManyLambdaFunctionAssociations(response *smit } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyLambdaFunctionAssociations(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyInvalidationsInProgress(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23354,8 +25042,8 @@ func awsRestxml_deserializeErrorTooManyLambdaFunctionAssociations(response *smit return output } -func awsRestxml_deserializeErrorTooManyOriginAccessControls(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyOriginAccessControls{} +func awsRestxml_deserializeErrorTooManyKeyGroups(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyKeyGroups{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -23385,7 +25073,7 @@ func awsRestxml_deserializeErrorTooManyOriginAccessControls(response *smithyhttp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyOriginAccessControls(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyKeyGroups(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23398,8 +25086,8 @@ func awsRestxml_deserializeErrorTooManyOriginAccessControls(response *smithyhttp return output } -func awsRestxml_deserializeErrorTooManyOriginCustomHeaders(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyOriginCustomHeaders{} +func awsRestxml_deserializeErrorTooManyKeyGroupsAssociatedToDistribution(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyKeyGroupsAssociatedToDistribution{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -23429,7 +25117,7 @@ func awsRestxml_deserializeErrorTooManyOriginCustomHeaders(response *smithyhttp. } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyOriginCustomHeaders(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyKeyGroupsAssociatedToDistribution(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23442,8 +25130,8 @@ func awsRestxml_deserializeErrorTooManyOriginCustomHeaders(response *smithyhttp. return output } -func awsRestxml_deserializeErrorTooManyOriginGroupsPerDistribution(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyOriginGroupsPerDistribution{} +func awsRestxml_deserializeErrorTooManyLambdaFunctionAssociations(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyLambdaFunctionAssociations{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -23473,7 +25161,7 @@ func awsRestxml_deserializeErrorTooManyOriginGroupsPerDistribution(response *smi } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyOriginGroupsPerDistribution(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyLambdaFunctionAssociations(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23486,8 +25174,8 @@ func awsRestxml_deserializeErrorTooManyOriginGroupsPerDistribution(response *smi return output } -func awsRestxml_deserializeErrorTooManyOriginRequestPolicies(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyOriginRequestPolicies{} +func awsRestxml_deserializeErrorTooManyOriginAccessControls(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyOriginAccessControls{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -23517,7 +25205,7 @@ func awsRestxml_deserializeErrorTooManyOriginRequestPolicies(response *smithyhtt } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyOriginRequestPolicies(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyOriginAccessControls(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23530,8 +25218,8 @@ func awsRestxml_deserializeErrorTooManyOriginRequestPolicies(response *smithyhtt return output } -func awsRestxml_deserializeErrorTooManyOrigins(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyOrigins{} +func awsRestxml_deserializeErrorTooManyOriginCustomHeaders(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyOriginCustomHeaders{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -23561,7 +25249,7 @@ func awsRestxml_deserializeErrorTooManyOrigins(response *smithyhttp.Response, er } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyOrigins(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyOriginCustomHeaders(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23574,8 +25262,8 @@ func awsRestxml_deserializeErrorTooManyOrigins(response *smithyhttp.Response, er return output } -func awsRestxml_deserializeErrorTooManyPublicKeys(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyPublicKeys{} +func awsRestxml_deserializeErrorTooManyOriginGroupsPerDistribution(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyOriginGroupsPerDistribution{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -23605,7 +25293,7 @@ func awsRestxml_deserializeErrorTooManyPublicKeys(response *smithyhttp.Response, } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyPublicKeys(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyOriginGroupsPerDistribution(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23618,8 +25306,8 @@ func awsRestxml_deserializeErrorTooManyPublicKeys(response *smithyhttp.Response, return output } -func awsRestxml_deserializeErrorTooManyPublicKeysInKeyGroup(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyPublicKeysInKeyGroup{} +func awsRestxml_deserializeErrorTooManyOriginRequestPolicies(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyOriginRequestPolicies{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -23649,7 +25337,7 @@ func awsRestxml_deserializeErrorTooManyPublicKeysInKeyGroup(response *smithyhttp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyPublicKeysInKeyGroup(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyOriginRequestPolicies(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23662,8 +25350,8 @@ func awsRestxml_deserializeErrorTooManyPublicKeysInKeyGroup(response *smithyhttp return output } -func awsRestxml_deserializeErrorTooManyQueryStringParameters(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyQueryStringParameters{} +func awsRestxml_deserializeErrorTooManyOrigins(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyOrigins{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -23693,7 +25381,7 @@ func awsRestxml_deserializeErrorTooManyQueryStringParameters(response *smithyhtt } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyQueryStringParameters(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyOrigins(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23706,8 +25394,8 @@ func awsRestxml_deserializeErrorTooManyQueryStringParameters(response *smithyhtt return output } -func awsRestxml_deserializeErrorTooManyQueryStringsInCachePolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyQueryStringsInCachePolicy{} +func awsRestxml_deserializeErrorTooManyPublicKeys(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyPublicKeys{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -23737,7 +25425,7 @@ func awsRestxml_deserializeErrorTooManyQueryStringsInCachePolicy(response *smith } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyQueryStringsInCachePolicy(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyPublicKeys(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23750,8 +25438,8 @@ func awsRestxml_deserializeErrorTooManyQueryStringsInCachePolicy(response *smith return output } -func awsRestxml_deserializeErrorTooManyQueryStringsInOriginRequestPolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyQueryStringsInOriginRequestPolicy{} +func awsRestxml_deserializeErrorTooManyPublicKeysInKeyGroup(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyPublicKeysInKeyGroup{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -23781,7 +25469,7 @@ func awsRestxml_deserializeErrorTooManyQueryStringsInOriginRequestPolicy(respons } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyQueryStringsInOriginRequestPolicy(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyPublicKeysInKeyGroup(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23794,8 +25482,8 @@ func awsRestxml_deserializeErrorTooManyQueryStringsInOriginRequestPolicy(respons return output } -func awsRestxml_deserializeErrorTooManyRealtimeLogConfigs(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyRealtimeLogConfigs{} +func awsRestxml_deserializeErrorTooManyQueryStringParameters(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyQueryStringParameters{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -23825,7 +25513,7 @@ func awsRestxml_deserializeErrorTooManyRealtimeLogConfigs(response *smithyhttp.R } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyRealtimeLogConfigs(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyQueryStringParameters(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23838,8 +25526,8 @@ func awsRestxml_deserializeErrorTooManyRealtimeLogConfigs(response *smithyhttp.R return output } -func awsRestxml_deserializeErrorTooManyRemoveHeadersInResponseHeadersPolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyRemoveHeadersInResponseHeadersPolicy{} +func awsRestxml_deserializeErrorTooManyQueryStringsInCachePolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyQueryStringsInCachePolicy{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -23869,7 +25557,7 @@ func awsRestxml_deserializeErrorTooManyRemoveHeadersInResponseHeadersPolicy(resp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyRemoveHeadersInResponseHeadersPolicy(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyQueryStringsInCachePolicy(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23882,8 +25570,8 @@ func awsRestxml_deserializeErrorTooManyRemoveHeadersInResponseHeadersPolicy(resp return output } -func awsRestxml_deserializeErrorTooManyResponseHeadersPolicies(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyResponseHeadersPolicies{} +func awsRestxml_deserializeErrorTooManyQueryStringsInOriginRequestPolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyQueryStringsInOriginRequestPolicy{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -23913,7 +25601,7 @@ func awsRestxml_deserializeErrorTooManyResponseHeadersPolicies(response *smithyh } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsRestxml_deserializeDocumentTooManyResponseHeadersPolicies(&output, decoder) + err = awsRestxml_deserializeDocumentTooManyQueryStringsInOriginRequestPolicy(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23926,8 +25614,140 @@ func awsRestxml_deserializeErrorTooManyResponseHeadersPolicies(response *smithyh return output } -func awsRestxml_deserializeErrorTooManyStreamingDistributionCNAMEs(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyStreamingDistributionCNAMEs{} +func awsRestxml_deserializeErrorTooManyRealtimeLogConfigs(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyRealtimeLogConfigs{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsRestxml_deserializeDocumentTooManyRealtimeLogConfigs(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsRestxml_deserializeErrorTooManyRemoveHeadersInResponseHeadersPolicy(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyRemoveHeadersInResponseHeadersPolicy{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsRestxml_deserializeDocumentTooManyRemoveHeadersInResponseHeadersPolicy(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsRestxml_deserializeErrorTooManyResponseHeadersPolicies(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyResponseHeadersPolicies{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsRestxml_deserializeDocumentTooManyResponseHeadersPolicies(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsRestxml_deserializeErrorTooManyStreamingDistributionCNAMEs(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyStreamingDistributionCNAMEs{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -25043,142 +26863,13 @@ func awsRestxml_deserializeDocumentAllowedMethods(v **types.AllowedMethods, deco return nil } -func awsRestxml_deserializeDocumentAwsAccountNumberList(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("AwsAccountNumber", 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 awsRestxml_deserializeDocumentAwsAccountNumberListUnwrapped(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 awsRestxml_deserializeDocumentBatchTooLarge(v **types.BatchTooLarge, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.BatchTooLarge - if *v == nil { - sv = &types.BatchTooLarge{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentAnycastIpList(v **types.AnycastIpList, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CacheBehavior + var sv *types.AnycastIpList if *v == nil { - sv = &types.CacheBehavior{} + sv = &types.AnycastIpList{} } else { sv = *v } @@ -25194,13 +26885,13 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("AllowedMethods", t.Name.Local): + case strings.EqualFold("AnycastIps", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentAllowedMethods(&sv.AllowedMethods, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentAnycastIps(&sv.AnycastIps, nodeDecoder); err != nil { return err } - case strings.EqualFold("CachePolicyId", t.Name.Local): + case strings.EqualFold("Arn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -25210,10 +26901,10 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode } { xtv := string(val) - sv.CachePolicyId = ptr.String(xtv) + sv.Arn = ptr.String(xtv) } - case strings.EqualFold("Compress", t.Name.Local): + case strings.EqualFold("Id", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -25222,14 +26913,11 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode 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.Compress = ptr.Bool(xtv) + xtv := string(val) + sv.Id = ptr.String(xtv) } - case strings.EqualFold("DefaultTTL", t.Name.Local): + case strings.EqualFold("IpCount", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -25243,41 +26931,10 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode if err != nil { return err } - sv.DefaultTTL = ptr.Int64(i64) - } - - case strings.EqualFold("FieldLevelEncryptionId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.FieldLevelEncryptionId = ptr.String(xtv) - } - - case strings.EqualFold("ForwardedValues", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentForwardedValues(&sv.ForwardedValues, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("FunctionAssociations", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentFunctionAssociations(&sv.FunctionAssociations, nodeDecoder); err != nil { - return err + sv.IpCount = ptr.Int32(int32(i64)) } - case strings.EqualFold("LambdaFunctionAssociations", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentLambdaFunctionAssociations(&sv.LambdaFunctionAssociations, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("MaxTTL", t.Name.Local): + case strings.EqualFold("LastModifiedTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -25287,14 +26944,14 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) + t, err := smithytime.ParseDateTime(xtv) if err != nil { return err } - sv.MaxTTL = ptr.Int64(i64) + sv.LastModifiedTime = ptr.Time(t) } - case strings.EqualFold("MinTTL", t.Name.Local): + case strings.EqualFold("Name", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -25304,14 +26961,10 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.MinTTL = ptr.Int64(i64) + sv.Name = ptr.String(xtv) } - case strings.EqualFold("OriginRequestPolicyId", t.Name.Local): + case strings.EqualFold("Status", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -25321,23 +26974,46 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode } { xtv := string(val) - sv.OriginRequestPolicyId = ptr.String(xtv) + sv.Status = ptr.String(xtv) } - case strings.EqualFold("PathPattern", 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.PathPattern = ptr.String(xtv) - } - case strings.EqualFold("RealtimeLogConfigArn", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsRestxml_deserializeDocumentAnycastIpListCollection(v **types.AnycastIpListCollection, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.AnycastIpListCollection + if *v == nil { + sv = &types.AnycastIpListCollection{} + } 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("IsTruncated", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -25346,11 +27022,20 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode break } { - xtv := string(val) - sv.RealtimeLogConfigArn = 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.IsTruncated = ptr.Bool(xtv) } - case strings.EqualFold("ResponseHeadersPolicyId", t.Name.Local): + case strings.EqualFold("Items", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentAnycastIpListSummaries(&sv.Items, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("Marker", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -25360,10 +27045,10 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode } { xtv := string(val) - sv.ResponseHeadersPolicyId = ptr.String(xtv) + sv.Marker = ptr.String(xtv) } - case strings.EqualFold("SmoothStreaming", t.Name.Local): + case strings.EqualFold("MaxItems", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -25372,14 +27057,15 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode 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.SmoothStreaming = ptr.Bool(xtv) + sv.MaxItems = ptr.Int32(int32(i64)) } - case strings.EqualFold("TargetOriginId", t.Name.Local): + case strings.EqualFold("NextMarker", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -25389,22 +27075,10 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode } { xtv := string(val) - sv.TargetOriginId = ptr.String(xtv) - } - - case strings.EqualFold("TrustedKeyGroups", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTrustedKeyGroups(&sv.TrustedKeyGroups, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("TrustedSigners", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTrustedSigners(&sv.TrustedSigners, nodeDecoder); err != nil { - return err + sv.NextMarker = ptr.String(xtv) } - case strings.EqualFold("ViewerProtocolPolicy", t.Name.Local): + case strings.EqualFold("Quantity", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -25414,7 +27088,11 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode } { xtv := string(val) - sv.ViewerProtocolPolicy = types.ViewerProtocolPolicy(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Quantity = ptr.Int32(int32(i64)) } default: @@ -25431,13 +27109,13 @@ func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decode return nil } -func awsRestxml_deserializeDocumentCacheBehaviorList(v *[]types.CacheBehavior, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentAnycastIpListSummaries(v *[]types.AnycastIpListSummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CacheBehavior + var sv []types.AnycastIpListSummary if *v == nil { - sv = make([]types.CacheBehavior, 0) + sv = make([]types.AnycastIpListSummary, 0) } else { sv = *v } @@ -25452,11 +27130,11 @@ func awsRestxml_deserializeDocumentCacheBehaviorList(v *[]types.CacheBehavior, d break } switch { - case strings.EqualFold("CacheBehavior", t.Name.Local): - var col types.CacheBehavior + case strings.EqualFold("AnycastIpListSummary", t.Name.Local): + var col types.AnycastIpListSummary nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsRestxml_deserializeDocumentCacheBehavior(&destAddr, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentAnycastIpListSummary(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -25475,22 +27153,22 @@ func awsRestxml_deserializeDocumentCacheBehaviorList(v *[]types.CacheBehavior, d return nil } -func awsRestxml_deserializeDocumentCacheBehaviorListUnwrapped(v *[]types.CacheBehavior, decoder smithyxml.NodeDecoder) error { - var sv []types.CacheBehavior +func awsRestxml_deserializeDocumentAnycastIpListSummariesUnwrapped(v *[]types.AnycastIpListSummary, decoder smithyxml.NodeDecoder) error { + var sv []types.AnycastIpListSummary if *v == nil { - sv = make([]types.CacheBehavior, 0) + sv = make([]types.AnycastIpListSummary, 0) } else { sv = *v } switch { default: - var mv types.CacheBehavior + var mv types.AnycastIpListSummary t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsRestxml_deserializeDocumentCacheBehavior(&destAddr, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentAnycastIpListSummary(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -25499,13 +27177,13 @@ func awsRestxml_deserializeDocumentCacheBehaviorListUnwrapped(v *[]types.CacheBe *v = sv return nil } -func awsRestxml_deserializeDocumentCacheBehaviors(v **types.CacheBehaviors, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentAnycastIpListSummary(v **types.AnycastIpListSummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CacheBehaviors + var sv *types.AnycastIpListSummary if *v == nil { - sv = &types.CacheBehaviors{} + sv = &types.AnycastIpListSummary{} } else { sv = *v } @@ -25521,13 +27199,33 @@ func awsRestxml_deserializeDocumentCacheBehaviors(v **types.CacheBehaviors, deco originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Items", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentCacheBehaviorList(&sv.Items, nodeDecoder); err != nil { + 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("Quantity", t.Name.Local): + 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("IpCount", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -25541,7 +27239,50 @@ func awsRestxml_deserializeDocumentCacheBehaviors(v **types.CacheBehaviors, deco if err != nil { return err } - sv.Quantity = ptr.Int32(int32(i64)) + sv.IpCount = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("LastModifiedTime", 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.LastModifiedTime = ptr.Time(t) + } + + 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("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) } default: @@ -25558,17 +27299,18 @@ func awsRestxml_deserializeDocumentCacheBehaviors(v **types.CacheBehaviors, deco return nil } -func awsRestxml_deserializeDocumentCachedMethods(v **types.CachedMethods, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentAnycastIps(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CachedMethods + var sv []string if *v == nil { - sv = &types.CachedMethods{} + sv = make([]string, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -25577,11 +27319,611 @@ func awsRestxml_deserializeDocumentCachedMethods(v **types.CachedMethods, decode if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder switch { - case strings.EqualFold("Items", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + case strings.EqualFold("AnycastIp", 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 awsRestxml_deserializeDocumentAnycastIpsUnwrapped(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 awsRestxml_deserializeDocumentAwsAccountNumberList(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("AwsAccountNumber", 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 awsRestxml_deserializeDocumentAwsAccountNumberListUnwrapped(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 awsRestxml_deserializeDocumentBatchTooLarge(v **types.BatchTooLarge, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.BatchTooLarge + if *v == nil { + sv = &types.BatchTooLarge{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("Message", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsRestxml_deserializeDocumentCacheBehavior(v **types.CacheBehavior, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CacheBehavior + if *v == nil { + sv = &types.CacheBehavior{} + } 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("AllowedMethods", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentAllowedMethods(&sv.AllowedMethods, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("CachePolicyId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CachePolicyId = ptr.String(xtv) + } + + case strings.EqualFold("Compress", 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.Compress = ptr.Bool(xtv) + } + + case strings.EqualFold("DefaultTTL", 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.DefaultTTL = ptr.Int64(i64) + } + + case strings.EqualFold("FieldLevelEncryptionId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.FieldLevelEncryptionId = ptr.String(xtv) + } + + case strings.EqualFold("ForwardedValues", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentForwardedValues(&sv.ForwardedValues, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("FunctionAssociations", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentFunctionAssociations(&sv.FunctionAssociations, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("GrpcConfig", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentGrpcConfig(&sv.GrpcConfig, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("LambdaFunctionAssociations", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentLambdaFunctionAssociations(&sv.LambdaFunctionAssociations, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("MaxTTL", 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.MaxTTL = ptr.Int64(i64) + } + + case strings.EqualFold("MinTTL", 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.MinTTL = ptr.Int64(i64) + } + + case strings.EqualFold("OriginRequestPolicyId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.OriginRequestPolicyId = ptr.String(xtv) + } + + case strings.EqualFold("PathPattern", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.PathPattern = ptr.String(xtv) + } + + case strings.EqualFold("RealtimeLogConfigArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.RealtimeLogConfigArn = ptr.String(xtv) + } + + case strings.EqualFold("ResponseHeadersPolicyId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ResponseHeadersPolicyId = ptr.String(xtv) + } + + case strings.EqualFold("SmoothStreaming", 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.SmoothStreaming = ptr.Bool(xtv) + } + + case strings.EqualFold("TargetOriginId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.TargetOriginId = ptr.String(xtv) + } + + case strings.EqualFold("TrustedKeyGroups", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentTrustedKeyGroups(&sv.TrustedKeyGroups, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("TrustedSigners", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentTrustedSigners(&sv.TrustedSigners, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("ViewerProtocolPolicy", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ViewerProtocolPolicy = types.ViewerProtocolPolicy(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 awsRestxml_deserializeDocumentCacheBehaviorList(v *[]types.CacheBehavior, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.CacheBehavior + if *v == nil { + sv = make([]types.CacheBehavior, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("CacheBehavior", t.Name.Local): + var col types.CacheBehavior + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsRestxml_deserializeDocumentCacheBehavior(&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 awsRestxml_deserializeDocumentCacheBehaviorListUnwrapped(v *[]types.CacheBehavior, decoder smithyxml.NodeDecoder) error { + var sv []types.CacheBehavior + if *v == nil { + sv = make([]types.CacheBehavior, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.CacheBehavior + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsRestxml_deserializeDocumentCacheBehavior(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsRestxml_deserializeDocumentCacheBehaviors(v **types.CacheBehaviors, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CacheBehaviors + if *v == nil { + sv = &types.CacheBehaviors{} + } 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("Items", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentCacheBehaviorList(&sv.Items, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("Quantity", 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.Quantity = 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 awsRestxml_deserializeDocumentCachedMethods(v **types.CachedMethods, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CachedMethods + if *v == nil { + sv = &types.CachedMethods{} + } 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("Items", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsRestxml_deserializeDocumentMethodsList(&sv.Items, nodeDecoder); err != nil { return err } @@ -26016,280 +28358,329 @@ func awsRestxml_deserializeDocumentCachePolicyInUse(v **types.CachePolicyInUse, return nil } -func awsRestxml_deserializeDocumentCachePolicyList(v **types.CachePolicyList, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.CachePolicyList - if *v == nil { - sv = &types.CachePolicyList{} - } 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("Items", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentCachePolicySummaryList(&sv.Items, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("MaxItems", 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.MaxItems = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("NextMarker", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.NextMarker = ptr.String(xtv) - } - - case strings.EqualFold("Quantity", 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.Quantity = 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 awsRestxml_deserializeDocumentCachePolicyQueryStringsConfig(v **types.CachePolicyQueryStringsConfig, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.CachePolicyQueryStringsConfig - if *v == nil { - sv = &types.CachePolicyQueryStringsConfig{} - } 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("QueryStringBehavior", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.QueryStringBehavior = types.CachePolicyQueryStringBehavior(xtv) - } - - case strings.EqualFold("QueryStrings", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentQueryStringNames(&sv.QueryStrings, 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 awsRestxml_deserializeDocumentCachePolicySummary(v **types.CachePolicySummary, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.CachePolicySummary - if *v == nil { - sv = &types.CachePolicySummary{} - } 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("CachePolicy", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentCachePolicy(&sv.CachePolicy, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("Type", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Type = types.CachePolicyType(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 awsRestxml_deserializeDocumentCachePolicySummaryList(v *[]types.CachePolicySummary, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.CachePolicySummary - if *v == nil { - sv = make([]types.CachePolicySummary, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("CachePolicySummary", t.Name.Local): - var col types.CachePolicySummary - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsRestxml_deserializeDocumentCachePolicySummary(&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 awsRestxml_deserializeDocumentCachePolicySummaryListUnwrapped(v *[]types.CachePolicySummary, decoder smithyxml.NodeDecoder) error { - var sv []types.CachePolicySummary - if *v == nil { - sv = make([]types.CachePolicySummary, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.CachePolicySummary - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsRestxml_deserializeDocumentCachePolicySummary(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsRestxml_deserializeDocumentCannotChangeImmutablePublicKeyFields(v **types.CannotChangeImmutablePublicKeyFields, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentCachePolicyList(v **types.CachePolicyList, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CachePolicyList + if *v == nil { + sv = &types.CachePolicyList{} + } 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("Items", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentCachePolicySummaryList(&sv.Items, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("MaxItems", 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.MaxItems = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("NextMarker", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextMarker = ptr.String(xtv) + } + + case strings.EqualFold("Quantity", 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.Quantity = 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 awsRestxml_deserializeDocumentCachePolicyQueryStringsConfig(v **types.CachePolicyQueryStringsConfig, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CachePolicyQueryStringsConfig + if *v == nil { + sv = &types.CachePolicyQueryStringsConfig{} + } 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("QueryStringBehavior", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.QueryStringBehavior = types.CachePolicyQueryStringBehavior(xtv) + } + + case strings.EqualFold("QueryStrings", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentQueryStringNames(&sv.QueryStrings, 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 awsRestxml_deserializeDocumentCachePolicySummary(v **types.CachePolicySummary, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CachePolicySummary + if *v == nil { + sv = &types.CachePolicySummary{} + } 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("CachePolicy", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentCachePolicy(&sv.CachePolicy, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("Type", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Type = types.CachePolicyType(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 awsRestxml_deserializeDocumentCachePolicySummaryList(v *[]types.CachePolicySummary, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.CachePolicySummary + if *v == nil { + sv = make([]types.CachePolicySummary, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("CachePolicySummary", t.Name.Local): + var col types.CachePolicySummary + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsRestxml_deserializeDocumentCachePolicySummary(&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 awsRestxml_deserializeDocumentCachePolicySummaryListUnwrapped(v *[]types.CachePolicySummary, decoder smithyxml.NodeDecoder) error { + var sv []types.CachePolicySummary + if *v == nil { + sv = make([]types.CachePolicySummary, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.CachePolicySummary + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsRestxml_deserializeDocumentCachePolicySummary(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsRestxml_deserializeDocumentCannotChangeImmutablePublicKeyFields(v **types.CannotChangeImmutablePublicKeyFields, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CannotChangeImmutablePublicKeyFields + if *v == nil { + sv = &types.CannotChangeImmutablePublicKeyFields{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("Message", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsRestxml_deserializeDocumentCannotDeleteEntityWhileInUse(v **types.CannotDeleteEntityWhileInUse, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CannotChangeImmutablePublicKeyFields + var sv *types.CannotDeleteEntityWhileInUse if *v == nil { - sv = &types.CannotChangeImmutablePublicKeyFields{} + sv = &types.CannotDeleteEntityWhileInUse{} } else { sv = *v } @@ -26332,13 +28723,13 @@ func awsRestxml_deserializeDocumentCannotChangeImmutablePublicKeyFields(v **type return nil } -func awsRestxml_deserializeDocumentCannotDeleteEntityWhileInUse(v **types.CannotDeleteEntityWhileInUse, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentCannotUpdateEntityWhileInUse(v **types.CannotUpdateEntityWhileInUse, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CannotDeleteEntityWhileInUse + var sv *types.CannotUpdateEntityWhileInUse if *v == nil { - sv = &types.CannotDeleteEntityWhileInUse{} + sv = &types.CannotUpdateEntityWhileInUse{} } else { sv = *v } @@ -28663,6 +31054,12 @@ func awsRestxml_deserializeDocumentDefaultCacheBehavior(v **types.DefaultCacheBe return err } + case strings.EqualFold("GrpcConfig", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentGrpcConfig(&sv.GrpcConfig, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("LambdaFunctionAssociations", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsRestxml_deserializeDocumentLambdaFunctionAssociations(&sv.LambdaFunctionAssociations, nodeDecoder); err != nil { @@ -29033,6 +31430,19 @@ func awsRestxml_deserializeDocumentDistributionConfig(v **types.DistributionConf return err } + case strings.EqualFold("AnycastIpListId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.AnycastIpListId = ptr.String(xtv) + } + case strings.EqualFold("CacheBehaviors", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsRestxml_deserializeDocumentCacheBehaviors(&sv.CacheBehaviors, nodeDecoder); err != nil { @@ -29633,6 +32043,19 @@ func awsRestxml_deserializeDocumentDistributionSummary(v **types.DistributionSum return err } + case strings.EqualFold("AnycastIpListId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.AnycastIpListId = ptr.String(xtv) + } + case strings.EqualFold("ARN", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -32659,6 +35082,58 @@ func awsRestxml_deserializeDocumentGeoRestriction(v **types.GeoRestriction, deco return nil } +func awsRestxml_deserializeDocumentGrpcConfig(v **types.GrpcConfig, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.GrpcConfig + if *v == nil { + sv = &types.GrpcConfig{} + } 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("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: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsRestxml_deserializeDocumentHeaderList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -37449,6 +39924,12 @@ func awsRestxml_deserializeDocumentOrigin(v **types.Origin, decoder smithyxml.No return err } + case strings.EqualFold("VpcOriginConfig", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentVpcOriginConfig(&sv.VpcOriginConfig, nodeDecoder); err != nil { + return err + } + default: // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() @@ -44911,13 +47392,198 @@ func awsRestxml_deserializeDocumentTestFunctionFailed(v **types.TestFunctionFail return nil } -func awsRestxml_deserializeDocumentTestResult(v **types.TestResult, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTestResult(v **types.TestResult, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.TestResult + if *v == nil { + sv = &types.TestResult{} + } 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("ComputeUtilization", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ComputeUtilization = ptr.String(xtv) + } + + case strings.EqualFold("FunctionErrorMessage", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.FunctionErrorMessage = ptr.String(xtv) + } + + case strings.EqualFold("FunctionExecutionLogs", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentFunctionExecutionLogList(&sv.FunctionExecutionLogs, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("FunctionOutput", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.FunctionOutput = ptr.String(xtv) + } + + case strings.EqualFold("FunctionSummary", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentFunctionSummary(&sv.FunctionSummary, 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 awsRestxml_deserializeDocumentTooLongCSPInResponseHeadersPolicy(v **types.TooLongCSPInResponseHeadersPolicy, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.TooLongCSPInResponseHeadersPolicy + if *v == nil { + sv = &types.TooLongCSPInResponseHeadersPolicy{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("Message", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsRestxml_deserializeDocumentTooManyCacheBehaviors(v **types.TooManyCacheBehaviors, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.TooManyCacheBehaviors + if *v == nil { + sv = &types.TooManyCacheBehaviors{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("Message", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsRestxml_deserializeDocumentTooManyCachePolicies(v **types.TooManyCachePolicies, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TestResult + var sv *types.TooManyCachePolicies if *v == nil { - sv = &types.TestResult{} + sv = &types.TooManyCachePolicies{} } else { sv = *v } @@ -44933,7 +47599,7 @@ func awsRestxml_deserializeDocumentTestResult(v **types.TestResult, decoder smit originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("ComputeUtilization", t.Name.Local): + case strings.EqualFold("Message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -44943,10 +47609,46 @@ func awsRestxml_deserializeDocumentTestResult(v **types.TestResult, decoder smit } { xtv := string(val) - sv.ComputeUtilization = ptr.String(xtv) + sv.Message = ptr.String(xtv) } - case strings.EqualFold("FunctionErrorMessage", 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 awsRestxml_deserializeDocumentTooManyCertificates(v **types.TooManyCertificates, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.TooManyCertificates + if *v == nil { + sv = &types.TooManyCertificates{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("Message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -44956,16 +47658,46 @@ func awsRestxml_deserializeDocumentTestResult(v **types.TestResult, decoder smit } { xtv := string(val) - sv.FunctionErrorMessage = ptr.String(xtv) + sv.Message = ptr.String(xtv) } - case strings.EqualFold("FunctionExecutionLogs", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentFunctionExecutionLogList(&sv.FunctionExecutionLogs, nodeDecoder); err != nil { + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { return err } - case strings.EqualFold("FunctionOutput", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsRestxml_deserializeDocumentTooManyCloudFrontOriginAccessIdentities(v **types.TooManyCloudFrontOriginAccessIdentities, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.TooManyCloudFrontOriginAccessIdentities + if *v == nil { + sv = &types.TooManyCloudFrontOriginAccessIdentities{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("Message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -44975,14 +47707,57 @@ func awsRestxml_deserializeDocumentTestResult(v **types.TestResult, decoder smit } { xtv := string(val) - sv.FunctionOutput = ptr.String(xtv) + sv.Message = ptr.String(xtv) } - case strings.EqualFold("FunctionSummary", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentFunctionSummary(&sv.FunctionSummary, nodeDecoder); err != nil { + 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 awsRestxml_deserializeDocumentTooManyContinuousDeploymentPolicies(v **types.TooManyContinuousDeploymentPolicies, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.TooManyContinuousDeploymentPolicies + if *v == nil { + sv = &types.TooManyContinuousDeploymentPolicies{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("Message", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } default: // Do nothing and ignore the unexpected tag element @@ -44998,13 +47773,13 @@ func awsRestxml_deserializeDocumentTestResult(v **types.TestResult, decoder smit return nil } -func awsRestxml_deserializeDocumentTooLongCSPInResponseHeadersPolicy(v **types.TooLongCSPInResponseHeadersPolicy, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyCookieNamesInWhiteList(v **types.TooManyCookieNamesInWhiteList, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooLongCSPInResponseHeadersPolicy + var sv *types.TooManyCookieNamesInWhiteList if *v == nil { - sv = &types.TooLongCSPInResponseHeadersPolicy{} + sv = &types.TooManyCookieNamesInWhiteList{} } else { sv = *v } @@ -45047,13 +47822,13 @@ func awsRestxml_deserializeDocumentTooLongCSPInResponseHeadersPolicy(v **types.T return nil } -func awsRestxml_deserializeDocumentTooManyCacheBehaviors(v **types.TooManyCacheBehaviors, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyCookiesInCachePolicy(v **types.TooManyCookiesInCachePolicy, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyCacheBehaviors + var sv *types.TooManyCookiesInCachePolicy if *v == nil { - sv = &types.TooManyCacheBehaviors{} + sv = &types.TooManyCookiesInCachePolicy{} } else { sv = *v } @@ -45096,13 +47871,13 @@ func awsRestxml_deserializeDocumentTooManyCacheBehaviors(v **types.TooManyCacheB return nil } -func awsRestxml_deserializeDocumentTooManyCachePolicies(v **types.TooManyCachePolicies, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyCookiesInOriginRequestPolicy(v **types.TooManyCookiesInOriginRequestPolicy, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyCachePolicies + var sv *types.TooManyCookiesInOriginRequestPolicy if *v == nil { - sv = &types.TooManyCachePolicies{} + sv = &types.TooManyCookiesInOriginRequestPolicy{} } else { sv = *v } @@ -45145,13 +47920,13 @@ func awsRestxml_deserializeDocumentTooManyCachePolicies(v **types.TooManyCachePo return nil } -func awsRestxml_deserializeDocumentTooManyCertificates(v **types.TooManyCertificates, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyCustomHeadersInResponseHeadersPolicy(v **types.TooManyCustomHeadersInResponseHeadersPolicy, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyCertificates + var sv *types.TooManyCustomHeadersInResponseHeadersPolicy if *v == nil { - sv = &types.TooManyCertificates{} + sv = &types.TooManyCustomHeadersInResponseHeadersPolicy{} } else { sv = *v } @@ -45194,13 +47969,13 @@ func awsRestxml_deserializeDocumentTooManyCertificates(v **types.TooManyCertific return nil } -func awsRestxml_deserializeDocumentTooManyCloudFrontOriginAccessIdentities(v **types.TooManyCloudFrontOriginAccessIdentities, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyDistributionCNAMEs(v **types.TooManyDistributionCNAMEs, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyCloudFrontOriginAccessIdentities + var sv *types.TooManyDistributionCNAMEs if *v == nil { - sv = &types.TooManyCloudFrontOriginAccessIdentities{} + sv = &types.TooManyDistributionCNAMEs{} } else { sv = *v } @@ -45243,13 +48018,13 @@ func awsRestxml_deserializeDocumentTooManyCloudFrontOriginAccessIdentities(v **t return nil } -func awsRestxml_deserializeDocumentTooManyContinuousDeploymentPolicies(v **types.TooManyContinuousDeploymentPolicies, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyDistributions(v **types.TooManyDistributions, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyContinuousDeploymentPolicies + var sv *types.TooManyDistributions if *v == nil { - sv = &types.TooManyContinuousDeploymentPolicies{} + sv = &types.TooManyDistributions{} } else { sv = *v } @@ -45292,13 +48067,13 @@ func awsRestxml_deserializeDocumentTooManyContinuousDeploymentPolicies(v **types return nil } -func awsRestxml_deserializeDocumentTooManyCookieNamesInWhiteList(v **types.TooManyCookieNamesInWhiteList, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToCachePolicy(v **types.TooManyDistributionsAssociatedToCachePolicy, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyCookieNamesInWhiteList + var sv *types.TooManyDistributionsAssociatedToCachePolicy if *v == nil { - sv = &types.TooManyCookieNamesInWhiteList{} + sv = &types.TooManyDistributionsAssociatedToCachePolicy{} } else { sv = *v } @@ -45341,13 +48116,13 @@ func awsRestxml_deserializeDocumentTooManyCookieNamesInWhiteList(v **types.TooMa return nil } -func awsRestxml_deserializeDocumentTooManyCookiesInCachePolicy(v **types.TooManyCookiesInCachePolicy, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToFieldLevelEncryptionConfig(v **types.TooManyDistributionsAssociatedToFieldLevelEncryptionConfig, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyCookiesInCachePolicy + var sv *types.TooManyDistributionsAssociatedToFieldLevelEncryptionConfig if *v == nil { - sv = &types.TooManyCookiesInCachePolicy{} + sv = &types.TooManyDistributionsAssociatedToFieldLevelEncryptionConfig{} } else { sv = *v } @@ -45390,13 +48165,13 @@ func awsRestxml_deserializeDocumentTooManyCookiesInCachePolicy(v **types.TooMany return nil } -func awsRestxml_deserializeDocumentTooManyCookiesInOriginRequestPolicy(v **types.TooManyCookiesInOriginRequestPolicy, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToKeyGroup(v **types.TooManyDistributionsAssociatedToKeyGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyCookiesInOriginRequestPolicy + var sv *types.TooManyDistributionsAssociatedToKeyGroup if *v == nil { - sv = &types.TooManyCookiesInOriginRequestPolicy{} + sv = &types.TooManyDistributionsAssociatedToKeyGroup{} } else { sv = *v } @@ -45439,13 +48214,13 @@ func awsRestxml_deserializeDocumentTooManyCookiesInOriginRequestPolicy(v **types return nil } -func awsRestxml_deserializeDocumentTooManyCustomHeadersInResponseHeadersPolicy(v **types.TooManyCustomHeadersInResponseHeadersPolicy, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToOriginAccessControl(v **types.TooManyDistributionsAssociatedToOriginAccessControl, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyCustomHeadersInResponseHeadersPolicy + var sv *types.TooManyDistributionsAssociatedToOriginAccessControl if *v == nil { - sv = &types.TooManyCustomHeadersInResponseHeadersPolicy{} + sv = &types.TooManyDistributionsAssociatedToOriginAccessControl{} } else { sv = *v } @@ -45488,13 +48263,13 @@ func awsRestxml_deserializeDocumentTooManyCustomHeadersInResponseHeadersPolicy(v return nil } -func awsRestxml_deserializeDocumentTooManyDistributionCNAMEs(v **types.TooManyDistributionCNAMEs, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToOriginRequestPolicy(v **types.TooManyDistributionsAssociatedToOriginRequestPolicy, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyDistributionCNAMEs + var sv *types.TooManyDistributionsAssociatedToOriginRequestPolicy if *v == nil { - sv = &types.TooManyDistributionCNAMEs{} + sv = &types.TooManyDistributionsAssociatedToOriginRequestPolicy{} } else { sv = *v } @@ -45537,13 +48312,13 @@ func awsRestxml_deserializeDocumentTooManyDistributionCNAMEs(v **types.TooManyDi return nil } -func awsRestxml_deserializeDocumentTooManyDistributions(v **types.TooManyDistributions, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToResponseHeadersPolicy(v **types.TooManyDistributionsAssociatedToResponseHeadersPolicy, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyDistributions + var sv *types.TooManyDistributionsAssociatedToResponseHeadersPolicy if *v == nil { - sv = &types.TooManyDistributions{} + sv = &types.TooManyDistributionsAssociatedToResponseHeadersPolicy{} } else { sv = *v } @@ -45586,13 +48361,13 @@ func awsRestxml_deserializeDocumentTooManyDistributions(v **types.TooManyDistrib return nil } -func awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToCachePolicy(v **types.TooManyDistributionsAssociatedToCachePolicy, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyDistributionsWithFunctionAssociations(v **types.TooManyDistributionsWithFunctionAssociations, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyDistributionsAssociatedToCachePolicy + var sv *types.TooManyDistributionsWithFunctionAssociations if *v == nil { - sv = &types.TooManyDistributionsAssociatedToCachePolicy{} + sv = &types.TooManyDistributionsWithFunctionAssociations{} } else { sv = *v } @@ -45635,13 +48410,13 @@ func awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToCachePolicy(v return nil } -func awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToFieldLevelEncryptionConfig(v **types.TooManyDistributionsAssociatedToFieldLevelEncryptionConfig, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyDistributionsWithLambdaAssociations(v **types.TooManyDistributionsWithLambdaAssociations, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyDistributionsAssociatedToFieldLevelEncryptionConfig + var sv *types.TooManyDistributionsWithLambdaAssociations if *v == nil { - sv = &types.TooManyDistributionsAssociatedToFieldLevelEncryptionConfig{} + sv = &types.TooManyDistributionsWithLambdaAssociations{} } else { sv = *v } @@ -45684,13 +48459,13 @@ func awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToFieldLevelEnc return nil } -func awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToKeyGroup(v **types.TooManyDistributionsAssociatedToKeyGroup, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyDistributionsWithSingleFunctionARN(v **types.TooManyDistributionsWithSingleFunctionARN, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyDistributionsAssociatedToKeyGroup + var sv *types.TooManyDistributionsWithSingleFunctionARN if *v == nil { - sv = &types.TooManyDistributionsAssociatedToKeyGroup{} + sv = &types.TooManyDistributionsWithSingleFunctionARN{} } else { sv = *v } @@ -45733,13 +48508,13 @@ func awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToKeyGroup(v ** return nil } -func awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToOriginAccessControl(v **types.TooManyDistributionsAssociatedToOriginAccessControl, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionConfigs(v **types.TooManyFieldLevelEncryptionConfigs, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyDistributionsAssociatedToOriginAccessControl + var sv *types.TooManyFieldLevelEncryptionConfigs if *v == nil { - sv = &types.TooManyDistributionsAssociatedToOriginAccessControl{} + sv = &types.TooManyFieldLevelEncryptionConfigs{} } else { sv = *v } @@ -45782,13 +48557,13 @@ func awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToOriginAccessC return nil } -func awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToOriginRequestPolicy(v **types.TooManyDistributionsAssociatedToOriginRequestPolicy, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionContentTypeProfiles(v **types.TooManyFieldLevelEncryptionContentTypeProfiles, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyDistributionsAssociatedToOriginRequestPolicy + var sv *types.TooManyFieldLevelEncryptionContentTypeProfiles if *v == nil { - sv = &types.TooManyDistributionsAssociatedToOriginRequestPolicy{} + sv = &types.TooManyFieldLevelEncryptionContentTypeProfiles{} } else { sv = *v } @@ -45831,13 +48606,13 @@ func awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToOriginRequest return nil } -func awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToResponseHeadersPolicy(v **types.TooManyDistributionsAssociatedToResponseHeadersPolicy, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionEncryptionEntities(v **types.TooManyFieldLevelEncryptionEncryptionEntities, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyDistributionsAssociatedToResponseHeadersPolicy + var sv *types.TooManyFieldLevelEncryptionEncryptionEntities if *v == nil { - sv = &types.TooManyDistributionsAssociatedToResponseHeadersPolicy{} + sv = &types.TooManyFieldLevelEncryptionEncryptionEntities{} } else { sv = *v } @@ -45880,13 +48655,13 @@ func awsRestxml_deserializeDocumentTooManyDistributionsAssociatedToResponseHeade return nil } -func awsRestxml_deserializeDocumentTooManyDistributionsWithFunctionAssociations(v **types.TooManyDistributionsWithFunctionAssociations, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionFieldPatterns(v **types.TooManyFieldLevelEncryptionFieldPatterns, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyDistributionsWithFunctionAssociations + var sv *types.TooManyFieldLevelEncryptionFieldPatterns if *v == nil { - sv = &types.TooManyDistributionsWithFunctionAssociations{} + sv = &types.TooManyFieldLevelEncryptionFieldPatterns{} } else { sv = *v } @@ -45929,13 +48704,13 @@ func awsRestxml_deserializeDocumentTooManyDistributionsWithFunctionAssociations( return nil } -func awsRestxml_deserializeDocumentTooManyDistributionsWithLambdaAssociations(v **types.TooManyDistributionsWithLambdaAssociations, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionProfiles(v **types.TooManyFieldLevelEncryptionProfiles, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyDistributionsWithLambdaAssociations + var sv *types.TooManyFieldLevelEncryptionProfiles if *v == nil { - sv = &types.TooManyDistributionsWithLambdaAssociations{} + sv = &types.TooManyFieldLevelEncryptionProfiles{} } else { sv = *v } @@ -45978,13 +48753,13 @@ func awsRestxml_deserializeDocumentTooManyDistributionsWithLambdaAssociations(v return nil } -func awsRestxml_deserializeDocumentTooManyDistributionsWithSingleFunctionARN(v **types.TooManyDistributionsWithSingleFunctionARN, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionQueryArgProfiles(v **types.TooManyFieldLevelEncryptionQueryArgProfiles, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyDistributionsWithSingleFunctionARN + var sv *types.TooManyFieldLevelEncryptionQueryArgProfiles if *v == nil { - sv = &types.TooManyDistributionsWithSingleFunctionARN{} + sv = &types.TooManyFieldLevelEncryptionQueryArgProfiles{} } else { sv = *v } @@ -46027,13 +48802,13 @@ func awsRestxml_deserializeDocumentTooManyDistributionsWithSingleFunctionARN(v * return nil } -func awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionConfigs(v **types.TooManyFieldLevelEncryptionConfigs, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyFunctionAssociations(v **types.TooManyFunctionAssociations, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyFieldLevelEncryptionConfigs + var sv *types.TooManyFunctionAssociations if *v == nil { - sv = &types.TooManyFieldLevelEncryptionConfigs{} + sv = &types.TooManyFunctionAssociations{} } else { sv = *v } @@ -46076,13 +48851,13 @@ func awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionConfigs(v **types. return nil } -func awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionContentTypeProfiles(v **types.TooManyFieldLevelEncryptionContentTypeProfiles, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyFunctions(v **types.TooManyFunctions, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyFieldLevelEncryptionContentTypeProfiles + var sv *types.TooManyFunctions if *v == nil { - sv = &types.TooManyFieldLevelEncryptionContentTypeProfiles{} + sv = &types.TooManyFunctions{} } else { sv = *v } @@ -46125,13 +48900,13 @@ func awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionContentTypeProfile return nil } -func awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionEncryptionEntities(v **types.TooManyFieldLevelEncryptionEncryptionEntities, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyHeadersInCachePolicy(v **types.TooManyHeadersInCachePolicy, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyFieldLevelEncryptionEncryptionEntities + var sv *types.TooManyHeadersInCachePolicy if *v == nil { - sv = &types.TooManyFieldLevelEncryptionEncryptionEntities{} + sv = &types.TooManyHeadersInCachePolicy{} } else { sv = *v } @@ -46174,13 +48949,13 @@ func awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionEncryptionEntities return nil } -func awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionFieldPatterns(v **types.TooManyFieldLevelEncryptionFieldPatterns, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyHeadersInForwardedValues(v **types.TooManyHeadersInForwardedValues, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyFieldLevelEncryptionFieldPatterns + var sv *types.TooManyHeadersInForwardedValues if *v == nil { - sv = &types.TooManyFieldLevelEncryptionFieldPatterns{} + sv = &types.TooManyHeadersInForwardedValues{} } else { sv = *v } @@ -46223,13 +48998,13 @@ func awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionFieldPatterns(v ** return nil } -func awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionProfiles(v **types.TooManyFieldLevelEncryptionProfiles, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyHeadersInOriginRequestPolicy(v **types.TooManyHeadersInOriginRequestPolicy, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyFieldLevelEncryptionProfiles + var sv *types.TooManyHeadersInOriginRequestPolicy if *v == nil { - sv = &types.TooManyFieldLevelEncryptionProfiles{} + sv = &types.TooManyHeadersInOriginRequestPolicy{} } else { sv = *v } @@ -46272,13 +49047,13 @@ func awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionProfiles(v **types return nil } -func awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionQueryArgProfiles(v **types.TooManyFieldLevelEncryptionQueryArgProfiles, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyInvalidationsInProgress(v **types.TooManyInvalidationsInProgress, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyFieldLevelEncryptionQueryArgProfiles + var sv *types.TooManyInvalidationsInProgress if *v == nil { - sv = &types.TooManyFieldLevelEncryptionQueryArgProfiles{} + sv = &types.TooManyInvalidationsInProgress{} } else { sv = *v } @@ -46321,13 +49096,13 @@ func awsRestxml_deserializeDocumentTooManyFieldLevelEncryptionQueryArgProfiles(v return nil } -func awsRestxml_deserializeDocumentTooManyFunctionAssociations(v **types.TooManyFunctionAssociations, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyKeyGroups(v **types.TooManyKeyGroups, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyFunctionAssociations + var sv *types.TooManyKeyGroups if *v == nil { - sv = &types.TooManyFunctionAssociations{} + sv = &types.TooManyKeyGroups{} } else { sv = *v } @@ -46370,13 +49145,13 @@ func awsRestxml_deserializeDocumentTooManyFunctionAssociations(v **types.TooMany return nil } -func awsRestxml_deserializeDocumentTooManyFunctions(v **types.TooManyFunctions, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyKeyGroupsAssociatedToDistribution(v **types.TooManyKeyGroupsAssociatedToDistribution, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyFunctions + var sv *types.TooManyKeyGroupsAssociatedToDistribution if *v == nil { - sv = &types.TooManyFunctions{} + sv = &types.TooManyKeyGroupsAssociatedToDistribution{} } else { sv = *v } @@ -46419,13 +49194,13 @@ func awsRestxml_deserializeDocumentTooManyFunctions(v **types.TooManyFunctions, return nil } -func awsRestxml_deserializeDocumentTooManyHeadersInCachePolicy(v **types.TooManyHeadersInCachePolicy, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyLambdaFunctionAssociations(v **types.TooManyLambdaFunctionAssociations, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyHeadersInCachePolicy + var sv *types.TooManyLambdaFunctionAssociations if *v == nil { - sv = &types.TooManyHeadersInCachePolicy{} + sv = &types.TooManyLambdaFunctionAssociations{} } else { sv = *v } @@ -46468,13 +49243,13 @@ func awsRestxml_deserializeDocumentTooManyHeadersInCachePolicy(v **types.TooMany return nil } -func awsRestxml_deserializeDocumentTooManyHeadersInForwardedValues(v **types.TooManyHeadersInForwardedValues, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyOriginAccessControls(v **types.TooManyOriginAccessControls, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyHeadersInForwardedValues + var sv *types.TooManyOriginAccessControls if *v == nil { - sv = &types.TooManyHeadersInForwardedValues{} + sv = &types.TooManyOriginAccessControls{} } else { sv = *v } @@ -46517,13 +49292,13 @@ func awsRestxml_deserializeDocumentTooManyHeadersInForwardedValues(v **types.Too return nil } -func awsRestxml_deserializeDocumentTooManyHeadersInOriginRequestPolicy(v **types.TooManyHeadersInOriginRequestPolicy, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyOriginCustomHeaders(v **types.TooManyOriginCustomHeaders, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyHeadersInOriginRequestPolicy + var sv *types.TooManyOriginCustomHeaders if *v == nil { - sv = &types.TooManyHeadersInOriginRequestPolicy{} + sv = &types.TooManyOriginCustomHeaders{} } else { sv = *v } @@ -46566,13 +49341,13 @@ func awsRestxml_deserializeDocumentTooManyHeadersInOriginRequestPolicy(v **types return nil } -func awsRestxml_deserializeDocumentTooManyInvalidationsInProgress(v **types.TooManyInvalidationsInProgress, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyOriginGroupsPerDistribution(v **types.TooManyOriginGroupsPerDistribution, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyInvalidationsInProgress + var sv *types.TooManyOriginGroupsPerDistribution if *v == nil { - sv = &types.TooManyInvalidationsInProgress{} + sv = &types.TooManyOriginGroupsPerDistribution{} } else { sv = *v } @@ -46615,13 +49390,13 @@ func awsRestxml_deserializeDocumentTooManyInvalidationsInProgress(v **types.TooM return nil } -func awsRestxml_deserializeDocumentTooManyKeyGroups(v **types.TooManyKeyGroups, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyOriginRequestPolicies(v **types.TooManyOriginRequestPolicies, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyKeyGroups + var sv *types.TooManyOriginRequestPolicies if *v == nil { - sv = &types.TooManyKeyGroups{} + sv = &types.TooManyOriginRequestPolicies{} } else { sv = *v } @@ -46664,13 +49439,13 @@ func awsRestxml_deserializeDocumentTooManyKeyGroups(v **types.TooManyKeyGroups, return nil } -func awsRestxml_deserializeDocumentTooManyKeyGroupsAssociatedToDistribution(v **types.TooManyKeyGroupsAssociatedToDistribution, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyOrigins(v **types.TooManyOrigins, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyKeyGroupsAssociatedToDistribution + var sv *types.TooManyOrigins if *v == nil { - sv = &types.TooManyKeyGroupsAssociatedToDistribution{} + sv = &types.TooManyOrigins{} } else { sv = *v } @@ -46713,13 +49488,13 @@ func awsRestxml_deserializeDocumentTooManyKeyGroupsAssociatedToDistribution(v ** return nil } -func awsRestxml_deserializeDocumentTooManyLambdaFunctionAssociations(v **types.TooManyLambdaFunctionAssociations, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyPublicKeys(v **types.TooManyPublicKeys, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyLambdaFunctionAssociations + var sv *types.TooManyPublicKeys if *v == nil { - sv = &types.TooManyLambdaFunctionAssociations{} + sv = &types.TooManyPublicKeys{} } else { sv = *v } @@ -46762,13 +49537,13 @@ func awsRestxml_deserializeDocumentTooManyLambdaFunctionAssociations(v **types.T return nil } -func awsRestxml_deserializeDocumentTooManyOriginAccessControls(v **types.TooManyOriginAccessControls, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyPublicKeysInKeyGroup(v **types.TooManyPublicKeysInKeyGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyOriginAccessControls + var sv *types.TooManyPublicKeysInKeyGroup if *v == nil { - sv = &types.TooManyOriginAccessControls{} + sv = &types.TooManyPublicKeysInKeyGroup{} } else { sv = *v } @@ -46811,13 +49586,13 @@ func awsRestxml_deserializeDocumentTooManyOriginAccessControls(v **types.TooMany return nil } -func awsRestxml_deserializeDocumentTooManyOriginCustomHeaders(v **types.TooManyOriginCustomHeaders, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyQueryStringParameters(v **types.TooManyQueryStringParameters, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyOriginCustomHeaders + var sv *types.TooManyQueryStringParameters if *v == nil { - sv = &types.TooManyOriginCustomHeaders{} + sv = &types.TooManyQueryStringParameters{} } else { sv = *v } @@ -46860,13 +49635,13 @@ func awsRestxml_deserializeDocumentTooManyOriginCustomHeaders(v **types.TooManyO return nil } -func awsRestxml_deserializeDocumentTooManyOriginGroupsPerDistribution(v **types.TooManyOriginGroupsPerDistribution, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyQueryStringsInCachePolicy(v **types.TooManyQueryStringsInCachePolicy, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyOriginGroupsPerDistribution + var sv *types.TooManyQueryStringsInCachePolicy if *v == nil { - sv = &types.TooManyOriginGroupsPerDistribution{} + sv = &types.TooManyQueryStringsInCachePolicy{} } else { sv = *v } @@ -46909,13 +49684,13 @@ func awsRestxml_deserializeDocumentTooManyOriginGroupsPerDistribution(v **types. return nil } -func awsRestxml_deserializeDocumentTooManyOriginRequestPolicies(v **types.TooManyOriginRequestPolicies, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyQueryStringsInOriginRequestPolicy(v **types.TooManyQueryStringsInOriginRequestPolicy, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyOriginRequestPolicies + var sv *types.TooManyQueryStringsInOriginRequestPolicy if *v == nil { - sv = &types.TooManyOriginRequestPolicies{} + sv = &types.TooManyQueryStringsInOriginRequestPolicy{} } else { sv = *v } @@ -46958,13 +49733,13 @@ func awsRestxml_deserializeDocumentTooManyOriginRequestPolicies(v **types.TooMan return nil } -func awsRestxml_deserializeDocumentTooManyOrigins(v **types.TooManyOrigins, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyRealtimeLogConfigs(v **types.TooManyRealtimeLogConfigs, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyOrigins + var sv *types.TooManyRealtimeLogConfigs if *v == nil { - sv = &types.TooManyOrigins{} + sv = &types.TooManyRealtimeLogConfigs{} } else { sv = *v } @@ -47007,13 +49782,13 @@ func awsRestxml_deserializeDocumentTooManyOrigins(v **types.TooManyOrigins, deco return nil } -func awsRestxml_deserializeDocumentTooManyPublicKeys(v **types.TooManyPublicKeys, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyRemoveHeadersInResponseHeadersPolicy(v **types.TooManyRemoveHeadersInResponseHeadersPolicy, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyPublicKeys + var sv *types.TooManyRemoveHeadersInResponseHeadersPolicy if *v == nil { - sv = &types.TooManyPublicKeys{} + sv = &types.TooManyRemoveHeadersInResponseHeadersPolicy{} } else { sv = *v } @@ -47056,13 +49831,13 @@ func awsRestxml_deserializeDocumentTooManyPublicKeys(v **types.TooManyPublicKeys return nil } -func awsRestxml_deserializeDocumentTooManyPublicKeysInKeyGroup(v **types.TooManyPublicKeysInKeyGroup, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyResponseHeadersPolicies(v **types.TooManyResponseHeadersPolicies, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyPublicKeysInKeyGroup + var sv *types.TooManyResponseHeadersPolicies if *v == nil { - sv = &types.TooManyPublicKeysInKeyGroup{} + sv = &types.TooManyResponseHeadersPolicies{} } else { sv = *v } @@ -47105,13 +49880,13 @@ func awsRestxml_deserializeDocumentTooManyPublicKeysInKeyGroup(v **types.TooMany return nil } -func awsRestxml_deserializeDocumentTooManyQueryStringParameters(v **types.TooManyQueryStringParameters, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyStreamingDistributionCNAMEs(v **types.TooManyStreamingDistributionCNAMEs, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyQueryStringParameters + var sv *types.TooManyStreamingDistributionCNAMEs if *v == nil { - sv = &types.TooManyQueryStringParameters{} + sv = &types.TooManyStreamingDistributionCNAMEs{} } else { sv = *v } @@ -47154,13 +49929,13 @@ func awsRestxml_deserializeDocumentTooManyQueryStringParameters(v **types.TooMan return nil } -func awsRestxml_deserializeDocumentTooManyQueryStringsInCachePolicy(v **types.TooManyQueryStringsInCachePolicy, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyStreamingDistributions(v **types.TooManyStreamingDistributions, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyQueryStringsInCachePolicy + var sv *types.TooManyStreamingDistributions if *v == nil { - sv = &types.TooManyQueryStringsInCachePolicy{} + sv = &types.TooManyStreamingDistributions{} } else { sv = *v } @@ -47203,13 +49978,13 @@ func awsRestxml_deserializeDocumentTooManyQueryStringsInCachePolicy(v **types.To return nil } -func awsRestxml_deserializeDocumentTooManyQueryStringsInOriginRequestPolicy(v **types.TooManyQueryStringsInOriginRequestPolicy, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTooManyTrustedSigners(v **types.TooManyTrustedSigners, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyQueryStringsInOriginRequestPolicy + var sv *types.TooManyTrustedSigners if *v == nil { - sv = &types.TooManyQueryStringsInOriginRequestPolicy{} + sv = &types.TooManyTrustedSigners{} } else { sv = *v } @@ -47252,13 +50027,13 @@ func awsRestxml_deserializeDocumentTooManyQueryStringsInOriginRequestPolicy(v ** return nil } -func awsRestxml_deserializeDocumentTooManyRealtimeLogConfigs(v **types.TooManyRealtimeLogConfigs, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTrafficConfig(v **types.TrafficConfig, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyRealtimeLogConfigs + var sv *types.TrafficConfig if *v == nil { - sv = &types.TooManyRealtimeLogConfigs{} + sv = &types.TrafficConfig{} } else { sv = *v } @@ -47274,7 +50049,19 @@ func awsRestxml_deserializeDocumentTooManyRealtimeLogConfigs(v **types.TooManyRe originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Message", t.Name.Local): + case strings.EqualFold("SingleHeaderConfig", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentContinuousDeploymentSingleHeaderConfig(&sv.SingleHeaderConfig, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("SingleWeightConfig", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentContinuousDeploymentSingleWeightConfig(&sv.SingleWeightConfig, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("Type", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -47284,7 +50071,7 @@ func awsRestxml_deserializeDocumentTooManyRealtimeLogConfigs(v **types.TooManyRe } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.Type = types.ContinuousDeploymentPolicyType(xtv) } default: @@ -47301,13 +50088,13 @@ func awsRestxml_deserializeDocumentTooManyRealtimeLogConfigs(v **types.TooManyRe return nil } -func awsRestxml_deserializeDocumentTooManyRemoveHeadersInResponseHeadersPolicy(v **types.TooManyRemoveHeadersInResponseHeadersPolicy, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTrustedKeyGroupDoesNotExist(v **types.TrustedKeyGroupDoesNotExist, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyRemoveHeadersInResponseHeadersPolicy + var sv *types.TrustedKeyGroupDoesNotExist if *v == nil { - sv = &types.TooManyRemoveHeadersInResponseHeadersPolicy{} + sv = &types.TrustedKeyGroupDoesNotExist{} } else { sv = *v } @@ -47350,13 +50137,93 @@ func awsRestxml_deserializeDocumentTooManyRemoveHeadersInResponseHeadersPolicy(v return nil } -func awsRestxml_deserializeDocumentTooManyResponseHeadersPolicies(v **types.TooManyResponseHeadersPolicies, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTrustedKeyGroupIdList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyResponseHeadersPolicies + var sv []string if *v == nil { - sv = &types.TooManyResponseHeadersPolicies{} + 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("KeyGroup", 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 awsRestxml_deserializeDocumentTrustedKeyGroupIdListUnwrapped(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 awsRestxml_deserializeDocumentTrustedKeyGroups(v **types.TrustedKeyGroups, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.TrustedKeyGroups + if *v == nil { + sv = &types.TrustedKeyGroups{} } else { sv = *v } @@ -47372,7 +50239,29 @@ func awsRestxml_deserializeDocumentTooManyResponseHeadersPolicies(v **types.TooM originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Message", t.Name.Local): + 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("Items", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentTrustedKeyGroupIdList(&sv.Items, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("Quantity", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -47382,7 +50271,11 @@ func awsRestxml_deserializeDocumentTooManyResponseHeadersPolicies(v **types.TooM } { xtv := string(val) - sv.Message = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Quantity = ptr.Int32(int32(i64)) } default: @@ -47399,13 +50292,13 @@ func awsRestxml_deserializeDocumentTooManyResponseHeadersPolicies(v **types.TooM return nil } -func awsRestxml_deserializeDocumentTooManyStreamingDistributionCNAMEs(v **types.TooManyStreamingDistributionCNAMEs, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTrustedSignerDoesNotExist(v **types.TrustedSignerDoesNotExist, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyStreamingDistributionCNAMEs + var sv *types.TrustedSignerDoesNotExist if *v == nil { - sv = &types.TooManyStreamingDistributionCNAMEs{} + sv = &types.TrustedSignerDoesNotExist{} } else { sv = *v } @@ -47448,13 +50341,13 @@ func awsRestxml_deserializeDocumentTooManyStreamingDistributionCNAMEs(v **types. return nil } -func awsRestxml_deserializeDocumentTooManyStreamingDistributions(v **types.TooManyStreamingDistributions, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentTrustedSigners(v **types.TrustedSigners, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyStreamingDistributions + var sv *types.TrustedSigners if *v == nil { - sv = &types.TooManyStreamingDistributions{} + sv = &types.TrustedSigners{} } else { sv = *v } @@ -47470,7 +50363,29 @@ func awsRestxml_deserializeDocumentTooManyStreamingDistributions(v **types.TooMa originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Message", t.Name.Local): + 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("Items", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentAwsAccountNumberList(&sv.Items, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("Quantity", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -47480,7 +50395,11 @@ func awsRestxml_deserializeDocumentTooManyStreamingDistributions(v **types.TooMa } { xtv := string(val) - sv.Message = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Quantity = ptr.Int32(int32(i64)) } default: @@ -47497,13 +50416,13 @@ func awsRestxml_deserializeDocumentTooManyStreamingDistributions(v **types.TooMa return nil } -func awsRestxml_deserializeDocumentTooManyTrustedSigners(v **types.TooManyTrustedSigners, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentUnsupportedOperation(v **types.UnsupportedOperation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TooManyTrustedSigners + var sv *types.UnsupportedOperation if *v == nil { - sv = &types.TooManyTrustedSigners{} + sv = &types.UnsupportedOperation{} } else { sv = *v } @@ -47546,13 +50465,13 @@ func awsRestxml_deserializeDocumentTooManyTrustedSigners(v **types.TooManyTruste return nil } -func awsRestxml_deserializeDocumentTrafficConfig(v **types.TrafficConfig, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentViewerCertificate(v **types.ViewerCertificate, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TrafficConfig + var sv *types.ViewerCertificate if *v == nil { - sv = &types.TrafficConfig{} + sv = &types.ViewerCertificate{} } else { sv = *v } @@ -47568,19 +50487,33 @@ func awsRestxml_deserializeDocumentTrafficConfig(v **types.TrafficConfig, decode originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("SingleHeaderConfig", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentContinuousDeploymentSingleHeaderConfig(&sv.SingleHeaderConfig, nodeDecoder); err != nil { + case strings.EqualFold("ACMCertificateArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.ACMCertificateArn = ptr.String(xtv) + } - case strings.EqualFold("SingleWeightConfig", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentContinuousDeploymentSingleWeightConfig(&sv.SingleWeightConfig, nodeDecoder); err != nil { + case strings.EqualFold("Certificate", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.Certificate = ptr.String(xtv) + } - case strings.EqualFold("Type", t.Name.Local): + case strings.EqualFold("CertificateSource", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -47590,7 +50523,62 @@ func awsRestxml_deserializeDocumentTrafficConfig(v **types.TrafficConfig, decode } { xtv := string(val) - sv.Type = types.ContinuousDeploymentPolicyType(xtv) + sv.CertificateSource = types.CertificateSource(xtv) + } + + case strings.EqualFold("CloudFrontDefaultCertificate", 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.CloudFrontDefaultCertificate = ptr.Bool(xtv) + } + + case strings.EqualFold("IAMCertificateId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.IAMCertificateId = ptr.String(xtv) + } + + case strings.EqualFold("MinimumProtocolVersion", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.MinimumProtocolVersion = types.MinimumProtocolVersion(xtv) + } + + case strings.EqualFold("SSLSupportMethod", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.SSLSupportMethod = types.SSLSupportMethod(xtv) } default: @@ -47607,13 +50595,13 @@ func awsRestxml_deserializeDocumentTrafficConfig(v **types.TrafficConfig, decode return nil } -func awsRestxml_deserializeDocumentTrustedKeyGroupDoesNotExist(v **types.TrustedKeyGroupDoesNotExist, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentVpcOrigin(v **types.VpcOrigin, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TrustedKeyGroupDoesNotExist + var sv *types.VpcOrigin if *v == nil { - sv = &types.TrustedKeyGroupDoesNotExist{} + sv = &types.VpcOrigin{} } else { sv = *v } @@ -47629,7 +50617,7 @@ func awsRestxml_deserializeDocumentTrustedKeyGroupDoesNotExist(v **types.Trusted originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Message", t.Name.Local): + case strings.EqualFold("Arn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -47639,7 +50627,73 @@ func awsRestxml_deserializeDocumentTrustedKeyGroupDoesNotExist(v **types.Trusted } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.Arn = ptr.String(xtv) + } + + case strings.EqualFold("CreatedTime", 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.CreatedTime = ptr.Time(t) + } + + 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("LastModifiedTime", 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.LastModifiedTime = ptr.Time(t) + } + + 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("VpcOriginEndpointConfig", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentVpcOriginEndpointConfig(&sv.VpcOriginEndpointConfig, nodeDecoder); err != nil { + return err } default: @@ -47656,18 +50710,17 @@ func awsRestxml_deserializeDocumentTrustedKeyGroupDoesNotExist(v **types.Trusted return nil } -func awsRestxml_deserializeDocumentTrustedKeyGroupIdList(v *[]string, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentVpcOriginConfig(v **types.VpcOriginConfig, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []string + var sv *types.VpcOriginConfig if *v == nil { - sv = make([]string, 0) + sv = &types.VpcOriginConfig{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -47676,11 +50729,10 @@ func awsRestxml_deserializeDocumentTrustedKeyGroupIdList(v *[]string, decoder sm if done { break } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("KeyGroup", t.Name.Local): - var col string + case strings.EqualFold("VpcOriginId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -47690,11 +50742,11 @@ func awsRestxml_deserializeDocumentTrustedKeyGroupIdList(v *[]string, decoder sm } { xtv := string(val) - col = xtv + sv.VpcOriginId = ptr.String(xtv) } - sv = append(sv, col) default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -47707,42 +50759,13 @@ func awsRestxml_deserializeDocumentTrustedKeyGroupIdList(v *[]string, decoder sm return nil } -func awsRestxml_deserializeDocumentTrustedKeyGroupIdListUnwrapped(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 awsRestxml_deserializeDocumentTrustedKeyGroups(v **types.TrustedKeyGroups, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentVpcOriginEndpointConfig(v **types.VpcOriginEndpointConfig, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TrustedKeyGroups + var sv *types.VpcOriginEndpointConfig if *v == nil { - sv = &types.TrustedKeyGroups{} + sv = &types.VpcOriginEndpointConfig{} } else { sv = *v } @@ -47758,7 +50781,7 @@ func awsRestxml_deserializeDocumentTrustedKeyGroups(v **types.TrustedKeyGroups, originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Enabled", t.Name.Local): + case strings.EqualFold("Arn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -47767,20 +50790,28 @@ func awsRestxml_deserializeDocumentTrustedKeyGroups(v **types.TrustedKeyGroups, 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.Arn = ptr.String(xtv) } - case strings.EqualFold("Items", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentTrustedKeyGroupIdList(&sv.Items, nodeDecoder); err != nil { + case strings.EqualFold("HTTPPort", 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.HTTPPort = ptr.Int32(int32(i64)) + } - case strings.EqualFold("Quantity", t.Name.Local): + case strings.EqualFold("HTTPSPort", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -47794,46 +50825,23 @@ func awsRestxml_deserializeDocumentTrustedKeyGroups(v **types.TrustedKeyGroups, if err != nil { return err } - sv.Quantity = ptr.Int32(int32(i64)) + sv.HTTPSPort = ptr.Int32(int32(i64)) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + 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) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsRestxml_deserializeDocumentTrustedSignerDoesNotExist(v **types.TrustedSignerDoesNotExist, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TrustedSignerDoesNotExist - if *v == nil { - sv = &types.TrustedSignerDoesNotExist{} - } 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("OriginProtocolPolicy", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -47843,7 +50851,13 @@ func awsRestxml_deserializeDocumentTrustedSignerDoesNotExist(v **types.TrustedSi } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.OriginProtocolPolicy = types.OriginProtocolPolicy(xtv) + } + + case strings.EqualFold("OriginSslProtocols", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsRestxml_deserializeDocumentOriginSslProtocols(&sv.OriginSslProtocols, nodeDecoder); err != nil { + return err } default: @@ -47860,13 +50874,13 @@ func awsRestxml_deserializeDocumentTrustedSignerDoesNotExist(v **types.TrustedSi return nil } -func awsRestxml_deserializeDocumentTrustedSigners(v **types.TrustedSigners, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentVpcOriginList(v **types.VpcOriginList, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.TrustedSigners + var sv *types.VpcOriginList if *v == nil { - sv = &types.TrustedSigners{} + sv = &types.VpcOriginList{} } else { sv = *v } @@ -47882,7 +50896,7 @@ func awsRestxml_deserializeDocumentTrustedSigners(v **types.TrustedSigners, deco originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("Enabled", t.Name.Local): + case strings.EqualFold("IsTruncated", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -47895,16 +50909,29 @@ func awsRestxml_deserializeDocumentTrustedSigners(v **types.TrustedSigners, deco if err != nil { return fmt.Errorf("expected boolean to be of type *bool, got %T instead", val) } - sv.Enabled = ptr.Bool(xtv) + sv.IsTruncated = ptr.Bool(xtv) } case strings.EqualFold("Items", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsRestxml_deserializeDocumentAwsAccountNumberList(&sv.Items, nodeDecoder); err != nil { + if err := awsRestxml_deserializeDocumentVpcOriginSummaryList(&sv.Items, nodeDecoder); err != nil { return err } - case strings.EqualFold("Quantity", t.Name.Local): + case strings.EqualFold("Marker", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Marker = ptr.String(xtv) + } + + case strings.EqualFold("MaxItems", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -47918,46 +50945,23 @@ func awsRestxml_deserializeDocumentTrustedSigners(v **types.TrustedSigners, deco if err != nil { return err } - sv.Quantity = ptr.Int32(int32(i64)) + sv.MaxItems = ptr.Int32(int32(i64)) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("NextMarker", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.NextMarker = ptr.String(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsRestxml_deserializeDocumentUnsupportedOperation(v **types.UnsupportedOperation, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.UnsupportedOperation - if *v == nil { - sv = &types.UnsupportedOperation{} - } 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("Quantity", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -47967,7 +50971,11 @@ func awsRestxml_deserializeDocumentUnsupportedOperation(v **types.UnsupportedOpe } { xtv := string(val) - sv.Message = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Quantity = ptr.Int32(int32(i64)) } default: @@ -47984,13 +50992,13 @@ func awsRestxml_deserializeDocumentUnsupportedOperation(v **types.UnsupportedOpe return nil } -func awsRestxml_deserializeDocumentViewerCertificate(v **types.ViewerCertificate, decoder smithyxml.NodeDecoder) error { +func awsRestxml_deserializeDocumentVpcOriginSummary(v **types.VpcOriginSummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ViewerCertificate + var sv *types.VpcOriginSummary if *v == nil { - sv = &types.ViewerCertificate{} + sv = &types.VpcOriginSummary{} } else { sv = *v } @@ -48006,7 +51014,7 @@ func awsRestxml_deserializeDocumentViewerCertificate(v **types.ViewerCertificate originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("ACMCertificateArn", t.Name.Local): + case strings.EqualFold("Arn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -48016,10 +51024,10 @@ func awsRestxml_deserializeDocumentViewerCertificate(v **types.ViewerCertificate } { xtv := string(val) - sv.ACMCertificateArn = ptr.String(xtv) + sv.Arn = ptr.String(xtv) } - case strings.EqualFold("Certificate", t.Name.Local): + case strings.EqualFold("CreatedTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -48029,10 +51037,14 @@ func awsRestxml_deserializeDocumentViewerCertificate(v **types.ViewerCertificate } { xtv := string(val) - sv.Certificate = ptr.String(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(t) } - case strings.EqualFold("CertificateSource", t.Name.Local): + case strings.EqualFold("Id", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -48042,10 +51054,10 @@ func awsRestxml_deserializeDocumentViewerCertificate(v **types.ViewerCertificate } { xtv := string(val) - sv.CertificateSource = types.CertificateSource(xtv) + sv.Id = ptr.String(xtv) } - case strings.EqualFold("CloudFrontDefaultCertificate", t.Name.Local): + case strings.EqualFold("LastModifiedTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -48054,14 +51066,15 @@ func awsRestxml_deserializeDocumentViewerCertificate(v **types.ViewerCertificate 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.CloudFrontDefaultCertificate = ptr.Bool(xtv) + sv.LastModifiedTime = ptr.Time(t) } - case strings.EqualFold("IAMCertificateId", t.Name.Local): + case strings.EqualFold("Name", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -48071,10 +51084,10 @@ func awsRestxml_deserializeDocumentViewerCertificate(v **types.ViewerCertificate } { xtv := string(val) - sv.IAMCertificateId = ptr.String(xtv) + sv.Name = ptr.String(xtv) } - case strings.EqualFold("MinimumProtocolVersion", t.Name.Local): + case strings.EqualFold("OriginEndpointArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -48084,10 +51097,10 @@ func awsRestxml_deserializeDocumentViewerCertificate(v **types.ViewerCertificate } { xtv := string(val) - sv.MinimumProtocolVersion = types.MinimumProtocolVersion(xtv) + sv.OriginEndpointArn = ptr.String(xtv) } - case strings.EqualFold("SSLSupportMethod", t.Name.Local): + case strings.EqualFold("Status", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -48097,7 +51110,7 @@ func awsRestxml_deserializeDocumentViewerCertificate(v **types.ViewerCertificate } { xtv := string(val) - sv.SSLSupportMethod = types.SSLSupportMethod(xtv) + sv.Status = ptr.String(xtv) } default: @@ -48113,3 +51126,72 @@ func awsRestxml_deserializeDocumentViewerCertificate(v **types.ViewerCertificate *v = sv return nil } + +func awsRestxml_deserializeDocumentVpcOriginSummaryList(v *[]types.VpcOriginSummary, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.VpcOriginSummary + if *v == nil { + sv = make([]types.VpcOriginSummary, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("VpcOriginSummary", t.Name.Local): + var col types.VpcOriginSummary + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsRestxml_deserializeDocumentVpcOriginSummary(&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 awsRestxml_deserializeDocumentVpcOriginSummaryListUnwrapped(v *[]types.VpcOriginSummary, decoder smithyxml.NodeDecoder) error { + var sv []types.VpcOriginSummary + if *v == nil { + sv = make([]types.VpcOriginSummary, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.VpcOriginSummary + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsRestxml_deserializeDocumentVpcOriginSummary(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} diff --git a/service/cloudfront/generated.json b/service/cloudfront/generated.json index bd06adb328e..9c85a6aa410 100644 --- a/service/cloudfront/generated.json +++ b/service/cloudfront/generated.json @@ -11,6 +11,7 @@ "api_client_test.go", "api_op_AssociateAlias.go", "api_op_CopyDistribution.go", + "api_op_CreateAnycastIpList.go", "api_op_CreateCachePolicy.go", "api_op_CreateCloudFrontOriginAccessIdentity.go", "api_op_CreateContinuousDeploymentPolicy.go", @@ -30,6 +31,8 @@ "api_op_CreateResponseHeadersPolicy.go", "api_op_CreateStreamingDistribution.go", "api_op_CreateStreamingDistributionWithTags.go", + "api_op_CreateVpcOrigin.go", + "api_op_DeleteAnycastIpList.go", "api_op_DeleteCachePolicy.go", "api_op_DeleteCloudFrontOriginAccessIdentity.go", "api_op_DeleteContinuousDeploymentPolicy.go", @@ -46,8 +49,10 @@ "api_op_DeleteRealtimeLogConfig.go", "api_op_DeleteResponseHeadersPolicy.go", "api_op_DeleteStreamingDistribution.go", + "api_op_DeleteVpcOrigin.go", "api_op_DescribeFunction.go", "api_op_DescribeKeyValueStore.go", + "api_op_GetAnycastIpList.go", "api_op_GetCachePolicy.go", "api_op_GetCachePolicyConfig.go", "api_op_GetCloudFrontOriginAccessIdentity.go", @@ -76,16 +81,20 @@ "api_op_GetResponseHeadersPolicyConfig.go", "api_op_GetStreamingDistribution.go", "api_op_GetStreamingDistributionConfig.go", + "api_op_GetVpcOrigin.go", + "api_op_ListAnycastIpLists.go", "api_op_ListCachePolicies.go", "api_op_ListCloudFrontOriginAccessIdentities.go", "api_op_ListConflictingAliases.go", "api_op_ListContinuousDeploymentPolicies.go", "api_op_ListDistributions.go", + "api_op_ListDistributionsByAnycastIpListId.go", "api_op_ListDistributionsByCachePolicyId.go", "api_op_ListDistributionsByKeyGroup.go", "api_op_ListDistributionsByOriginRequestPolicyId.go", "api_op_ListDistributionsByRealtimeLogConfig.go", "api_op_ListDistributionsByResponseHeadersPolicyId.go", + "api_op_ListDistributionsByVpcOriginId.go", "api_op_ListDistributionsByWebACLId.go", "api_op_ListFieldLevelEncryptionConfigs.go", "api_op_ListFieldLevelEncryptionProfiles.go", @@ -100,6 +109,7 @@ "api_op_ListResponseHeadersPolicies.go", "api_op_ListStreamingDistributions.go", "api_op_ListTagsForResource.go", + "api_op_ListVpcOrigins.go", "api_op_PublishFunction.go", "api_op_TagResource.go", "api_op_TestFunction.go", @@ -120,6 +130,7 @@ "api_op_UpdateRealtimeLogConfig.go", "api_op_UpdateResponseHeadersPolicy.go", "api_op_UpdateStreamingDistribution.go", + "api_op_UpdateVpcOrigin.go", "auth.go", "deserializers.go", "doc.go", diff --git a/service/cloudfront/go.mod b/service/cloudfront/go.mod index 92a79a3cf6c..36a07874cd4 100644 --- a/service/cloudfront/go.mod +++ b/service/cloudfront/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudfront go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/cloudfront/go.sum b/service/cloudfront/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/cloudfront/go.sum +++ b/service/cloudfront/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/cloudfront/go_module_metadata.go b/service/cloudfront/go_module_metadata.go index 4401c9801fe..ac555c0ec92 100644 --- a/service/cloudfront/go_module_metadata.go +++ b/service/cloudfront/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudfront // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.41.0" +const goModuleVersion = "1.42.0" diff --git a/service/cloudfront/serializers.go b/service/cloudfront/serializers.go index f16b819b017..86f8bf1853d 100644 --- a/service/cloudfront/serializers.go +++ b/service/cloudfront/serializers.go @@ -217,6 +217,122 @@ func awsRestxml_serializeOpDocumentCopyDistributionInput(v *CopyDistributionInpu return nil } +type awsRestxml_serializeOpCreateAnycastIpList struct { +} + +func (*awsRestxml_serializeOpCreateAnycastIpList) ID() string { + return "OperationSerializer" +} + +func (m *awsRestxml_serializeOpCreateAnycastIpList) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*CreateAnycastIpListInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/2020-05-31/anycast-ip-list") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/xml") + + xmlEncoder := smithyxml.NewEncoder(bytes.NewBuffer(nil)) + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "CreateAnycastIpListRequest", + }, + Attr: rootAttr, + } + root.Attr = append(root.Attr, smithyxml.NewNamespaceAttribute("", "http://cloudfront.amazonaws.com/doc/2020-05-31/")) + if err := awsRestxml_serializeOpDocumentCreateAnycastIpListInput(input, xmlEncoder.RootElement(root)); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + if request, err = request.SetStream(bytes.NewReader(xmlEncoder.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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestxml_serializeOpHttpBindingsCreateAnycastIpListInput(v *CreateAnycastIpListInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestxml_serializeOpDocumentCreateAnycastIpListInput(v *CreateAnycastIpListInput, value smithyxml.Value) error { + defer value.Close() + if v.IpCount != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "IpCount", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + el.Integer(*v.IpCount) + } + if v.Name != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "Name", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + el.String(*v.Name) + } + if v.Tags != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "Tags", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + if err := awsRestxml_serializeDocumentTags(v.Tags, el); err != nil { + return err + } + } + return nil +} + type awsRestxml_serializeOpCreateCachePolicy struct { } @@ -1916,14 +2032,14 @@ func awsRestxml_serializeOpHttpBindingsCreateStreamingDistributionWithTagsInput( return nil } -type awsRestxml_serializeOpDeleteCachePolicy struct { +type awsRestxml_serializeOpCreateVpcOrigin struct { } -func (*awsRestxml_serializeOpDeleteCachePolicy) ID() string { +func (*awsRestxml_serializeOpCreateVpcOrigin) ID() string { return "OperationSerializer" } -func (m *awsRestxml_serializeOpDeleteCachePolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestxml_serializeOpCreateVpcOrigin) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -1935,16 +2051,16 @@ func (m *awsRestxml_serializeOpDeleteCachePolicy) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteCachePolicyInput) + input, ok := in.Parameters.(*CreateVpcOriginInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/2020-05-31/cache-policy/{Id}") + opPath, opQuery := httpbinding.SplitURI("/2020-05-31/vpc-origin") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "DELETE" + request.Method = "POST" var restEncoder *httpbinding.Encoder if request.URL.RawPath == "" { restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) @@ -1957,7 +2073,21 @@ func (m *awsRestxml_serializeOpDeleteCachePolicy) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestxml_serializeOpHttpBindingsDeleteCachePolicyInput(input, restEncoder); err != nil { + restEncoder.SetHeader("Content-Type").String("application/xml") + + xmlEncoder := smithyxml.NewEncoder(bytes.NewBuffer(nil)) + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "CreateVpcOriginRequest", + }, + Attr: rootAttr, + } + root.Attr = append(root.Attr, smithyxml.NewNamespaceAttribute("", "http://cloudfront.amazonaws.com/doc/2020-05-31/")) + if err := awsRestxml_serializeOpDocumentCreateVpcOriginInput(input, xmlEncoder.RootElement(root)); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + if request, err = request.SetStream(bytes.NewReader(xmlEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1970,36 +2100,53 @@ func (m *awsRestxml_serializeOpDeleteCachePolicy) HandleSerialize(ctx context.Co span.End() return next.HandleSerialize(ctx, in) } -func awsRestxml_serializeOpHttpBindingsDeleteCachePolicyInput(v *DeleteCachePolicyInput, encoder *httpbinding.Encoder) error { +func awsRestxml_serializeOpHttpBindingsCreateVpcOriginInput(v *CreateVpcOriginInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil || len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} - } - if v.Id != nil { - if err := encoder.SetURI("Id").String(*v.Id); err != nil { + return nil +} + +func awsRestxml_serializeOpDocumentCreateVpcOriginInput(v *CreateVpcOriginInput, value smithyxml.Value) error { + defer value.Close() + if v.Tags != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "Tags", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + if err := awsRestxml_serializeDocumentTags(v.Tags, el); err != nil { return err } } - - if v.IfMatch != nil { - locationName := "If-Match" - encoder.SetHeader(locationName).String(*v.IfMatch) + if v.VpcOriginEndpointConfig != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "VpcOriginEndpointConfig", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + if err := awsRestxml_serializeDocumentVpcOriginEndpointConfig(v.VpcOriginEndpointConfig, el); err != nil { + return err + } } - return nil } -type awsRestxml_serializeOpDeleteCloudFrontOriginAccessIdentity struct { +type awsRestxml_serializeOpDeleteAnycastIpList struct { } -func (*awsRestxml_serializeOpDeleteCloudFrontOriginAccessIdentity) ID() string { +func (*awsRestxml_serializeOpDeleteAnycastIpList) ID() string { return "OperationSerializer" } -func (m *awsRestxml_serializeOpDeleteCloudFrontOriginAccessIdentity) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestxml_serializeOpDeleteAnycastIpList) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -2011,13 +2158,13 @@ func (m *awsRestxml_serializeOpDeleteCloudFrontOriginAccessIdentity) HandleSeria return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteCloudFrontOriginAccessIdentityInput) + input, ok := in.Parameters.(*DeleteAnycastIpListInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/2020-05-31/origin-access-identity/cloudfront/{Id}") + opPath, opQuery := httpbinding.SplitURI("/2020-05-31/anycast-ip-list/{Id}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" @@ -2033,7 +2180,7 @@ func (m *awsRestxml_serializeOpDeleteCloudFrontOriginAccessIdentity) HandleSeria return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestxml_serializeOpHttpBindingsDeleteCloudFrontOriginAccessIdentityInput(input, restEncoder); err != nil { + if err := awsRestxml_serializeOpHttpBindingsDeleteAnycastIpListInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2046,7 +2193,7 @@ func (m *awsRestxml_serializeOpDeleteCloudFrontOriginAccessIdentity) HandleSeria span.End() return next.HandleSerialize(ctx, in) } -func awsRestxml_serializeOpHttpBindingsDeleteCloudFrontOriginAccessIdentityInput(v *DeleteCloudFrontOriginAccessIdentityInput, encoder *httpbinding.Encoder) error { +func awsRestxml_serializeOpHttpBindingsDeleteAnycastIpListInput(v *DeleteAnycastIpListInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -2068,14 +2215,14 @@ func awsRestxml_serializeOpHttpBindingsDeleteCloudFrontOriginAccessIdentityInput return nil } -type awsRestxml_serializeOpDeleteContinuousDeploymentPolicy struct { +type awsRestxml_serializeOpDeleteCachePolicy struct { } -func (*awsRestxml_serializeOpDeleteContinuousDeploymentPolicy) ID() string { +func (*awsRestxml_serializeOpDeleteCachePolicy) ID() string { return "OperationSerializer" } -func (m *awsRestxml_serializeOpDeleteContinuousDeploymentPolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestxml_serializeOpDeleteCachePolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -2087,13 +2234,13 @@ func (m *awsRestxml_serializeOpDeleteContinuousDeploymentPolicy) HandleSerialize return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteContinuousDeploymentPolicyInput) + input, ok := in.Parameters.(*DeleteCachePolicyInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/2020-05-31/continuous-deployment-policy/{Id}") + opPath, opQuery := httpbinding.SplitURI("/2020-05-31/cache-policy/{Id}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" @@ -2109,7 +2256,7 @@ func (m *awsRestxml_serializeOpDeleteContinuousDeploymentPolicy) HandleSerialize return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestxml_serializeOpHttpBindingsDeleteContinuousDeploymentPolicyInput(input, restEncoder); err != nil { + if err := awsRestxml_serializeOpHttpBindingsDeleteCachePolicyInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2122,7 +2269,7 @@ func (m *awsRestxml_serializeOpDeleteContinuousDeploymentPolicy) HandleSerialize span.End() return next.HandleSerialize(ctx, in) } -func awsRestxml_serializeOpHttpBindingsDeleteContinuousDeploymentPolicyInput(v *DeleteContinuousDeploymentPolicyInput, encoder *httpbinding.Encoder) error { +func awsRestxml_serializeOpHttpBindingsDeleteCachePolicyInput(v *DeleteCachePolicyInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -2144,14 +2291,14 @@ func awsRestxml_serializeOpHttpBindingsDeleteContinuousDeploymentPolicyInput(v * return nil } -type awsRestxml_serializeOpDeleteDistribution struct { +type awsRestxml_serializeOpDeleteCloudFrontOriginAccessIdentity struct { } -func (*awsRestxml_serializeOpDeleteDistribution) ID() string { +func (*awsRestxml_serializeOpDeleteCloudFrontOriginAccessIdentity) ID() string { return "OperationSerializer" } -func (m *awsRestxml_serializeOpDeleteDistribution) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestxml_serializeOpDeleteCloudFrontOriginAccessIdentity) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -2163,13 +2310,13 @@ func (m *awsRestxml_serializeOpDeleteDistribution) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteDistributionInput) + input, ok := in.Parameters.(*DeleteCloudFrontOriginAccessIdentityInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/2020-05-31/distribution/{Id}") + opPath, opQuery := httpbinding.SplitURI("/2020-05-31/origin-access-identity/cloudfront/{Id}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" @@ -2185,7 +2332,7 @@ func (m *awsRestxml_serializeOpDeleteDistribution) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestxml_serializeOpHttpBindingsDeleteDistributionInput(input, restEncoder); err != nil { + if err := awsRestxml_serializeOpHttpBindingsDeleteCloudFrontOriginAccessIdentityInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2198,7 +2345,7 @@ func (m *awsRestxml_serializeOpDeleteDistribution) HandleSerialize(ctx context.C span.End() return next.HandleSerialize(ctx, in) } -func awsRestxml_serializeOpHttpBindingsDeleteDistributionInput(v *DeleteDistributionInput, encoder *httpbinding.Encoder) error { +func awsRestxml_serializeOpHttpBindingsDeleteCloudFrontOriginAccessIdentityInput(v *DeleteCloudFrontOriginAccessIdentityInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -2220,14 +2367,14 @@ func awsRestxml_serializeOpHttpBindingsDeleteDistributionInput(v *DeleteDistribu return nil } -type awsRestxml_serializeOpDeleteFieldLevelEncryptionConfig struct { +type awsRestxml_serializeOpDeleteContinuousDeploymentPolicy struct { } -func (*awsRestxml_serializeOpDeleteFieldLevelEncryptionConfig) ID() string { +func (*awsRestxml_serializeOpDeleteContinuousDeploymentPolicy) ID() string { return "OperationSerializer" } -func (m *awsRestxml_serializeOpDeleteFieldLevelEncryptionConfig) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestxml_serializeOpDeleteContinuousDeploymentPolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -2239,13 +2386,13 @@ func (m *awsRestxml_serializeOpDeleteFieldLevelEncryptionConfig) HandleSerialize return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteFieldLevelEncryptionConfigInput) + input, ok := in.Parameters.(*DeleteContinuousDeploymentPolicyInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/2020-05-31/field-level-encryption/{Id}") + opPath, opQuery := httpbinding.SplitURI("/2020-05-31/continuous-deployment-policy/{Id}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" @@ -2261,7 +2408,7 @@ func (m *awsRestxml_serializeOpDeleteFieldLevelEncryptionConfig) HandleSerialize return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestxml_serializeOpHttpBindingsDeleteFieldLevelEncryptionConfigInput(input, restEncoder); err != nil { + if err := awsRestxml_serializeOpHttpBindingsDeleteContinuousDeploymentPolicyInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2274,7 +2421,7 @@ func (m *awsRestxml_serializeOpDeleteFieldLevelEncryptionConfig) HandleSerialize span.End() return next.HandleSerialize(ctx, in) } -func awsRestxml_serializeOpHttpBindingsDeleteFieldLevelEncryptionConfigInput(v *DeleteFieldLevelEncryptionConfigInput, encoder *httpbinding.Encoder) error { +func awsRestxml_serializeOpHttpBindingsDeleteContinuousDeploymentPolicyInput(v *DeleteContinuousDeploymentPolicyInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -2296,14 +2443,14 @@ func awsRestxml_serializeOpHttpBindingsDeleteFieldLevelEncryptionConfigInput(v * return nil } -type awsRestxml_serializeOpDeleteFieldLevelEncryptionProfile struct { +type awsRestxml_serializeOpDeleteDistribution struct { } -func (*awsRestxml_serializeOpDeleteFieldLevelEncryptionProfile) ID() string { +func (*awsRestxml_serializeOpDeleteDistribution) ID() string { return "OperationSerializer" } -func (m *awsRestxml_serializeOpDeleteFieldLevelEncryptionProfile) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestxml_serializeOpDeleteDistribution) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -2315,13 +2462,13 @@ func (m *awsRestxml_serializeOpDeleteFieldLevelEncryptionProfile) HandleSerializ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteFieldLevelEncryptionProfileInput) + input, ok := in.Parameters.(*DeleteDistributionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/2020-05-31/field-level-encryption-profile/{Id}") + opPath, opQuery := httpbinding.SplitURI("/2020-05-31/distribution/{Id}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" @@ -2337,7 +2484,7 @@ func (m *awsRestxml_serializeOpDeleteFieldLevelEncryptionProfile) HandleSerializ return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestxml_serializeOpHttpBindingsDeleteFieldLevelEncryptionProfileInput(input, restEncoder); err != nil { + if err := awsRestxml_serializeOpHttpBindingsDeleteDistributionInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2350,7 +2497,7 @@ func (m *awsRestxml_serializeOpDeleteFieldLevelEncryptionProfile) HandleSerializ span.End() return next.HandleSerialize(ctx, in) } -func awsRestxml_serializeOpHttpBindingsDeleteFieldLevelEncryptionProfileInput(v *DeleteFieldLevelEncryptionProfileInput, encoder *httpbinding.Encoder) error { +func awsRestxml_serializeOpHttpBindingsDeleteDistributionInput(v *DeleteDistributionInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -2372,14 +2519,14 @@ func awsRestxml_serializeOpHttpBindingsDeleteFieldLevelEncryptionProfileInput(v return nil } -type awsRestxml_serializeOpDeleteFunction struct { +type awsRestxml_serializeOpDeleteFieldLevelEncryptionConfig struct { } -func (*awsRestxml_serializeOpDeleteFunction) ID() string { +func (*awsRestxml_serializeOpDeleteFieldLevelEncryptionConfig) ID() string { return "OperationSerializer" } -func (m *awsRestxml_serializeOpDeleteFunction) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestxml_serializeOpDeleteFieldLevelEncryptionConfig) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -2391,13 +2538,13 @@ func (m *awsRestxml_serializeOpDeleteFunction) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteFunctionInput) + input, ok := in.Parameters.(*DeleteFieldLevelEncryptionConfigInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/2020-05-31/function/{Name}") + opPath, opQuery := httpbinding.SplitURI("/2020-05-31/field-level-encryption/{Id}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" @@ -2413,7 +2560,7 @@ func (m *awsRestxml_serializeOpDeleteFunction) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestxml_serializeOpHttpBindingsDeleteFunctionInput(input, restEncoder); err != nil { + if err := awsRestxml_serializeOpHttpBindingsDeleteFieldLevelEncryptionConfigInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2426,29 +2573,181 @@ func (m *awsRestxml_serializeOpDeleteFunction) HandleSerialize(ctx context.Conte span.End() return next.HandleSerialize(ctx, in) } -func awsRestxml_serializeOpHttpBindingsDeleteFunctionInput(v *DeleteFunctionInput, encoder *httpbinding.Encoder) error { +func awsRestxml_serializeOpHttpBindingsDeleteFieldLevelEncryptionConfigInput(v *DeleteFieldLevelEncryptionConfigInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.IfMatch != nil { - locationName := "If-Match" - encoder.SetHeader(locationName).String(*v.IfMatch) - } - - if v.Name == nil || len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} + if v.Id == nil || len(*v.Id) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } - if v.Name != nil { - if err := encoder.SetURI("Name").String(*v.Name); err != nil { + if v.Id != nil { + if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } } + if v.IfMatch != nil { + locationName := "If-Match" + encoder.SetHeader(locationName).String(*v.IfMatch) + } + return nil } -type awsRestxml_serializeOpDeleteKeyGroup struct { +type awsRestxml_serializeOpDeleteFieldLevelEncryptionProfile struct { +} + +func (*awsRestxml_serializeOpDeleteFieldLevelEncryptionProfile) ID() string { + return "OperationSerializer" +} + +func (m *awsRestxml_serializeOpDeleteFieldLevelEncryptionProfile) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DeleteFieldLevelEncryptionProfileInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/2020-05-31/field-level-encryption-profile/{Id}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestxml_serializeOpHttpBindingsDeleteFieldLevelEncryptionProfileInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestxml_serializeOpHttpBindingsDeleteFieldLevelEncryptionProfileInput(v *DeleteFieldLevelEncryptionProfileInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.Id == nil || len(*v.Id) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} + } + if v.Id != nil { + if err := encoder.SetURI("Id").String(*v.Id); err != nil { + return err + } + } + + if v.IfMatch != nil { + locationName := "If-Match" + encoder.SetHeader(locationName).String(*v.IfMatch) + } + + return nil +} + +type awsRestxml_serializeOpDeleteFunction struct { +} + +func (*awsRestxml_serializeOpDeleteFunction) ID() string { + return "OperationSerializer" +} + +func (m *awsRestxml_serializeOpDeleteFunction) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DeleteFunctionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/2020-05-31/function/{Name}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestxml_serializeOpHttpBindingsDeleteFunctionInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestxml_serializeOpHttpBindingsDeleteFunctionInput(v *DeleteFunctionInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.IfMatch != nil { + locationName := "If-Match" + encoder.SetHeader(locationName).String(*v.IfMatch) + } + + if v.Name == nil || len(*v.Name) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} + } + if v.Name != nil { + if err := encoder.SetURI("Name").String(*v.Name); err != nil { + return err + } + } + + return nil +} + +type awsRestxml_serializeOpDeleteKeyGroup struct { } func (*awsRestxml_serializeOpDeleteKeyGroup) ID() string { @@ -3154,6 +3453,82 @@ func awsRestxml_serializeOpHttpBindingsDeleteStreamingDistributionInput(v *Delet return nil } +type awsRestxml_serializeOpDeleteVpcOrigin struct { +} + +func (*awsRestxml_serializeOpDeleteVpcOrigin) ID() string { + return "OperationSerializer" +} + +func (m *awsRestxml_serializeOpDeleteVpcOrigin) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DeleteVpcOriginInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/2020-05-31/vpc-origin/{Id}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestxml_serializeOpHttpBindingsDeleteVpcOriginInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestxml_serializeOpHttpBindingsDeleteVpcOriginInput(v *DeleteVpcOriginInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.Id == nil || len(*v.Id) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} + } + if v.Id != nil { + if err := encoder.SetURI("Id").String(*v.Id); err != nil { + return err + } + } + + if v.IfMatch != nil { + locationName := "If-Match" + encoder.SetHeader(locationName).String(*v.IfMatch) + } + + return nil +} + type awsRestxml_serializeOpDescribeFunction struct { } @@ -3300,6 +3675,77 @@ func awsRestxml_serializeOpHttpBindingsDescribeKeyValueStoreInput(v *DescribeKey return nil } +type awsRestxml_serializeOpGetAnycastIpList struct { +} + +func (*awsRestxml_serializeOpGetAnycastIpList) ID() string { + return "OperationSerializer" +} + +func (m *awsRestxml_serializeOpGetAnycastIpList) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*GetAnycastIpListInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/2020-05-31/anycast-ip-list/{Id}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestxml_serializeOpHttpBindingsGetAnycastIpListInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestxml_serializeOpHttpBindingsGetAnycastIpListInput(v *GetAnycastIpListInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.Id == nil || len(*v.Id) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} + } + if v.Id != nil { + if err := encoder.SetURI("Id").String(*v.Id); err != nil { + return err + } + } + + return nil +} + type awsRestxml_serializeOpGetCachePolicy struct { } @@ -5052,11 +5498,153 @@ func awsRestxml_serializeOpDocumentGetRealtimeLogConfigInput(v *GetRealtimeLogCo type awsRestxml_serializeOpGetResponseHeadersPolicy struct { } -func (*awsRestxml_serializeOpGetResponseHeadersPolicy) ID() string { +func (*awsRestxml_serializeOpGetResponseHeadersPolicy) ID() string { + return "OperationSerializer" +} + +func (m *awsRestxml_serializeOpGetResponseHeadersPolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*GetResponseHeadersPolicyInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/2020-05-31/response-headers-policy/{Id}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestxml_serializeOpHttpBindingsGetResponseHeadersPolicyInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestxml_serializeOpHttpBindingsGetResponseHeadersPolicyInput(v *GetResponseHeadersPolicyInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.Id == nil || len(*v.Id) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} + } + if v.Id != nil { + if err := encoder.SetURI("Id").String(*v.Id); err != nil { + return err + } + } + + return nil +} + +type awsRestxml_serializeOpGetResponseHeadersPolicyConfig struct { +} + +func (*awsRestxml_serializeOpGetResponseHeadersPolicyConfig) ID() string { + return "OperationSerializer" +} + +func (m *awsRestxml_serializeOpGetResponseHeadersPolicyConfig) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*GetResponseHeadersPolicyConfigInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/2020-05-31/response-headers-policy/{Id}/config") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestxml_serializeOpHttpBindingsGetResponseHeadersPolicyConfigInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestxml_serializeOpHttpBindingsGetResponseHeadersPolicyConfigInput(v *GetResponseHeadersPolicyConfigInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.Id == nil || len(*v.Id) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} + } + if v.Id != nil { + if err := encoder.SetURI("Id").String(*v.Id); err != nil { + return err + } + } + + return nil +} + +type awsRestxml_serializeOpGetStreamingDistribution struct { +} + +func (*awsRestxml_serializeOpGetStreamingDistribution) ID() string { return "OperationSerializer" } -func (m *awsRestxml_serializeOpGetResponseHeadersPolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestxml_serializeOpGetStreamingDistribution) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -5068,13 +5656,13 @@ func (m *awsRestxml_serializeOpGetResponseHeadersPolicy) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetResponseHeadersPolicyInput) + input, ok := in.Parameters.(*GetStreamingDistributionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/2020-05-31/response-headers-policy/{Id}") + opPath, opQuery := httpbinding.SplitURI("/2020-05-31/streaming-distribution/{Id}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -5090,7 +5678,7 @@ func (m *awsRestxml_serializeOpGetResponseHeadersPolicy) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestxml_serializeOpHttpBindingsGetResponseHeadersPolicyInput(input, restEncoder); err != nil { + if err := awsRestxml_serializeOpHttpBindingsGetStreamingDistributionInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -5103,7 +5691,7 @@ func (m *awsRestxml_serializeOpGetResponseHeadersPolicy) HandleSerialize(ctx con span.End() return next.HandleSerialize(ctx, in) } -func awsRestxml_serializeOpHttpBindingsGetResponseHeadersPolicyInput(v *GetResponseHeadersPolicyInput, encoder *httpbinding.Encoder) error { +func awsRestxml_serializeOpHttpBindingsGetStreamingDistributionInput(v *GetStreamingDistributionInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -5120,14 +5708,14 @@ func awsRestxml_serializeOpHttpBindingsGetResponseHeadersPolicyInput(v *GetRespo return nil } -type awsRestxml_serializeOpGetResponseHeadersPolicyConfig struct { +type awsRestxml_serializeOpGetStreamingDistributionConfig struct { } -func (*awsRestxml_serializeOpGetResponseHeadersPolicyConfig) ID() string { +func (*awsRestxml_serializeOpGetStreamingDistributionConfig) ID() string { return "OperationSerializer" } -func (m *awsRestxml_serializeOpGetResponseHeadersPolicyConfig) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestxml_serializeOpGetStreamingDistributionConfig) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -5139,13 +5727,13 @@ func (m *awsRestxml_serializeOpGetResponseHeadersPolicyConfig) HandleSerialize(c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetResponseHeadersPolicyConfigInput) + input, ok := in.Parameters.(*GetStreamingDistributionConfigInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/2020-05-31/response-headers-policy/{Id}/config") + opPath, opQuery := httpbinding.SplitURI("/2020-05-31/streaming-distribution/{Id}/config") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -5161,7 +5749,7 @@ func (m *awsRestxml_serializeOpGetResponseHeadersPolicyConfig) HandleSerialize(c return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestxml_serializeOpHttpBindingsGetResponseHeadersPolicyConfigInput(input, restEncoder); err != nil { + if err := awsRestxml_serializeOpHttpBindingsGetStreamingDistributionConfigInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -5174,7 +5762,7 @@ func (m *awsRestxml_serializeOpGetResponseHeadersPolicyConfig) HandleSerialize(c span.End() return next.HandleSerialize(ctx, in) } -func awsRestxml_serializeOpHttpBindingsGetResponseHeadersPolicyConfigInput(v *GetResponseHeadersPolicyConfigInput, encoder *httpbinding.Encoder) error { +func awsRestxml_serializeOpHttpBindingsGetStreamingDistributionConfigInput(v *GetStreamingDistributionConfigInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -5191,14 +5779,14 @@ func awsRestxml_serializeOpHttpBindingsGetResponseHeadersPolicyConfigInput(v *Ge return nil } -type awsRestxml_serializeOpGetStreamingDistribution struct { +type awsRestxml_serializeOpGetVpcOrigin struct { } -func (*awsRestxml_serializeOpGetStreamingDistribution) ID() string { +func (*awsRestxml_serializeOpGetVpcOrigin) ID() string { return "OperationSerializer" } -func (m *awsRestxml_serializeOpGetStreamingDistribution) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestxml_serializeOpGetVpcOrigin) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -5210,13 +5798,13 @@ func (m *awsRestxml_serializeOpGetStreamingDistribution) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetStreamingDistributionInput) + input, ok := in.Parameters.(*GetVpcOriginInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/2020-05-31/streaming-distribution/{Id}") + opPath, opQuery := httpbinding.SplitURI("/2020-05-31/vpc-origin/{Id}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -5232,7 +5820,7 @@ func (m *awsRestxml_serializeOpGetStreamingDistribution) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestxml_serializeOpHttpBindingsGetStreamingDistributionInput(input, restEncoder); err != nil { + if err := awsRestxml_serializeOpHttpBindingsGetVpcOriginInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -5245,7 +5833,7 @@ func (m *awsRestxml_serializeOpGetStreamingDistribution) HandleSerialize(ctx con span.End() return next.HandleSerialize(ctx, in) } -func awsRestxml_serializeOpHttpBindingsGetStreamingDistributionInput(v *GetStreamingDistributionInput, encoder *httpbinding.Encoder) error { +func awsRestxml_serializeOpHttpBindingsGetVpcOriginInput(v *GetVpcOriginInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -5262,14 +5850,14 @@ func awsRestxml_serializeOpHttpBindingsGetStreamingDistributionInput(v *GetStrea return nil } -type awsRestxml_serializeOpGetStreamingDistributionConfig struct { +type awsRestxml_serializeOpListAnycastIpLists struct { } -func (*awsRestxml_serializeOpGetStreamingDistributionConfig) ID() string { +func (*awsRestxml_serializeOpListAnycastIpLists) ID() string { return "OperationSerializer" } -func (m *awsRestxml_serializeOpGetStreamingDistributionConfig) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestxml_serializeOpListAnycastIpLists) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -5281,13 +5869,13 @@ func (m *awsRestxml_serializeOpGetStreamingDistributionConfig) HandleSerialize(c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetStreamingDistributionConfigInput) + input, ok := in.Parameters.(*ListAnycastIpListsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/2020-05-31/streaming-distribution/{Id}/config") + opPath, opQuery := httpbinding.SplitURI("/2020-05-31/anycast-ip-list") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -5303,7 +5891,7 @@ func (m *awsRestxml_serializeOpGetStreamingDistributionConfig) HandleSerialize(c return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestxml_serializeOpHttpBindingsGetStreamingDistributionConfigInput(input, restEncoder); err != nil { + if err := awsRestxml_serializeOpHttpBindingsListAnycastIpListsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -5316,18 +5904,17 @@ func (m *awsRestxml_serializeOpGetStreamingDistributionConfig) HandleSerialize(c span.End() return next.HandleSerialize(ctx, in) } -func awsRestxml_serializeOpHttpBindingsGetStreamingDistributionConfigInput(v *GetStreamingDistributionConfigInput, encoder *httpbinding.Encoder) error { +func awsRestxml_serializeOpHttpBindingsListAnycastIpListsInput(v *ListAnycastIpListsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Id == nil || len(*v.Id) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} + if v.Marker != nil { + encoder.SetQuery("Marker").String(*v.Marker) } - if v.Id != nil { - if err := encoder.SetURI("Id").String(*v.Id); err != nil { - return err - } + + if v.MaxItems != nil { + encoder.SetQuery("MaxItems").Integer(*v.MaxItems) } return nil @@ -5695,6 +6282,85 @@ func awsRestxml_serializeOpHttpBindingsListDistributionsInput(v *ListDistributio return nil } +type awsRestxml_serializeOpListDistributionsByAnycastIpListId struct { +} + +func (*awsRestxml_serializeOpListDistributionsByAnycastIpListId) ID() string { + return "OperationSerializer" +} + +func (m *awsRestxml_serializeOpListDistributionsByAnycastIpListId) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*ListDistributionsByAnycastIpListIdInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/2020-05-31/distributionsByAnycastIpListId/{AnycastIpListId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestxml_serializeOpHttpBindingsListDistributionsByAnycastIpListIdInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestxml_serializeOpHttpBindingsListDistributionsByAnycastIpListIdInput(v *ListDistributionsByAnycastIpListIdInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AnycastIpListId == nil || len(*v.AnycastIpListId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AnycastIpListId must not be empty")} + } + if v.AnycastIpListId != nil { + if err := encoder.SetURI("AnycastIpListId").String(*v.AnycastIpListId); err != nil { + return err + } + } + + if v.Marker != nil { + encoder.SetQuery("Marker").String(*v.Marker) + } + + if v.MaxItems != nil { + encoder.SetQuery("MaxItems").Integer(*v.MaxItems) + } + + return nil +} + type awsRestxml_serializeOpListDistributionsByCachePolicyId struct { } @@ -6136,6 +6802,85 @@ func awsRestxml_serializeOpHttpBindingsListDistributionsByResponseHeadersPolicyI return nil } +type awsRestxml_serializeOpListDistributionsByVpcOriginId struct { +} + +func (*awsRestxml_serializeOpListDistributionsByVpcOriginId) ID() string { + return "OperationSerializer" +} + +func (m *awsRestxml_serializeOpListDistributionsByVpcOriginId) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*ListDistributionsByVpcOriginIdInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/2020-05-31/distributionsByVpcOriginId/{VpcOriginId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestxml_serializeOpHttpBindingsListDistributionsByVpcOriginIdInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestxml_serializeOpHttpBindingsListDistributionsByVpcOriginIdInput(v *ListDistributionsByVpcOriginIdInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.Marker != nil { + encoder.SetQuery("Marker").String(*v.Marker) + } + + if v.MaxItems != nil { + encoder.SetQuery("MaxItems").Integer(*v.MaxItems) + } + + if v.VpcOriginId == nil || len(*v.VpcOriginId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member VpcOriginId must not be empty")} + } + if v.VpcOriginId != nil { + if err := encoder.SetURI("VpcOriginId").String(*v.VpcOriginId); err != nil { + return err + } + } + + return nil +} + type awsRestxml_serializeOpListDistributionsByWebACLId struct { } @@ -7029,13 +7774,83 @@ func (m *awsRestxml_serializeOpListStreamingDistributions) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListStreamingDistributionsInput) + input, ok := in.Parameters.(*ListStreamingDistributionsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/2020-05-31/streaming-distribution") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestxml_serializeOpHttpBindingsListStreamingDistributionsInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestxml_serializeOpHttpBindingsListStreamingDistributionsInput(v *ListStreamingDistributionsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.Marker != nil { + encoder.SetQuery("Marker").String(*v.Marker) + } + + if v.MaxItems != nil { + encoder.SetQuery("MaxItems").Integer(*v.MaxItems) + } + + return nil +} + +type awsRestxml_serializeOpListTagsForResource struct { +} + +func (*awsRestxml_serializeOpListTagsForResource) ID() string { + return "OperationSerializer" +} + +func (m *awsRestxml_serializeOpListTagsForResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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("/2020-05-31/streaming-distribution") + opPath, opQuery := httpbinding.SplitURI("/2020-05-31/tagging") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -7051,7 +7866,7 @@ func (m *awsRestxml_serializeOpListStreamingDistributions) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestxml_serializeOpHttpBindingsListStreamingDistributionsInput(input, restEncoder); err != nil { + if err := awsRestxml_serializeOpHttpBindingsListTagsForResourceInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -7064,30 +7879,26 @@ func (m *awsRestxml_serializeOpListStreamingDistributions) HandleSerialize(ctx c span.End() return next.HandleSerialize(ctx, in) } -func awsRestxml_serializeOpHttpBindingsListStreamingDistributionsInput(v *ListStreamingDistributionsInput, encoder *httpbinding.Encoder) error { +func awsRestxml_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsForResourceInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Marker != nil { - encoder.SetQuery("Marker").String(*v.Marker) - } - - if v.MaxItems != nil { - encoder.SetQuery("MaxItems").Integer(*v.MaxItems) + if v.Resource != nil { + encoder.SetQuery("Resource").String(*v.Resource) } return nil } -type awsRestxml_serializeOpListTagsForResource struct { +type awsRestxml_serializeOpListVpcOrigins struct { } -func (*awsRestxml_serializeOpListTagsForResource) ID() string { +func (*awsRestxml_serializeOpListVpcOrigins) ID() string { return "OperationSerializer" } -func (m *awsRestxml_serializeOpListTagsForResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestxml_serializeOpListVpcOrigins) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -7099,13 +7910,13 @@ func (m *awsRestxml_serializeOpListTagsForResource) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListTagsForResourceInput) + input, ok := in.Parameters.(*ListVpcOriginsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/2020-05-31/tagging") + opPath, opQuery := httpbinding.SplitURI("/2020-05-31/vpc-origin") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -7121,7 +7932,7 @@ func (m *awsRestxml_serializeOpListTagsForResource) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestxml_serializeOpHttpBindingsListTagsForResourceInput(input, restEncoder); err != nil { + if err := awsRestxml_serializeOpHttpBindingsListVpcOriginsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -7134,13 +7945,17 @@ func (m *awsRestxml_serializeOpListTagsForResource) HandleSerialize(ctx context. span.End() return next.HandleSerialize(ctx, in) } -func awsRestxml_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsForResourceInput, encoder *httpbinding.Encoder) error { +func awsRestxml_serializeOpHttpBindingsListVpcOriginsInput(v *ListVpcOriginsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Resource != nil { - encoder.SetQuery("Resource").String(*v.Resource) + if v.Marker != nil { + encoder.SetQuery("Marker").String(*v.Marker) + } + + if v.MaxItems != nil { + encoder.SetQuery("MaxItems").Integer(*v.MaxItems) } return nil @@ -9176,6 +9991,106 @@ func awsRestxml_serializeOpHttpBindingsUpdateStreamingDistributionInput(v *Updat return nil } +type awsRestxml_serializeOpUpdateVpcOrigin struct { +} + +func (*awsRestxml_serializeOpUpdateVpcOrigin) ID() string { + return "OperationSerializer" +} + +func (m *awsRestxml_serializeOpUpdateVpcOrigin) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*UpdateVpcOriginInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/2020-05-31/vpc-origin/{Id}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestxml_serializeOpHttpBindingsUpdateVpcOriginInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if input.VpcOriginEndpointConfig != nil { + if !restEncoder.HasHeader("Content-Type") { + ctx = smithyhttp.SetIsContentTypeDefaultValue(ctx, true) + restEncoder.SetHeader("Content-Type").String("application/xml") + } + + xmlEncoder := smithyxml.NewEncoder(bytes.NewBuffer(nil)) + payloadRootAttr := []smithyxml.Attr{} + payloadRoot := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "VpcOriginEndpointConfig", + }, + Attr: payloadRootAttr, + } + payloadRoot.Attr = append(payloadRoot.Attr, smithyxml.NewNamespaceAttribute("", "http://cloudfront.amazonaws.com/doc/2020-05-31/")) + if err := awsRestxml_serializeDocumentVpcOriginEndpointConfig(input.VpcOriginEndpointConfig, xmlEncoder.RootElement(payloadRoot)); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + payload := bytes.NewReader(xmlEncoder.Bytes()) + if request, err = request.SetStream(payload); 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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestxml_serializeOpHttpBindingsUpdateVpcOriginInput(v *UpdateVpcOriginInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.Id == nil || len(*v.Id) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} + } + if v.Id != nil { + if err := encoder.SetURI("Id").String(*v.Id); err != nil { + return err + } + } + + if v.IfMatch != nil { + locationName := "If-Match" + encoder.SetHeader(locationName).String(*v.IfMatch) + } + + return nil +} + func awsRestxml_serializeDocumentAccessControlAllowHeadersList(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { @@ -9452,6 +10367,19 @@ func awsRestxml_serializeDocumentCacheBehavior(v *types.CacheBehavior, value smi return err } } + if v.GrpcConfig != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "GrpcConfig", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + if err := awsRestxml_serializeDocumentGrpcConfig(v.GrpcConfig, el); err != nil { + return err + } + } if v.LambdaFunctionAssociations != nil { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ @@ -10454,6 +11382,19 @@ func awsRestxml_serializeDocumentDefaultCacheBehavior(v *types.DefaultCacheBehav return err } } + if v.GrpcConfig != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "GrpcConfig", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + if err := awsRestxml_serializeDocumentGrpcConfig(v.GrpcConfig, el); err != nil { + return err + } + } if v.LambdaFunctionAssociations != nil { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ @@ -10599,6 +11540,17 @@ func awsRestxml_serializeDocumentDistributionConfig(v *types.DistributionConfig, return err } } + if v.AnycastIpListId != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "AnycastIpListId", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + el.String(*v.AnycastIpListId) + } if v.CacheBehaviors != nil { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ @@ -11368,6 +12320,22 @@ func awsRestxml_serializeDocumentGeoRestriction(v *types.GeoRestriction, value s return nil } +func awsRestxml_serializeDocumentGrpcConfig(v *types.GrpcConfig, value smithyxml.Value) error { + defer value.Close() + if v.Enabled != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "Enabled", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + el.Boolean(*v.Enabled) + } + return nil +} + func awsRestxml_serializeDocumentHeaderList(v []string, value smithyxml.Value) error { var array *smithyxml.Array if !value.IsFlattened() { @@ -11923,6 +12891,19 @@ func awsRestxml_serializeDocumentOrigin(v *types.Origin, value smithyxml.Value) return err } } + if v.VpcOriginConfig != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "VpcOriginConfig", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + if err := awsRestxml_serializeDocumentVpcOriginConfig(v.VpcOriginConfig, el); err != nil { + return err + } + } return nil } @@ -14354,3 +15335,92 @@ func awsRestxml_serializeDocumentViewerCertificate(v *types.ViewerCertificate, v } return nil } + +func awsRestxml_serializeDocumentVpcOriginConfig(v *types.VpcOriginConfig, value smithyxml.Value) error { + defer value.Close() + if v.VpcOriginId != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "VpcOriginId", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + el.String(*v.VpcOriginId) + } + return nil +} + +func awsRestxml_serializeDocumentVpcOriginEndpointConfig(v *types.VpcOriginEndpointConfig, value smithyxml.Value) error { + defer value.Close() + if v.Arn != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "Arn", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + el.String(*v.Arn) + } + if v.HTTPPort != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "HTTPPort", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + el.Integer(*v.HTTPPort) + } + if v.HTTPSPort != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "HTTPSPort", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + el.Integer(*v.HTTPSPort) + } + if v.Name != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "Name", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + el.String(*v.Name) + } + if len(v.OriginProtocolPolicy) > 0 { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "OriginProtocolPolicy", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + el.String(string(v.OriginProtocolPolicy)) + } + if v.OriginSslProtocols != nil { + rootAttr := []smithyxml.Attr{} + root := smithyxml.StartElement{ + Name: smithyxml.Name{ + Local: "OriginSslProtocols", + }, + Attr: rootAttr, + } + el := value.MemberElement(root) + if err := awsRestxml_serializeDocumentOriginSslProtocols(v.OriginSslProtocols, el); err != nil { + return err + } + } + return nil +} diff --git a/service/cloudfront/snapshot/api_op_CreateAnycastIpList.go.snap b/service/cloudfront/snapshot/api_op_CreateAnycastIpList.go.snap new file mode 100644 index 00000000000..5580cfcfb0e --- /dev/null +++ b/service/cloudfront/snapshot/api_op_CreateAnycastIpList.go.snap @@ -0,0 +1,41 @@ +CreateAnycastIpList + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/cloudfront/snapshot/api_op_CreateVpcOrigin.go.snap b/service/cloudfront/snapshot/api_op_CreateVpcOrigin.go.snap new file mode 100644 index 00000000000..6970fec2a9b --- /dev/null +++ b/service/cloudfront/snapshot/api_op_CreateVpcOrigin.go.snap @@ -0,0 +1,41 @@ +CreateVpcOrigin + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/cloudfront/snapshot/api_op_DeleteAnycastIpList.go.snap b/service/cloudfront/snapshot/api_op_DeleteAnycastIpList.go.snap new file mode 100644 index 00000000000..d6b30eda4a4 --- /dev/null +++ b/service/cloudfront/snapshot/api_op_DeleteAnycastIpList.go.snap @@ -0,0 +1,41 @@ +DeleteAnycastIpList + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/cloudfront/snapshot/api_op_DeleteVpcOrigin.go.snap b/service/cloudfront/snapshot/api_op_DeleteVpcOrigin.go.snap new file mode 100644 index 00000000000..7919a7024ae --- /dev/null +++ b/service/cloudfront/snapshot/api_op_DeleteVpcOrigin.go.snap @@ -0,0 +1,41 @@ +DeleteVpcOrigin + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/cloudfront/snapshot/api_op_GetAnycastIpList.go.snap b/service/cloudfront/snapshot/api_op_GetAnycastIpList.go.snap new file mode 100644 index 00000000000..0a57e1c128c --- /dev/null +++ b/service/cloudfront/snapshot/api_op_GetAnycastIpList.go.snap @@ -0,0 +1,41 @@ +GetAnycastIpList + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/cloudfront/snapshot/api_op_GetVpcOrigin.go.snap b/service/cloudfront/snapshot/api_op_GetVpcOrigin.go.snap new file mode 100644 index 00000000000..02ed557c78f --- /dev/null +++ b/service/cloudfront/snapshot/api_op_GetVpcOrigin.go.snap @@ -0,0 +1,41 @@ +GetVpcOrigin + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/cloudfront/snapshot/api_op_ListAnycastIpLists.go.snap b/service/cloudfront/snapshot/api_op_ListAnycastIpLists.go.snap new file mode 100644 index 00000000000..8db7302564c --- /dev/null +++ b/service/cloudfront/snapshot/api_op_ListAnycastIpLists.go.snap @@ -0,0 +1,40 @@ +ListAnycastIpLists + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/cloudfront/snapshot/api_op_ListDistributionsByAnycastIpListId.go.snap b/service/cloudfront/snapshot/api_op_ListDistributionsByAnycastIpListId.go.snap new file mode 100644 index 00000000000..e83a6329a26 --- /dev/null +++ b/service/cloudfront/snapshot/api_op_ListDistributionsByAnycastIpListId.go.snap @@ -0,0 +1,41 @@ +ListDistributionsByAnycastIpListId + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/cloudfront/snapshot/api_op_ListDistributionsByVpcOriginId.go.snap b/service/cloudfront/snapshot/api_op_ListDistributionsByVpcOriginId.go.snap new file mode 100644 index 00000000000..f37ab1f8662 --- /dev/null +++ b/service/cloudfront/snapshot/api_op_ListDistributionsByVpcOriginId.go.snap @@ -0,0 +1,41 @@ +ListDistributionsByVpcOriginId + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/cloudfront/snapshot/api_op_ListVpcOrigins.go.snap b/service/cloudfront/snapshot/api_op_ListVpcOrigins.go.snap new file mode 100644 index 00000000000..8eb467f0684 --- /dev/null +++ b/service/cloudfront/snapshot/api_op_ListVpcOrigins.go.snap @@ -0,0 +1,40 @@ +ListVpcOrigins + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/cloudfront/snapshot/api_op_UpdateVpcOrigin.go.snap b/service/cloudfront/snapshot/api_op_UpdateVpcOrigin.go.snap new file mode 100644 index 00000000000..e8da3ac1abd --- /dev/null +++ b/service/cloudfront/snapshot/api_op_UpdateVpcOrigin.go.snap @@ -0,0 +1,41 @@ +UpdateVpcOrigin + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/cloudfront/snapshot_test.go b/service/cloudfront/snapshot_test.go index 8a64596f5a7..921077924d0 100644 --- a/service/cloudfront/snapshot_test.go +++ b/service/cloudfront/snapshot_test.go @@ -86,6 +86,18 @@ func TestCheckSnapshot_CopyDistribution(t *testing.T) { } } +func TestCheckSnapshot_CreateAnycastIpList(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateAnycastIpList(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "CreateAnycastIpList") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_CreateCachePolicy(t *testing.T) { svc := New(Options{}) _, err := svc.CreateCachePolicy(context.Background(), nil, func(o *Options) { @@ -314,6 +326,30 @@ func TestCheckSnapshot_CreateStreamingDistributionWithTags(t *testing.T) { } } +func TestCheckSnapshot_CreateVpcOrigin(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateVpcOrigin(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "CreateVpcOrigin") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestCheckSnapshot_DeleteAnycastIpList(t *testing.T) { + svc := New(Options{}) + _, err := svc.DeleteAnycastIpList(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "DeleteAnycastIpList") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_DeleteCachePolicy(t *testing.T) { svc := New(Options{}) _, err := svc.DeleteCachePolicy(context.Background(), nil, func(o *Options) { @@ -506,6 +542,18 @@ func TestCheckSnapshot_DeleteStreamingDistribution(t *testing.T) { } } +func TestCheckSnapshot_DeleteVpcOrigin(t *testing.T) { + svc := New(Options{}) + _, err := svc.DeleteVpcOrigin(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "DeleteVpcOrigin") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_DescribeFunction(t *testing.T) { svc := New(Options{}) _, err := svc.DescribeFunction(context.Background(), nil, func(o *Options) { @@ -530,6 +578,18 @@ func TestCheckSnapshot_DescribeKeyValueStore(t *testing.T) { } } +func TestCheckSnapshot_GetAnycastIpList(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetAnycastIpList(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "GetAnycastIpList") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_GetCachePolicy(t *testing.T) { svc := New(Options{}) _, err := svc.GetCachePolicy(context.Background(), nil, func(o *Options) { @@ -866,6 +926,30 @@ func TestCheckSnapshot_GetStreamingDistributionConfig(t *testing.T) { } } +func TestCheckSnapshot_GetVpcOrigin(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetVpcOrigin(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "GetVpcOrigin") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestCheckSnapshot_ListAnycastIpLists(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListAnycastIpLists(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "ListAnycastIpLists") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_ListCachePolicies(t *testing.T) { svc := New(Options{}) _, err := svc.ListCachePolicies(context.Background(), nil, func(o *Options) { @@ -926,6 +1010,18 @@ func TestCheckSnapshot_ListDistributions(t *testing.T) { } } +func TestCheckSnapshot_ListDistributionsByAnycastIpListId(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListDistributionsByAnycastIpListId(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "ListDistributionsByAnycastIpListId") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_ListDistributionsByCachePolicyId(t *testing.T) { svc := New(Options{}) _, err := svc.ListDistributionsByCachePolicyId(context.Background(), nil, func(o *Options) { @@ -986,6 +1082,18 @@ func TestCheckSnapshot_ListDistributionsByResponseHeadersPolicyId(t *testing.T) } } +func TestCheckSnapshot_ListDistributionsByVpcOriginId(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListDistributionsByVpcOriginId(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "ListDistributionsByVpcOriginId") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_ListDistributionsByWebACLId(t *testing.T) { svc := New(Options{}) _, err := svc.ListDistributionsByWebACLId(context.Background(), nil, func(o *Options) { @@ -1154,6 +1262,18 @@ func TestCheckSnapshot_ListTagsForResource(t *testing.T) { } } +func TestCheckSnapshot_ListVpcOrigins(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListVpcOrigins(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "ListVpcOrigins") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_PublishFunction(t *testing.T) { svc := New(Options{}) _, err := svc.PublishFunction(context.Background(), nil, func(o *Options) { @@ -1393,6 +1513,18 @@ func TestCheckSnapshot_UpdateStreamingDistribution(t *testing.T) { t.Fatal(err) } } + +func TestCheckSnapshot_UpdateVpcOrigin(t *testing.T) { + svc := New(Options{}) + _, err := svc.UpdateVpcOrigin(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "UpdateVpcOrigin") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} func TestUpdateSnapshot_AssociateAlias(t *testing.T) { svc := New(Options{}) _, err := svc.AssociateAlias(context.Background(), nil, func(o *Options) { @@ -1417,6 +1549,18 @@ func TestUpdateSnapshot_CopyDistribution(t *testing.T) { } } +func TestUpdateSnapshot_CreateAnycastIpList(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateAnycastIpList(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "CreateAnycastIpList") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_CreateCachePolicy(t *testing.T) { svc := New(Options{}) _, err := svc.CreateCachePolicy(context.Background(), nil, func(o *Options) { @@ -1645,6 +1789,30 @@ func TestUpdateSnapshot_CreateStreamingDistributionWithTags(t *testing.T) { } } +func TestUpdateSnapshot_CreateVpcOrigin(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateVpcOrigin(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "CreateVpcOrigin") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestUpdateSnapshot_DeleteAnycastIpList(t *testing.T) { + svc := New(Options{}) + _, err := svc.DeleteAnycastIpList(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "DeleteAnycastIpList") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_DeleteCachePolicy(t *testing.T) { svc := New(Options{}) _, err := svc.DeleteCachePolicy(context.Background(), nil, func(o *Options) { @@ -1837,6 +2005,18 @@ func TestUpdateSnapshot_DeleteStreamingDistribution(t *testing.T) { } } +func TestUpdateSnapshot_DeleteVpcOrigin(t *testing.T) { + svc := New(Options{}) + _, err := svc.DeleteVpcOrigin(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "DeleteVpcOrigin") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_DescribeFunction(t *testing.T) { svc := New(Options{}) _, err := svc.DescribeFunction(context.Background(), nil, func(o *Options) { @@ -1861,6 +2041,18 @@ func TestUpdateSnapshot_DescribeKeyValueStore(t *testing.T) { } } +func TestUpdateSnapshot_GetAnycastIpList(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetAnycastIpList(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "GetAnycastIpList") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_GetCachePolicy(t *testing.T) { svc := New(Options{}) _, err := svc.GetCachePolicy(context.Background(), nil, func(o *Options) { @@ -2197,6 +2389,30 @@ func TestUpdateSnapshot_GetStreamingDistributionConfig(t *testing.T) { } } +func TestUpdateSnapshot_GetVpcOrigin(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetVpcOrigin(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "GetVpcOrigin") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestUpdateSnapshot_ListAnycastIpLists(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListAnycastIpLists(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "ListAnycastIpLists") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_ListCachePolicies(t *testing.T) { svc := New(Options{}) _, err := svc.ListCachePolicies(context.Background(), nil, func(o *Options) { @@ -2257,6 +2473,18 @@ func TestUpdateSnapshot_ListDistributions(t *testing.T) { } } +func TestUpdateSnapshot_ListDistributionsByAnycastIpListId(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListDistributionsByAnycastIpListId(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "ListDistributionsByAnycastIpListId") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_ListDistributionsByCachePolicyId(t *testing.T) { svc := New(Options{}) _, err := svc.ListDistributionsByCachePolicyId(context.Background(), nil, func(o *Options) { @@ -2317,6 +2545,18 @@ func TestUpdateSnapshot_ListDistributionsByResponseHeadersPolicyId(t *testing.T) } } +func TestUpdateSnapshot_ListDistributionsByVpcOriginId(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListDistributionsByVpcOriginId(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "ListDistributionsByVpcOriginId") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_ListDistributionsByWebACLId(t *testing.T) { svc := New(Options{}) _, err := svc.ListDistributionsByWebACLId(context.Background(), nil, func(o *Options) { @@ -2485,6 +2725,18 @@ func TestUpdateSnapshot_ListTagsForResource(t *testing.T) { } } +func TestUpdateSnapshot_ListVpcOrigins(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListVpcOrigins(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "ListVpcOrigins") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_PublishFunction(t *testing.T) { svc := New(Options{}) _, err := svc.PublishFunction(context.Background(), nil, func(o *Options) { @@ -2724,3 +2976,15 @@ func TestUpdateSnapshot_UpdateStreamingDistribution(t *testing.T) { t.Fatal(err) } } + +func TestUpdateSnapshot_UpdateVpcOrigin(t *testing.T) { + svc := New(Options{}) + _, err := svc.UpdateVpcOrigin(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "UpdateVpcOrigin") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} diff --git a/service/cloudfront/types/errors.go b/service/cloudfront/types/errors.go index c0043671003..d048f8eefad 100644 --- a/service/cloudfront/types/errors.go +++ b/service/cloudfront/types/errors.go @@ -141,7 +141,7 @@ func (e *CannotChangeImmutablePublicKeyFields) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The key value store entity cannot be deleted while it is in use. +// The entity cannot be deleted while it is in use. type CannotDeleteEntityWhileInUse struct { Message *string @@ -167,6 +167,32 @@ func (e *CannotDeleteEntityWhileInUse) ErrorCode() string { } func (e *CannotDeleteEntityWhileInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// The entity cannot be updated while it is in use. +type CannotUpdateEntityWhileInUse struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *CannotUpdateEntityWhileInUse) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *CannotUpdateEntityWhileInUse) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *CannotUpdateEntityWhileInUse) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "CannotUpdateEntityWhileInUse" + } + return *e.ErrorCodeOverride +} +func (e *CannotUpdateEntityWhileInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + // If the CallerReference is a value you already sent in a previous request to // create an identity but the content of the CloudFrontOriginAccessIdentityConfig // is different from the original request, CloudFront returns a @@ -361,8 +387,7 @@ func (e *DistributionNotDisabled) ErrorCode() string { } func (e *DistributionNotDisabled) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The key value store entity already exists. You must provide a unique key value -// store entity. +// The entity already exists. You must provide a unique entity. type EntityAlreadyExists struct { Message *string @@ -388,7 +413,7 @@ func (e *EntityAlreadyExists) ErrorCode() string { } func (e *EntityAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The key value store entity limit has been exceeded. +// The entity limit has been exceeded. type EntityLimitExceeded struct { Message *string @@ -414,7 +439,7 @@ func (e *EntityLimitExceeded) ErrorCode() string { } func (e *EntityLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The key value store entity was not found. +// The entity was not found. type EntityNotFound struct { Message *string @@ -440,7 +465,7 @@ func (e *EntityNotFound) ErrorCode() string { } func (e *EntityNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The key value store entity size limit was exceeded. +// The entity size limit was exceeded. type EntitySizeLimitExceeded struct { Message *string @@ -685,7 +710,7 @@ func (e *FunctionSizeLimitExceeded) ErrorCode() string { } func (e *FunctionSizeLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// You cannot delete a managed policy. +// Deletion is not allowed for this entity. type IllegalDelete struct { Message *string diff --git a/service/cloudfront/types/types.go b/service/cloudfront/types/types.go index 7b8baae95a3..34c0845a41b 100644 --- a/service/cloudfront/types/types.go +++ b/service/cloudfront/types/types.go @@ -158,6 +158,125 @@ type AllowedMethods struct { noSmithyDocumentSerde } +// An Anycast static IP list. +type AnycastIpList struct { + + // The static IP addresses that are allocated to the Anycast static IP list. + // + // This member is required. + AnycastIps []string + + // The Amazon Resource Name (ARN) of the Anycast static IP list. + // + // This member is required. + Arn *string + + // The ID of the Anycast static IP list. + // + // This member is required. + Id *string + + // The number of IP addresses in the Anycast static IP list. + // + // This member is required. + IpCount *int32 + + // The last time the Anycast static IP list was modified. + // + // This member is required. + LastModifiedTime *time.Time + + // The name of the Anycast static IP list. + // + // This member is required. + Name *string + + // The status of the Anycast static IP list. Valid values: Deployed , Deploying , + // or Failed . + // + // This member is required. + Status *string + + noSmithyDocumentSerde +} + +// The Anycast static IP list collection. +type AnycastIpListCollection struct { + + // If there are more items in the list collection than are in this response, this + // value is true . + // + // This member is required. + IsTruncated *bool + + // Use this field when paginating results to indicate where to begin in your list. + // The response includes items in the list that occur after the marker. To get the + // next page of the list, set this field's value to the value of NextMarker from + // the current page's response. + // + // This member is required. + Marker *string + + // The maximum number of Anycast static IP list collections that you want returned + // in the response. + // + // This member is required. + MaxItems *int32 + + // The quantity of Anycast static IP lists in the collection. + // + // This member is required. + Quantity *int32 + + // Items in the Anycast static IP list collection. Each item is of the AnycastIpListSummary structure + // type. + Items []AnycastIpListSummary + + // Indicates the next page of the Anycast static IP list collection. To get the + // next page of the list, use this value in the Marker field of your request. + NextMarker *string + + noSmithyDocumentSerde +} + +// An abbreviated version of the AnycastIpList structure. Omits the allocated static IP +// addresses (AnycastIpList$AnycastIps ). +type AnycastIpListSummary struct { + + // The Amazon Resource Name (ARN) of the Anycast static IP list. + // + // This member is required. + Arn *string + + // The ID of the Anycast static IP list. + // + // This member is required. + Id *string + + // The number of IP addresses in the Anycast static IP list. + // + // This member is required. + IpCount *int32 + + // The last time the Anycast static IP list was modified. + // + // This member is required. + LastModifiedTime *time.Time + + // The name of the Anycast static IP list. + // + // This member is required. + Name *string + + // The deployment status of the Anycast static IP list. Valid values: Deployed, + // Deploying, or Failed. + // + // This member is required. + Status *string + + noSmithyDocumentSerde +} + // A complex type that describes how CloudFront processes requests. // // You must create at least as many cache behaviors (including the default cache @@ -335,6 +454,9 @@ type CacheBehavior struct { // a cache behavior. FunctionAssociations *FunctionAssociations + // The gRPC configuration for your cache behavior. + GrpcConfig *GrpcConfig + // A complex type that contains zero or more Lambda@Edge function associations for // a cache behavior. LambdaFunctionAssociations *LambdaFunctionAssociations @@ -1460,6 +1582,9 @@ type DefaultCacheBehavior struct { // cache behavior. FunctionAssociations *FunctionAssociations + // The gRPC configuration for your cache behavior. + GrpcConfig *GrpcConfig + // A complex type that contains zero or more Lambda@Edge function associations for // a cache behavior. LambdaFunctionAssociations *LambdaFunctionAssociations @@ -1668,6 +1793,9 @@ type DistributionConfig struct { // if any, for this distribution. Aliases *Aliases + // ID of the Anycast static IP list that is associated with the distribution. + AnycastIpListId *string + // A complex type that contains zero or more CacheBehavior elements. CacheBehaviors *CacheBehaviors @@ -2044,6 +2172,9 @@ type DistributionSummary struct { // [Signup, Accounts, and Credentials]: https://docs.amazonaws.cn/en_us/aws/latest/userguide/accounts-and-credentials.html AliasICPRecordals []AliasICPRecordal + // ID of the Anycast static IP list that is associated with the distribution. + AnycastIpListId *string + // A complex type that contains information about origin groups for this // distribution. OriginGroups *OriginGroups @@ -2634,6 +2765,28 @@ type GeoRestriction struct { noSmithyDocumentSerde } +// Amazon CloudFront supports gRPC, an open-source remote procedure call (RPC) +// framework built on HTTP/2. gRPC offers bi-directional streaming and binary +// protocol that buffers payloads, making it suitable for applications that require +// low latency communications. +// +// To enable your distribution to handle gRPC requests, you must include HTTP/2 as +// one of the supported HTTP versions and allow HTTP methods, including POST . +// +// For more information, see [Using gRPC with CloudFront distributions] in the Amazon CloudFront Developer Guide. +// +// [Using gRPC with CloudFront distributions]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-using-grpc.html +type GrpcConfig struct { + + // Enables your CloudFront distribution to receive gRPC requests and to proxy them + // directly to your origins. + // + // This member is required. + Enabled *bool + + noSmithyDocumentSerde +} + // Contains a list of HTTP header names. type Headers struct { @@ -3075,24 +3228,30 @@ type LambdaFunctionAssociations struct { noSmithyDocumentSerde } -// A complex type that controls whether access logs are written for the +// A complex type that specifies whether access logs are written for the // distribution. +// +// If you already enabled standard logging (legacy) and you want to enable +// standard logging (v2) to send your access logs to Amazon S3, we recommend that +// you specify a different Amazon S3 bucket or use a separate path in the same +// bucket (for example, use a log prefix or partitioning). This helps you keep +// track of which log files are associated with which logging subscription and +// prevents log files from overwriting each other. For more information, see [Standard logging (access logs)]in +// the Amazon CloudFront Developer Guide. +// +// [Standard logging (access logs)]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html type LoggingConfig struct { // The Amazon S3 bucket to store the access logs in, for example, - // myawslogbucket.s3.amazonaws.com . - // - // This member is required. + // amzn-s3-demo-bucket.s3.amazonaws.com . Bucket *string // Specifies whether you want CloudFront to save access logs to an Amazon S3 // bucket. If you don't want to enable logging when you create a distribution or if // you want to disable logging for an existing distribution, specify false for // Enabled , and specify empty Bucket and Prefix elements. If you specify false - // for Enabled but you specify values for Bucket , prefix , and IncludeCookies , - // the values are automatically deleted. - // - // This member is required. + // for Enabled but you specify values for Bucket and prefix , the values are + // automatically deleted. Enabled *bool // Specifies whether you want CloudFront to include cookies in access logs, @@ -3101,16 +3260,12 @@ type LoggingConfig struct { // for this distribution. If you don't want to include cookies when you create a // distribution or if you want to disable include cookies for an existing // distribution, specify false for IncludeCookies . - // - // This member is required. IncludeCookies *bool // An optional string that you want CloudFront to prefix to the access log // filenames for this distribution, for example, myprefix/ . If you want to enable // logging, but you don't want to specify a prefix, you still must include an empty // Prefix element in the Logging element. - // - // This member is required. Prefix *string noSmithyDocumentSerde @@ -3238,6 +3393,9 @@ type Origin struct { // use the CustomOriginConfig type instead. S3OriginConfig *S3OriginConfig + // The VPC origin configuration. + VpcOriginConfig *VpcOriginConfig + noSmithyDocumentSerde } @@ -5289,7 +5447,7 @@ type StreamingDistributionSummary struct { type StreamingLoggingConfig struct { // The Amazon S3 bucket to store the access logs in, for example, - // myawslogbucket.s3.amazonaws.com . + // amzn-s3-demo-bucket.s3.amazonaws.com . // // This member is required. Bucket *string @@ -5597,4 +5755,161 @@ type ViewerCertificate struct { noSmithyDocumentSerde } +// An Amazon CloudFront VPC origin. +type VpcOrigin struct { + + // The VPC origin ARN. + // + // This member is required. + Arn *string + + // The VPC origin created time. + // + // This member is required. + CreatedTime *time.Time + + // The VPC origin ID. + // + // This member is required. + Id *string + + // The VPC origin last modified time. + // + // This member is required. + LastModifiedTime *time.Time + + // The VPC origin status. + // + // This member is required. + Status *string + + // The VPC origin endpoint configuration. + // + // This member is required. + VpcOriginEndpointConfig *VpcOriginEndpointConfig + + noSmithyDocumentSerde +} + +// An Amazon CloudFront VPC origin configuration. +type VpcOriginConfig struct { + + // The VPC origin ID. + // + // This member is required. + VpcOriginId *string + + noSmithyDocumentSerde +} + +// An Amazon CloudFront VPC origin endpoint configuration. +type VpcOriginEndpointConfig struct { + + // The ARN of the CloudFront VPC origin endpoint configuration. + // + // This member is required. + Arn *string + + // The HTTP port for the CloudFront VPC origin endpoint configuration. + // + // This member is required. + HTTPPort *int32 + + // The HTTPS port of the CloudFront VPC origin endpoint configuration. + // + // This member is required. + HTTPSPort *int32 + + // The name of the CloudFront VPC origin endpoint configuration. + // + // This member is required. + Name *string + + // The origin protocol policy for the CloudFront VPC origin endpoint configuration. + // + // This member is required. + OriginProtocolPolicy OriginProtocolPolicy + + // A complex type that contains information about the SSL/TLS protocols that + // CloudFront can use when establishing an HTTPS connection with your origin. + OriginSslProtocols *OriginSslProtocols + + noSmithyDocumentSerde +} + +// A list of CloudFront VPC origins. +type VpcOriginList struct { + + // A flag that indicates whether more VPC origins remain to be listed. If your + // results were truncated, you can make a follow-up pagination request using the + // Marker request parameter to retrieve more VPC origins in the list. + // + // This member is required. + IsTruncated *bool + + // The marker associated with the VPC origins list. + // + // This member is required. + Marker *string + + // The maximum number of items included in the list. + // + // This member is required. + MaxItems *int32 + + // The number of VPC origins in the list. + // + // This member is required. + Quantity *int32 + + // The items of the VPC origins list. + Items []VpcOriginSummary + + // The next marker associated with the VPC origins list. + NextMarker *string + + noSmithyDocumentSerde +} + +// A summary of the CloudFront VPC origin. +type VpcOriginSummary struct { + + // The VPC origin summary ARN. + // + // This member is required. + Arn *string + + // The VPC origin summary created time. + // + // This member is required. + CreatedTime *time.Time + + // The VPC origin summary ID. + // + // This member is required. + Id *string + + // The VPC origin summary last modified time. + // + // This member is required. + LastModifiedTime *time.Time + + // The VPC origin summary name. + // + // This member is required. + Name *string + + // The VPC origin summary origin endpoint ARN. + // + // This member is required. + OriginEndpointArn *string + + // The VPC origin summary status. + // + // This member is required. + Status *string + + noSmithyDocumentSerde +} + type noSmithyDocumentSerde = smithydocument.NoSerde diff --git a/service/cloudfront/validators.go b/service/cloudfront/validators.go index 6f73473dd2b..743260ca71b 100644 --- a/service/cloudfront/validators.go +++ b/service/cloudfront/validators.go @@ -50,6 +50,26 @@ func (m *validateOpCopyDistribution) HandleInitialize(ctx context.Context, in mi return next.HandleInitialize(ctx, in) } +type validateOpCreateAnycastIpList struct { +} + +func (*validateOpCreateAnycastIpList) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateAnycastIpList) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateAnycastIpListInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateAnycastIpListInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateCachePolicy struct { } @@ -430,6 +450,46 @@ func (m *validateOpCreateStreamingDistributionWithTags) HandleInitialize(ctx con return next.HandleInitialize(ctx, in) } +type validateOpCreateVpcOrigin struct { +} + +func (*validateOpCreateVpcOrigin) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateVpcOrigin) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateVpcOriginInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateVpcOriginInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteAnycastIpList struct { +} + +func (*validateOpDeleteAnycastIpList) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteAnycastIpList) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteAnycastIpListInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteAnycastIpListInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteCachePolicy struct { } @@ -730,6 +790,26 @@ func (m *validateOpDeleteStreamingDistribution) HandleInitialize(ctx context.Con return next.HandleInitialize(ctx, in) } +type validateOpDeleteVpcOrigin struct { +} + +func (*validateOpDeleteVpcOrigin) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteVpcOrigin) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteVpcOriginInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteVpcOriginInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDescribeFunction struct { } @@ -770,6 +850,26 @@ func (m *validateOpDescribeKeyValueStore) HandleInitialize(ctx context.Context, return next.HandleInitialize(ctx, in) } +type validateOpGetAnycastIpList struct { +} + +func (*validateOpGetAnycastIpList) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetAnycastIpList) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetAnycastIpListInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetAnycastIpListInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetCachePolicyConfig struct { } @@ -1310,6 +1410,26 @@ func (m *validateOpGetStreamingDistribution) HandleInitialize(ctx context.Contex return next.HandleInitialize(ctx, in) } +type validateOpGetVpcOrigin struct { +} + +func (*validateOpGetVpcOrigin) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetVpcOrigin) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetVpcOriginInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetVpcOriginInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListConflictingAliases struct { } @@ -1330,6 +1450,26 @@ func (m *validateOpListConflictingAliases) HandleInitialize(ctx context.Context, return next.HandleInitialize(ctx, in) } +type validateOpListDistributionsByAnycastIpListId struct { +} + +func (*validateOpListDistributionsByAnycastIpListId) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListDistributionsByAnycastIpListId) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListDistributionsByAnycastIpListIdInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListDistributionsByAnycastIpListIdInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListDistributionsByCachePolicyId struct { } @@ -1410,6 +1550,26 @@ func (m *validateOpListDistributionsByResponseHeadersPolicyId) HandleInitialize( return next.HandleInitialize(ctx, in) } +type validateOpListDistributionsByVpcOriginId struct { +} + +func (*validateOpListDistributionsByVpcOriginId) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListDistributionsByVpcOriginId) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListDistributionsByVpcOriginIdInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListDistributionsByVpcOriginIdInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListDistributionsByWebACLId struct { } @@ -1870,6 +2030,26 @@ func (m *validateOpUpdateStreamingDistribution) HandleInitialize(ctx context.Con return next.HandleInitialize(ctx, in) } +type validateOpUpdateVpcOrigin struct { +} + +func (*validateOpUpdateVpcOrigin) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateVpcOrigin) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateVpcOriginInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateVpcOriginInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + func addOpAssociateAliasValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpAssociateAlias{}, middleware.After) } @@ -1878,6 +2058,10 @@ func addOpCopyDistributionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCopyDistribution{}, middleware.After) } +func addOpCreateAnycastIpListValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateAnycastIpList{}, middleware.After) +} + func addOpCreateCachePolicyValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateCachePolicy{}, middleware.After) } @@ -1954,6 +2138,14 @@ func addOpCreateStreamingDistributionWithTagsValidationMiddleware(stack *middlew return stack.Initialize.Add(&validateOpCreateStreamingDistributionWithTags{}, middleware.After) } +func addOpCreateVpcOriginValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateVpcOrigin{}, middleware.After) +} + +func addOpDeleteAnycastIpListValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteAnycastIpList{}, middleware.After) +} + func addOpDeleteCachePolicyValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteCachePolicy{}, middleware.After) } @@ -2014,6 +2206,10 @@ func addOpDeleteStreamingDistributionValidationMiddleware(stack *middleware.Stac return stack.Initialize.Add(&validateOpDeleteStreamingDistribution{}, middleware.After) } +func addOpDeleteVpcOriginValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteVpcOrigin{}, middleware.After) +} + func addOpDescribeFunctionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeFunction{}, middleware.After) } @@ -2022,6 +2218,10 @@ func addOpDescribeKeyValueStoreValidationMiddleware(stack *middleware.Stack) err return stack.Initialize.Add(&validateOpDescribeKeyValueStore{}, middleware.After) } +func addOpGetAnycastIpListValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetAnycastIpList{}, middleware.After) +} + func addOpGetCachePolicyConfigValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetCachePolicyConfig{}, middleware.After) } @@ -2130,10 +2330,18 @@ func addOpGetStreamingDistributionValidationMiddleware(stack *middleware.Stack) return stack.Initialize.Add(&validateOpGetStreamingDistribution{}, middleware.After) } +func addOpGetVpcOriginValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetVpcOrigin{}, middleware.After) +} + func addOpListConflictingAliasesValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListConflictingAliases{}, middleware.After) } +func addOpListDistributionsByAnycastIpListIdValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListDistributionsByAnycastIpListId{}, middleware.After) +} + func addOpListDistributionsByCachePolicyIdValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListDistributionsByCachePolicyId{}, middleware.After) } @@ -2150,6 +2358,10 @@ func addOpListDistributionsByResponseHeadersPolicyIdValidationMiddleware(stack * return stack.Initialize.Add(&validateOpListDistributionsByResponseHeadersPolicyId{}, middleware.After) } +func addOpListDistributionsByVpcOriginIdValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListDistributionsByVpcOriginId{}, middleware.After) +} + func addOpListDistributionsByWebACLIdValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListDistributionsByWebACLId{}, middleware.After) } @@ -2242,6 +2454,10 @@ func addOpUpdateStreamingDistributionValidationMiddleware(stack *middleware.Stac return stack.Initialize.Add(&validateOpUpdateStreamingDistribution{}, middleware.After) } +func addOpUpdateVpcOriginValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateVpcOrigin{}, middleware.After) +} + func validateAliases(v *types.Aliases) error { if v == nil { return nil @@ -2319,6 +2535,11 @@ func validateCacheBehavior(v *types.CacheBehavior) error { invalidParams.AddNested("FunctionAssociations", err.(smithy.InvalidParamsError)) } } + if v.GrpcConfig != nil { + if err := validateGrpcConfig(v.GrpcConfig); err != nil { + invalidParams.AddNested("GrpcConfig", err.(smithy.InvalidParamsError)) + } + } if v.ForwardedValues != nil { if err := validateForwardedValues(v.ForwardedValues); err != nil { invalidParams.AddNested("ForwardedValues", err.(smithy.InvalidParamsError)) @@ -2796,6 +3017,11 @@ func validateDefaultCacheBehavior(v *types.DefaultCacheBehavior) error { invalidParams.AddNested("FunctionAssociations", err.(smithy.InvalidParamsError)) } } + if v.GrpcConfig != nil { + if err := validateGrpcConfig(v.GrpcConfig); err != nil { + invalidParams.AddNested("GrpcConfig", err.(smithy.InvalidParamsError)) + } + } if v.ForwardedValues != nil { if err := validateForwardedValues(v.ForwardedValues); err != nil { invalidParams.AddNested("ForwardedValues", err.(smithy.InvalidParamsError)) @@ -2853,11 +3079,6 @@ func validateDistributionConfig(v *types.DistributionConfig) error { if v.Comment == nil { invalidParams.Add(smithy.NewErrParamRequired("Comment")) } - if v.Logging != nil { - if err := validateLoggingConfig(v.Logging); err != nil { - invalidParams.AddNested("Logging", err.(smithy.InvalidParamsError)) - } - } if v.Enabled == nil { invalidParams.Add(smithy.NewErrParamRequired("Enabled")) } @@ -3191,6 +3412,21 @@ func validateGeoRestriction(v *types.GeoRestriction) error { } } +func validateGrpcConfig(v *types.GrpcConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GrpcConfig"} + if v.Enabled == nil { + invalidParams.Add(smithy.NewErrParamRequired("Enabled")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateHeaders(v *types.Headers) error { if v == nil { return nil @@ -3389,30 +3625,6 @@ func validateLambdaFunctionAssociations(v *types.LambdaFunctionAssociations) err } } -func validateLoggingConfig(v *types.LoggingConfig) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "LoggingConfig"} - if v.Enabled == nil { - invalidParams.Add(smithy.NewErrParamRequired("Enabled")) - } - if v.IncludeCookies == nil { - invalidParams.Add(smithy.NewErrParamRequired("IncludeCookies")) - } - if v.Bucket == nil { - invalidParams.Add(smithy.NewErrParamRequired("Bucket")) - } - if v.Prefix == nil { - invalidParams.Add(smithy.NewErrParamRequired("Prefix")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateMonitoringSubscription(v *types.MonitoringSubscription) error { if v == nil { return nil @@ -3456,6 +3668,11 @@ func validateOrigin(v *types.Origin) error { invalidParams.AddNested("CustomOriginConfig", err.(smithy.InvalidParamsError)) } } + if v.VpcOriginConfig != nil { + if err := validateVpcOriginConfig(v.VpcOriginConfig); err != nil { + invalidParams.AddNested("VpcOriginConfig", err.(smithy.InvalidParamsError)) + } + } if v.OriginShield != nil { if err := validateOriginShield(v.OriginShield); err != nil { invalidParams.AddNested("OriginShield", err.(smithy.InvalidParamsError)) @@ -4756,6 +4973,53 @@ func validateTrustedSigners(v *types.TrustedSigners) error { } } +func validateVpcOriginConfig(v *types.VpcOriginConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "VpcOriginConfig"} + if v.VpcOriginId == nil { + invalidParams.Add(smithy.NewErrParamRequired("VpcOriginId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateVpcOriginEndpointConfig(v *types.VpcOriginEndpointConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "VpcOriginEndpointConfig"} + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.Arn == nil { + invalidParams.Add(smithy.NewErrParamRequired("Arn")) + } + if v.HTTPPort == nil { + invalidParams.Add(smithy.NewErrParamRequired("HTTPPort")) + } + if v.HTTPSPort == nil { + invalidParams.Add(smithy.NewErrParamRequired("HTTPSPort")) + } + if len(v.OriginProtocolPolicy) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("OriginProtocolPolicy")) + } + if v.OriginSslProtocols != nil { + if err := validateOriginSslProtocols(v.OriginSslProtocols); err != nil { + invalidParams.AddNested("OriginSslProtocols", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpAssociateAliasInput(v *AssociateAliasInput) error { if v == nil { return nil @@ -4792,6 +5056,29 @@ func validateOpCopyDistributionInput(v *CopyDistributionInput) error { } } +func validateOpCreateAnycastIpListInput(v *CreateAnycastIpListInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateAnycastIpListInput"} + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.IpCount == nil { + invalidParams.Add(smithy.NewErrParamRequired("IpCount")) + } + 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 validateOpCreateCachePolicyInput(v *CreateCachePolicyInput) error { if v == nil { return nil @@ -5175,6 +5462,48 @@ func validateOpCreateStreamingDistributionWithTagsInput(v *CreateStreamingDistri } } +func validateOpCreateVpcOriginInput(v *CreateVpcOriginInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateVpcOriginInput"} + if v.VpcOriginEndpointConfig == nil { + invalidParams.Add(smithy.NewErrParamRequired("VpcOriginEndpointConfig")) + } else if v.VpcOriginEndpointConfig != nil { + if err := validateVpcOriginEndpointConfig(v.VpcOriginEndpointConfig); err != nil { + invalidParams.AddNested("VpcOriginEndpointConfig", err.(smithy.InvalidParamsError)) + } + } + 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 validateOpDeleteAnycastIpListInput(v *DeleteAnycastIpListInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteAnycastIpListInput"} + if v.Id == nil { + invalidParams.Add(smithy.NewErrParamRequired("Id")) + } + if v.IfMatch == nil { + invalidParams.Add(smithy.NewErrParamRequired("IfMatch")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteCachePolicyInput(v *DeleteCachePolicyInput) error { if v == nil { return nil @@ -5406,6 +5735,24 @@ func validateOpDeleteStreamingDistributionInput(v *DeleteStreamingDistributionIn } } +func validateOpDeleteVpcOriginInput(v *DeleteVpcOriginInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteVpcOriginInput"} + if v.Id == nil { + invalidParams.Add(smithy.NewErrParamRequired("Id")) + } + if v.IfMatch == nil { + invalidParams.Add(smithy.NewErrParamRequired("IfMatch")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDescribeFunctionInput(v *DescribeFunctionInput) error { if v == nil { return nil @@ -5436,6 +5783,21 @@ func validateOpDescribeKeyValueStoreInput(v *DescribeKeyValueStoreInput) error { } } +func validateOpGetAnycastIpListInput(v *GetAnycastIpListInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetAnycastIpListInput"} + if v.Id == nil { + invalidParams.Add(smithy.NewErrParamRequired("Id")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetCachePolicyConfigInput(v *GetCachePolicyConfigInput) error { if v == nil { return nil @@ -5844,6 +6206,21 @@ func validateOpGetStreamingDistributionInput(v *GetStreamingDistributionInput) e } } +func validateOpGetVpcOriginInput(v *GetVpcOriginInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetVpcOriginInput"} + if v.Id == nil { + invalidParams.Add(smithy.NewErrParamRequired("Id")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListConflictingAliasesInput(v *ListConflictingAliasesInput) error { if v == nil { return nil @@ -5862,6 +6239,21 @@ func validateOpListConflictingAliasesInput(v *ListConflictingAliasesInput) error } } +func validateOpListDistributionsByAnycastIpListIdInput(v *ListDistributionsByAnycastIpListIdInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListDistributionsByAnycastIpListIdInput"} + if v.AnycastIpListId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AnycastIpListId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListDistributionsByCachePolicyIdInput(v *ListDistributionsByCachePolicyIdInput) error { if v == nil { return nil @@ -5922,6 +6314,21 @@ func validateOpListDistributionsByResponseHeadersPolicyIdInput(v *ListDistributi } } +func validateOpListDistributionsByVpcOriginIdInput(v *ListDistributionsByVpcOriginIdInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListDistributionsByVpcOriginIdInput"} + if v.VpcOriginId == nil { + invalidParams.Add(smithy.NewErrParamRequired("VpcOriginId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListDistributionsByWebACLIdInput(v *ListDistributionsByWebACLIdInput) error { if v == nil { return nil @@ -6390,3 +6797,28 @@ func validateOpUpdateStreamingDistributionInput(v *UpdateStreamingDistributionIn return nil } } + +func validateOpUpdateVpcOriginInput(v *UpdateVpcOriginInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateVpcOriginInput"} + if v.VpcOriginEndpointConfig == nil { + invalidParams.Add(smithy.NewErrParamRequired("VpcOriginEndpointConfig")) + } else if v.VpcOriginEndpointConfig != nil { + if err := validateVpcOriginEndpointConfig(v.VpcOriginEndpointConfig); err != nil { + invalidParams.AddNested("VpcOriginEndpointConfig", err.(smithy.InvalidParamsError)) + } + } + if v.Id == nil { + invalidParams.Add(smithy.NewErrParamRequired("Id")) + } + if v.IfMatch == nil { + invalidParams.Add(smithy.NewErrParamRequired("IfMatch")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} diff --git a/service/cloudfrontkeyvaluestore/CHANGELOG.md b/service/cloudfrontkeyvaluestore/CHANGELOG.md index d1a6fea2b30..049e0e31bfe 100644 --- a/service/cloudfrontkeyvaluestore/CHANGELOG.md +++ b/service/cloudfrontkeyvaluestore/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.8.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.8.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/cloudfrontkeyvaluestore/go.mod b/service/cloudfrontkeyvaluestore/go.mod index 0597fe7c945..17fbbd5fcc0 100644 --- a/service/cloudfrontkeyvaluestore/go.mod +++ b/service/cloudfrontkeyvaluestore/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/cloudfrontkeyvaluestore go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudfrontkeyvaluestore/go.sum b/service/cloudfrontkeyvaluestore/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/cloudfrontkeyvaluestore/go.sum +++ b/service/cloudfrontkeyvaluestore/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/cloudfrontkeyvaluestore/go_module_metadata.go b/service/cloudfrontkeyvaluestore/go_module_metadata.go index eda53bedfe6..d0ce004c46c 100644 --- a/service/cloudfrontkeyvaluestore/go_module_metadata.go +++ b/service/cloudfrontkeyvaluestore/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudfrontkeyvaluestore // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.8.5" +const goModuleVersion = "1.8.6" diff --git a/service/cloudhsm/CHANGELOG.md b/service/cloudhsm/CHANGELOG.md index 9bdb461c3c1..bce4fe27491 100644 --- a/service/cloudhsm/CHANGELOG.md +++ b/service/cloudhsm/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.24.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/cloudhsm/go.mod b/service/cloudhsm/go.mod index ae8f3f2b627..b9f548207db 100644 --- a/service/cloudhsm/go.mod +++ b/service/cloudhsm/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudhsm go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudhsm/go.sum b/service/cloudhsm/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/cloudhsm/go.sum +++ b/service/cloudhsm/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/cloudhsm/go_module_metadata.go b/service/cloudhsm/go_module_metadata.go index 21804bdd11b..aa79adeb829 100644 --- a/service/cloudhsm/go_module_metadata.go +++ b/service/cloudhsm/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudhsm // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.5" +const goModuleVersion = "1.24.6" diff --git a/service/cloudhsmv2/CHANGELOG.md b/service/cloudhsmv2/CHANGELOG.md index 635e9e1910c..8fc3e16c85d 100644 --- a/service/cloudhsmv2/CHANGELOG.md +++ b/service/cloudhsmv2/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.7 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.6 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/cloudhsmv2/go.mod b/service/cloudhsmv2/go.mod index 2869c1fe832..03fd46024d6 100644 --- a/service/cloudhsmv2/go.mod +++ b/service/cloudhsmv2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudhsmv2 go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudhsmv2/go.sum b/service/cloudhsmv2/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/cloudhsmv2/go.sum +++ b/service/cloudhsmv2/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/cloudhsmv2/go_module_metadata.go b/service/cloudhsmv2/go_module_metadata.go index 77e4666e5d0..eb240b131f3 100644 --- a/service/cloudhsmv2/go_module_metadata.go +++ b/service/cloudhsmv2/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudhsmv2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.6" +const goModuleVersion = "1.27.7" diff --git a/service/cloudsearch/CHANGELOG.md b/service/cloudsearch/CHANGELOG.md index 7174ef52ed7..39b1982ef8d 100644 --- a/service/cloudsearch/CHANGELOG.md +++ b/service/cloudsearch/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.26.5 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.4 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/cloudsearch/go.mod b/service/cloudsearch/go.mod index c0051b9f7f5..f42932e9dec 100644 --- a/service/cloudsearch/go.mod +++ b/service/cloudsearch/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudsearch go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudsearch/go.sum b/service/cloudsearch/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/cloudsearch/go.sum +++ b/service/cloudsearch/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/cloudsearch/go_module_metadata.go b/service/cloudsearch/go_module_metadata.go index 0e460e1d448..1704567328f 100644 --- a/service/cloudsearch/go_module_metadata.go +++ b/service/cloudsearch/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudsearch // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.4" +const goModuleVersion = "1.26.5" diff --git a/service/cloudsearchdomain/CHANGELOG.md b/service/cloudsearchdomain/CHANGELOG.md index 4bd9aaec5fb..2f261231422 100644 --- a/service/cloudsearchdomain/CHANGELOG.md +++ b/service/cloudsearchdomain/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.23.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/cloudsearchdomain/go.mod b/service/cloudsearchdomain/go.mod index 41ce13d7627..6fa7719a252 100644 --- a/service/cloudsearchdomain/go.mod +++ b/service/cloudsearchdomain/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudsearchdomain go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudsearchdomain/go.sum b/service/cloudsearchdomain/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/cloudsearchdomain/go.sum +++ b/service/cloudsearchdomain/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/cloudsearchdomain/go_module_metadata.go b/service/cloudsearchdomain/go_module_metadata.go index d5fdbea157e..e32696e9517 100644 --- a/service/cloudsearchdomain/go_module_metadata.go +++ b/service/cloudsearchdomain/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudsearchdomain // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.5" +const goModuleVersion = "1.23.6" diff --git a/service/cloudtrail/CHANGELOG.md b/service/cloudtrail/CHANGELOG.md index 8822355184d..b485731b88d 100644 --- a/service/cloudtrail/CHANGELOG.md +++ b/service/cloudtrail/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.45.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.45.0 (2024-11-13) * **Feature**: This release adds a new API GenerateQuery that generates a query from a natural language prompt about the event data in your event data store. This operation uses generative artificial intelligence (generative AI) to produce a ready-to-use SQL query from the prompt. diff --git a/service/cloudtrail/go.mod b/service/cloudtrail/go.mod index 07812aea2f1..42e9fd86a6d 100644 --- a/service/cloudtrail/go.mod +++ b/service/cloudtrail/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudtrail go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudtrail/go.sum b/service/cloudtrail/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/cloudtrail/go.sum +++ b/service/cloudtrail/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/cloudtrail/go_module_metadata.go b/service/cloudtrail/go_module_metadata.go index 2d03ac0bafb..73d22f90102 100644 --- a/service/cloudtrail/go_module_metadata.go +++ b/service/cloudtrail/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudtrail // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.45.0" +const goModuleVersion = "1.45.1" diff --git a/service/cloudtraildata/CHANGELOG.md b/service/cloudtraildata/CHANGELOG.md index f6a5c84b255..98044065261 100644 --- a/service/cloudtraildata/CHANGELOG.md +++ b/service/cloudtraildata/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.11.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.11.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/cloudtraildata/go.mod b/service/cloudtraildata/go.mod index 61c98da2a8d..3d8059343a3 100644 --- a/service/cloudtraildata/go.mod +++ b/service/cloudtraildata/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudtraildata go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudtraildata/go.sum b/service/cloudtraildata/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/cloudtraildata/go.sum +++ b/service/cloudtraildata/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/cloudtraildata/go_module_metadata.go b/service/cloudtraildata/go_module_metadata.go index dd497ee24cd..febaa9ffd51 100644 --- a/service/cloudtraildata/go_module_metadata.go +++ b/service/cloudtraildata/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudtraildata // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.11.5" +const goModuleVersion = "1.11.6" diff --git a/service/cloudwatch/CHANGELOG.md b/service/cloudwatch/CHANGELOG.md index c683d374fd8..7560e1da4be 100644 --- a/service/cloudwatch/CHANGELOG.md +++ b/service/cloudwatch/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.43.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.43.0 (2024-11-15.2) * **Feature**: Adds support for adding related Entity information to metrics ingested through PutMetricData. diff --git a/service/cloudwatch/go.mod b/service/cloudwatch/go.mod index 88b76473f9b..c164422c085 100644 --- a/service/cloudwatch/go.mod +++ b/service/cloudwatch/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudwatch go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/cloudwatch/go.sum b/service/cloudwatch/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/cloudwatch/go.sum +++ b/service/cloudwatch/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/cloudwatch/go_module_metadata.go b/service/cloudwatch/go_module_metadata.go index 17a39a3f403..44d460f118f 100644 --- a/service/cloudwatch/go_module_metadata.go +++ b/service/cloudwatch/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudwatch // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.43.0" +const goModuleVersion = "1.43.1" diff --git a/service/cloudwatchevents/CHANGELOG.md b/service/cloudwatchevents/CHANGELOG.md index be4427164e5..64f18f6df8b 100644 --- a/service/cloudwatchevents/CHANGELOG.md +++ b/service/cloudwatchevents/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/cloudwatchevents/go.mod b/service/cloudwatchevents/go.mod index 90e00f20305..b52d3e69fb5 100644 --- a/service/cloudwatchevents/go.mod +++ b/service/cloudwatchevents/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudwatchevents go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudwatchevents/go.sum b/service/cloudwatchevents/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/cloudwatchevents/go.sum +++ b/service/cloudwatchevents/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/cloudwatchevents/go_module_metadata.go b/service/cloudwatchevents/go_module_metadata.go index 41e401e8f5f..c41523e43b1 100644 --- a/service/cloudwatchevents/go_module_metadata.go +++ b/service/cloudwatchevents/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudwatchevents // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.5" +const goModuleVersion = "1.27.6" diff --git a/service/cloudwatchlogs/CHANGELOG.md b/service/cloudwatchlogs/CHANGELOG.md index d8d9adc0507..ab6db1cb132 100644 --- a/service/cloudwatchlogs/CHANGELOG.md +++ b/service/cloudwatchlogs/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.43.3 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.43.2 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/cloudwatchlogs/go.mod b/service/cloudwatchlogs/go.mod index a62ded0bad3..13d3c4f27a5 100644 --- a/service/cloudwatchlogs/go.mod +++ b/service/cloudwatchlogs/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.6 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.7 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cloudwatchlogs/go.sum b/service/cloudwatchlogs/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/cloudwatchlogs/go.sum +++ b/service/cloudwatchlogs/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/cloudwatchlogs/go_module_metadata.go b/service/cloudwatchlogs/go_module_metadata.go index f16480babcc..7d5f616baa8 100644 --- a/service/cloudwatchlogs/go_module_metadata.go +++ b/service/cloudwatchlogs/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudwatchlogs // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.43.2" +const goModuleVersion = "1.43.3" diff --git a/service/codeartifact/CHANGELOG.md b/service/codeartifact/CHANGELOG.md index 15ff516f794..0261b72496f 100644 --- a/service/codeartifact/CHANGELOG.md +++ b/service/codeartifact/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.33.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.33.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/codeartifact/go.mod b/service/codeartifact/go.mod index 18c2d400933..6b9f6b3e56d 100644 --- a/service/codeartifact/go.mod +++ b/service/codeartifact/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codeartifact go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codeartifact/go.sum b/service/codeartifact/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/codeartifact/go.sum +++ b/service/codeartifact/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/codeartifact/go_module_metadata.go b/service/codeartifact/go_module_metadata.go index 08bc39307d2..17b5dcbf126 100644 --- a/service/codeartifact/go_module_metadata.go +++ b/service/codeartifact/go_module_metadata.go @@ -3,4 +3,4 @@ package codeartifact // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.33.5" +const goModuleVersion = "1.33.6" diff --git a/service/codebuild/CHANGELOG.md b/service/codebuild/CHANGELOG.md index 36f8afa351c..761722deee5 100644 --- a/service/codebuild/CHANGELOG.md +++ b/service/codebuild/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.49.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.49.0 (2024-11-12) * **Feature**: AWS CodeBuild now supports non-containerized Linux and Windows builds on Reserved Capacity. diff --git a/service/codebuild/go.mod b/service/codebuild/go.mod index ff34a871878..3ea058cf01e 100644 --- a/service/codebuild/go.mod +++ b/service/codebuild/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codebuild go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codebuild/go.sum b/service/codebuild/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/codebuild/go.sum +++ b/service/codebuild/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/codebuild/go_module_metadata.go b/service/codebuild/go_module_metadata.go index 476e489421d..09899c9b4b3 100644 --- a/service/codebuild/go_module_metadata.go +++ b/service/codebuild/go_module_metadata.go @@ -3,4 +3,4 @@ package codebuild // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.49.0" +const goModuleVersion = "1.49.1" diff --git a/service/codecatalyst/CHANGELOG.md b/service/codecatalyst/CHANGELOG.md index d62e5a34432..7e012e0a99f 100644 --- a/service/codecatalyst/CHANGELOG.md +++ b/service/codecatalyst/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.17.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.17.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/codecatalyst/go.mod b/service/codecatalyst/go.mod index 0d35fba86e8..f6c32c8cf8c 100644 --- a/service/codecatalyst/go.mod +++ b/service/codecatalyst/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codecatalyst go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codecatalyst/go.sum b/service/codecatalyst/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/codecatalyst/go.sum +++ b/service/codecatalyst/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/codecatalyst/go_module_metadata.go b/service/codecatalyst/go_module_metadata.go index 440047a22d6..857fdecb0f6 100644 --- a/service/codecatalyst/go_module_metadata.go +++ b/service/codecatalyst/go_module_metadata.go @@ -3,4 +3,4 @@ package codecatalyst // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.17.5" +const goModuleVersion = "1.17.6" diff --git a/service/codecommit/CHANGELOG.md b/service/codecommit/CHANGELOG.md index 27c73589e50..bc4410d3bab 100644 --- a/service/codecommit/CHANGELOG.md +++ b/service/codecommit/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/codecommit/go.mod b/service/codecommit/go.mod index f5e957b4127..5a87e99d8cb 100644 --- a/service/codecommit/go.mod +++ b/service/codecommit/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codecommit go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codecommit/go.sum b/service/codecommit/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/codecommit/go.sum +++ b/service/codecommit/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/codecommit/go_module_metadata.go b/service/codecommit/go_module_metadata.go index bf8c3931e05..1d7de43a5fc 100644 --- a/service/codecommit/go_module_metadata.go +++ b/service/codecommit/go_module_metadata.go @@ -3,4 +3,4 @@ package codecommit // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.5" +const goModuleVersion = "1.27.6" diff --git a/service/codeconnections/CHANGELOG.md b/service/codeconnections/CHANGELOG.md index 55eebe93c2f..a45444c9c75 100644 --- a/service/codeconnections/CHANGELOG.md +++ b/service/codeconnections/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.5.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.5.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/codeconnections/go.mod b/service/codeconnections/go.mod index df2bc21b623..a567ce21cba 100644 --- a/service/codeconnections/go.mod +++ b/service/codeconnections/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codeconnections go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codeconnections/go.sum b/service/codeconnections/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/codeconnections/go.sum +++ b/service/codeconnections/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/codeconnections/go_module_metadata.go b/service/codeconnections/go_module_metadata.go index a8f3d51d444..3543d034e45 100644 --- a/service/codeconnections/go_module_metadata.go +++ b/service/codeconnections/go_module_metadata.go @@ -3,4 +3,4 @@ package codeconnections // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.5.5" +const goModuleVersion = "1.5.6" diff --git a/service/codedeploy/CHANGELOG.md b/service/codedeploy/CHANGELOG.md index 871fd5783e5..4cde2324172 100644 --- a/service/codedeploy/CHANGELOG.md +++ b/service/codedeploy/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.29.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.29.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/codedeploy/go.mod b/service/codedeploy/go.mod index a3b6e64c9db..d2197efdca8 100644 --- a/service/codedeploy/go.mod +++ b/service/codedeploy/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codedeploy go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/codedeploy/go.sum b/service/codedeploy/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/codedeploy/go.sum +++ b/service/codedeploy/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/codedeploy/go_module_metadata.go b/service/codedeploy/go_module_metadata.go index 27b4ffadfbe..5ded1f88cab 100644 --- a/service/codedeploy/go_module_metadata.go +++ b/service/codedeploy/go_module_metadata.go @@ -3,4 +3,4 @@ package codedeploy // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.29.5" +const goModuleVersion = "1.29.6" diff --git a/service/codeguruprofiler/CHANGELOG.md b/service/codeguruprofiler/CHANGELOG.md index fbd3ca0df47..6350f628783 100644 --- a/service/codeguruprofiler/CHANGELOG.md +++ b/service/codeguruprofiler/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.24.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/codeguruprofiler/go.mod b/service/codeguruprofiler/go.mod index a869ac7bdbc..e1aedfcb11e 100644 --- a/service/codeguruprofiler/go.mod +++ b/service/codeguruprofiler/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codeguruprofiler go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codeguruprofiler/go.sum b/service/codeguruprofiler/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/codeguruprofiler/go.sum +++ b/service/codeguruprofiler/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/codeguruprofiler/go_module_metadata.go b/service/codeguruprofiler/go_module_metadata.go index 44c33284ac8..fef525cc2e4 100644 --- a/service/codeguruprofiler/go_module_metadata.go +++ b/service/codeguruprofiler/go_module_metadata.go @@ -3,4 +3,4 @@ package codeguruprofiler // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.5" +const goModuleVersion = "1.24.6" diff --git a/service/codegurureviewer/CHANGELOG.md b/service/codegurureviewer/CHANGELOG.md index 778e17d5153..388a7feec01 100644 --- a/service/codegurureviewer/CHANGELOG.md +++ b/service/codegurureviewer/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.29.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.29.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/codegurureviewer/go.mod b/service/codegurureviewer/go.mod index c32941d1c88..f622025ea47 100644 --- a/service/codegurureviewer/go.mod +++ b/service/codegurureviewer/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codegurureviewer go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/codegurureviewer/go.sum b/service/codegurureviewer/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/codegurureviewer/go.sum +++ b/service/codegurureviewer/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/codegurureviewer/go_module_metadata.go b/service/codegurureviewer/go_module_metadata.go index c5c3dba2962..e63eeef0298 100644 --- a/service/codegurureviewer/go_module_metadata.go +++ b/service/codegurureviewer/go_module_metadata.go @@ -3,4 +3,4 @@ package codegurureviewer // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.29.5" +const goModuleVersion = "1.29.6" diff --git a/service/codegurusecurity/CHANGELOG.md b/service/codegurusecurity/CHANGELOG.md index b6ff3b5c779..67ba5b6caf0 100644 --- a/service/codegurusecurity/CHANGELOG.md +++ b/service/codegurusecurity/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.12.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.12.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/codegurusecurity/go.mod b/service/codegurusecurity/go.mod index 1ab6763111f..3886aab49a4 100644 --- a/service/codegurusecurity/go.mod +++ b/service/codegurusecurity/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codegurusecurity go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codegurusecurity/go.sum b/service/codegurusecurity/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/codegurusecurity/go.sum +++ b/service/codegurusecurity/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/codegurusecurity/go_module_metadata.go b/service/codegurusecurity/go_module_metadata.go index 2c6a5c22921..7604ffb5f98 100644 --- a/service/codegurusecurity/go_module_metadata.go +++ b/service/codegurusecurity/go_module_metadata.go @@ -3,4 +3,4 @@ package codegurusecurity // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.12.5" +const goModuleVersion = "1.12.6" diff --git a/service/codepipeline/CHANGELOG.md b/service/codepipeline/CHANGELOG.md index 4b95fd7a55c..a9063e4a8ff 100644 --- a/service/codepipeline/CHANGELOG.md +++ b/service/codepipeline/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.36.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.36.3 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/codepipeline/go.mod b/service/codepipeline/go.mod index 3126b355431..85fc7944f02 100644 --- a/service/codepipeline/go.mod +++ b/service/codepipeline/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codepipeline go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codepipeline/go.sum b/service/codepipeline/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/codepipeline/go.sum +++ b/service/codepipeline/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/codepipeline/go_module_metadata.go b/service/codepipeline/go_module_metadata.go index 53f2799d1c4..b650299a64d 100644 --- a/service/codepipeline/go_module_metadata.go +++ b/service/codepipeline/go_module_metadata.go @@ -3,4 +3,4 @@ package codepipeline // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.36.3" +const goModuleVersion = "1.36.4" diff --git a/service/codestarconnections/CHANGELOG.md b/service/codestarconnections/CHANGELOG.md index 8d35af19174..4b83612000d 100644 --- a/service/codestarconnections/CHANGELOG.md +++ b/service/codestarconnections/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.29.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.29.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/codestarconnections/go.mod b/service/codestarconnections/go.mod index 367643f5258..bc93fe9e161 100644 --- a/service/codestarconnections/go.mod +++ b/service/codestarconnections/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codestarconnections go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codestarconnections/go.sum b/service/codestarconnections/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/codestarconnections/go.sum +++ b/service/codestarconnections/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/codestarconnections/go_module_metadata.go b/service/codestarconnections/go_module_metadata.go index a0119eb114d..d0b501c88b7 100644 --- a/service/codestarconnections/go_module_metadata.go +++ b/service/codestarconnections/go_module_metadata.go @@ -3,4 +3,4 @@ package codestarconnections // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.29.5" +const goModuleVersion = "1.29.6" diff --git a/service/codestarnotifications/CHANGELOG.md b/service/codestarnotifications/CHANGELOG.md index 89dc9314512..b51f88c6b4a 100644 --- a/service/codestarnotifications/CHANGELOG.md +++ b/service/codestarnotifications/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.26.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/codestarnotifications/go.mod b/service/codestarnotifications/go.mod index eb2852be5f9..549b40effbc 100644 --- a/service/codestarnotifications/go.mod +++ b/service/codestarnotifications/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codestarnotifications go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/codestarnotifications/go.sum b/service/codestarnotifications/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/codestarnotifications/go.sum +++ b/service/codestarnotifications/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/codestarnotifications/go_module_metadata.go b/service/codestarnotifications/go_module_metadata.go index 402434ba9bd..dae0510e999 100644 --- a/service/codestarnotifications/go_module_metadata.go +++ b/service/codestarnotifications/go_module_metadata.go @@ -3,4 +3,4 @@ package codestarnotifications // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.5" +const goModuleVersion = "1.26.6" diff --git a/service/cognitoidentity/CHANGELOG.md b/service/cognitoidentity/CHANGELOG.md index cb5860c3c2b..766f41c26d1 100644 --- a/service/cognitoidentity/CHANGELOG.md +++ b/service/cognitoidentity/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/cognitoidentity/go.mod b/service/cognitoidentity/go.mod index b28f9407762..1eba5b87efd 100644 --- a/service/cognitoidentity/go.mod +++ b/service/cognitoidentity/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cognitoidentity go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cognitoidentity/go.sum b/service/cognitoidentity/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/cognitoidentity/go.sum +++ b/service/cognitoidentity/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/cognitoidentity/go_module_metadata.go b/service/cognitoidentity/go_module_metadata.go index c23e44b58b1..a17ad383bed 100644 --- a/service/cognitoidentity/go_module_metadata.go +++ b/service/cognitoidentity/go_module_metadata.go @@ -3,4 +3,4 @@ package cognitoidentity // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.5" +const goModuleVersion = "1.27.6" diff --git a/service/cognitoidentityprovider/CHANGELOG.md b/service/cognitoidentityprovider/CHANGELOG.md index 186be87f2e6..f50ac3a4022 100644 --- a/service/cognitoidentityprovider/CHANGELOG.md +++ b/service/cognitoidentityprovider/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.46.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.46.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/cognitoidentityprovider/go.mod b/service/cognitoidentityprovider/go.mod index 5c843648e82..0d0ac37f500 100644 --- a/service/cognitoidentityprovider/go.mod +++ b/service/cognitoidentityprovider/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cognitoidentityprovider/go.sum b/service/cognitoidentityprovider/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/cognitoidentityprovider/go.sum +++ b/service/cognitoidentityprovider/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/cognitoidentityprovider/go_module_metadata.go b/service/cognitoidentityprovider/go_module_metadata.go index 25ff8610767..230371ec655 100644 --- a/service/cognitoidentityprovider/go_module_metadata.go +++ b/service/cognitoidentityprovider/go_module_metadata.go @@ -3,4 +3,4 @@ package cognitoidentityprovider // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.46.5" +const goModuleVersion = "1.46.6" diff --git a/service/cognitosync/CHANGELOG.md b/service/cognitosync/CHANGELOG.md index 4bd9aaec5fb..2f261231422 100644 --- a/service/cognitosync/CHANGELOG.md +++ b/service/cognitosync/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.23.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/cognitosync/go.mod b/service/cognitosync/go.mod index ae61b7c6471..7a7f7626a28 100644 --- a/service/cognitosync/go.mod +++ b/service/cognitosync/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cognitosync go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/cognitosync/go.sum b/service/cognitosync/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/cognitosync/go.sum +++ b/service/cognitosync/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/cognitosync/go_module_metadata.go b/service/cognitosync/go_module_metadata.go index 9484872fa5d..8523db58fe3 100644 --- a/service/cognitosync/go_module_metadata.go +++ b/service/cognitosync/go_module_metadata.go @@ -3,4 +3,4 @@ package cognitosync // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.5" +const goModuleVersion = "1.23.6" diff --git a/service/comprehend/CHANGELOG.md b/service/comprehend/CHANGELOG.md index e4710b2f3c3..bd2faa6904b 100644 --- a/service/comprehend/CHANGELOG.md +++ b/service/comprehend/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.35.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.35.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/comprehend/go.mod b/service/comprehend/go.mod index 2a75b033751..cc4e362d06f 100644 --- a/service/comprehend/go.mod +++ b/service/comprehend/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/comprehend go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/comprehend/go.sum b/service/comprehend/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/comprehend/go.sum +++ b/service/comprehend/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/comprehend/go_module_metadata.go b/service/comprehend/go_module_metadata.go index d9d1953ba71..db07bd49d98 100644 --- a/service/comprehend/go_module_metadata.go +++ b/service/comprehend/go_module_metadata.go @@ -3,4 +3,4 @@ package comprehend // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.35.5" +const goModuleVersion = "1.35.6" diff --git a/service/comprehendmedical/CHANGELOG.md b/service/comprehendmedical/CHANGELOG.md index e435cc0ccba..33c1fc9c773 100644 --- a/service/comprehendmedical/CHANGELOG.md +++ b/service/comprehendmedical/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.26.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/comprehendmedical/go.mod b/service/comprehendmedical/go.mod index 67dcf7fb533..55dd424789f 100644 --- a/service/comprehendmedical/go.mod +++ b/service/comprehendmedical/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/comprehendmedical go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/comprehendmedical/go.sum b/service/comprehendmedical/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/comprehendmedical/go.sum +++ b/service/comprehendmedical/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/comprehendmedical/go_module_metadata.go b/service/comprehendmedical/go_module_metadata.go index 990524a2411..221d0db68f7 100644 --- a/service/comprehendmedical/go_module_metadata.go +++ b/service/comprehendmedical/go_module_metadata.go @@ -3,4 +3,4 @@ package comprehendmedical // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.5" +const goModuleVersion = "1.26.6" diff --git a/service/computeoptimizer/CHANGELOG.md b/service/computeoptimizer/CHANGELOG.md index 05e915fbc95..57ae17803f9 100644 --- a/service/computeoptimizer/CHANGELOG.md +++ b/service/computeoptimizer/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.40.0 (2024-11-20) + +* **Feature**: This release enables AWS Compute Optimizer to analyze and generate optimization recommendations for Amazon Aurora database instances. It also enables Compute Optimizer to identify idle Amazon EC2 instances, Amazon EBS volumes, Amazon ECS services running on Fargate, and Amazon RDS databases. + +# v1.39.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.39.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/computeoptimizer/api_op_ExportIdleRecommendations.go b/service/computeoptimizer/api_op_ExportIdleRecommendations.go new file mode 100644 index 00000000000..9f45d199bb8 --- /dev/null +++ b/service/computeoptimizer/api_op_ExportIdleRecommendations.go @@ -0,0 +1,232 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package computeoptimizer + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/computeoptimizer/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Export optimization recommendations for your idle resources. +// +// Recommendations are exported in a comma-separated values (CSV) file, and its +// metadata in a JavaScript Object Notation (JSON) file, to an existing Amazon +// Simple Storage Service (Amazon S3) bucket that you specify. For more +// information, see [Exporting Recommendations]in the Compute Optimizer User Guide. +// +// You can have only one idle resource export job in progress per Amazon Web +// Services Region. +// +// [Exporting Recommendations]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html +func (c *Client) ExportIdleRecommendations(ctx context.Context, params *ExportIdleRecommendationsInput, optFns ...func(*Options)) (*ExportIdleRecommendationsOutput, error) { + if params == nil { + params = &ExportIdleRecommendationsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ExportIdleRecommendations", params, optFns, c.addOperationExportIdleRecommendationsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ExportIdleRecommendationsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ExportIdleRecommendationsInput struct { + + // Describes the destination Amazon Simple Storage Service (Amazon S3) bucket name + // and key prefix for a recommendations export job. + // + // You must create the destination Amazon S3 bucket for your recommendations + // export before you create the export job. Compute Optimizer does not create the + // S3 bucket for you. After you create the S3 bucket, ensure that it has the + // required permission policy to allow Compute Optimizer to write the export file + // to it. If you plan to specify an object prefix when you create the export job, + // you must include the object prefix in the policy that you add to the S3 bucket. + // For more information, see [Amazon S3 Bucket Policy for Compute Optimizer]in the Compute Optimizer User Guide. + // + // [Amazon S3 Bucket Policy for Compute Optimizer]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/create-s3-bucket-policy-for-compute-optimizer.html + // + // This member is required. + S3DestinationConfig *types.S3DestinationConfig + + // The Amazon Web Services account IDs for the export idle resource + // recommendations. + // + // If your account is the management account or the delegated administrator of an + // organization, use this parameter to specify the member account you want to + // export recommendations to. + // + // This parameter can't be specified together with the include member accounts + // parameter. The parameters are mutually exclusive. + // + // If this parameter or the include member accounts parameter is omitted, the + // recommendations for member accounts aren't included in the export. + // + // You can specify multiple account IDs per request. + AccountIds []string + + // The recommendations data to include in the export file. For more information + // about the fields that can be exported, see [Exported files]in the Compute Optimizer User Guide. + // + // [Exported files]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html#exported-files + FieldsToExport []types.ExportableIdleField + + // The format of the export file. The CSV file is the only export file format + // currently supported. + FileFormat types.FileFormat + + // An array of objects to specify a filter that exports a more specific set of + // idle resource recommendations. + Filters []types.IdleRecommendationFilter + + // If your account is the management account or the delegated administrator of an + // organization, this parameter indicates whether to include recommendations for + // resources in all member accounts of the organization. + // + // The member accounts must also be opted in to Compute Optimizer, and trusted + // access for Compute Optimizer must be enabled in the organization account. For + // more information, see [Compute Optimizer and Amazon Web Services Organizations trusted access]in the Compute Optimizer User Guide. + // + // If this parameter is omitted, recommendations for member accounts of the + // organization aren't included in the export file. + // + // If this parameter or the account ID parameter is omitted, recommendations for + // member accounts aren't included in the export. + // + // [Compute Optimizer and Amazon Web Services Organizations trusted access]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/security-iam.html#trusted-service-access + IncludeMemberAccounts bool + + noSmithyDocumentSerde +} + +type ExportIdleRecommendationsOutput struct { + + // The identification number of the export job. + // + // To view the status of an export job, use the DescribeRecommendationExportJobs action and specify the job ID. + JobId *string + + // Describes the destination Amazon Simple Storage Service (Amazon S3) bucket name + // and object keys of a recommendations export file, and its associated metadata + // file. + S3Destination *types.S3Destination + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationExportIdleRecommendationsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson10_serializeOpExportIdleRecommendations{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpExportIdleRecommendations{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ExportIdleRecommendations"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpExportIdleRecommendationsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opExportIdleRecommendations(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opExportIdleRecommendations(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ExportIdleRecommendations", + } +} diff --git a/service/computeoptimizer/api_op_GetIdleRecommendations.go b/service/computeoptimizer/api_op_GetIdleRecommendations.go new file mode 100644 index 00000000000..75fa752011a --- /dev/null +++ b/service/computeoptimizer/api_op_GetIdleRecommendations.go @@ -0,0 +1,189 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package computeoptimizer + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/computeoptimizer/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns idle resource recommendations. Compute Optimizer generates +// recommendations for idle resources that meet a specific set of requirements. For +// more information, see [Resource requirements]in the Compute Optimizer User Guide +// +// [Resource requirements]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html +func (c *Client) GetIdleRecommendations(ctx context.Context, params *GetIdleRecommendationsInput, optFns ...func(*Options)) (*GetIdleRecommendationsOutput, error) { + if params == nil { + params = &GetIdleRecommendationsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetIdleRecommendations", params, optFns, c.addOperationGetIdleRecommendationsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetIdleRecommendationsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetIdleRecommendationsInput struct { + + // Return the idle resource recommendations to the specified Amazon Web Services + // account IDs. + // + // If your account is the management account or the delegated administrator of an + // organization, use this parameter to return the idle resource recommendations to + // specific member accounts. + // + // You can only specify one account ID per request. + AccountIds []string + + // An array of objects to specify a filter that returns a more specific list of + // idle resource recommendations. + Filters []types.IdleRecommendationFilter + + // The maximum number of idle resource recommendations to return with a single + // request. + // + // To retrieve the remaining results, make another request with the returned + // nextToken value. + MaxResults *int32 + + // The token to advance to the next page of idle resource recommendations. + NextToken *string + + // The order to sort the idle resource recommendations. + OrderBy *types.OrderBy + + // The ARN that identifies the idle resource. + ResourceArns []string + + noSmithyDocumentSerde +} + +type GetIdleRecommendationsOutput struct { + + // An array of objects that describe errors of the request. + Errors []types.IdleRecommendationError + + // An array of objects that describe the idle resource recommendations. + IdleRecommendations []types.IdleRecommendation + + // The token to advance to the next page of idle resource recommendations. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetIdleRecommendationsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson10_serializeOpGetIdleRecommendations{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpGetIdleRecommendations{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetIdleRecommendations"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetIdleRecommendations(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetIdleRecommendations(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetIdleRecommendations", + } +} diff --git a/service/computeoptimizer/deserializers.go b/service/computeoptimizer/deserializers.go index 30e6963459d..fca1ce246cf 100644 --- a/service/computeoptimizer/deserializers.go +++ b/service/computeoptimizer/deserializers.go @@ -822,6 +822,138 @@ func awsAwsjson10_deserializeOpErrorExportECSServiceRecommendations(response *sm } } +type awsAwsjson10_deserializeOpExportIdleRecommendations struct { +} + +func (*awsAwsjson10_deserializeOpExportIdleRecommendations) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpExportIdleRecommendations) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorExportIdleRecommendations(response, &metadata) + } + output := &ExportIdleRecommendationsOutput{} + 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_deserializeOpDocumentExportIdleRecommendationsOutput(&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_deserializeOpErrorExportIdleRecommendations(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + bodyInfo, err := getProtocolErrorInfo(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 typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { + errorCode = restjson.SanitizeErrorCode(typ) + } + if len(bodyInfo.Message) != 0 { + errorMessage = bodyInfo.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("InvalidParameterValueException", errorCode): + return awsAwsjson10_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("LimitExceededException", errorCode): + return awsAwsjson10_deserializeErrorLimitExceededException(response, errorBody) + + case strings.EqualFold("MissingAuthenticationToken", errorCode): + return awsAwsjson10_deserializeErrorMissingAuthenticationToken(response, errorBody) + + case strings.EqualFold("OptInRequiredException", errorCode): + return awsAwsjson10_deserializeErrorOptInRequiredException(response, errorBody) + + case strings.EqualFold("ServiceUnavailableException", errorCode): + return awsAwsjson10_deserializeErrorServiceUnavailableException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsAwsjson10_deserializeOpExportLambdaFunctionRecommendations struct { } @@ -2394,6 +2526,138 @@ func awsAwsjson10_deserializeOpErrorGetEnrollmentStatusesForOrganization(respons } } +type awsAwsjson10_deserializeOpGetIdleRecommendations struct { +} + +func (*awsAwsjson10_deserializeOpGetIdleRecommendations) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpGetIdleRecommendations) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorGetIdleRecommendations(response, &metadata) + } + output := &GetIdleRecommendationsOutput{} + 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_deserializeOpDocumentGetIdleRecommendationsOutput(&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_deserializeOpErrorGetIdleRecommendations(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + bodyInfo, err := getProtocolErrorInfo(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 typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { + errorCode = restjson.SanitizeErrorCode(typ) + } + if len(bodyInfo.Message) != 0 { + errorMessage = bodyInfo.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("InvalidParameterValueException", errorCode): + return awsAwsjson10_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("MissingAuthenticationToken", errorCode): + return awsAwsjson10_deserializeErrorMissingAuthenticationToken(response, errorBody) + + case strings.EqualFold("OptInRequiredException", errorCode): + return awsAwsjson10_deserializeErrorOptInRequiredException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceUnavailableException", errorCode): + return awsAwsjson10_deserializeErrorServiceUnavailableException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsAwsjson10_deserializeOpGetLambdaFunctionRecommendations struct { } @@ -6656,22 +6920,687 @@ func awsAwsjson10_deserializeDocumentGetRecommendationError(v **types.GetRecomme sv.Code = ptr.String(jtv) } - case "identifier": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Identifier to be of type string, got %T instead", value) - } - sv.Identifier = ptr.String(jtv) - } + case "identifier": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Identifier to be of type string, got %T instead", value) + } + sv.Identifier = ptr.String(jtv) + } + + 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 awsAwsjson10_deserializeDocumentGetRecommendationErrors(v *[]types.GetRecommendationError, 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.GetRecommendationError + if *v == nil { + cv = []types.GetRecommendationError{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.GetRecommendationError + destAddr := &col + if err := awsAwsjson10_deserializeDocumentGetRecommendationError(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeDocumentGpu(v **types.Gpu, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.Gpu + if *v == nil { + sv = &types.Gpu{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "gpuCount": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected GpuCount to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.GpuCount = int32(i64) + } + + case "gpuMemorySizeInMiB": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected GpuMemorySizeInMiB to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.GpuMemorySizeInMiB = int32(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentGpuInfo(v **types.GpuInfo, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.GpuInfo + if *v == nil { + sv = &types.GpuInfo{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "gpus": + if err := awsAwsjson10_deserializeDocumentGpus(&sv.Gpus, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentGpus(v *[]types.Gpu, 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.Gpu + if *v == nil { + cv = []types.Gpu{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Gpu + destAddr := &col + if err := awsAwsjson10_deserializeDocumentGpu(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeDocumentIdleEstimatedMonthlySavings(v **types.IdleEstimatedMonthlySavings, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.IdleEstimatedMonthlySavings + if *v == nil { + sv = &types.IdleEstimatedMonthlySavings{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "currency": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Currency to be of type string, got %T instead", value) + } + sv.Currency = types.Currency(jtv) + } + + case "value": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Value = 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 = f64 + + default: + return fmt.Errorf("expected Value to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentIdleRecommendation(v **types.IdleRecommendation, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.IdleRecommendation + if *v == nil { + sv = &types.IdleRecommendation{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "accountId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) + } + sv.AccountId = ptr.String(jtv) + } + + case "finding": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IdleFinding to be of type string, got %T instead", value) + } + sv.Finding = types.IdleFinding(jtv) + } + + case "findingDescription": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IdleFindingDescription to be of type string, got %T instead", value) + } + sv.FindingDescription = ptr.String(jtv) + } + + case "lastRefreshTimestamp": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastRefreshTimestamp = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected LastRefreshTimestamp to be a JSON Number, got %T instead", value) + + } + } + + case "lookBackPeriodInDays": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LookBackPeriodInDays = 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.LookBackPeriodInDays = f64 + + default: + return fmt.Errorf("expected LookBackPeriodInDays to be a JSON Number, got %T instead", value) + + } + } + + 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 "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 IdleRecommendationResourceType to be of type string, got %T instead", value) + } + sv.ResourceType = types.IdleRecommendationResourceType(jtv) + } + + case "savingsOpportunity": + if err := awsAwsjson10_deserializeDocumentIdleSavingsOpportunity(&sv.SavingsOpportunity, value); err != nil { + return err + } + + case "savingsOpportunityAfterDiscounts": + if err := awsAwsjson10_deserializeDocumentIdleSavingsOpportunityAfterDiscounts(&sv.SavingsOpportunityAfterDiscounts, value); err != nil { + return err + } + + case "tags": + if err := awsAwsjson10_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + case "utilizationMetrics": + if err := awsAwsjson10_deserializeDocumentIdleUtilizationMetrics(&sv.UtilizationMetrics, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentIdleRecommendationError(v **types.IdleRecommendationError, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.IdleRecommendationError + if *v == nil { + sv = &types.IdleRecommendationError{} + } 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 Code to be of type string, got %T instead", value) + } + sv.Code = ptr.String(jtv) + } + + case "identifier": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Identifier to be of type string, got %T instead", value) + } + sv.Identifier = ptr.String(jtv) + } + + 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) + } + + case "resourceType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IdleRecommendationResourceType to be of type string, got %T instead", value) + } + sv.ResourceType = types.IdleRecommendationResourceType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentIdleRecommendationErrors(v *[]types.IdleRecommendationError, 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.IdleRecommendationError + if *v == nil { + cv = []types.IdleRecommendationError{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.IdleRecommendationError + destAddr := &col + if err := awsAwsjson10_deserializeDocumentIdleRecommendationError(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeDocumentIdleRecommendations(v *[]types.IdleRecommendation, 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.IdleRecommendation + if *v == nil { + cv = []types.IdleRecommendation{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.IdleRecommendation + destAddr := &col + if err := awsAwsjson10_deserializeDocumentIdleRecommendation(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeDocumentIdleSavingsOpportunity(v **types.IdleSavingsOpportunity, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.IdleSavingsOpportunity + if *v == nil { + sv = &types.IdleSavingsOpportunity{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "estimatedMonthlySavings": + if err := awsAwsjson10_deserializeDocumentIdleEstimatedMonthlySavings(&sv.EstimatedMonthlySavings, value); err != nil { + return err + } + + case "savingsOpportunityPercentage": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.SavingsOpportunityPercentage = 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.SavingsOpportunityPercentage = f64 + + default: + return fmt.Errorf("expected SavingsOpportunityPercentage to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentIdleSavingsOpportunityAfterDiscounts(v **types.IdleSavingsOpportunityAfterDiscounts, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.IdleSavingsOpportunityAfterDiscounts + if *v == nil { + sv = &types.IdleSavingsOpportunityAfterDiscounts{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "estimatedMonthlySavings": + if err := awsAwsjson10_deserializeDocumentIdleEstimatedMonthlySavings(&sv.EstimatedMonthlySavings, value); err != nil { + return err + } + + case "savingsOpportunityPercentage": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.SavingsOpportunityPercentage = 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.SavingsOpportunityPercentage = f64 + + default: + return fmt.Errorf("expected SavingsOpportunityPercentage to be a JSON Number, got %T instead", value) - 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: @@ -6683,7 +7612,7 @@ func awsAwsjson10_deserializeDocumentGetRecommendationError(v **types.GetRecomme return nil } -func awsAwsjson10_deserializeDocumentGetRecommendationErrors(v *[]types.GetRecommendationError, value interface{}) error { +func awsAwsjson10_deserializeDocumentIdleSummaries(v *[]types.IdleSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6696,17 +7625,17 @@ func awsAwsjson10_deserializeDocumentGetRecommendationErrors(v *[]types.GetRecom return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.GetRecommendationError + var cv []types.IdleSummary if *v == nil { - cv = []types.GetRecommendationError{} + cv = []types.IdleSummary{} } else { cv = *v } for _, value := range shape { - var col types.GetRecommendationError + var col types.IdleSummary destAddr := &col - if err := awsAwsjson10_deserializeDocumentGetRecommendationError(&destAddr, value); err != nil { + if err := awsAwsjson10_deserializeDocumentIdleSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -6717,7 +7646,7 @@ func awsAwsjson10_deserializeDocumentGetRecommendationErrors(v *[]types.GetRecom return nil } -func awsAwsjson10_deserializeDocumentGpu(v **types.Gpu, value interface{}) error { +func awsAwsjson10_deserializeDocumentIdleSummary(v **types.IdleSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6730,39 +7659,56 @@ func awsAwsjson10_deserializeDocumentGpu(v **types.Gpu, value interface{}) error return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Gpu + var sv *types.IdleSummary if *v == nil { - sv = &types.Gpu{} + sv = &types.IdleSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "gpuCount": + case "name": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected GpuCount to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected IdleFinding to be of type string, got %T instead", value) } - sv.GpuCount = int32(i64) + sv.Name = types.IdleFinding(jtv) } - case "gpuMemorySizeInMiB": + case "value": if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected GpuMemorySizeInMiB to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Value = 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 = f64 + + default: + return fmt.Errorf("expected SummaryValue to be a JSON Number, got %T instead", value) + } - sv.GpuMemorySizeInMiB = int32(i64) } default: @@ -6774,7 +7720,7 @@ func awsAwsjson10_deserializeDocumentGpu(v **types.Gpu, value interface{}) error return nil } -func awsAwsjson10_deserializeDocumentGpuInfo(v **types.GpuInfo, value interface{}) error { +func awsAwsjson10_deserializeDocumentIdleUtilizationMetric(v **types.IdleUtilizationMetric, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6787,18 +7733,65 @@ func awsAwsjson10_deserializeDocumentGpuInfo(v **types.GpuInfo, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GpuInfo + var sv *types.IdleUtilizationMetric if *v == nil { - sv = &types.GpuInfo{} + sv = &types.IdleUtilizationMetric{} } else { sv = *v } for key, value := range shape { switch key { - case "gpus": - if err := awsAwsjson10_deserializeDocumentGpus(&sv.Gpus, value); err != nil { - return err + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IdleMetricName to be of type string, got %T instead", value) + } + sv.Name = types.IdleMetricName(jtv) + } + + case "statistic": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MetricStatistic to be of type string, got %T instead", value) + } + sv.Statistic = types.MetricStatistic(jtv) + } + + case "value": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Value = 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 = f64 + + default: + return fmt.Errorf("expected MetricValue to be a JSON Number, got %T instead", value) + + } } default: @@ -6810,7 +7803,7 @@ func awsAwsjson10_deserializeDocumentGpuInfo(v **types.GpuInfo, value interface{ return nil } -func awsAwsjson10_deserializeDocumentGpus(v *[]types.Gpu, value interface{}) error { +func awsAwsjson10_deserializeDocumentIdleUtilizationMetrics(v *[]types.IdleUtilizationMetric, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6823,17 +7816,17 @@ func awsAwsjson10_deserializeDocumentGpus(v *[]types.Gpu, value interface{}) err return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.Gpu + var cv []types.IdleUtilizationMetric if *v == nil { - cv = []types.Gpu{} + cv = []types.IdleUtilizationMetric{} } else { cv = *v } for _, value := range shape { - var col types.Gpu + var col types.IdleUtilizationMetric destAddr := &col - if err := awsAwsjson10_deserializeDocumentGpu(&destAddr, value); err != nil { + if err := awsAwsjson10_deserializeDocumentIdleUtilizationMetric(&destAddr, value); err != nil { return err } col = *destAddr @@ -9723,11 +10716,29 @@ func awsAwsjson10_deserializeDocumentRDSDBRecommendation(v **types.RDSDBRecommen sv.CurrentDBInstanceClass = ptr.String(jtv) } + case "currentInstancePerformanceRisk": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RDSCurrentInstancePerformanceRisk to be of type string, got %T instead", value) + } + sv.CurrentInstancePerformanceRisk = types.RDSCurrentInstancePerformanceRisk(jtv) + } + case "currentStorageConfiguration": if err := awsAwsjson10_deserializeDocumentDBStorageConfiguration(&sv.CurrentStorageConfiguration, value); err != nil { return err } + case "dbClusterIdentifier": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DBClusterIdentifier to be of type string, got %T instead", value) + } + sv.DbClusterIdentifier = ptr.String(jtv) + } + case "effectiveRecommendationPreferences": if err := awsAwsjson10_deserializeDocumentRDSEffectiveRecommendationPreferences(&sv.EffectiveRecommendationPreferences, value); err != nil { return err @@ -9829,6 +10840,19 @@ func awsAwsjson10_deserializeDocumentRDSDBRecommendation(v **types.RDSDBRecommen } } + case "promotionTier": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected PromotionTier to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.PromotionTier = ptr.Int32(int32(i64)) + } + case "resourceArn": if value != nil { jtv, ok := value.(string) @@ -11137,11 +12161,26 @@ func awsAwsjson10_deserializeDocumentRecommendationSummary(v **types.Recommendat sv.AccountId = ptr.String(jtv) } + case "aggregatedSavingsOpportunity": + if err := awsAwsjson10_deserializeDocumentSavingsOpportunity(&sv.AggregatedSavingsOpportunity, value); err != nil { + return err + } + case "currentPerformanceRiskRatings": if err := awsAwsjson10_deserializeDocumentCurrentPerformanceRiskRatings(&sv.CurrentPerformanceRiskRatings, value); err != nil { return err } + case "idleSavingsOpportunity": + if err := awsAwsjson10_deserializeDocumentSavingsOpportunity(&sv.IdleSavingsOpportunity, value); err != nil { + return err + } + + case "idleSummaries": + if err := awsAwsjson10_deserializeDocumentIdleSummaries(&sv.IdleSummaries, value); err != nil { + return err + } + case "inferredWorkloadSavings": if err := awsAwsjson10_deserializeDocumentInferredWorkloadSavings(&sv.InferredWorkloadSavings, value); err != nil { return err @@ -12752,6 +13791,51 @@ func awsAwsjson10_deserializeOpDocumentExportECSServiceRecommendationsOutput(v * return nil } +func awsAwsjson10_deserializeOpDocumentExportIdleRecommendationsOutput(v **ExportIdleRecommendationsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ExportIdleRecommendationsOutput + if *v == nil { + sv = &ExportIdleRecommendationsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "jobId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected JobId to be of type string, got %T instead", value) + } + sv.JobId = ptr.String(jtv) + } + + case "s3Destination": + if err := awsAwsjson10_deserializeDocumentS3Destination(&sv.S3Destination, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson10_deserializeOpDocumentExportLambdaFunctionRecommendationsOutput(v **ExportLambdaFunctionRecommendationsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -13355,6 +14439,56 @@ func awsAwsjson10_deserializeOpDocumentGetEnrollmentStatusOutput(v **GetEnrollme return nil } +func awsAwsjson10_deserializeOpDocumentGetIdleRecommendationsOutput(v **GetIdleRecommendationsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GetIdleRecommendationsOutput + if *v == nil { + sv = &GetIdleRecommendationsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "errors": + if err := awsAwsjson10_deserializeDocumentIdleRecommendationErrors(&sv.Errors, value); err != nil { + return err + } + + case "idleRecommendations": + if err := awsAwsjson10_deserializeDocumentIdleRecommendations(&sv.IdleRecommendations, 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_deserializeOpDocumentGetLambdaFunctionRecommendationsOutput(v **GetLambdaFunctionRecommendationsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/computeoptimizer/generated.json b/service/computeoptimizer/generated.json index c4c5c9a5c18..c5e2fe90ac0 100644 --- a/service/computeoptimizer/generated.json +++ b/service/computeoptimizer/generated.json @@ -14,6 +14,7 @@ "api_op_ExportEBSVolumeRecommendations.go", "api_op_ExportEC2InstanceRecommendations.go", "api_op_ExportECSServiceRecommendations.go", + "api_op_ExportIdleRecommendations.go", "api_op_ExportLambdaFunctionRecommendations.go", "api_op_ExportLicenseRecommendations.go", "api_op_ExportRDSDatabaseRecommendations.go", @@ -26,6 +27,7 @@ "api_op_GetEffectiveRecommendationPreferences.go", "api_op_GetEnrollmentStatus.go", "api_op_GetEnrollmentStatusesForOrganization.go", + "api_op_GetIdleRecommendations.go", "api_op_GetLambdaFunctionRecommendations.go", "api_op_GetLicenseRecommendations.go", "api_op_GetRDSDatabaseRecommendationProjectedMetrics.go", diff --git a/service/computeoptimizer/go.mod b/service/computeoptimizer/go.mod index 4dbd5653732..48a0ee81fff 100644 --- a/service/computeoptimizer/go.mod +++ b/service/computeoptimizer/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/computeoptimizer go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/computeoptimizer/go.sum b/service/computeoptimizer/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/computeoptimizer/go.sum +++ b/service/computeoptimizer/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/computeoptimizer/go_module_metadata.go b/service/computeoptimizer/go_module_metadata.go index 84c18a0cf5e..f247250131f 100644 --- a/service/computeoptimizer/go_module_metadata.go +++ b/service/computeoptimizer/go_module_metadata.go @@ -3,4 +3,4 @@ package computeoptimizer // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.39.5" +const goModuleVersion = "1.40.0" diff --git a/service/computeoptimizer/serializers.go b/service/computeoptimizer/serializers.go index 19ffa4d982b..2d555fc12a6 100644 --- a/service/computeoptimizer/serializers.go +++ b/service/computeoptimizer/serializers.go @@ -383,6 +383,67 @@ func (m *awsAwsjson10_serializeOpExportECSServiceRecommendations) HandleSerializ return next.HandleSerialize(ctx, in) } +type awsAwsjson10_serializeOpExportIdleRecommendations struct { +} + +func (*awsAwsjson10_serializeOpExportIdleRecommendations) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpExportIdleRecommendations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*ExportIdleRecommendationsInput) + _ = 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("ComputeOptimizerService.ExportIdleRecommendations") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentExportIdleRecommendationsInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + type awsAwsjson10_serializeOpExportLambdaFunctionRecommendations struct { } @@ -1115,6 +1176,67 @@ func (m *awsAwsjson10_serializeOpGetEnrollmentStatusesForOrganization) HandleSer return next.HandleSerialize(ctx, in) } +type awsAwsjson10_serializeOpGetIdleRecommendations struct { +} + +func (*awsAwsjson10_serializeOpGetIdleRecommendations) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpGetIdleRecommendations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*GetIdleRecommendationsInput) + _ = 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("ComputeOptimizerService.GetIdleRecommendations") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentGetIdleRecommendationsInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + type awsAwsjson10_serializeOpGetLambdaFunctionRecommendations struct { } @@ -1770,6 +1892,17 @@ func awsAwsjson10_serializeDocumentExportableECSServiceFields(v []types.Exportab return nil } +func awsAwsjson10_serializeDocumentExportableIdleFields(v []types.ExportableIdleField, 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 awsAwsjson10_serializeDocumentExportableInstanceFields(v []types.ExportableInstanceField, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -1891,6 +2024,38 @@ func awsAwsjson10_serializeDocumentFunctionArns(v []string, value smithyjson.Val return nil } +func awsAwsjson10_serializeDocumentIdleRecommendationFilter(v *types.IdleRecommendationFilter, 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 := awsAwsjson10_serializeDocumentFilterValues(v.Values, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson10_serializeDocumentIdleRecommendationFilters(v []types.IdleRecommendationFilter, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsAwsjson10_serializeDocumentIdleRecommendationFilter(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsAwsjson10_serializeDocumentInstanceArns(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -2009,6 +2174,23 @@ func awsAwsjson10_serializeDocumentLicenseRecommendationFilters(v []types.Licens return nil } +func awsAwsjson10_serializeDocumentOrderBy(v *types.OrderBy, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.Dimension) > 0 { + ok := object.Key("dimension") + ok.String(string(v.Dimension)) + } + + if len(v.Order) > 0 { + ok := object.Key("order") + ok.String(string(v.Order)) + } + + return nil +} + func awsAwsjson10_serializeDocumentPreferredResource(v *types.PreferredResource, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2466,6 +2648,51 @@ func awsAwsjson10_serializeOpDocumentExportECSServiceRecommendationsInput(v *Exp return nil } +func awsAwsjson10_serializeOpDocumentExportIdleRecommendationsInput(v *ExportIdleRecommendationsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AccountIds != nil { + ok := object.Key("accountIds") + if err := awsAwsjson10_serializeDocumentAccountIds(v.AccountIds, ok); err != nil { + return err + } + } + + if v.FieldsToExport != nil { + ok := object.Key("fieldsToExport") + if err := awsAwsjson10_serializeDocumentExportableIdleFields(v.FieldsToExport, ok); err != nil { + return err + } + } + + if len(v.FileFormat) > 0 { + ok := object.Key("fileFormat") + ok.String(string(v.FileFormat)) + } + + if v.Filters != nil { + ok := object.Key("filters") + if err := awsAwsjson10_serializeDocumentIdleRecommendationFilters(v.Filters, ok); err != nil { + return err + } + } + + if v.IncludeMemberAccounts { + ok := object.Key("includeMemberAccounts") + ok.Boolean(v.IncludeMemberAccounts) + } + + if v.S3DestinationConfig != nil { + ok := object.Key("s3DestinationConfig") + if err := awsAwsjson10_serializeDocumentS3DestinationConfig(v.S3DestinationConfig, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson10_serializeOpDocumentExportLambdaFunctionRecommendationsInput(v *ExportLambdaFunctionRecommendationsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2888,6 +3115,51 @@ func awsAwsjson10_serializeOpDocumentGetEnrollmentStatusInput(v *GetEnrollmentSt return nil } +func awsAwsjson10_serializeOpDocumentGetIdleRecommendationsInput(v *GetIdleRecommendationsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AccountIds != nil { + ok := object.Key("accountIds") + if err := awsAwsjson10_serializeDocumentAccountIds(v.AccountIds, ok); err != nil { + return err + } + } + + if v.Filters != nil { + ok := object.Key("filters") + if err := awsAwsjson10_serializeDocumentIdleRecommendationFilters(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.OrderBy != nil { + ok := object.Key("orderBy") + if err := awsAwsjson10_serializeDocumentOrderBy(v.OrderBy, ok); err != nil { + return err + } + } + + if v.ResourceArns != nil { + ok := object.Key("resourceArns") + if err := awsAwsjson10_serializeDocumentResourceArns(v.ResourceArns, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson10_serializeOpDocumentGetLambdaFunctionRecommendationsInput(v *GetLambdaFunctionRecommendationsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/computeoptimizer/snapshot/api_op_ExportIdleRecommendations.go.snap b/service/computeoptimizer/snapshot/api_op_ExportIdleRecommendations.go.snap new file mode 100644 index 00000000000..be6fa89ede1 --- /dev/null +++ b/service/computeoptimizer/snapshot/api_op_ExportIdleRecommendations.go.snap @@ -0,0 +1,41 @@ +ExportIdleRecommendations + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/computeoptimizer/snapshot/api_op_GetIdleRecommendations.go.snap b/service/computeoptimizer/snapshot/api_op_GetIdleRecommendations.go.snap new file mode 100644 index 00000000000..e02010fa89d --- /dev/null +++ b/service/computeoptimizer/snapshot/api_op_GetIdleRecommendations.go.snap @@ -0,0 +1,40 @@ +GetIdleRecommendations + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/computeoptimizer/snapshot_test.go b/service/computeoptimizer/snapshot_test.go index 8d48c9dfc57..51b79c15910 100644 --- a/service/computeoptimizer/snapshot_test.go +++ b/service/computeoptimizer/snapshot_test.go @@ -134,6 +134,18 @@ func TestCheckSnapshot_ExportECSServiceRecommendations(t *testing.T) { } } +func TestCheckSnapshot_ExportIdleRecommendations(t *testing.T) { + svc := New(Options{}) + _, err := svc.ExportIdleRecommendations(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "ExportIdleRecommendations") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_ExportLambdaFunctionRecommendations(t *testing.T) { svc := New(Options{}) _, err := svc.ExportLambdaFunctionRecommendations(context.Background(), nil, func(o *Options) { @@ -278,6 +290,18 @@ func TestCheckSnapshot_GetEnrollmentStatusesForOrganization(t *testing.T) { } } +func TestCheckSnapshot_GetIdleRecommendations(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetIdleRecommendations(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "GetIdleRecommendations") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_GetLambdaFunctionRecommendations(t *testing.T) { svc := New(Options{}) _, err := svc.GetLambdaFunctionRecommendations(context.Background(), nil, func(o *Options) { @@ -445,6 +469,18 @@ func TestUpdateSnapshot_ExportECSServiceRecommendations(t *testing.T) { } } +func TestUpdateSnapshot_ExportIdleRecommendations(t *testing.T) { + svc := New(Options{}) + _, err := svc.ExportIdleRecommendations(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "ExportIdleRecommendations") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_ExportLambdaFunctionRecommendations(t *testing.T) { svc := New(Options{}) _, err := svc.ExportLambdaFunctionRecommendations(context.Background(), nil, func(o *Options) { @@ -589,6 +625,18 @@ func TestUpdateSnapshot_GetEnrollmentStatusesForOrganization(t *testing.T) { } } +func TestUpdateSnapshot_GetIdleRecommendations(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetIdleRecommendations(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "GetIdleRecommendations") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_GetLambdaFunctionRecommendations(t *testing.T) { svc := New(Options{}) _, err := svc.GetLambdaFunctionRecommendations(context.Background(), nil, func(o *Options) { diff --git a/service/computeoptimizer/types/enums.go b/service/computeoptimizer/types/enums.go index ba42f4cae44..e1e4154ec96 100644 --- a/service/computeoptimizer/types/enums.go +++ b/service/computeoptimizer/types/enums.go @@ -145,6 +145,25 @@ func (CustomizableMetricThreshold) Values() []CustomizableMetricThreshold { } } +type Dimension string + +// Enum values for Dimension +const ( + DimensionSavingsValue Dimension = "SavingsValue" + DimensionSavingsValueAfterDiscount Dimension = "SavingsValueAfterDiscount" +) + +// Values returns all known values for Dimension. 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 (Dimension) Values() []Dimension { + return []Dimension{ + "SavingsValue", + "SavingsValueAfterDiscount", + } +} + type EBSFilterName string // Enum values for EBSFilterName @@ -627,6 +646,61 @@ func (ExportableECSServiceField) Values() []ExportableECSServiceField { } } +type ExportableIdleField string + +// Enum values for ExportableIdleField +const ( + ExportableIdleFieldAccountId ExportableIdleField = "AccountId" + ExportableIdleFieldResourceArn ExportableIdleField = "ResourceArn" + ExportableIdleFieldResourceId ExportableIdleField = "ResourceId" + ExportableIdleFieldResourceType ExportableIdleField = "ResourceType" + ExportableIdleFieldLastRefreshTimestamp ExportableIdleField = "LastRefreshTimestamp" + ExportableIdleFieldLookbackPeriodInDays ExportableIdleField = "LookbackPeriodInDays" + ExportableIdleFieldSavingsOpportunity ExportableIdleField = "SavingsOpportunity" + ExportableIdleFieldSavingsOpportunityAfterDiscount ExportableIdleField = "SavingsOpportunityAfterDiscount" + ExportableIdleFieldUtilizationMetricsCpuMaximum ExportableIdleField = "UtilizationMetricsCpuMaximum" + ExportableIdleFieldUtilizationMetricsMemoryMaximum ExportableIdleField = "UtilizationMetricsMemoryMaximum" + ExportableIdleFieldUtilizationMetricsNetworkOutBytesPerSecondMaximum ExportableIdleField = "UtilizationMetricsNetworkOutBytesPerSecondMaximum" + ExportableIdleFieldUtilizationMetricsNetworkInBytesPerSecondMaximum ExportableIdleField = "UtilizationMetricsNetworkInBytesPerSecondMaximum" + ExportableIdleFieldUtilizationMetricsDatabaseConnectionsMaximum ExportableIdleField = "UtilizationMetricsDatabaseConnectionsMaximum" + ExportableIdleFieldUtilizationMetricsEbsVolumeReadIopsMaximum ExportableIdleField = "UtilizationMetricsEBSVolumeReadIOPSMaximum" + ExportableIdleFieldUtilizationMetricsEbsVolumeWriteIopsMaximum ExportableIdleField = "UtilizationMetricsEBSVolumeWriteIOPSMaximum" + ExportableIdleFieldUtilizationMetricsVolumeReadOpsPerSecondMaximum ExportableIdleField = "UtilizationMetricsVolumeReadOpsPerSecondMaximum" + ExportableIdleFieldUtilizationMetricsVolumeWriteOpsPerSecondMaximum ExportableIdleField = "UtilizationMetricsVolumeWriteOpsPerSecondMaximum" + ExportableIdleFieldFinding ExportableIdleField = "Finding" + ExportableIdleFieldFindingDescription ExportableIdleField = "FindingDescription" + ExportableIdleFieldTags ExportableIdleField = "Tags" +) + +// Values returns all known values for ExportableIdleField. 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 (ExportableIdleField) Values() []ExportableIdleField { + return []ExportableIdleField{ + "AccountId", + "ResourceArn", + "ResourceId", + "ResourceType", + "LastRefreshTimestamp", + "LookbackPeriodInDays", + "SavingsOpportunity", + "SavingsOpportunityAfterDiscount", + "UtilizationMetricsCpuMaximum", + "UtilizationMetricsMemoryMaximum", + "UtilizationMetricsNetworkOutBytesPerSecondMaximum", + "UtilizationMetricsNetworkInBytesPerSecondMaximum", + "UtilizationMetricsDatabaseConnectionsMaximum", + "UtilizationMetricsEBSVolumeReadIOPSMaximum", + "UtilizationMetricsEBSVolumeWriteIOPSMaximum", + "UtilizationMetricsVolumeReadOpsPerSecondMaximum", + "UtilizationMetricsVolumeWriteOpsPerSecondMaximum", + "Finding", + "FindingDescription", + "Tags", + } +} + type ExportableInstanceField string // Enum values for ExportableInstanceField @@ -938,6 +1012,7 @@ const ( ExportableRDSDBFieldCurrentInstanceOnDemandHourlyPrice ExportableRDSDBField = "CurrentInstanceOnDemandHourlyPrice" ExportableRDSDBFieldCurrentStorageOnDemandMonthlyPrice ExportableRDSDBField = "CurrentStorageOnDemandMonthlyPrice" ExportableRDSDBFieldLookbackPeriodInDays ExportableRDSDBField = "LookbackPeriodInDays" + ExportableRDSDBFieldCurrentInstancePerformanceRisk ExportableRDSDBField = "CurrentInstancePerformanceRisk" ExportableRDSDBFieldUtilizationMetricsCpuMaximum ExportableRDSDBField = "UtilizationMetricsCpuMaximum" ExportableRDSDBFieldUtilizationMetricsMemoryMaximum ExportableRDSDBField = "UtilizationMetricsMemoryMaximum" ExportableRDSDBFieldUtilizationMetricsEbsVolumeStorageSpaceUtilizationMaximum ExportableRDSDBField = "UtilizationMetricsEBSVolumeStorageSpaceUtilizationMaximum" @@ -948,6 +1023,14 @@ const ( ExportableRDSDBFieldUtilizationMetricsEbsVolumeReadThroughputMaximum ExportableRDSDBField = "UtilizationMetricsEBSVolumeReadThroughputMaximum" ExportableRDSDBFieldUtilizationMetricsEbsVolumeWriteThroughputMaximum ExportableRDSDBField = "UtilizationMetricsEBSVolumeWriteThroughputMaximum" ExportableRDSDBFieldUtilizationMetricsDatabaseConnectionsMaximum ExportableRDSDBField = "UtilizationMetricsDatabaseConnectionsMaximum" + ExportableRDSDBFieldUtilizationMetricsStorageNetworkReceiveThroughputMaximum ExportableRDSDBField = "UtilizationMetricsStorageNetworkReceiveThroughputMaximum" + ExportableRDSDBFieldUtilizationMetricsStorageNetworkTransmitThroughputMaximum ExportableRDSDBField = "UtilizationMetricsStorageNetworkTransmitThroughputMaximum" + ExportableRDSDBFieldUtilizationMetricsAuroraMemoryHealthStateMaximum ExportableRDSDBField = "UtilizationMetricsAuroraMemoryHealthStateMaximum" + ExportableRDSDBFieldUtilizationMetricsAuroraMemoryNumDeclinedSqlTotalMaximum ExportableRDSDBField = "UtilizationMetricsAuroraMemoryNumDeclinedSqlTotalMaximum" + ExportableRDSDBFieldUtilizationMetricsAuroraMemoryNumKillConnTotalMaximum ExportableRDSDBField = "UtilizationMetricsAuroraMemoryNumKillConnTotalMaximum" + ExportableRDSDBFieldUtilizationMetricsAuroraMemoryNumKillQueryTotalMaximum ExportableRDSDBField = "UtilizationMetricsAuroraMemoryNumKillQueryTotalMaximum" + ExportableRDSDBFieldUtilizationMetricsReadIopsEphemeralStorageMaximum ExportableRDSDBField = "UtilizationMetricsReadIOPSEphemeralStorageMaximum" + ExportableRDSDBFieldUtilizationMetricsWriteIopsEphemeralStorageMaximum ExportableRDSDBField = "UtilizationMetricsWriteIOPSEphemeralStorageMaximum" ExportableRDSDBFieldInstanceFinding ExportableRDSDBField = "InstanceFinding" ExportableRDSDBFieldInstanceFindingReasonCodes ExportableRDSDBField = "InstanceFindingReasonCodes" ExportableRDSDBFieldStorageFinding ExportableRDSDBField = "StorageFinding" @@ -982,6 +1065,8 @@ const ( ExportableRDSDBFieldEffectiveRecommendationPreferencesSavingsEstimationMode ExportableRDSDBField = "EffectiveRecommendationPreferencesSavingsEstimationMode" ExportableRDSDBFieldLastRefreshTimestamp ExportableRDSDBField = "LastRefreshTimestamp" ExportableRDSDBFieldTags ExportableRDSDBField = "Tags" + ExportableRDSDBFieldDbClusterIdentifier ExportableRDSDBField = "DBClusterIdentifier" + ExportableRDSDBFieldPromotionTier ExportableRDSDBField = "PromotionTier" ) // Values returns all known values for ExportableRDSDBField. Note that this can be @@ -1005,6 +1090,7 @@ func (ExportableRDSDBField) Values() []ExportableRDSDBField { "CurrentInstanceOnDemandHourlyPrice", "CurrentStorageOnDemandMonthlyPrice", "LookbackPeriodInDays", + "CurrentInstancePerformanceRisk", "UtilizationMetricsCpuMaximum", "UtilizationMetricsMemoryMaximum", "UtilizationMetricsEBSVolumeStorageSpaceUtilizationMaximum", @@ -1015,6 +1101,14 @@ func (ExportableRDSDBField) Values() []ExportableRDSDBField { "UtilizationMetricsEBSVolumeReadThroughputMaximum", "UtilizationMetricsEBSVolumeWriteThroughputMaximum", "UtilizationMetricsDatabaseConnectionsMaximum", + "UtilizationMetricsStorageNetworkReceiveThroughputMaximum", + "UtilizationMetricsStorageNetworkTransmitThroughputMaximum", + "UtilizationMetricsAuroraMemoryHealthStateMaximum", + "UtilizationMetricsAuroraMemoryNumDeclinedSqlTotalMaximum", + "UtilizationMetricsAuroraMemoryNumKillConnTotalMaximum", + "UtilizationMetricsAuroraMemoryNumKillQueryTotalMaximum", + "UtilizationMetricsReadIOPSEphemeralStorageMaximum", + "UtilizationMetricsWriteIOPSEphemeralStorageMaximum", "InstanceFinding", "InstanceFindingReasonCodes", "StorageFinding", @@ -1049,6 +1143,8 @@ func (ExportableRDSDBField) Values() []ExportableRDSDBField { "EffectiveRecommendationPreferencesSavingsEstimationMode", "LastRefreshTimestamp", "Tags", + "DBClusterIdentifier", + "PromotionTier", } } @@ -1296,6 +1392,104 @@ func (Idle) Values() []Idle { } } +type IdleFinding string + +// Enum values for IdleFinding +const ( + IdleFindingIdle IdleFinding = "Idle" + IdleFindingUnattached IdleFinding = "Unattached" +) + +// Values returns all known values for IdleFinding. 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 (IdleFinding) Values() []IdleFinding { + return []IdleFinding{ + "Idle", + "Unattached", + } +} + +type IdleMetricName string + +// Enum values for IdleMetricName +const ( + IdleMetricNameCpu IdleMetricName = "CPU" + IdleMetricNameMemory IdleMetricName = "Memory" + IdleMetricNameNetworkOutBytesPerSecond IdleMetricName = "NetworkOutBytesPerSecond" + IdleMetricNameNetworkInBytesPerSecond IdleMetricName = "NetworkInBytesPerSecond" + IdleMetricNameDatabaseConnections IdleMetricName = "DatabaseConnections" + IdleMetricNameEbsVolumeReadIops IdleMetricName = "EBSVolumeReadIOPS" + IdleMetricNameEbsVolumeWriteIops IdleMetricName = "EBSVolumeWriteIOPS" + IdleMetricNameVolumeReadOpsPerSecond IdleMetricName = "VolumeReadOpsPerSecond" + IdleMetricNameVolumeWriteOpsPerSecond IdleMetricName = "VolumeWriteOpsPerSecond" +) + +// Values returns all known values for IdleMetricName. 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 (IdleMetricName) Values() []IdleMetricName { + return []IdleMetricName{ + "CPU", + "Memory", + "NetworkOutBytesPerSecond", + "NetworkInBytesPerSecond", + "DatabaseConnections", + "EBSVolumeReadIOPS", + "EBSVolumeWriteIOPS", + "VolumeReadOpsPerSecond", + "VolumeWriteOpsPerSecond", + } +} + +type IdleRecommendationFilterName string + +// Enum values for IdleRecommendationFilterName +const ( + IdleRecommendationFilterNameFinding IdleRecommendationFilterName = "Finding" + IdleRecommendationFilterNameResourceType IdleRecommendationFilterName = "ResourceType" +) + +// Values returns all known values for IdleRecommendationFilterName. 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 (IdleRecommendationFilterName) Values() []IdleRecommendationFilterName { + return []IdleRecommendationFilterName{ + "Finding", + "ResourceType", + } +} + +type IdleRecommendationResourceType string + +// Enum values for IdleRecommendationResourceType +const ( + IdleRecommendationResourceTypeEc2Instance IdleRecommendationResourceType = "EC2Instance" + IdleRecommendationResourceTypeAutoScalingGroup IdleRecommendationResourceType = "AutoScalingGroup" + IdleRecommendationResourceTypeEbsVolume IdleRecommendationResourceType = "EBSVolume" + IdleRecommendationResourceTypeEcsService IdleRecommendationResourceType = "ECSService" + IdleRecommendationResourceTypeRdsDbInstance IdleRecommendationResourceType = "RDSDBInstance" +) + +// Values returns all known values for IdleRecommendationResourceType. 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 (IdleRecommendationResourceType) Values() []IdleRecommendationResourceType { + return []IdleRecommendationResourceType{ + "EC2Instance", + "AutoScalingGroup", + "EBSVolume", + "ECSService", + "RDSDBInstance", + } +} + type InferredWorkloadType string // Enum values for InferredWorkloadType @@ -1934,6 +2128,25 @@ func (MigrationEffort) Values() []MigrationEffort { } } +type Order string + +// Enum values for Order +const ( + OrderAsc Order = "Asc" + OrderDesc Order = "Desc" +) + +// Values returns all known values for Order. 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 (Order) Values() []Order { + return []Order{ + "Asc", + "Desc", + } +} + type PlatformDifference string // Enum values for PlatformDifference @@ -1978,6 +2191,30 @@ func (PreferredResourceName) Values() []PreferredResourceName { } } +type RDSCurrentInstancePerformanceRisk string + +// Enum values for RDSCurrentInstancePerformanceRisk +const ( + RDSCurrentInstancePerformanceRiskVeryLow RDSCurrentInstancePerformanceRisk = "VeryLow" + RDSCurrentInstancePerformanceRiskLow RDSCurrentInstancePerformanceRisk = "Low" + RDSCurrentInstancePerformanceRiskMedium RDSCurrentInstancePerformanceRisk = "Medium" + RDSCurrentInstancePerformanceRiskHigh RDSCurrentInstancePerformanceRisk = "High" +) + +// Values returns all known values for RDSCurrentInstancePerformanceRisk. 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 (RDSCurrentInstancePerformanceRisk) Values() []RDSCurrentInstancePerformanceRisk { + return []RDSCurrentInstancePerformanceRisk{ + "VeryLow", + "Low", + "Medium", + "High", + } +} + type RDSDBMetricName string // Enum values for RDSDBMetricName @@ -1992,6 +2229,14 @@ const ( RDSDBMetricNameEbsVolumeReadThroughput RDSDBMetricName = "EBSVolumeReadThroughput" RDSDBMetricNameEbsVolumeWriteThroughput RDSDBMetricName = "EBSVolumeWriteThroughput" RDSDBMetricNameDatabaseConnections RDSDBMetricName = "DatabaseConnections" + RDSDBMetricNameStorageNetworkReceiveThroughput RDSDBMetricName = "StorageNetworkReceiveThroughput" + RDSDBMetricNameStorageNetworkTransmitThroughput RDSDBMetricName = "StorageNetworkTransmitThroughput" + RDSDBMetricNameAuroraMemoryHealthState RDSDBMetricName = "AuroraMemoryHealthState" + RDSDBMetricNameAuroraMemoryNumDeclinedSql RDSDBMetricName = "AuroraMemoryNumDeclinedSql" + RDSDBMetricNameAuroraMemoryNumKillConnTotal RDSDBMetricName = "AuroraMemoryNumKillConnTotal" + RDSDBMetricNameAuroraMemoryNumKillQueryTotal RDSDBMetricName = "AuroraMemoryNumKillQueryTotal" + RDSDBMetricNameReadIopsEphemeralStorage RDSDBMetricName = "ReadIOPSEphemeralStorage" + RDSDBMetricNameWriteIopsEphemeralStorage RDSDBMetricName = "WriteIOPSEphemeralStorage" ) // Values returns all known values for RDSDBMetricName. Note that this can be @@ -2010,6 +2255,14 @@ func (RDSDBMetricName) Values() []RDSDBMetricName { "EBSVolumeReadThroughput", "EBSVolumeWriteThroughput", "DatabaseConnections", + "StorageNetworkReceiveThroughput", + "StorageNetworkTransmitThroughput", + "AuroraMemoryHealthState", + "AuroraMemoryNumDeclinedSql", + "AuroraMemoryNumKillConnTotal", + "AuroraMemoryNumKillQueryTotal", + "ReadIOPSEphemeralStorage", + "WriteIOPSEphemeralStorage", } } @@ -2085,15 +2338,20 @@ type RDSInstanceFindingReasonCode string // Enum values for RDSInstanceFindingReasonCode const ( - RDSInstanceFindingReasonCodeCpuOverProvisioned RDSInstanceFindingReasonCode = "CPUOverprovisioned" - RDSInstanceFindingReasonCodeNetworkBandwidthOverProvisioned RDSInstanceFindingReasonCode = "NetworkBandwidthOverprovisioned" - RDSInstanceFindingReasonCodeEbsIopsOverProvisioned RDSInstanceFindingReasonCode = "EBSIOPSOverprovisioned" - RDSInstanceFindingReasonCodeEbsThroughputOverProvisioned RDSInstanceFindingReasonCode = "EBSThroughputOverprovisioned" - RDSInstanceFindingReasonCodeCpuUnderProvisioned RDSInstanceFindingReasonCode = "CPUUnderprovisioned" - RDSInstanceFindingReasonCodeNetworkBandwidthUnderProvisioned RDSInstanceFindingReasonCode = "NetworkBandwidthUnderprovisioned" - RDSInstanceFindingReasonCodeEbsThroughputUnderProvisioned RDSInstanceFindingReasonCode = "EBSThroughputUnderprovisioned" - RDSInstanceFindingReasonCodeNewGenerationDbInstanceClassAvailable RDSInstanceFindingReasonCode = "NewGenerationDBInstanceClassAvailable" - RDSInstanceFindingReasonCodeNewEngineVersionAvailable RDSInstanceFindingReasonCode = "NewEngineVersionAvailable" + RDSInstanceFindingReasonCodeCpuOverProvisioned RDSInstanceFindingReasonCode = "CPUOverprovisioned" + RDSInstanceFindingReasonCodeNetworkBandwidthOverProvisioned RDSInstanceFindingReasonCode = "NetworkBandwidthOverprovisioned" + RDSInstanceFindingReasonCodeEbsIopsOverProvisioned RDSInstanceFindingReasonCode = "EBSIOPSOverprovisioned" + RDSInstanceFindingReasonCodeEbsIopsUnderProvisioned RDSInstanceFindingReasonCode = "EBSIOPSUnderprovisioned" + RDSInstanceFindingReasonCodeEbsThroughputOverProvisioned RDSInstanceFindingReasonCode = "EBSThroughputOverprovisioned" + RDSInstanceFindingReasonCodeCpuUnderProvisioned RDSInstanceFindingReasonCode = "CPUUnderprovisioned" + RDSInstanceFindingReasonCodeNetworkBandwidthUnderProvisioned RDSInstanceFindingReasonCode = "NetworkBandwidthUnderprovisioned" + RDSInstanceFindingReasonCodeEbsThroughputUnderProvisioned RDSInstanceFindingReasonCode = "EBSThroughputUnderprovisioned" + RDSInstanceFindingReasonCodeNewGenerationDbInstanceClassAvailable RDSInstanceFindingReasonCode = "NewGenerationDBInstanceClassAvailable" + RDSInstanceFindingReasonCodeNewEngineVersionAvailable RDSInstanceFindingReasonCode = "NewEngineVersionAvailable" + RDSInstanceFindingReasonCodeDbClusterWriterUnderProvisioned RDSInstanceFindingReasonCode = "DBClusterWriterUnderprovisioned" + RDSInstanceFindingReasonCodeMemoryUnderProvisioned RDSInstanceFindingReasonCode = "MemoryUnderprovisioned" + RDSInstanceFindingReasonCodeInstanceStorageReadIopsUnderProvisioned RDSInstanceFindingReasonCode = "InstanceStorageReadIOPSUnderprovisioned" + RDSInstanceFindingReasonCodeInstanceStorageWriteIopsUnderProvisioned RDSInstanceFindingReasonCode = "InstanceStorageWriteIOPSUnderprovisioned" ) // Values returns all known values for RDSInstanceFindingReasonCode. Note that @@ -2106,12 +2364,17 @@ func (RDSInstanceFindingReasonCode) Values() []RDSInstanceFindingReasonCode { "CPUOverprovisioned", "NetworkBandwidthOverprovisioned", "EBSIOPSOverprovisioned", + "EBSIOPSUnderprovisioned", "EBSThroughputOverprovisioned", "CPUUnderprovisioned", "NetworkBandwidthUnderprovisioned", "EBSThroughputUnderprovisioned", "NewGenerationDBInstanceClassAvailable", "NewEngineVersionAvailable", + "DBClusterWriterUnderprovisioned", + "MemoryUnderprovisioned", + "InstanceStorageReadIOPSUnderprovisioned", + "InstanceStorageWriteIOPSUnderprovisioned", } } @@ -2254,6 +2517,7 @@ const ( ResourceTypeEcsService ResourceType = "EcsService" ResourceTypeLicense ResourceType = "License" ResourceTypeRdsDbInstance ResourceType = "RdsDBInstance" + ResourceTypeIdle ResourceType = "Idle" ) // Values returns all known values for ResourceType. Note that this can be @@ -2270,6 +2534,7 @@ func (ResourceType) Values() []ResourceType { "EcsService", "License", "RdsDBInstance", + "Idle", } } diff --git a/service/computeoptimizer/types/types.go b/service/computeoptimizer/types/types.go index dd79df61806..fe0cd7d610e 100644 --- a/service/computeoptimizer/types/types.go +++ b/service/computeoptimizer/types/types.go @@ -1187,6 +1187,183 @@ type GpuInfo struct { noSmithyDocumentSerde } +// Describes the estimated monthly savings possible for idle resources by adopting +// Compute Optimizer recommendations. +type IdleEstimatedMonthlySavings struct { + + // The currency of the estimated monthly savings. + Currency Currency + + // The value of the estimated monthly savings for Idle resources. + Value float64 + + noSmithyDocumentSerde +} + +// Describes an Idle resource recommendation. +type IdleRecommendation struct { + + // The Amazon Web Services account ID of the idle resource. + AccountId *string + + // The finding classification of an idle resource. + Finding IdleFinding + + // A summary of the findings for the resource. + FindingDescription *string + + // The timestamp of when the idle resource recommendation was last generated. + LastRefreshTimestamp *time.Time + + // The number of days the idle resource utilization metrics were analyzed. + LookBackPeriodInDays float64 + + // The ARN of the current idle resource. + ResourceArn *string + + // The unique identifier for the resource. + ResourceId *string + + // The type of resource that is idle. + ResourceType IdleRecommendationResourceType + + // The savings opportunity for the idle resource. + SavingsOpportunity *IdleSavingsOpportunity + + // The savings opportunity for the idle resource after any applying discounts. + SavingsOpportunityAfterDiscounts *IdleSavingsOpportunityAfterDiscounts + + // A list of tags assigned to your idle resource recommendations. + Tags []Tag + + // An array of objects that describe the utilization metrics of the idle resource. + UtilizationMetrics []IdleUtilizationMetric + + noSmithyDocumentSerde +} + +// Returns of list of resources that doesn't have idle recommendations. +type IdleRecommendationError struct { + + // The error code. + Code *string + + // The ID of the error. + Identifier *string + + // The error message. + Message *string + + // The type of resource associated with the error. + ResourceType IdleRecommendationResourceType + + noSmithyDocumentSerde +} + +// Describes a filter that returns a more specific list of idle resource +// recommendations. +type IdleRecommendationFilter struct { + + // The name of the filter. + // + // Specify Finding to return recommendations with a specific finding + // classification. + // + // You can filter your idle resource recommendations by tag:key and tag-key tags. + // + // A tag:key is a key and value combination of a tag assigned to your idle + // resource recommendations. Use the tag key in the filter name and the tag value + // as the filter value. For example, to find all idle resource service + // recommendations that have a tag with the key of Owner and the value of TeamA , + // specify tag:Owner for the filter name and TeamA for the filter value. + // + // A tag-key is the key of a tag assigned to your idle resource recommendations. + // Use this filter to find all of your idle resource recommendations that have a + // tag with a specific key. This doesn’t consider the tag value. For example, you + // can find your idle resource service recommendations with a tag key value of + // Owner or without any tag keys assigned. + Name IdleRecommendationFilterName + + // The value of the filter. + Values []string + + noSmithyDocumentSerde +} + +// Describes the savings opportunity for idle resource recommendations. +type IdleSavingsOpportunity struct { + + // The estimated monthly savings possible by adopting Compute Optimizer's idle + // resource recommendations. + EstimatedMonthlySavings *IdleEstimatedMonthlySavings + + // The estimated monthly savings possible as a percentage of monthly cost by + // adopting Compute Optimizer's idle resource recommendations. + SavingsOpportunityPercentage float64 + + noSmithyDocumentSerde +} + +// Describes the savings opportunity for idle resource recommendations after +// applying discounts. +// +// Savings opportunity represents the estimated monthly savings after applying +// discounts. You can achieve this by implementing a given Compute Optimizer +// recommendation. +type IdleSavingsOpportunityAfterDiscounts struct { + + // The estimated monthly savings possible by adopting Compute Optimizer's idle + // resource recommendations. This includes any applicable discounts. + EstimatedMonthlySavings *IdleEstimatedMonthlySavings + + // The estimated monthly savings possible as a percentage of monthly cost by + // adopting Compute Optimizer's idle resource recommendations. This includes any + // applicable discounts. + SavingsOpportunityPercentage float64 + + noSmithyDocumentSerde +} + +// Describes the findings summary of the idle resources. +type IdleSummary struct { + + // The name of the finding group for the idle resources. + Name IdleFinding + + // The count of idle resources in the finding group. + Value float64 + + noSmithyDocumentSerde +} + +// Describes the utilization metric of an idle resource. +type IdleUtilizationMetric struct { + + // The name of the utilization metric. + Name IdleMetricName + + // The statistic of the utilization metric. + // + // The Compute Optimizer API, Command Line Interface (CLI), and SDKs return + // utilization metrics using only the Maximum statistic, which is the highest + // value observed during the specified period. + // + // The Compute Optimizer console displays graphs for some utilization metrics + // using the Average statistic, which is the value of Sum / SampleCount during the + // specified period. For more information, see [Viewing resource recommendations]in the Compute Optimizer User + // Guide. You can also get averaged utilization metric data for your resources + // using Amazon CloudWatch. For more information, see the [Amazon CloudWatch User Guide]. + // + // [Viewing resource recommendations]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/viewing-recommendations.html + // [Amazon CloudWatch User Guide]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/WhatIsCloudWatch.html + Statistic MetricStatistic + + // The value of the utilization metric. + Value float64 + + noSmithyDocumentSerde +} + // The estimated monthly savings after you adjust the configurations of your // // instances running on the inferred workload types to the recommended @@ -2151,6 +2328,18 @@ type MetricSource struct { noSmithyDocumentSerde } +// Describes how the recommendations are ordered. +type OrderBy struct { + + // The dimension values to sort the recommendations. + Dimension Dimension + + // The order to sort the recommendations. + Order Order + + noSmithyDocumentSerde +} + // The preference to control which resource type values are considered when // // generating rightsizing recommendations. You can specify this preference as a @@ -2342,9 +2531,15 @@ type RDSDBRecommendation struct { // The DB instance class of the current RDS instance. CurrentDBInstanceClass *string + // The performance risk for the current DB instance. + CurrentInstancePerformanceRisk RDSCurrentInstancePerformanceRisk + // The configuration of the current RDS storage. CurrentStorageConfiguration *DBStorageConfiguration + // The identifier for DB cluster. + DbClusterIdentifier *string + // Describes the effective recommendation preferences for Amazon RDS. EffectiveRecommendationPreferences *RDSEffectiveRecommendationPreferences @@ -2384,6 +2579,9 @@ type RDSDBRecommendation struct { // The number of days the Amazon RDS utilization metrics were analyzed. LookbackPeriodInDays float64 + // The promotion tier for the Aurora instance. + PromotionTier *int32 + // The ARN of the current Amazon RDS. // // The following is the format of the ARN: @@ -2793,9 +2991,50 @@ type RecommendationSummary struct { // The Amazon Web Services account ID of the recommendation summary. AccountId *string + // Describes the savings opportunity for recommendations of a given resource type + // or for the recommendation option of an individual resource. + // + // Savings opportunity represents the estimated monthly savings you can achieve by + // implementing a given Compute Optimizer recommendation. + // + // Savings opportunity data requires that you opt in to Cost Explorer, as well as + // activate Receive Amazon EC2 resource recommendations in the Cost Explorer + // preferences page. That creates a connection between Cost Explorer and Compute + // Optimizer. With this connection, Cost Explorer generates savings estimates + // considering the price of existing resources, the price of recommended resources, + // and historical usage data. Estimated monthly savings reflects the projected + // dollar savings associated with each of the recommendations generated. For more + // information, see [Enabling Cost Explorer]and [Optimizing your cost with Rightsizing Recommendations] in the Cost Management User Guide. + // + // [Optimizing your cost with Rightsizing Recommendations]: https://docs.aws.amazon.com/cost-management/latest/userguide/ce-rightsizing.html + // [Enabling Cost Explorer]: https://docs.aws.amazon.com/cost-management/latest/userguide/ce-enable.html + AggregatedSavingsOpportunity *SavingsOpportunity + // An object that describes the performance risk ratings for a given resource type. CurrentPerformanceRiskRatings *CurrentPerformanceRiskRatings + // Describes the savings opportunity for recommendations of a given resource type + // or for the recommendation option of an individual resource. + // + // Savings opportunity represents the estimated monthly savings you can achieve by + // implementing a given Compute Optimizer recommendation. + // + // Savings opportunity data requires that you opt in to Cost Explorer, as well as + // activate Receive Amazon EC2 resource recommendations in the Cost Explorer + // preferences page. That creates a connection between Cost Explorer and Compute + // Optimizer. With this connection, Cost Explorer generates savings estimates + // considering the price of existing resources, the price of recommended resources, + // and historical usage data. Estimated monthly savings reflects the projected + // dollar savings associated with each of the recommendations generated. For more + // information, see [Enabling Cost Explorer]and [Optimizing your cost with Rightsizing Recommendations] in the Cost Management User Guide. + // + // [Optimizing your cost with Rightsizing Recommendations]: https://docs.aws.amazon.com/cost-management/latest/userguide/ce-rightsizing.html + // [Enabling Cost Explorer]: https://docs.aws.amazon.com/cost-management/latest/userguide/ce-enable.html + IdleSavingsOpportunity *SavingsOpportunity + + // Describes the findings summary of the idle resources. + IdleSummaries []IdleSummary + // An array of objects that describes the estimated monthly saving amounts for // the instances running on the specified inferredWorkloadTypes . The array // contains the top five savings opportunites for the instances that run inferred @@ -3205,9 +3444,17 @@ type VolumeConfiguration struct { // The volume type. // - // This can be gp2 for General Purpose SSD, io1 or io2 for Provisioned IOPS SSD, - // st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard for Magnetic - // volumes. + // The volume types can be the following: + // + // - General Purpose SSD gp2 and gp3 + // + // - Provisioned IOPS SSD io1 , io2 , and io2 Block Express + // + // - Throughput Optimized HDD st1 + // + // - Cold HDD sc1 + // + // - Magnetic volumes standard VolumeType *string noSmithyDocumentSerde diff --git a/service/computeoptimizer/validators.go b/service/computeoptimizer/validators.go index d94eb62d70e..3fe2b5319f2 100644 --- a/service/computeoptimizer/validators.go +++ b/service/computeoptimizer/validators.go @@ -109,6 +109,26 @@ func (m *validateOpExportECSServiceRecommendations) HandleInitialize(ctx context return next.HandleInitialize(ctx, in) } +type validateOpExportIdleRecommendations struct { +} + +func (*validateOpExportIdleRecommendations) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpExportIdleRecommendations) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ExportIdleRecommendationsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpExportIdleRecommendationsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpExportLambdaFunctionRecommendations struct { } @@ -329,6 +349,10 @@ func addOpExportECSServiceRecommendationsValidationMiddleware(stack *middleware. return stack.Initialize.Add(&validateOpExportECSServiceRecommendations{}, middleware.After) } +func addOpExportIdleRecommendationsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpExportIdleRecommendations{}, middleware.After) +} + func addOpExportLambdaFunctionRecommendationsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpExportLambdaFunctionRecommendations{}, middleware.After) } @@ -447,6 +471,21 @@ func validateOpExportECSServiceRecommendationsInput(v *ExportECSServiceRecommend } } +func validateOpExportIdleRecommendationsInput(v *ExportIdleRecommendationsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ExportIdleRecommendationsInput"} + if v.S3DestinationConfig == nil { + invalidParams.Add(smithy.NewErrParamRequired("S3DestinationConfig")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpExportLambdaFunctionRecommendationsInput(v *ExportLambdaFunctionRecommendationsInput) error { if v == nil { return nil diff --git a/service/configservice/CHANGELOG.md b/service/configservice/CHANGELOG.md index 314c0bbc535..233b1b6cf1f 100644 --- a/service/configservice/CHANGELOG.md +++ b/service/configservice/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.50.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.50.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/configservice/go.mod b/service/configservice/go.mod index 1cf7351c775..a18ae50a517 100644 --- a/service/configservice/go.mod +++ b/service/configservice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/configservice go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/configservice/go.sum b/service/configservice/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/configservice/go.sum +++ b/service/configservice/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/configservice/go_module_metadata.go b/service/configservice/go_module_metadata.go index b165cd76796..1d57d024fea 100644 --- a/service/configservice/go_module_metadata.go +++ b/service/configservice/go_module_metadata.go @@ -3,4 +3,4 @@ package configservice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.50.5" +const goModuleVersion = "1.50.6" diff --git a/service/connect/CHANGELOG.md b/service/connect/CHANGELOG.md index e451f18248e..7806ab75737 100644 --- a/service/connect/CHANGELOG.md +++ b/service/connect/CHANGELOG.md @@ -1,3 +1,9 @@ +# v1.116.0 (2024-11-18) + +* **Feature**: Adds CreateContactFlowVersion and ListContactFlowVersions APIs to create and view the versions of a contact flow. +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.115.2 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/connect/api_op_CreateContactFlow.go b/service/connect/api_op_CreateContactFlow.go index 52797ce6989..48d12d51688 100644 --- a/service/connect/api_op_CreateContactFlow.go +++ b/service/connect/api_op_CreateContactFlow.go @@ -83,6 +83,9 @@ type CreateContactFlowOutput struct { // The identifier of the flow. ContactFlowId *string + // Indicates the checksum value of the flow content. + FlowContentSha256 *string + // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/connect/api_op_CreateContactFlowVersion.go b/service/connect/api_op_CreateContactFlowVersion.go new file mode 100644 index 00000000000..1517eb041b8 --- /dev/null +++ b/service/connect/api_op_CreateContactFlowVersion.go @@ -0,0 +1,182 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package connect + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Publishes a new version of the flow provided. Versions are immutable and +// monotonically increasing. If a version of the same flow content already exists, +// no new version is created and instead the existing version number is returned. +// If the FlowContentSha256 provided is different from the FlowContentSha256 of +// the $LATEST published flow content, then an error is returned. This API only +// supports creating versions for flows of type Campaign . +func (c *Client) CreateContactFlowVersion(ctx context.Context, params *CreateContactFlowVersionInput, optFns ...func(*Options)) (*CreateContactFlowVersionOutput, error) { + if params == nil { + params = &CreateContactFlowVersionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateContactFlowVersion", params, optFns, c.addOperationCreateContactFlowVersionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateContactFlowVersionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateContactFlowVersionInput struct { + + // The identifier of the flow. + // + // This member is required. + ContactFlowId *string + + // The identifier of the Amazon Connect instance. + // + // This member is required. + InstanceId *string + + // The description of the flow version. + Description *string + + // Indicates the checksum value of the flow content. + FlowContentSha256 *string + + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string + + // The Amazon Web Services Region where this resource was last modified. + LastModifiedTime *time.Time + + noSmithyDocumentSerde +} + +type CreateContactFlowVersionOutput struct { + + // The Amazon Resource Name (ARN) of the flow. + ContactFlowArn *string + + // The identifier of the flow version. + Version *int64 + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateContactFlowVersionMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateContactFlowVersion{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateContactFlowVersion{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateContactFlowVersion"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpCreateContactFlowVersionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateContactFlowVersion(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateContactFlowVersion(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateContactFlowVersion", + } +} diff --git a/service/connect/api_op_GetMetricDataV2.go b/service/connect/api_op_GetMetricDataV2.go index 669b653e700..3a5ad88095e 100644 --- a/service/connect/api_op_GetMetricDataV2.go +++ b/service/connect/api_op_GetMetricDataV2.go @@ -83,12 +83,13 @@ type GetMetricDataV2Input struct { // Valid filter keys: AGENT | AGENT_HIERARCHY_LEVEL_ONE | // AGENT_HIERARCHY_LEVEL_TWO | AGENT_HIERARCHY_LEVEL_THREE | // AGENT_HIERARCHY_LEVEL_FOUR | AGENT_HIERARCHY_LEVEL_FIVE | - // ANSWERING_MACHINE_DETECTION_STATUS | CAMPAIGN | CASE_TEMPLATE_ARN | - // CASE_STATUS | CHANNEL | contact/segmentAttributes/connect:Subtype | - // DISCONNECT_REASON | FEATURE | FLOW_TYPE | FLOWS_NEXT_RESOURCE_ID | - // FLOWS_NEXT_RESOURCE_QUEUE_ID | FLOWS_OUTCOME_TYPE | FLOWS_RESOURCE_ID | - // INITIATION_METHOD | RESOURCE_PUBLISHED_TIMESTAMP | ROUTING_PROFILE | - // ROUTING_STEP_EXPRESSION | QUEUE | Q_CONNECT_ENABLED | + // ANSWERING_MACHINE_DETECTION_STATUS | CAMPAIGN | CAMPAIGN_DELIVERY_EVENT_TYPE | + // CASE_TEMPLATE_ARN | CASE_STATUS | CHANNEL | + // contact/segmentAttributes/connect:Subtype | DISCONNECT_REASON | FEATURE | + // FLOW_TYPE | FLOWS_NEXT_RESOURCE_ID | FLOWS_NEXT_RESOURCE_QUEUE_ID | + // FLOWS_OUTCOME_TYPE | FLOWS_RESOURCE_ID | INITIATION_METHOD | + // RESOURCE_PUBLISHED_TIMESTAMP | ROUTING_PROFILE | ROUTING_STEP_EXPRESSION | + // QUEUE | Q_CONNECT_ENABLED | // // - Filter values: A maximum of 100 filter values are supported in a single // request. VOICE, CHAT, and TASK are valid filterValue for the CHANNEL filter @@ -280,12 +281,12 @@ type GetMetricDataV2Input struct { // // UI name: [Average conversation duration] // - // AVG_DIALS_PER_MINUTE This metric is available only for contacts analyzed by - // outbound campaigns analytics. + // AVG_DIALS_PER_MINUTE This metric is available only for outbound campaigns that + // use the agent assisted voice and automated voice delivery modes. // // Unit: Count // - // Valid groupings and filters: Campaign, Agent, Queue, Routing Profile + // Valid groupings and filters: Agent, Campaign, Queue, Routing Profile // // UI name: [Average dials per minute] // @@ -438,7 +439,8 @@ type GetMetricDataV2Input struct { // UI name: [Average customer talk time] // // AVG_WAIT_TIME_AFTER_CUSTOMER_CONNECTION This metric is available only for - // contacts analyzed by outbound campaigns analytics. + // outbound campaigns that use the agent assisted voice and automated voice + // delivery modes. // // Unit: Seconds // @@ -446,12 +448,12 @@ type GetMetricDataV2Input struct { // // UI name: [Average wait time after customer connection] // - // CAMPAIGN_CONTACTS_ABANDONED_AFTER_X This metric is available only for contacts - // analyzed by outbound campaigns analytics. + // CAMPAIGN_CONTACTS_ABANDONED_AFTER_X This metric is available only for outbound + // campaigns using the agent assisted voice and automated voice delivery modes. // // Unit: Count // - // Valid groupings and filters: Campaign, Agent + // Valid groupings and filters: Agent, Campaign // // Threshold: For ThresholdValue , enter any whole number from 1 to 604800 // (inclusive), in seconds. For Comparison , you must enter GT (for Greater than). @@ -459,17 +461,38 @@ type GetMetricDataV2Input struct { // UI name: [Campaign contacts abandoned after X] // // CAMPAIGN_CONTACTS_ABANDONED_AFTER_X_RATE This metric is available only for - // contacts analyzed by outbound campaigns analytics. + // outbound campaigns using the agent assisted voice and automated voice delivery + // modes. // // Unit: Percent // - // Valid groupings and filters: Campaign, Agent + // Valid groupings and filters: Agent, Campaign // // Threshold: For ThresholdValue , enter any whole number from 1 to 604800 // (inclusive), in seconds. For Comparison , you must enter GT (for Greater than). // // UI name: [Campaign contacts abandoned after X rate] // + // CAMPAIGN_INTERACTIONS This metric is available only for outbound campaigns + // using the email delivery mode. + // + // Unit: Count + // + // Valid metric filter key: CAMPAIGN_INTERACTION_EVENT_TYPE + // + // Valid groupings and filters: Campaign + // + // UI name: [Campaign interactions] + // + // CAMPAIGN_SEND_ATTEMPTS This metric is available only for outbound campaigns. + // + // Unit: Count + // + // Valid groupings and filters: Campaign, Channel, + // contact/segmentAttributes/connect:Subtype + // + // UI name: [Campaign send attempts] + // // CASES_CREATED Unit: Count // // Required filter key: CASE_TEMPLATE_ARN @@ -618,34 +641,45 @@ type GetMetricDataV2Input struct { // // UI name: [Current cases] // - // DELIVERY_ATTEMPTS This metric is available only for contacts analyzed by - // outbound campaigns analytics. + // DELIVERY_ATTEMPTS This metric is available only for outbound campaigns. // // Unit: Count // - // Valid metric filter key: ANSWERING_MACHINE_DETECTION_STATUS , DISCONNECT_REASON + // Valid metric filter key: ANSWERING_MACHINE_DETECTION_STATUS , + // CAMPAIGN_DELIVERY_EVENT_TYPE , DISCONNECT_REASON // - // Valid groupings and filters: Campaign, Agent, Queue, Routing Profile, Answering - // Machine Detection Status, Disconnect Reason + // Valid groupings and filters: Agent, Answering Machine Detection Status, + // Campaign, Campaign Delivery EventType, Channel, + // contact/segmentAttributes/connect:Subtype, Disconnect Reason, Queue, Routing + // Profile // // UI name: [Delivery attempts] // - // DELIVERY_ATTEMPT_DISPOSITION_RATE This metric is available only for contacts - // analyzed by outbound campaigns analytics, and with the answering machine - // detection enabled. + // Campaign Delivery EventType filter and grouping are only available for SMS and + // Email campaign delivery modes. Agent, Queue, Routing Profile, Answering Machine + // Detection Status and Disconnect Reason are only available for agent assisted + // voice and automated voice delivery modes. // - // Unit: Percent + // DELIVERY_ATTEMPT_DISPOSITION_RATE This metric is available only for outbound + // campaigns. Dispositions for the agent assisted voice and automated voice + // delivery modes are only available with answering machine detection enabled. // - // Valid metric filter key: ANSWERING_MACHINE_DETECTION_STATUS , DISCONNECT_REASON + // Unit: Percent // - // Valid groupings and filters: Campaign, Agent, Answering Machine Detection - // Status, Disconnect Reason + // Valid metric filter key: ANSWERING_MACHINE_DETECTION_STATUS , + // CAMPAIGN_DELIVERY_EVENT_TYPE , DISCONNECT_REASON // - // Answering Machine Detection Status and Disconnect Reason are valid filters but - // not valid groupings. + // Valid groupings and filters: Agent, Answering Machine Detection Status, + // Campaign, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, + // Queue, Routing Profile // // UI name: [Delivery attempt disposition rate] // + // Campaign Delivery Event Type filter and grouping are only available for SMS and + // Email campaign delivery modes. Agent, Queue, Routing Profile, Answering Machine + // Detection Status and Disconnect Reason are only available for agent assisted + // voice and automated voice delivery modes. + // // FLOWS_OUTCOME Unit: Count // // Valid groupings and filters: Channel, @@ -663,12 +697,13 @@ type GetMetricDataV2Input struct { // // UI name: [Flows started] // - // HUMAN_ANSWERED_CALLS This metric is available only for contacts analyzed by - // outbound campaigns analytics, and with the answering machine detection enabled. + // HUMAN_ANSWERED_CALLS This metric is available only for outbound campaigns. + // Dispositions for the agent assisted voice and automated voice delivery modes are + // only available with answering machine detection enabled. // // Unit: Count // - // Valid groupings and filters: Campaign, Agent + // Valid groupings and filters: Agent, Campaign // // UI name: [Human answered] // @@ -986,6 +1021,7 @@ type GetMetricDataV2Input struct { // [Contacts transferred out]: https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#contacts-transferred-out-historical // [Average contacts per case]: https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#average-contacts-case-historical // [Agent talk time percent]: https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#ttagent-historical + // [Campaign send attempts]: https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#campaign-send-attempts-historical // [Average resolution time]: https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#average-resolution-time-historical // [Flows outcome percentage]: https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#flows-outcome-percentage-historical // [Cases resolved]: https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#cases-resolved-historical @@ -1008,6 +1044,7 @@ type GetMetricDataV2Input struct { // [Contacts resolved in X]: https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#contacts-resolved-historical // [Cases resolved on first contact]: https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#cases-resolved-first-contact-historical // [Contact abandoned]: https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#contacts-abandoned-historical + // [Campaign interactions]: https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#campaign-interactions-historical // [Adherent time]: https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#adherent-time-historical // [Abandonment rate]: https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#abandonment-rate-historical // [Average talk time]: https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#average-talk-time-historical @@ -1063,8 +1100,9 @@ type GetMetricDataV2Input struct { // Valid grouping keys: AGENT | AGENT_HIERARCHY_LEVEL_ONE | // AGENT_HIERARCHY_LEVEL_TWO | AGENT_HIERARCHY_LEVEL_THREE | // AGENT_HIERARCHY_LEVEL_FOUR | AGENT_HIERARCHY_LEVEL_FIVE | - // ANSWERING_MACHINE_DETECTION_STATUS | CAMPAIGN | CASE_TEMPLATE_ARN | CASE_STATUS - // | CHANNEL | contact/segmentAttributes/connect:Subtype | DISCONNECT_REASON | + // ANSWERING_MACHINE_DETECTION_STATUS | CAMPAIGN | CAMPAIGN_DELIVERY_EVENT_TYPE | + // CASE_TEMPLATE_ARN | CASE_STATUS | CHANNEL | + // contact/segmentAttributes/connect:Subtype | DISCONNECT_REASON | // FLOWS_RESOURCE_ID | FLOWS_MODULE_RESOURCE_ID | FLOW_TYPE | FLOWS_OUTCOME_TYPE | // INITIATION_METHOD | Q_CONNECT_ENABLED | QUEUE | RESOURCE_PUBLISHED_TIMESTAMP | // ROUTING_PROFILE | ROUTING_STEP_EXPRESSION diff --git a/service/connect/api_op_ListContactFlowVersions.go b/service/connect/api_op_ListContactFlowVersions.go new file mode 100644 index 00000000000..c7df66e15cc --- /dev/null +++ b/service/connect/api_op_ListContactFlowVersions.go @@ -0,0 +1,270 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package connect + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/connect/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns all the available versions for the specified Amazon Connect instance +// and flow identifier. +func (c *Client) ListContactFlowVersions(ctx context.Context, params *ListContactFlowVersionsInput, optFns ...func(*Options)) (*ListContactFlowVersionsOutput, error) { + if params == nil { + params = &ListContactFlowVersionsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListContactFlowVersions", params, optFns, c.addOperationListContactFlowVersionsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListContactFlowVersionsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListContactFlowVersionsInput struct { + + // The identifier of the flow. + // + // This member is required. + ContactFlowId *string + + // The identifier of the Amazon Connect instance. + // + // This member is required. + InstanceId *string + + // The maximum number of results to return per page. The default MaxResult size is + // 100. + MaxResults *int32 + + // The token for the next set of results. Use the value returned in the previous + // response in the next request to retrieve the next set of results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListContactFlowVersionsOutput struct { + + // A list of flow version summaries. + ContactFlowVersionSummaryList []types.ContactFlowVersionSummary + + // If there are additional results, this is the token for the next set of results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListContactFlowVersionsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListContactFlowVersions{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListContactFlowVersions{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListContactFlowVersions"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpListContactFlowVersionsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListContactFlowVersions(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +// ListContactFlowVersionsPaginatorOptions is the paginator options for +// ListContactFlowVersions +type ListContactFlowVersionsPaginatorOptions struct { + // The maximum number of results to return per page. The default MaxResult size is + // 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 +} + +// ListContactFlowVersionsPaginator is a paginator for ListContactFlowVersions +type ListContactFlowVersionsPaginator struct { + options ListContactFlowVersionsPaginatorOptions + client ListContactFlowVersionsAPIClient + params *ListContactFlowVersionsInput + nextToken *string + firstPage bool +} + +// NewListContactFlowVersionsPaginator returns a new +// ListContactFlowVersionsPaginator +func NewListContactFlowVersionsPaginator(client ListContactFlowVersionsAPIClient, params *ListContactFlowVersionsInput, optFns ...func(*ListContactFlowVersionsPaginatorOptions)) *ListContactFlowVersionsPaginator { + if params == nil { + params = &ListContactFlowVersionsInput{} + } + + options := ListContactFlowVersionsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListContactFlowVersionsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListContactFlowVersionsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListContactFlowVersions page. +func (p *ListContactFlowVersionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListContactFlowVersionsOutput, 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 + + optFns = append([]func(*Options){ + addIsPaginatorUserAgent, + }, optFns...) + result, err := p.client.ListContactFlowVersions(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 +} + +// ListContactFlowVersionsAPIClient is a client that implements the +// ListContactFlowVersions operation. +type ListContactFlowVersionsAPIClient interface { + ListContactFlowVersions(context.Context, *ListContactFlowVersionsInput, ...func(*Options)) (*ListContactFlowVersionsOutput, error) +} + +var _ ListContactFlowVersionsAPIClient = (*Client)(nil) + +func newServiceMetadataMiddleware_opListContactFlowVersions(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListContactFlowVersions", + } +} diff --git a/service/connect/deserializers.go b/service/connect/deserializers.go index 903cb159794..aceb5117f59 100644 --- a/service/connect/deserializers.go +++ b/service/connect/deserializers.go @@ -3428,6 +3428,15 @@ func awsRestjson1_deserializeOpDocumentCreateContactFlowOutput(v **CreateContact sv.ContactFlowId = ptr.String(jtv) } + case "FlowContentSha256": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FlowContentSha256 to be of type string, got %T instead", value) + } + sv.FlowContentSha256 = ptr.String(jtv) + } + default: _, _ = key, value @@ -3629,6 +3638,193 @@ func awsRestjson1_deserializeOpDocumentCreateContactFlowModuleOutput(v **CreateC return nil } +type awsRestjson1_deserializeOpCreateContactFlowVersion struct { +} + +func (*awsRestjson1_deserializeOpCreateContactFlowVersion) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateContactFlowVersion) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorCreateContactFlowVersion(response, &metadata) + } + output := &CreateContactFlowVersionOutput{} + 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_deserializeOpDocumentCreateContactFlowVersionOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateContactFlowVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) + + case strings.EqualFold("InvalidParameterException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterException(response, errorBody) + + case strings.EqualFold("InvalidRequestException", errorCode): + return awsRestjson1_deserializeErrorInvalidRequestException(response, errorBody) + + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(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_deserializeOpDocumentCreateContactFlowVersionOutput(v **CreateContactFlowVersionOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateContactFlowVersionOutput + if *v == nil { + sv = &CreateContactFlowVersionOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ContactFlowArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.ContactFlowArn = ptr.String(jtv) + } + + case "Version": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected ResourceVersion to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Version = ptr.Int64(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + type awsRestjson1_deserializeOpCreateEvaluationForm struct { } @@ -19364,6 +19560,182 @@ func awsRestjson1_deserializeOpDocumentListContactFlowsOutput(v **ListContactFlo return nil } +type awsRestjson1_deserializeOpListContactFlowVersions struct { +} + +func (*awsRestjson1_deserializeOpListContactFlowVersions) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListContactFlowVersions) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorListContactFlowVersions(response, &metadata) + } + output := &ListContactFlowVersionsOutput{} + 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_deserializeOpDocumentListContactFlowVersionsOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListContactFlowVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) + + case strings.EqualFold("InvalidParameterException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterException(response, errorBody) + + case strings.EqualFold("InvalidRequestException", errorCode): + return awsRestjson1_deserializeErrorInvalidRequestException(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_deserializeOpDocumentListContactFlowVersionsOutput(v **ListContactFlowVersionsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListContactFlowVersionsOutput + if *v == nil { + sv = &ListContactFlowVersionsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ContactFlowVersionSummaryList": + if err := awsRestjson1_deserializeDocumentContactFlowVersionSummaryList(&sv.ContactFlowVersionSummaryList, 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_deserializeOpListContactReferences struct { } @@ -42032,6 +42404,15 @@ func awsRestjson1_deserializeDocumentContactFlow(v **types.ContactFlow, value in sv.Description = ptr.String(jtv) } + case "FlowContentSha256": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FlowContentSha256 to be of type string, got %T instead", value) + } + sv.FlowContentSha256 = ptr.String(jtv) + } + case "Id": if value != nil { jtv, ok := value.(string) @@ -42041,6 +42422,40 @@ func awsRestjson1_deserializeDocumentContactFlow(v **types.ContactFlow, value in sv.Id = ptr.String(jtv) } + case "IsDefault": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.IsDefault = jtv + } + + case "LastModifiedRegion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RegionName to be of type string, got %T instead", value) + } + sv.LastModifiedRegion = 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 "Name": if value != nil { jtv, ok := value.(string) @@ -42082,6 +42497,28 @@ func awsRestjson1_deserializeDocumentContactFlow(v **types.ContactFlow, value in sv.Type = types.ContactFlowType(jtv) } + case "Version": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected ResourceVersion to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Version = ptr.Int64(i64) + } + + case "VersionDescription": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ContactFlowDescription to be of type string, got %T instead", value) + } + sv.VersionDescription = ptr.String(jtv) + } + default: _, _ = key, value @@ -42518,6 +42955,102 @@ func awsRestjson1_deserializeDocumentContactFlowSummaryList(v *[]types.ContactFl return nil } +func awsRestjson1_deserializeDocumentContactFlowVersionSummary(v **types.ContactFlowVersionSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.ContactFlowVersionSummary + if *v == nil { + sv = &types.ContactFlowVersionSummary{} + } 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 ARN to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "Version": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected ResourceVersion to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Version = ptr.Int64(i64) + } + + case "VersionDescription": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ContactFlowDescription to be of type string, got %T instead", value) + } + sv.VersionDescription = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentContactFlowVersionSummaryList(v *[]types.ContactFlowVersionSummary, 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.ContactFlowVersionSummary + if *v == nil { + cv = []types.ContactFlowVersionSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ContactFlowVersionSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentContactFlowVersionSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentContactNotFoundException(v **types.ContactNotFoundException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/connect/generated.json b/service/connect/generated.json index f040fc22060..3f99662b1c3 100644 --- a/service/connect/generated.json +++ b/service/connect/generated.json @@ -33,6 +33,7 @@ "api_op_CreateAgentStatus.go", "api_op_CreateContactFlow.go", "api_op_CreateContactFlowModule.go", + "api_op_CreateContactFlowVersion.go", "api_op_CreateEvaluationForm.go", "api_op_CreateHoursOfOperation.go", "api_op_CreateInstance.go", @@ -136,6 +137,7 @@ "api_op_ListBots.go", "api_op_ListContactEvaluations.go", "api_op_ListContactFlowModules.go", + "api_op_ListContactFlowVersions.go", "api_op_ListContactFlows.go", "api_op_ListContactReferences.go", "api_op_ListDefaultVocabularies.go", diff --git a/service/connect/go.mod b/service/connect/go.mod index f1068da0ba7..0e433ce17a6 100644 --- a/service/connect/go.mod +++ b/service/connect/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/connect go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/connect/go.sum b/service/connect/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/connect/go.sum +++ b/service/connect/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/connect/go_module_metadata.go b/service/connect/go_module_metadata.go index 56ea0178734..23dd0123027 100644 --- a/service/connect/go_module_metadata.go +++ b/service/connect/go_module_metadata.go @@ -3,4 +3,4 @@ package connect // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.115.2" +const goModuleVersion = "1.116.0" diff --git a/service/connect/serializers.go b/service/connect/serializers.go index 8cb3b8e7014..599a4bf58bf 100644 --- a/service/connect/serializers.go +++ b/service/connect/serializers.go @@ -2570,6 +2570,124 @@ func awsRestjson1_serializeOpDocumentCreateContactFlowModuleInput(v *CreateConta return nil } +type awsRestjson1_serializeOpCreateContactFlowVersion struct { +} + +func (*awsRestjson1_serializeOpCreateContactFlowVersion) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateContactFlowVersion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*CreateContactFlowVersionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/contact-flows/{InstanceId}/{ContactFlowId}/version") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsCreateContactFlowVersionInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateContactFlowVersionInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateContactFlowVersionInput(v *CreateContactFlowVersionInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ContactFlowId == nil || len(*v.ContactFlowId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ContactFlowId must not be empty")} + } + if v.ContactFlowId != nil { + if err := encoder.SetURI("ContactFlowId").String(*v.ContactFlowId); err != nil { + return err + } + } + + if v.InstanceId == nil || len(*v.InstanceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} + } + if v.InstanceId != nil { + if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateContactFlowVersionInput(v *CreateContactFlowVersionInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Description != nil { + ok := object.Key("Description") + ok.String(*v.Description) + } + + if v.FlowContentSha256 != nil { + ok := object.Key("FlowContentSha256") + ok.String(*v.FlowContentSha256) + } + + if v.LastModifiedRegion != nil { + ok := object.Key("LastModifiedRegion") + ok.String(*v.LastModifiedRegion) + } + + if v.LastModifiedTime != nil { + ok := object.Key("LastModifiedTime") + ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTime)) + } + + return nil +} + type awsRestjson1_serializeOpCreateEvaluationForm struct { } @@ -12041,6 +12159,94 @@ func awsRestjson1_serializeOpHttpBindingsListContactFlowsInput(v *ListContactFlo return nil } +type awsRestjson1_serializeOpListContactFlowVersions struct { +} + +func (*awsRestjson1_serializeOpListContactFlowVersions) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListContactFlowVersions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*ListContactFlowVersionsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/contact-flows/{InstanceId}/{ContactFlowId}/versions") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListContactFlowVersionsInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListContactFlowVersionsInput(v *ListContactFlowVersionsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ContactFlowId == nil || len(*v.ContactFlowId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ContactFlowId must not be empty")} + } + if v.ContactFlowId != nil { + if err := encoder.SetURI("ContactFlowId").String(*v.ContactFlowId); err != nil { + return err + } + } + + if v.InstanceId == nil || len(*v.InstanceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member InstanceId must not be empty")} + } + if v.InstanceId != nil { + if err := encoder.SetURI("InstanceId").String(*v.InstanceId); err != nil { + return err + } + } + + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + return nil +} + type awsRestjson1_serializeOpListContactReferences struct { } diff --git a/service/connect/snapshot/api_op_CreateContactFlowVersion.go.snap b/service/connect/snapshot/api_op_CreateContactFlowVersion.go.snap new file mode 100644 index 00000000000..483ac9bd481 --- /dev/null +++ b/service/connect/snapshot/api_op_CreateContactFlowVersion.go.snap @@ -0,0 +1,41 @@ +CreateContactFlowVersion + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/connect/snapshot/api_op_ListContactFlowVersions.go.snap b/service/connect/snapshot/api_op_ListContactFlowVersions.go.snap new file mode 100644 index 00000000000..1e9a80e5511 --- /dev/null +++ b/service/connect/snapshot/api_op_ListContactFlowVersions.go.snap @@ -0,0 +1,41 @@ +ListContactFlowVersions + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/connect/snapshot_test.go b/service/connect/snapshot_test.go index 47aacc93cf8..9384e24ec21 100644 --- a/service/connect/snapshot_test.go +++ b/service/connect/snapshot_test.go @@ -362,6 +362,18 @@ func TestCheckSnapshot_CreateContactFlowModule(t *testing.T) { } } +func TestCheckSnapshot_CreateContactFlowVersion(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateContactFlowVersion(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "CreateContactFlowVersion") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_CreateEvaluationForm(t *testing.T) { svc := New(Options{}) _, err := svc.CreateEvaluationForm(context.Background(), nil, func(o *Options) { @@ -1610,6 +1622,18 @@ func TestCheckSnapshot_ListContactFlows(t *testing.T) { } } +func TestCheckSnapshot_ListContactFlowVersions(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListContactFlowVersions(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "ListContactFlowVersions") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_ListContactReferences(t *testing.T) { svc := New(Options{}) _, err := svc.ListContactReferences(context.Background(), nil, func(o *Options) { @@ -3445,6 +3469,18 @@ func TestUpdateSnapshot_CreateContactFlowModule(t *testing.T) { } } +func TestUpdateSnapshot_CreateContactFlowVersion(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateContactFlowVersion(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "CreateContactFlowVersion") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_CreateEvaluationForm(t *testing.T) { svc := New(Options{}) _, err := svc.CreateEvaluationForm(context.Background(), nil, func(o *Options) { @@ -4693,6 +4729,18 @@ func TestUpdateSnapshot_ListContactFlows(t *testing.T) { } } +func TestUpdateSnapshot_ListContactFlowVersions(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListContactFlowVersions(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "ListContactFlowVersions") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_ListContactReferences(t *testing.T) { svc := New(Options{}) _, err := svc.ListContactReferences(context.Background(), nil, func(o *Options) { diff --git a/service/connect/types/enums.go b/service/connect/types/enums.go index b20dec0492a..5d076f38c6f 100644 --- a/service/connect/types/enums.go +++ b/service/connect/types/enums.go @@ -1050,6 +1050,7 @@ const ( IntegrationTypeWisdomAssistant IntegrationType = "WISDOM_ASSISTANT" IntegrationTypeWisdomKnowledgeBase IntegrationType = "WISDOM_KNOWLEDGE_BASE" IntegrationTypeWisdomQuickResponses IntegrationType = "WISDOM_QUICK_RESPONSES" + IntegrationTypeQMessageTemplates IntegrationType = "Q_MESSAGE_TEMPLATES" IntegrationTypeCasesDomain IntegrationType = "CASES_DOMAIN" IntegrationTypeApplication IntegrationType = "APPLICATION" IntegrationTypeFileScanner IntegrationType = "FILE_SCANNER" @@ -1067,6 +1068,7 @@ func (IntegrationType) Values() []IntegrationType { "WISDOM_ASSISTANT", "WISDOM_KNOWLEDGE_BASE", "WISDOM_QUICK_RESPONSES", + "Q_MESSAGE_TEMPLATES", "CASES_DOMAIN", "APPLICATION", "FILE_SCANNER", diff --git a/service/connect/types/types.go b/service/connect/types/types.go index 2d3f0c17b3d..e9ffebec636 100644 --- a/service/connect/types/types.go +++ b/service/connect/types/types.go @@ -1020,9 +1020,22 @@ type ContactFlow struct { // The description of the flow. Description *string + // Indicates the checksum value of the flow content. + FlowContentSha256 *string + // The identifier of the flow. Id *string + // Amazon Connect includes a set of default flows that have already been + // published. It uses them to power your contact center. + IsDefault bool + + // The region in which the contact flow was last modified + LastModifiedRegion *string + + // The time at which the contact flow was last modified. + LastModifiedTime *time.Time + // The name of the flow. Name *string @@ -1042,6 +1055,12 @@ type ContactFlow struct { // [Choose a flow type]: https://docs.aws.amazon.com/connect/latest/adminguide/create-contact-flow.html#contact-flow-types Type ContactFlowType + // The identifier of the flow version. + Version *int64 + + // The description of the flow version. + VersionDescription *string + noSmithyDocumentSerde } @@ -1191,6 +1210,21 @@ type ContactFlowSummary struct { noSmithyDocumentSerde } +// A summary of a contact flow version's metadata. +type ContactFlowVersionSummary struct { + + // The Amazon Resource Name (ARN) of the view version. + Arn *string + + // The identifier of the flow version. + Version *int64 + + // The description of the flow version. + VersionDescription *string + + noSmithyDocumentSerde +} + // Information of returned contact. type ContactSearchSummary struct { diff --git a/service/connect/validators.go b/service/connect/validators.go index dbf104f2b11..e5911926920 100644 --- a/service/connect/validators.go +++ b/service/connect/validators.go @@ -510,6 +510,26 @@ func (m *validateOpCreateContactFlowModule) HandleInitialize(ctx context.Context return next.HandleInitialize(ctx, in) } +type validateOpCreateContactFlowVersion struct { +} + +func (*validateOpCreateContactFlowVersion) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateContactFlowVersion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateContactFlowVersionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateContactFlowVersionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateEvaluationForm struct { } @@ -2590,6 +2610,26 @@ func (m *validateOpListContactFlows) HandleInitialize(ctx context.Context, in mi return next.HandleInitialize(ctx, in) } +type validateOpListContactFlowVersions struct { +} + +func (*validateOpListContactFlowVersions) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListContactFlowVersions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListContactFlowVersionsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListContactFlowVersionsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListContactReferences struct { } @@ -5190,6 +5230,10 @@ func addOpCreateContactFlowModuleValidationMiddleware(stack *middleware.Stack) e return stack.Initialize.Add(&validateOpCreateContactFlowModule{}, middleware.After) } +func addOpCreateContactFlowVersionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateContactFlowVersion{}, middleware.After) +} + func addOpCreateEvaluationFormValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateEvaluationForm{}, middleware.After) } @@ -5606,6 +5650,10 @@ func addOpListContactFlowsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListContactFlows{}, middleware.After) } +func addOpListContactFlowVersionsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListContactFlowVersions{}, middleware.After) +} + func addOpListContactReferencesValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListContactReferences{}, middleware.After) } @@ -8299,6 +8347,24 @@ func validateOpCreateContactFlowModuleInput(v *CreateContactFlowModuleInput) err } } +func validateOpCreateContactFlowVersionInput(v *CreateContactFlowVersionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateContactFlowVersionInput"} + if v.InstanceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("InstanceId")) + } + if v.ContactFlowId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ContactFlowId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateEvaluationFormInput(v *CreateEvaluationFormInput) error { if v == nil { return nil @@ -10328,6 +10394,24 @@ func validateOpListContactFlowsInput(v *ListContactFlowsInput) error { } } +func validateOpListContactFlowVersionsInput(v *ListContactFlowVersionsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListContactFlowVersionsInput"} + if v.InstanceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("InstanceId")) + } + if v.ContactFlowId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ContactFlowId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListContactReferencesInput(v *ListContactReferencesInput) error { if v == nil { return nil diff --git a/service/connectcampaigns/CHANGELOG.md b/service/connectcampaigns/CHANGELOG.md index c62a2fadb16..4b5f3c36bdf 100644 --- a/service/connectcampaigns/CHANGELOG.md +++ b/service/connectcampaigns/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.15.7 (2024-11-19) + +* No change notes available for this release. + +# v1.15.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.15.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/connectcampaigns/go.mod b/service/connectcampaigns/go.mod index 46e8785ae29..6866c119131 100644 --- a/service/connectcampaigns/go.mod +++ b/service/connectcampaigns/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/connectcampaigns go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/connectcampaigns/go.sum b/service/connectcampaigns/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/connectcampaigns/go.sum +++ b/service/connectcampaigns/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/connectcampaigns/go_module_metadata.go b/service/connectcampaigns/go_module_metadata.go index 1a9d87fd564..2762a71464f 100644 --- a/service/connectcampaigns/go_module_metadata.go +++ b/service/connectcampaigns/go_module_metadata.go @@ -3,4 +3,4 @@ package connectcampaigns // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.15.5" +const goModuleVersion = "1.15.7" diff --git a/service/connectcampaigns/internal/endpoints/endpoints.go b/service/connectcampaigns/internal/endpoints/endpoints.go index b22a8c3e227..e8a3dd60abb 100644 --- a/service/connectcampaigns/internal/endpoints/endpoints.go +++ b/service/connectcampaigns/internal/endpoints/endpoints.go @@ -139,6 +139,9 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.Aws, IsRegionalized: true, Endpoints: endpoints.Endpoints{ + endpoints.EndpointKey{ + Region: "af-south-1", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-southeast-2", }: endpoints.Endpoint{}, diff --git a/service/connectcampaignsv2/CHANGELOG.md b/service/connectcampaignsv2/CHANGELOG.md index 20df0f44b56..e90db22933c 100644 --- a/service/connectcampaignsv2/CHANGELOG.md +++ b/service/connectcampaignsv2/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.0.2 (2024-11-19) + +* No change notes available for this release. + +# v1.0.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.0.0 (2024-11-15.2) * **Release**: New AWS service client module diff --git a/service/connectcampaignsv2/go.mod b/service/connectcampaignsv2/go.mod index 7361f56806d..ffd62c1d0f1 100644 --- a/service/connectcampaignsv2/go.mod +++ b/service/connectcampaignsv2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/connectcampaignsv2 go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/connectcampaignsv2/go.sum b/service/connectcampaignsv2/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/connectcampaignsv2/go.sum +++ b/service/connectcampaignsv2/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/connectcampaignsv2/go_module_metadata.go b/service/connectcampaignsv2/go_module_metadata.go index 76c63acbc05..58f8d7c7e89 100644 --- a/service/connectcampaignsv2/go_module_metadata.go +++ b/service/connectcampaignsv2/go_module_metadata.go @@ -3,4 +3,4 @@ package connectcampaignsv2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.0.0" +const goModuleVersion = "1.0.2" diff --git a/service/connectcampaignsv2/internal/endpoints/endpoints.go b/service/connectcampaignsv2/internal/endpoints/endpoints.go index 65192f880c1..93ed9859a5b 100644 --- a/service/connectcampaignsv2/internal/endpoints/endpoints.go +++ b/service/connectcampaignsv2/internal/endpoints/endpoints.go @@ -139,6 +139,9 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.Aws, IsRegionalized: true, Endpoints: endpoints.Endpoints{ + endpoints.EndpointKey{ + Region: "af-south-1", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-southeast-2", }: endpoints.Endpoint{}, diff --git a/service/connectcases/CHANGELOG.md b/service/connectcases/CHANGELOG.md index 2ed9182b928..34940c3dac4 100644 --- a/service/connectcases/CHANGELOG.md +++ b/service/connectcases/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.21.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/connectcases/go.mod b/service/connectcases/go.mod index 48e77c8f7bd..ba106f9c56a 100644 --- a/service/connectcases/go.mod +++ b/service/connectcases/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/connectcases go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/connectcases/go.sum b/service/connectcases/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/connectcases/go.sum +++ b/service/connectcases/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/connectcases/go_module_metadata.go b/service/connectcases/go_module_metadata.go index e70c67ec1fd..e77e22fc777 100644 --- a/service/connectcases/go_module_metadata.go +++ b/service/connectcases/go_module_metadata.go @@ -3,4 +3,4 @@ package connectcases // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.5" +const goModuleVersion = "1.21.6" diff --git a/service/connectcontactlens/CHANGELOG.md b/service/connectcontactlens/CHANGELOG.md index 9d103d2b374..f218eb2f044 100644 --- a/service/connectcontactlens/CHANGELOG.md +++ b/service/connectcontactlens/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.26.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/connectcontactlens/go.mod b/service/connectcontactlens/go.mod index c6e263c32ff..535c14a7a1a 100644 --- a/service/connectcontactlens/go.mod +++ b/service/connectcontactlens/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/connectcontactlens go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/connectcontactlens/go.sum b/service/connectcontactlens/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/connectcontactlens/go.sum +++ b/service/connectcontactlens/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/connectcontactlens/go_module_metadata.go b/service/connectcontactlens/go_module_metadata.go index 438d73f1dde..2d31e99967a 100644 --- a/service/connectcontactlens/go_module_metadata.go +++ b/service/connectcontactlens/go_module_metadata.go @@ -3,4 +3,4 @@ package connectcontactlens // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.5" +const goModuleVersion = "1.26.6" diff --git a/service/connectparticipant/CHANGELOG.md b/service/connectparticipant/CHANGELOG.md index cbc96c97d86..bf148bf2318 100644 --- a/service/connectparticipant/CHANGELOG.md +++ b/service/connectparticipant/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/connectparticipant/go.mod b/service/connectparticipant/go.mod index 3675483850c..904faced4c2 100644 --- a/service/connectparticipant/go.mod +++ b/service/connectparticipant/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/connectparticipant go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/connectparticipant/go.sum b/service/connectparticipant/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/connectparticipant/go.sum +++ b/service/connectparticipant/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/connectparticipant/go_module_metadata.go b/service/connectparticipant/go_module_metadata.go index da0bfc31b5b..e11a3d019d1 100644 --- a/service/connectparticipant/go_module_metadata.go +++ b/service/connectparticipant/go_module_metadata.go @@ -3,4 +3,4 @@ package connectparticipant // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.5" +const goModuleVersion = "1.27.6" diff --git a/service/controlcatalog/CHANGELOG.md b/service/controlcatalog/CHANGELOG.md index 1631991aebb..705b25954b7 100644 --- a/service/controlcatalog/CHANGELOG.md +++ b/service/controlcatalog/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.6.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.6.0 (2024-11-08) * **Feature**: AWS Control Catalog GetControl public API returns additional data in output, including Implementation and Parameters diff --git a/service/controlcatalog/go.mod b/service/controlcatalog/go.mod index ec47cf1f9b4..2fd28996394 100644 --- a/service/controlcatalog/go.mod +++ b/service/controlcatalog/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/controlcatalog go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/controlcatalog/go.sum b/service/controlcatalog/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/controlcatalog/go.sum +++ b/service/controlcatalog/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/controlcatalog/go_module_metadata.go b/service/controlcatalog/go_module_metadata.go index 3ad5edcd799..49bf643a0ed 100644 --- a/service/controlcatalog/go_module_metadata.go +++ b/service/controlcatalog/go_module_metadata.go @@ -3,4 +3,4 @@ package controlcatalog // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.6.0" +const goModuleVersion = "1.6.1" diff --git a/service/controltower/CHANGELOG.md b/service/controltower/CHANGELOG.md index b7eb0c93450..d07664bf825 100644 --- a/service/controltower/CHANGELOG.md +++ b/service/controltower/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.20.0 (2024-11-20) + +* **Feature**: Adds support for child enabled baselines which allow you to see the enabled baseline status for individual accounts. + +# v1.19.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2024-11-12) * **Feature**: Added ResetEnabledControl API. diff --git a/service/controltower/api_op_ListEnabledBaselines.go b/service/controltower/api_op_ListEnabledBaselines.go index b2aaf040879..8a75cddf1de 100644 --- a/service/controltower/api_op_ListEnabledBaselines.go +++ b/service/controltower/api_op_ListEnabledBaselines.go @@ -38,6 +38,10 @@ type ListEnabledBaselinesInput struct { // either, or both. Filter *types.EnabledBaselineFilter + // A value that can be set to include the child enabled baselines in responses. + // The default value is false. + IncludeChildren bool + // The maximum number of results to be shown. MaxResults *int32 diff --git a/service/controltower/deserializers.go b/service/controltower/deserializers.go index bf9aa10e778..99b3e847829 100644 --- a/service/controltower/deserializers.go +++ b/service/controltower/deserializers.go @@ -5576,6 +5576,15 @@ func awsRestjson1_deserializeDocumentEnabledBaselineDetails(v **types.EnabledBas return err } + case "parentIdentifier": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.ParentIdentifier = ptr.String(jtv) + } + case "statusSummary": if err := awsRestjson1_deserializeDocumentEnablementStatusSummary(&sv.StatusSummary, value); err != nil { return err @@ -5769,6 +5778,15 @@ func awsRestjson1_deserializeDocumentEnabledBaselineSummary(v **types.EnabledBas sv.BaselineVersion = ptr.String(jtv) } + case "parentIdentifier": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.ParentIdentifier = ptr.String(jtv) + } + case "statusSummary": if err := awsRestjson1_deserializeDocumentEnablementStatusSummary(&sv.StatusSummary, value); err != nil { return err diff --git a/service/controltower/go.mod b/service/controltower/go.mod index 5ce5cc3c26a..27e7ab33ab2 100644 --- a/service/controltower/go.mod +++ b/service/controltower/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/controltower go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/controltower/go.sum b/service/controltower/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/controltower/go.sum +++ b/service/controltower/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/controltower/go_module_metadata.go b/service/controltower/go_module_metadata.go index 3b816ce355b..a2e7dc86b45 100644 --- a/service/controltower/go_module_metadata.go +++ b/service/controltower/go_module_metadata.go @@ -3,4 +3,4 @@ package controltower // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.20.0" diff --git a/service/controltower/serializers.go b/service/controltower/serializers.go index b89f4f1763e..4b4d5587091 100644 --- a/service/controltower/serializers.go +++ b/service/controltower/serializers.go @@ -1391,6 +1391,11 @@ func awsRestjson1_serializeOpDocumentListEnabledBaselinesInput(v *ListEnabledBas } } + if v.IncludeChildren { + ok := object.Key("includeChildren") + ok.Boolean(v.IncludeChildren) + } + if v.MaxResults != nil { ok := object.Key("maxResults") ok.Integer(*v.MaxResults) @@ -2550,6 +2555,13 @@ func awsRestjson1_serializeDocumentEnabledBaselineFilter(v *types.EnabledBaselin } } + if v.ParentIdentifiers != nil { + ok := object.Key("parentIdentifiers") + if err := awsRestjson1_serializeDocumentEnabledBaselineParentIdentifiers(v.ParentIdentifiers, ok); err != nil { + return err + } + } + if v.TargetIdentifiers != nil { ok := object.Key("targetIdentifiers") if err := awsRestjson1_serializeDocumentEnabledBaselineTargetIdentifiers(v.TargetIdentifiers, ok); err != nil { @@ -2607,6 +2619,17 @@ func awsRestjson1_serializeDocumentEnabledBaselineParameters(v []types.EnabledBa return nil } +func awsRestjson1_serializeDocumentEnabledBaselineParentIdentifiers(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_serializeDocumentEnabledBaselineTargetIdentifiers(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() diff --git a/service/controltower/types/types.go b/service/controltower/types/types.go index 350f4650647..3560183659f 100644 --- a/service/controltower/types/types.go +++ b/service/controltower/types/types.go @@ -200,6 +200,11 @@ type EnabledBaselineDetails struct { // Shows the parameters that are applied when enabling this Baseline . Parameters []EnabledBaselineParameterSummary + // An ARN that represents the parent EnabledBaseline at the Organizational Unit + // (OU) level, from which the child EnabledBaseline inherits its configuration. + // The value is returned by GetEnabledBaseline . + ParentIdentifier *string + noSmithyDocumentSerde } @@ -211,6 +216,10 @@ type EnabledBaselineFilter struct { // Identifiers for the Baseline objects returned as part of the filter operation. BaselineIdentifiers []string + // An optional filter that sets up a list of parentIdentifiers to filter the + // results of the ListEnabledBaseline output. + ParentIdentifiers []string + // Identifiers for the targets of the Baseline filter operation. TargetIdentifiers []string @@ -275,6 +284,10 @@ type EnabledBaselineSummary struct { // The enabled version of the baseline. BaselineVersion *string + // An ARN that represents an object returned by ListEnabledBaseline , to describe + // an enabled baseline. + ParentIdentifier *string + noSmithyDocumentSerde } diff --git a/service/costandusagereportservice/CHANGELOG.md b/service/costandusagereportservice/CHANGELOG.md index 55a1f84584e..f18c6d5d2bc 100644 --- a/service/costandusagereportservice/CHANGELOG.md +++ b/service/costandusagereportservice/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.28.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/costandusagereportservice/go.mod b/service/costandusagereportservice/go.mod index e12b59c575f..399414abbf4 100644 --- a/service/costandusagereportservice/go.mod +++ b/service/costandusagereportservice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/costandusagereportservice go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/costandusagereportservice/go.sum b/service/costandusagereportservice/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/costandusagereportservice/go.sum +++ b/service/costandusagereportservice/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/costandusagereportservice/go_module_metadata.go b/service/costandusagereportservice/go_module_metadata.go index beb1d6507dd..8a24d8988c5 100644 --- a/service/costandusagereportservice/go_module_metadata.go +++ b/service/costandusagereportservice/go_module_metadata.go @@ -3,4 +3,4 @@ package costandusagereportservice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.5" +const goModuleVersion = "1.28.6" diff --git a/service/costexplorer/CHANGELOG.md b/service/costexplorer/CHANGELOG.md index d4d043b393c..c9531c7b613 100644 --- a/service/costexplorer/CHANGELOG.md +++ b/service/costexplorer/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.43.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.43.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/costexplorer/go.mod b/service/costexplorer/go.mod index f4013ba8027..3c493ee2bdf 100644 --- a/service/costexplorer/go.mod +++ b/service/costexplorer/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/costexplorer go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/costexplorer/go.sum b/service/costexplorer/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/costexplorer/go.sum +++ b/service/costexplorer/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/costexplorer/go_module_metadata.go b/service/costexplorer/go_module_metadata.go index e784005b9fa..1923a7de566 100644 --- a/service/costexplorer/go_module_metadata.go +++ b/service/costexplorer/go_module_metadata.go @@ -3,4 +3,4 @@ package costexplorer // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.43.5" +const goModuleVersion = "1.43.6" diff --git a/service/costoptimizationhub/CHANGELOG.md b/service/costoptimizationhub/CHANGELOG.md index 9cef2ceae1b..58198d3761c 100644 --- a/service/costoptimizationhub/CHANGELOG.md +++ b/service/costoptimizationhub/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.11.0 (2024-11-20) + +* **Feature**: This release adds action type "Delete" to the GetRecommendation, ListRecommendations and ListRecommendationSummaries APIs to support new EBS and ECS recommendations with action type "Delete". + +# v1.10.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.10.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/costoptimizationhub/go.mod b/service/costoptimizationhub/go.mod index cf37eea1d69..019ba4b8993 100644 --- a/service/costoptimizationhub/go.mod +++ b/service/costoptimizationhub/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/costoptimizationhub go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/costoptimizationhub/go.sum b/service/costoptimizationhub/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/costoptimizationhub/go.sum +++ b/service/costoptimizationhub/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/costoptimizationhub/go_module_metadata.go b/service/costoptimizationhub/go_module_metadata.go index f3c104bfdc4..b2e9a44728a 100644 --- a/service/costoptimizationhub/go_module_metadata.go +++ b/service/costoptimizationhub/go_module_metadata.go @@ -3,4 +3,4 @@ package costoptimizationhub // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.10.5" +const goModuleVersion = "1.11.0" diff --git a/service/costoptimizationhub/types/enums.go b/service/costoptimizationhub/types/enums.go index 3165077f97e..0f8a5477b85 100644 --- a/service/costoptimizationhub/types/enums.go +++ b/service/costoptimizationhub/types/enums.go @@ -12,6 +12,7 @@ const ( ActionTypePurchaseSavingsPlans ActionType = "PurchaseSavingsPlans" ActionTypePurchaseReservedInstances ActionType = "PurchaseReservedInstances" ActionTypeMigrateToGraviton ActionType = "MigrateToGraviton" + ActionTypeDelete ActionType = "Delete" ) // Values returns all known values for ActionType. Note that this can be expanded @@ -26,6 +27,7 @@ func (ActionType) Values() []ActionType { "PurchaseSavingsPlans", "PurchaseReservedInstances", "MigrateToGraviton", + "Delete", } } diff --git a/service/customerprofiles/CHANGELOG.md b/service/customerprofiles/CHANGELOG.md index 101c62deed6..6927243dd1d 100644 --- a/service/customerprofiles/CHANGELOG.md +++ b/service/customerprofiles/CHANGELOG.md @@ -1,3 +1,9 @@ +# v1.43.0 (2024-11-18) + +* **Feature**: This release introduces Segmentation APIs and new Calculated Attribute Event Filters as part of Amazon Connect Customer Profiles service. +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.42.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/customerprofiles/api_op_BatchGetCalculatedAttributeForProfile.go b/service/customerprofiles/api_op_BatchGetCalculatedAttributeForProfile.go new file mode 100644 index 00000000000..09eaa7cdfbf --- /dev/null +++ b/service/customerprofiles/api_op_BatchGetCalculatedAttributeForProfile.go @@ -0,0 +1,178 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package customerprofiles + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/customerprofiles/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Fetch the possible attribute values given the attribute name. +func (c *Client) BatchGetCalculatedAttributeForProfile(ctx context.Context, params *BatchGetCalculatedAttributeForProfileInput, optFns ...func(*Options)) (*BatchGetCalculatedAttributeForProfileOutput, error) { + if params == nil { + params = &BatchGetCalculatedAttributeForProfileInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "BatchGetCalculatedAttributeForProfile", params, optFns, c.addOperationBatchGetCalculatedAttributeForProfileMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*BatchGetCalculatedAttributeForProfileOutput) + out.ResultMetadata = metadata + return out, nil +} + +type BatchGetCalculatedAttributeForProfileInput struct { + + // The unique name of the calculated attribute. + // + // This member is required. + CalculatedAttributeName *string + + // The unique name of the domain. + // + // This member is required. + DomainName *string + + // List of unique identifiers for customer profiles to retrieve. + // + // This member is required. + ProfileIds []string + + // Overrides the condition block within the original calculated attribute + // definition. + ConditionOverrides *types.ConditionOverrides + + noSmithyDocumentSerde +} + +type BatchGetCalculatedAttributeForProfileOutput struct { + + // List of calculated attribute values retrieved. + CalculatedAttributeValues []types.CalculatedAttributeValue + + // Overrides the condition block within the original calculated attribute + // definition. + ConditionOverrides *types.ConditionOverrides + + // List of errors for calculated attribute values that could not be retrieved. + Errors []types.BatchGetCalculatedAttributeForProfileError + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationBatchGetCalculatedAttributeForProfileMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpBatchGetCalculatedAttributeForProfile{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpBatchGetCalculatedAttributeForProfile{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "BatchGetCalculatedAttributeForProfile"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpBatchGetCalculatedAttributeForProfileValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opBatchGetCalculatedAttributeForProfile(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opBatchGetCalculatedAttributeForProfile(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "BatchGetCalculatedAttributeForProfile", + } +} diff --git a/service/customerprofiles/api_op_BatchGetProfile.go b/service/customerprofiles/api_op_BatchGetProfile.go new file mode 100644 index 00000000000..74be93867b6 --- /dev/null +++ b/service/customerprofiles/api_op_BatchGetProfile.go @@ -0,0 +1,167 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package customerprofiles + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/customerprofiles/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Get a batch of profiles. +func (c *Client) BatchGetProfile(ctx context.Context, params *BatchGetProfileInput, optFns ...func(*Options)) (*BatchGetProfileOutput, error) { + if params == nil { + params = &BatchGetProfileInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "BatchGetProfile", params, optFns, c.addOperationBatchGetProfileMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*BatchGetProfileOutput) + out.ResultMetadata = metadata + return out, nil +} + +type BatchGetProfileInput struct { + + // The unique name of the domain. + // + // This member is required. + DomainName *string + + // List of unique identifiers for customer profiles to retrieve. + // + // This member is required. + ProfileIds []string + + noSmithyDocumentSerde +} + +type BatchGetProfileOutput struct { + + // For information about the errors that are common to all actions, see [Common Errors]. + // + // [Common Errors]: https://docs.aws.amazon.com/connect/latest/APIReference/CommonErrors.html + Errors []types.BatchGetProfileError + + // Array of Profile Objects. + Profiles []types.Profile + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationBatchGetProfileMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpBatchGetProfile{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpBatchGetProfile{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "BatchGetProfile"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpBatchGetProfileValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opBatchGetProfile(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opBatchGetProfile(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "BatchGetProfile", + } +} diff --git a/service/customerprofiles/api_op_CreateCalculatedAttributeDefinition.go b/service/customerprofiles/api_op_CreateCalculatedAttributeDefinition.go index eb1c772c9ea..e8ce4335019 100644 --- a/service/customerprofiles/api_op_CreateCalculatedAttributeDefinition.go +++ b/service/customerprofiles/api_op_CreateCalculatedAttributeDefinition.go @@ -68,6 +68,10 @@ type CreateCalculatedAttributeDefinitionInput struct { // The display name of the calculated attribute. DisplayName *string + // Defines how to filter incoming objects to include part of the Calculated + // Attribute. + Filter *types.Filter + // The tags used to organize, track, or control access for this resource. Tags map[string]string @@ -96,6 +100,9 @@ type CreateCalculatedAttributeDefinitionOutput struct { // The display name of the calculated attribute. DisplayName *string + // The filter that was used as part of the request. + Filter *types.Filter + // The timestamp of when the calculated attribute definition was most recently // edited. LastUpdatedAt *time.Time diff --git a/service/customerprofiles/api_op_CreateSegmentDefinition.go b/service/customerprofiles/api_op_CreateSegmentDefinition.go new file mode 100644 index 00000000000..d1b7e1ec94f --- /dev/null +++ b/service/customerprofiles/api_op_CreateSegmentDefinition.go @@ -0,0 +1,197 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package customerprofiles + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/customerprofiles/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Creates a segment definition associated to the given domain. +func (c *Client) CreateSegmentDefinition(ctx context.Context, params *CreateSegmentDefinitionInput, optFns ...func(*Options)) (*CreateSegmentDefinitionOutput, error) { + if params == nil { + params = &CreateSegmentDefinitionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateSegmentDefinition", params, optFns, c.addOperationCreateSegmentDefinitionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateSegmentDefinitionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateSegmentDefinitionInput struct { + + // The display name of the segment definition. + // + // This member is required. + DisplayName *string + + // The unique name of the domain. + // + // This member is required. + DomainName *string + + // The unique name of the segment definition. + // + // This member is required. + SegmentDefinitionName *string + + // Specifies the base segments and dimensions for a segment definition along with + // their respective relationship. + // + // This member is required. + SegmentGroups *types.SegmentGroup + + // The description of the segment definition. + Description *string + + // The tags used to organize, track, or control access for this resource. + Tags map[string]string + + noSmithyDocumentSerde +} + +type CreateSegmentDefinitionOutput struct { + + // The name of the segment definition. + // + // This member is required. + SegmentDefinitionName *string + + // The timestamp of when the segment definition was created. + CreatedAt *time.Time + + // The description of the segment definition. + Description *string + + // The display name of the segment definition. + DisplayName *string + + // The arn of the segment definition. + SegmentDefinitionArn *string + + // The tags used to organize, track, or control access for this resource. + Tags map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateSegmentDefinitionMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateSegmentDefinition{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateSegmentDefinition{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateSegmentDefinition"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpCreateSegmentDefinitionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateSegmentDefinition(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateSegmentDefinition(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateSegmentDefinition", + } +} diff --git a/service/customerprofiles/api_op_CreateSegmentEstimate.go b/service/customerprofiles/api_op_CreateSegmentEstimate.go new file mode 100644 index 00000000000..e80f2bf609e --- /dev/null +++ b/service/customerprofiles/api_op_CreateSegmentEstimate.go @@ -0,0 +1,169 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package customerprofiles + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/customerprofiles/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a segment estimate query. +func (c *Client) CreateSegmentEstimate(ctx context.Context, params *CreateSegmentEstimateInput, optFns ...func(*Options)) (*CreateSegmentEstimateOutput, error) { + if params == nil { + params = &CreateSegmentEstimateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateSegmentEstimate", params, optFns, c.addOperationCreateSegmentEstimateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateSegmentEstimateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateSegmentEstimateInput struct { + + // The unique name of the domain. + // + // This member is required. + DomainName *string + + // The segment query for calculating a segment estimate. + // + // This member is required. + SegmentQuery *types.SegmentGroupStructure + + noSmithyDocumentSerde +} + +type CreateSegmentEstimateOutput struct { + + // The unique name of the domain. + DomainName *string + + // A unique identifier for the resource. The value can be passed to + // GetSegmentEstimate to retrieve the result of segment estimate status. + EstimateId *string + + // The status code for the response. + StatusCode int32 + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateSegmentEstimateMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateSegmentEstimate{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateSegmentEstimate{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateSegmentEstimate"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpCreateSegmentEstimateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateSegmentEstimate(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateSegmentEstimate(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateSegmentEstimate", + } +} diff --git a/service/customerprofiles/api_op_CreateSegmentSnapshot.go b/service/customerprofiles/api_op_CreateSegmentSnapshot.go new file mode 100644 index 00000000000..5d5411bda8c --- /dev/null +++ b/service/customerprofiles/api_op_CreateSegmentSnapshot.go @@ -0,0 +1,181 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package customerprofiles + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/customerprofiles/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Triggers a job to export a segment to a specified destination. +func (c *Client) CreateSegmentSnapshot(ctx context.Context, params *CreateSegmentSnapshotInput, optFns ...func(*Options)) (*CreateSegmentSnapshotOutput, error) { + if params == nil { + params = &CreateSegmentSnapshotInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateSegmentSnapshot", params, optFns, c.addOperationCreateSegmentSnapshotMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateSegmentSnapshotOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateSegmentSnapshotInput struct { + + // The format in which the segment will be exported. + // + // This member is required. + DataFormat types.DataFormat + + // The unique name of the domain. + // + // This member is required. + DomainName *string + + // The name of the segment definition used in this snapshot request. + // + // This member is required. + SegmentDefinitionName *string + + // The destination to which the segment will be exported. This field must be + // provided if the request is not submitted from the Amazon Connect Admin Website. + DestinationUri *string + + // The Amazon Resource Name (ARN) of the KMS key used to encrypt the exported + // segment. + EncryptionKey *string + + // The Amazon Resource Name (ARN) of the IAM role that allows Customer Profiles + // service principal to assume the role for conducting KMS and S3 operations. + RoleArn *string + + noSmithyDocumentSerde +} + +type CreateSegmentSnapshotOutput struct { + + // The unique identifier of the segment snapshot. + // + // This member is required. + SnapshotId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateSegmentSnapshotMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateSegmentSnapshot{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateSegmentSnapshot{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateSegmentSnapshot"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpCreateSegmentSnapshotValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateSegmentSnapshot(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateSegmentSnapshot(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateSegmentSnapshot", + } +} diff --git a/service/customerprofiles/api_op_DeleteSegmentDefinition.go b/service/customerprofiles/api_op_DeleteSegmentDefinition.go new file mode 100644 index 00000000000..bc7aad1273a --- /dev/null +++ b/service/customerprofiles/api_op_DeleteSegmentDefinition.go @@ -0,0 +1,161 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package customerprofiles + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes a segment definition from the domain. +func (c *Client) DeleteSegmentDefinition(ctx context.Context, params *DeleteSegmentDefinitionInput, optFns ...func(*Options)) (*DeleteSegmentDefinitionOutput, error) { + if params == nil { + params = &DeleteSegmentDefinitionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteSegmentDefinition", params, optFns, c.addOperationDeleteSegmentDefinitionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteSegmentDefinitionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteSegmentDefinitionInput struct { + + // The unique name of the domain. + // + // This member is required. + DomainName *string + + // The unique name of the segment definition. + // + // This member is required. + SegmentDefinitionName *string + + noSmithyDocumentSerde +} + +type DeleteSegmentDefinitionOutput struct { + + // A message that indicates the delete request is done. + Message *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteSegmentDefinitionMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteSegmentDefinition{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteSegmentDefinition{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteSegmentDefinition"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpDeleteSegmentDefinitionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteSegmentDefinition(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteSegmentDefinition(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteSegmentDefinition", + } +} diff --git a/service/customerprofiles/api_op_GetCalculatedAttributeDefinition.go b/service/customerprofiles/api_op_GetCalculatedAttributeDefinition.go index cd1c32d90fd..f1d9d6d1f50 100644 --- a/service/customerprofiles/api_op_GetCalculatedAttributeDefinition.go +++ b/service/customerprofiles/api_op_GetCalculatedAttributeDefinition.go @@ -66,6 +66,9 @@ type GetCalculatedAttributeDefinitionOutput struct { // The display name of the calculated attribute. DisplayName *string + // The filter assigned to this calculated attribute definition. + Filter *types.Filter + // The timestamp of when the calculated attribute definition was most recently // edited. LastUpdatedAt *time.Time diff --git a/service/customerprofiles/api_op_GetSegmentDefinition.go b/service/customerprofiles/api_op_GetSegmentDefinition.go new file mode 100644 index 00000000000..c042d6850db --- /dev/null +++ b/service/customerprofiles/api_op_GetSegmentDefinition.go @@ -0,0 +1,183 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package customerprofiles + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/customerprofiles/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Gets a segment definition from the domain. +func (c *Client) GetSegmentDefinition(ctx context.Context, params *GetSegmentDefinitionInput, optFns ...func(*Options)) (*GetSegmentDefinitionOutput, error) { + if params == nil { + params = &GetSegmentDefinitionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetSegmentDefinition", params, optFns, c.addOperationGetSegmentDefinitionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetSegmentDefinitionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetSegmentDefinitionInput struct { + + // The unique name of the domain. + // + // This member is required. + DomainName *string + + // The unique name of the segment definition. + // + // This member is required. + SegmentDefinitionName *string + + noSmithyDocumentSerde +} + +type GetSegmentDefinitionOutput struct { + + // The arn of the segment definition. + // + // This member is required. + SegmentDefinitionArn *string + + // The timestamp of when the segment definition was created. + CreatedAt *time.Time + + // The description of the segment definition. + Description *string + + // The display name of the segment definition. + DisplayName *string + + // The name of the segment definition. + SegmentDefinitionName *string + + // The segment criteria associated with this definition. + SegmentGroups *types.SegmentGroup + + // The tags used to organize, track, or control access for this resource. + Tags map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetSegmentDefinitionMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetSegmentDefinition{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetSegmentDefinition{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetSegmentDefinition"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpGetSegmentDefinitionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetSegmentDefinition(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetSegmentDefinition(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetSegmentDefinition", + } +} diff --git a/service/customerprofiles/api_op_GetSegmentEstimate.go b/service/customerprofiles/api_op_GetSegmentEstimate.go new file mode 100644 index 00000000000..4fae08ac370 --- /dev/null +++ b/service/customerprofiles/api_op_GetSegmentEstimate.go @@ -0,0 +1,177 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package customerprofiles + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/customerprofiles/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Gets the result of a segment estimate query. +func (c *Client) GetSegmentEstimate(ctx context.Context, params *GetSegmentEstimateInput, optFns ...func(*Options)) (*GetSegmentEstimateOutput, error) { + if params == nil { + params = &GetSegmentEstimateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetSegmentEstimate", params, optFns, c.addOperationGetSegmentEstimateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetSegmentEstimateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetSegmentEstimateInput struct { + + // The unique name of the domain. + // + // This member is required. + DomainName *string + + // The query Id passed by a previous CreateSegmentEstimate operation. + // + // This member is required. + EstimateId *string + + noSmithyDocumentSerde +} + +type GetSegmentEstimateOutput struct { + + // The unique name of the domain. + DomainName *string + + // The estimated number of profiles contained in the segment. + Estimate *string + + // The QueryId which is the same as the value passed in QueryId . + EstimateId *string + + // The error message if there is any error. + Message *string + + // The current status of the query. + Status types.EstimateStatus + + // The status code of the segment estimate. + StatusCode int32 + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetSegmentEstimateMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetSegmentEstimate{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetSegmentEstimate{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetSegmentEstimate"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpGetSegmentEstimateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetSegmentEstimate(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetSegmentEstimate(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetSegmentEstimate", + } +} diff --git a/service/customerprofiles/api_op_GetSegmentMembership.go b/service/customerprofiles/api_op_GetSegmentMembership.go new file mode 100644 index 00000000000..0b44617fc69 --- /dev/null +++ b/service/customerprofiles/api_op_GetSegmentMembership.go @@ -0,0 +1,174 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package customerprofiles + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/customerprofiles/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Determines if the given profiles are within a segment. +func (c *Client) GetSegmentMembership(ctx context.Context, params *GetSegmentMembershipInput, optFns ...func(*Options)) (*GetSegmentMembershipOutput, error) { + if params == nil { + params = &GetSegmentMembershipInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetSegmentMembership", params, optFns, c.addOperationGetSegmentMembershipMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetSegmentMembershipOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetSegmentMembershipInput struct { + + // The unique name of the domain. + // + // This member is required. + DomainName *string + + // The list of profile IDs to query for. + // + // This member is required. + ProfileIds []string + + // The Id of the wanted segment. Needs to be a valid, and existing segment Id. + // + // This member is required. + SegmentDefinitionName *string + + noSmithyDocumentSerde +} + +type GetSegmentMembershipOutput struct { + + // An array of maps where each contains a response per profile failed for the + // request. + Failures []types.ProfileQueryFailures + + // An array of maps where each contains a response per profile requested. + Profiles []types.ProfileQueryResult + + // The unique name of the segment definition. + SegmentDefinitionName *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetSegmentMembershipMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetSegmentMembership{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetSegmentMembership{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetSegmentMembership"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpGetSegmentMembershipValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetSegmentMembership(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetSegmentMembership(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetSegmentMembership", + } +} diff --git a/service/customerprofiles/api_op_GetSegmentSnapshot.go b/service/customerprofiles/api_op_GetSegmentSnapshot.go new file mode 100644 index 00000000000..155d81d7233 --- /dev/null +++ b/service/customerprofiles/api_op_GetSegmentSnapshot.go @@ -0,0 +1,194 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package customerprofiles + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/customerprofiles/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieve the latest status of a segment snapshot. +func (c *Client) GetSegmentSnapshot(ctx context.Context, params *GetSegmentSnapshotInput, optFns ...func(*Options)) (*GetSegmentSnapshotOutput, error) { + if params == nil { + params = &GetSegmentSnapshotInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetSegmentSnapshot", params, optFns, c.addOperationGetSegmentSnapshotMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetSegmentSnapshotOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetSegmentSnapshotInput struct { + + // The unique identifier of the domain. + // + // This member is required. + DomainName *string + + // The unique name of the segment definition. + // + // This member is required. + SegmentDefinitionName *string + + // The unique identifier of the segment snapshot. + // + // This member is required. + SnapshotId *string + + noSmithyDocumentSerde +} + +type GetSegmentSnapshotOutput struct { + + // The format in which the segment will be exported. + // + // This member is required. + DataFormat types.DataFormat + + // The unique identifier of the segment snapshot. + // + // This member is required. + SnapshotId *string + + // The status of the asynchronous job for exporting the segment snapshot. + // + // This member is required. + Status types.SegmentSnapshotStatus + + // The destination to which the segment will be exported. This field must be + // provided if the request is not submitted from the Amazon Connect Admin Website. + DestinationUri *string + + // The Amazon Resource Name (ARN) of the KMS key used to encrypt the exported + // segment. + EncryptionKey *string + + // The Amazon Resource Name (ARN) of the IAM role that allows Customer Profiles + // service principal to assume the role for conducting KMS and S3 operations. + RoleArn *string + + // The status message of the asynchronous job for exporting the segment snapshot. + StatusMessage *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetSegmentSnapshotMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetSegmentSnapshot{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetSegmentSnapshot{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetSegmentSnapshot"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpGetSegmentSnapshotValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetSegmentSnapshot(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetSegmentSnapshot(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetSegmentSnapshot", + } +} diff --git a/service/customerprofiles/api_op_GetSimilarProfiles.go b/service/customerprofiles/api_op_GetSimilarProfiles.go index b542b8afbcb..9c7f4ce767f 100644 --- a/service/customerprofiles/api_op_GetSimilarProfiles.go +++ b/service/customerprofiles/api_op_GetSimilarProfiles.go @@ -195,6 +195,100 @@ func (c *Client) addOperationGetSimilarProfilesMiddlewares(stack *middleware.Sta return nil } +// GetSimilarProfilesPaginatorOptions is the paginator options for +// GetSimilarProfiles +type GetSimilarProfilesPaginatorOptions struct { + // The maximum number of objects 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 +} + +// GetSimilarProfilesPaginator is a paginator for GetSimilarProfiles +type GetSimilarProfilesPaginator struct { + options GetSimilarProfilesPaginatorOptions + client GetSimilarProfilesAPIClient + params *GetSimilarProfilesInput + nextToken *string + firstPage bool +} + +// NewGetSimilarProfilesPaginator returns a new GetSimilarProfilesPaginator +func NewGetSimilarProfilesPaginator(client GetSimilarProfilesAPIClient, params *GetSimilarProfilesInput, optFns ...func(*GetSimilarProfilesPaginatorOptions)) *GetSimilarProfilesPaginator { + if params == nil { + params = &GetSimilarProfilesInput{} + } + + options := GetSimilarProfilesPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &GetSimilarProfilesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *GetSimilarProfilesPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next GetSimilarProfiles page. +func (p *GetSimilarProfilesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetSimilarProfilesOutput, 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 + + optFns = append([]func(*Options){ + addIsPaginatorUserAgent, + }, optFns...) + result, err := p.client.GetSimilarProfiles(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 +} + +// GetSimilarProfilesAPIClient is a client that implements the GetSimilarProfiles +// operation. +type GetSimilarProfilesAPIClient interface { + GetSimilarProfiles(context.Context, *GetSimilarProfilesInput, ...func(*Options)) (*GetSimilarProfilesOutput, error) +} + +var _ GetSimilarProfilesAPIClient = (*Client)(nil) + func newServiceMetadataMiddleware_opGetSimilarProfiles(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/customerprofiles/api_op_ListObjectTypeAttributes.go b/service/customerprofiles/api_op_ListObjectTypeAttributes.go new file mode 100644 index 00000000000..cfbe54d2448 --- /dev/null +++ b/service/customerprofiles/api_op_ListObjectTypeAttributes.go @@ -0,0 +1,266 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package customerprofiles + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/customerprofiles/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Fetch the possible attribute values given the attribute name. +func (c *Client) ListObjectTypeAttributes(ctx context.Context, params *ListObjectTypeAttributesInput, optFns ...func(*Options)) (*ListObjectTypeAttributesOutput, error) { + if params == nil { + params = &ListObjectTypeAttributesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListObjectTypeAttributes", params, optFns, c.addOperationListObjectTypeAttributesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListObjectTypeAttributesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListObjectTypeAttributesInput struct { + + // The unique identifier of the domain. + // + // This member is required. + DomainName *string + + // The name of the profile object type. + // + // This member is required. + ObjectTypeName *string + + // The maximum number of objects returned per page. + MaxResults *int32 + + // The pagination token from the previous call. + NextToken *string + + noSmithyDocumentSerde +} + +type ListObjectTypeAttributesOutput struct { + + // The items returned as part of the response. + Items []types.ListObjectTypeAttributeItem + + // The pagination token from the previous call. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListObjectTypeAttributesMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListObjectTypeAttributes{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListObjectTypeAttributes{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListObjectTypeAttributes"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpListObjectTypeAttributesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListObjectTypeAttributes(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +// ListObjectTypeAttributesPaginatorOptions is the paginator options for +// ListObjectTypeAttributes +type ListObjectTypeAttributesPaginatorOptions struct { + // The maximum number of objects 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 +} + +// ListObjectTypeAttributesPaginator is a paginator for ListObjectTypeAttributes +type ListObjectTypeAttributesPaginator struct { + options ListObjectTypeAttributesPaginatorOptions + client ListObjectTypeAttributesAPIClient + params *ListObjectTypeAttributesInput + nextToken *string + firstPage bool +} + +// NewListObjectTypeAttributesPaginator returns a new +// ListObjectTypeAttributesPaginator +func NewListObjectTypeAttributesPaginator(client ListObjectTypeAttributesAPIClient, params *ListObjectTypeAttributesInput, optFns ...func(*ListObjectTypeAttributesPaginatorOptions)) *ListObjectTypeAttributesPaginator { + if params == nil { + params = &ListObjectTypeAttributesInput{} + } + + options := ListObjectTypeAttributesPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListObjectTypeAttributesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListObjectTypeAttributesPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListObjectTypeAttributes page. +func (p *ListObjectTypeAttributesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListObjectTypeAttributesOutput, 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 + + optFns = append([]func(*Options){ + addIsPaginatorUserAgent, + }, optFns...) + result, err := p.client.ListObjectTypeAttributes(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 +} + +// ListObjectTypeAttributesAPIClient is a client that implements the +// ListObjectTypeAttributes operation. +type ListObjectTypeAttributesAPIClient interface { + ListObjectTypeAttributes(context.Context, *ListObjectTypeAttributesInput, ...func(*Options)) (*ListObjectTypeAttributesOutput, error) +} + +var _ ListObjectTypeAttributesAPIClient = (*Client)(nil) + +func newServiceMetadataMiddleware_opListObjectTypeAttributes(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListObjectTypeAttributes", + } +} diff --git a/service/customerprofiles/api_op_ListProfileAttributeValues.go b/service/customerprofiles/api_op_ListProfileAttributeValues.go new file mode 100644 index 00000000000..e90fb3e3ec3 --- /dev/null +++ b/service/customerprofiles/api_op_ListProfileAttributeValues.go @@ -0,0 +1,171 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package customerprofiles + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/customerprofiles/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Fetch the possible attribute values given the attribute name. +func (c *Client) ListProfileAttributeValues(ctx context.Context, params *ListProfileAttributeValuesInput, optFns ...func(*Options)) (*ListProfileAttributeValuesOutput, error) { + if params == nil { + params = &ListProfileAttributeValuesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListProfileAttributeValues", params, optFns, c.addOperationListProfileAttributeValuesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListProfileAttributeValuesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListProfileAttributeValuesInput struct { + + // The attribute name. + // + // This member is required. + AttributeName *string + + // The unique identifier of the domain. + // + // This member is required. + DomainName *string + + noSmithyDocumentSerde +} + +type ListProfileAttributeValuesOutput struct { + + // The attribute name. + AttributeName *string + + // The name of the domain. + DomainName *string + + // The items returned as part of the response. + Items []types.AttributeValueItem + + // The status code for the response. + StatusCode int32 + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListProfileAttributeValuesMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListProfileAttributeValues{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListProfileAttributeValues{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListProfileAttributeValues"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpListProfileAttributeValuesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListProfileAttributeValues(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opListProfileAttributeValues(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListProfileAttributeValues", + } +} diff --git a/service/customerprofiles/api_op_ListRuleBasedMatches.go b/service/customerprofiles/api_op_ListRuleBasedMatches.go index b82c5de4a84..e183cd58611 100644 --- a/service/customerprofiles/api_op_ListRuleBasedMatches.go +++ b/service/customerprofiles/api_op_ListRuleBasedMatches.go @@ -156,6 +156,100 @@ func (c *Client) addOperationListRuleBasedMatchesMiddlewares(stack *middleware.S return nil } +// ListRuleBasedMatchesPaginatorOptions is the paginator options for +// ListRuleBasedMatches +type ListRuleBasedMatchesPaginatorOptions struct { + // The maximum number of MatchIds 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 +} + +// ListRuleBasedMatchesPaginator is a paginator for ListRuleBasedMatches +type ListRuleBasedMatchesPaginator struct { + options ListRuleBasedMatchesPaginatorOptions + client ListRuleBasedMatchesAPIClient + params *ListRuleBasedMatchesInput + nextToken *string + firstPage bool +} + +// NewListRuleBasedMatchesPaginator returns a new ListRuleBasedMatchesPaginator +func NewListRuleBasedMatchesPaginator(client ListRuleBasedMatchesAPIClient, params *ListRuleBasedMatchesInput, optFns ...func(*ListRuleBasedMatchesPaginatorOptions)) *ListRuleBasedMatchesPaginator { + if params == nil { + params = &ListRuleBasedMatchesInput{} + } + + options := ListRuleBasedMatchesPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListRuleBasedMatchesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListRuleBasedMatchesPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListRuleBasedMatches page. +func (p *ListRuleBasedMatchesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListRuleBasedMatchesOutput, 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 + + optFns = append([]func(*Options){ + addIsPaginatorUserAgent, + }, optFns...) + result, err := p.client.ListRuleBasedMatches(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 +} + +// ListRuleBasedMatchesAPIClient is a client that implements the +// ListRuleBasedMatches operation. +type ListRuleBasedMatchesAPIClient interface { + ListRuleBasedMatches(context.Context, *ListRuleBasedMatchesInput, ...func(*Options)) (*ListRuleBasedMatchesOutput, error) +} + +var _ ListRuleBasedMatchesAPIClient = (*Client)(nil) + func newServiceMetadataMiddleware_opListRuleBasedMatches(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/customerprofiles/api_op_ListSegmentDefinitions.go b/service/customerprofiles/api_op_ListSegmentDefinitions.go new file mode 100644 index 00000000000..72c0381c123 --- /dev/null +++ b/service/customerprofiles/api_op_ListSegmentDefinitions.go @@ -0,0 +1,260 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package customerprofiles + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/customerprofiles/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists all segment definitions under a domain. +func (c *Client) ListSegmentDefinitions(ctx context.Context, params *ListSegmentDefinitionsInput, optFns ...func(*Options)) (*ListSegmentDefinitionsOutput, error) { + if params == nil { + params = &ListSegmentDefinitionsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListSegmentDefinitions", params, optFns, c.addOperationListSegmentDefinitionsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListSegmentDefinitionsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListSegmentDefinitionsInput struct { + + // The unique identifier of the domain. + // + // This member is required. + DomainName *string + + // The maximum number of objects returned per page. + MaxResults *int32 + + // The pagination token from the previous call. + NextToken *string + + noSmithyDocumentSerde +} + +type ListSegmentDefinitionsOutput struct { + + // List of segment definitions. + Items []types.SegmentDefinitionItem + + // The pagination token from the previous call. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListSegmentDefinitionsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListSegmentDefinitions{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListSegmentDefinitions{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListSegmentDefinitions"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpListSegmentDefinitionsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListSegmentDefinitions(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +// ListSegmentDefinitionsPaginatorOptions is the paginator options for +// ListSegmentDefinitions +type ListSegmentDefinitionsPaginatorOptions struct { + // The maximum number of objects 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 +} + +// ListSegmentDefinitionsPaginator is a paginator for ListSegmentDefinitions +type ListSegmentDefinitionsPaginator struct { + options ListSegmentDefinitionsPaginatorOptions + client ListSegmentDefinitionsAPIClient + params *ListSegmentDefinitionsInput + nextToken *string + firstPage bool +} + +// NewListSegmentDefinitionsPaginator returns a new ListSegmentDefinitionsPaginator +func NewListSegmentDefinitionsPaginator(client ListSegmentDefinitionsAPIClient, params *ListSegmentDefinitionsInput, optFns ...func(*ListSegmentDefinitionsPaginatorOptions)) *ListSegmentDefinitionsPaginator { + if params == nil { + params = &ListSegmentDefinitionsInput{} + } + + options := ListSegmentDefinitionsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListSegmentDefinitionsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListSegmentDefinitionsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListSegmentDefinitions page. +func (p *ListSegmentDefinitionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListSegmentDefinitionsOutput, 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 + + optFns = append([]func(*Options){ + addIsPaginatorUserAgent, + }, optFns...) + result, err := p.client.ListSegmentDefinitions(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 +} + +// ListSegmentDefinitionsAPIClient is a client that implements the +// ListSegmentDefinitions operation. +type ListSegmentDefinitionsAPIClient interface { + ListSegmentDefinitions(context.Context, *ListSegmentDefinitionsInput, ...func(*Options)) (*ListSegmentDefinitionsOutput, error) +} + +var _ ListSegmentDefinitionsAPIClient = (*Client)(nil) + +func newServiceMetadataMiddleware_opListSegmentDefinitions(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListSegmentDefinitions", + } +} diff --git a/service/customerprofiles/deserializers.go b/service/customerprofiles/deserializers.go index 022f024ff81..af95424efe0 100644 --- a/service/customerprofiles/deserializers.go +++ b/service/customerprofiles/deserializers.go @@ -203,14 +203,14 @@ func awsRestjson1_deserializeOpDocumentAddProfileKeyOutput(v **AddProfileKeyOutp return nil } -type awsRestjson1_deserializeOpCreateCalculatedAttributeDefinition struct { +type awsRestjson1_deserializeOpBatchGetCalculatedAttributeForProfile struct { } -func (*awsRestjson1_deserializeOpCreateCalculatedAttributeDefinition) ID() string { +func (*awsRestjson1_deserializeOpBatchGetCalculatedAttributeForProfile) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpCreateCalculatedAttributeDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpBatchGetCalculatedAttributeForProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -228,9 +228,9 @@ func (m *awsRestjson1_deserializeOpCreateCalculatedAttributeDefinition) HandleDe } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorCreateCalculatedAttributeDefinition(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorBatchGetCalculatedAttributeForProfile(response, &metadata) } - output := &CreateCalculatedAttributeDefinitionOutput{} + output := &BatchGetCalculatedAttributeForProfileOutput{} out.Result = output var buff [1024]byte @@ -251,7 +251,7 @@ func (m *awsRestjson1_deserializeOpCreateCalculatedAttributeDefinition) HandleDe return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentCreateCalculatedAttributeDefinitionOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentBatchGetCalculatedAttributeForProfileOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -265,7 +265,7 @@ func (m *awsRestjson1_deserializeOpCreateCalculatedAttributeDefinition) HandleDe return out, metadata, err } -func awsRestjson1_deserializeOpErrorCreateCalculatedAttributeDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorBatchGetCalculatedAttributeForProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -331,7 +331,7 @@ func awsRestjson1_deserializeOpErrorCreateCalculatedAttributeDefinition(response } } -func awsRestjson1_deserializeOpDocumentCreateCalculatedAttributeDefinitionOutput(v **CreateCalculatedAttributeDefinitionOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentBatchGetCalculatedAttributeForProfileOutput(v **BatchGetCalculatedAttributeForProfileOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -344,95 +344,27 @@ func awsRestjson1_deserializeOpDocumentCreateCalculatedAttributeDefinitionOutput return fmt.Errorf("unexpected JSON type %v", value) } - var sv *CreateCalculatedAttributeDefinitionOutput + var sv *BatchGetCalculatedAttributeForProfileOutput if *v == nil { - sv = &CreateCalculatedAttributeDefinitionOutput{} + sv = &BatchGetCalculatedAttributeForProfileOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AttributeDetails": - if err := awsRestjson1_deserializeDocumentAttributeDetails(&sv.AttributeDetails, value); err != nil { + case "CalculatedAttributeValues": + if err := awsRestjson1_deserializeDocumentCalculatedAttributeValueList(&sv.CalculatedAttributeValues, value); err != nil { return err } - case "CalculatedAttributeName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected typeName to be of type string, got %T instead", value) - } - sv.CalculatedAttributeName = ptr.String(jtv) - } - - case "Conditions": - if err := awsRestjson1_deserializeDocumentConditions(&sv.Conditions, value); err != nil { + case "ConditionOverrides": + if err := awsRestjson1_deserializeDocumentConditionOverrides(&sv.ConditionOverrides, 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 sensitiveText 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 displayName to be of type string, got %T instead", value) - } - sv.DisplayName = ptr.String(jtv) - } - - case "LastUpdatedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "Statistic": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Statistic to be of type string, got %T instead", value) - } - sv.Statistic = types.Statistic(jtv) - } - - case "Tags": - if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + case "Errors": + if err := awsRestjson1_deserializeDocumentBatchGetCalculatedAttributeForProfileErrorList(&sv.Errors, value); err != nil { return err } @@ -445,14 +377,14 @@ func awsRestjson1_deserializeOpDocumentCreateCalculatedAttributeDefinitionOutput return nil } -type awsRestjson1_deserializeOpCreateDomain struct { +type awsRestjson1_deserializeOpBatchGetProfile struct { } -func (*awsRestjson1_deserializeOpCreateDomain) ID() string { +func (*awsRestjson1_deserializeOpBatchGetProfile) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpCreateDomain) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpBatchGetProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -470,9 +402,9 @@ func (m *awsRestjson1_deserializeOpCreateDomain) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorCreateDomain(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorBatchGetProfile(response, &metadata) } - output := &CreateDomainOutput{} + output := &BatchGetProfileOutput{} out.Result = output var buff [1024]byte @@ -493,7 +425,7 @@ func (m *awsRestjson1_deserializeOpCreateDomain) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentCreateDomainOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentBatchGetProfileOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -507,7 +439,7 @@ func (m *awsRestjson1_deserializeOpCreateDomain) HandleDeserialize(ctx context.C return out, metadata, err } -func awsRestjson1_deserializeOpErrorCreateDomain(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorBatchGetProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -573,7 +505,7 @@ func awsRestjson1_deserializeOpErrorCreateDomain(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentCreateDomainOutput(v **CreateDomainOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentBatchGetProfileOutput(v **BatchGetProfileOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -586,99 +518,22 @@ func awsRestjson1_deserializeOpDocumentCreateDomainOutput(v **CreateDomainOutput return fmt.Errorf("unexpected JSON type %v", value) } - var sv *CreateDomainOutput + var sv *BatchGetProfileOutput if *v == nil { - sv = &CreateDomainOutput{} + sv = &BatchGetProfileOutput{} } 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 "DeadLetterQueueUrl": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected sqsQueueUrl to be of type string, got %T instead", value) - } - sv.DeadLetterQueueUrl = ptr.String(jtv) - } - - case "DefaultEncryptionKey": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected encryptionKey to be of type string, got %T instead", value) - } - sv.DefaultEncryptionKey = ptr.String(jtv) - } - - case "DefaultExpirationDays": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected expirationDaysInteger to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.DefaultExpirationDays = ptr.Int32(int32(i64)) - } - - case "DomainName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected name to be of type string, got %T instead", value) - } - sv.DomainName = ptr.String(jtv) - } - - case "LastUpdatedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "Matching": - if err := awsRestjson1_deserializeDocumentMatchingResponse(&sv.Matching, value); err != nil { + case "Errors": + if err := awsRestjson1_deserializeDocumentBatchGetProfileErrorList(&sv.Errors, value); err != nil { return err } - case "RuleBasedMatching": - if err := awsRestjson1_deserializeDocumentRuleBasedMatchingResponse(&sv.RuleBasedMatching, value); err != nil { - return err - } - - case "Tags": - if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + case "Profiles": + if err := awsRestjson1_deserializeDocumentProfileList(&sv.Profiles, value); err != nil { return err } @@ -691,14 +546,14 @@ func awsRestjson1_deserializeOpDocumentCreateDomainOutput(v **CreateDomainOutput return nil } -type awsRestjson1_deserializeOpCreateEventStream struct { +type awsRestjson1_deserializeOpCreateCalculatedAttributeDefinition struct { } -func (*awsRestjson1_deserializeOpCreateEventStream) ID() string { +func (*awsRestjson1_deserializeOpCreateCalculatedAttributeDefinition) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpCreateEventStream) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreateCalculatedAttributeDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -716,9 +571,9 @@ func (m *awsRestjson1_deserializeOpCreateEventStream) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorCreateEventStream(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateCalculatedAttributeDefinition(response, &metadata) } - output := &CreateEventStreamOutput{} + output := &CreateCalculatedAttributeDefinitionOutput{} out.Result = output var buff [1024]byte @@ -739,7 +594,7 @@ func (m *awsRestjson1_deserializeOpCreateEventStream) HandleDeserialize(ctx cont return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentCreateEventStreamOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentCreateCalculatedAttributeDefinitionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -753,7 +608,7 @@ func (m *awsRestjson1_deserializeOpCreateEventStream) HandleDeserialize(ctx cont return out, metadata, err } -func awsRestjson1_deserializeOpErrorCreateEventStream(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateCalculatedAttributeDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -819,7 +674,7 @@ func awsRestjson1_deserializeOpErrorCreateEventStream(response *smithyhttp.Respo } } -func awsRestjson1_deserializeOpDocumentCreateEventStreamOutput(v **CreateEventStreamOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentCreateCalculatedAttributeDefinitionOutput(v **CreateCalculatedAttributeDefinitionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -832,66 +687,140 @@ func awsRestjson1_deserializeOpDocumentCreateEventStreamOutput(v **CreateEventSt return fmt.Errorf("unexpected JSON type %v", value) } - var sv *CreateEventStreamOutput + var sv *CreateCalculatedAttributeDefinitionOutput if *v == nil { - sv = &CreateEventStreamOutput{} + sv = &CreateCalculatedAttributeDefinitionOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "EventStreamArn": + case "AttributeDetails": + if err := awsRestjson1_deserializeDocumentAttributeDetails(&sv.AttributeDetails, value); err != nil { + return err + } + + case "CalculatedAttributeName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + return fmt.Errorf("expected typeName to be of type string, got %T instead", value) } - sv.EventStreamArn = ptr.String(jtv) + sv.CalculatedAttributeName = ptr.String(jtv) } - case "Tags": - if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + case "Conditions": + if err := awsRestjson1_deserializeDocumentConditions(&sv.Conditions, value); err != nil { return err } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} + 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)) -type awsRestjson1_deserializeOpCreateIntegrationWorkflow struct { -} + default: + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) -func (*awsRestjson1_deserializeOpCreateIntegrationWorkflow) ID() string { - return "OperationDeserializer" -} + } + } -func (m *awsRestjson1_deserializeOpCreateIntegrationWorkflow) HandleDeserialize(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 - } + case "Description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected sensitiveText to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - response, ok := out.RawResponse.(*smithyhttp.Response) + 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 "Filter": + if err := awsRestjson1_deserializeDocumentFilter(&sv.Filter, value); err != nil { + return err + } + + case "LastUpdatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Statistic": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Statistic to be of type string, got %T instead", value) + } + sv.Statistic = types.Statistic(jtv) + } + + case "Tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpCreateDomain struct { +} + +func (*awsRestjson1_deserializeOpCreateDomain) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateDomain) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorCreateIntegrationWorkflow(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateDomain(response, &metadata) } - output := &CreateIntegrationWorkflowOutput{} + output := &CreateDomainOutput{} out.Result = output var buff [1024]byte @@ -912,7 +841,7 @@ func (m *awsRestjson1_deserializeOpCreateIntegrationWorkflow) HandleDeserialize( return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentCreateIntegrationWorkflowOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentCreateDomainOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -926,7 +855,7 @@ func (m *awsRestjson1_deserializeOpCreateIntegrationWorkflow) HandleDeserialize( return out, metadata, err } -func awsRestjson1_deserializeOpErrorCreateIntegrationWorkflow(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateDomain(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -992,7 +921,7 @@ func awsRestjson1_deserializeOpErrorCreateIntegrationWorkflow(response *smithyht } } -func awsRestjson1_deserializeOpDocumentCreateIntegrationWorkflowOutput(v **CreateIntegrationWorkflowOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentCreateDomainOutput(v **CreateDomainOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1005,31 +934,100 @@ func awsRestjson1_deserializeOpDocumentCreateIntegrationWorkflowOutput(v **Creat return fmt.Errorf("unexpected JSON type %v", value) } - var sv *CreateIntegrationWorkflowOutput + var sv *CreateDomainOutput if *v == nil { - sv = &CreateIntegrationWorkflowOutput{} + sv = &CreateDomainOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + 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 "DeadLetterQueueUrl": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + return fmt.Errorf("expected sqsQueueUrl to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.DeadLetterQueueUrl = ptr.String(jtv) } - case "WorkflowId": + case "DefaultEncryptionKey": 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 encryptionKey to be of type string, got %T instead", value) } - sv.WorkflowId = ptr.String(jtv) + sv.DefaultEncryptionKey = ptr.String(jtv) + } + + case "DefaultExpirationDays": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected expirationDaysInteger to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.DefaultExpirationDays = ptr.Int32(int32(i64)) + } + + case "DomainName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected name to be of type string, got %T instead", value) + } + sv.DomainName = ptr.String(jtv) + } + + case "LastUpdatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Matching": + if err := awsRestjson1_deserializeDocumentMatchingResponse(&sv.Matching, value); err != nil { + return err + } + + case "RuleBasedMatching": + if err := awsRestjson1_deserializeDocumentRuleBasedMatchingResponse(&sv.RuleBasedMatching, value); err != nil { + return err + } + + case "Tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err } default: @@ -1041,14 +1039,14 @@ func awsRestjson1_deserializeOpDocumentCreateIntegrationWorkflowOutput(v **Creat return nil } -type awsRestjson1_deserializeOpCreateProfile struct { +type awsRestjson1_deserializeOpCreateEventStream struct { } -func (*awsRestjson1_deserializeOpCreateProfile) ID() string { +func (*awsRestjson1_deserializeOpCreateEventStream) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpCreateProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreateEventStream) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1066,9 +1064,9 @@ func (m *awsRestjson1_deserializeOpCreateProfile) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorCreateProfile(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateEventStream(response, &metadata) } - output := &CreateProfileOutput{} + output := &CreateEventStreamOutput{} out.Result = output var buff [1024]byte @@ -1089,7 +1087,7 @@ func (m *awsRestjson1_deserializeOpCreateProfile) HandleDeserialize(ctx context. return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentCreateProfileOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentCreateEventStreamOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1103,7 +1101,7 @@ func (m *awsRestjson1_deserializeOpCreateProfile) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestjson1_deserializeOpErrorCreateProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateEventStream(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1169,7 +1167,7 @@ func awsRestjson1_deserializeOpErrorCreateProfile(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentCreateProfileOutput(v **CreateProfileOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentCreateEventStreamOutput(v **CreateEventStreamOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1182,22 +1180,27 @@ func awsRestjson1_deserializeOpDocumentCreateProfileOutput(v **CreateProfileOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *CreateProfileOutput + var sv *CreateEventStreamOutput if *v == nil { - sv = &CreateProfileOutput{} + sv = &CreateEventStreamOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "ProfileId": + case "EventStreamArn": 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 string1To255 to be of type string, got %T instead", value) } - sv.ProfileId = ptr.String(jtv) + sv.EventStreamArn = ptr.String(jtv) + } + + case "Tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err } default: @@ -1209,14 +1212,14 @@ func awsRestjson1_deserializeOpDocumentCreateProfileOutput(v **CreateProfileOutp return nil } -type awsRestjson1_deserializeOpDeleteCalculatedAttributeDefinition struct { +type awsRestjson1_deserializeOpCreateIntegrationWorkflow struct { } -func (*awsRestjson1_deserializeOpDeleteCalculatedAttributeDefinition) ID() string { +func (*awsRestjson1_deserializeOpCreateIntegrationWorkflow) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteCalculatedAttributeDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreateIntegrationWorkflow) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1234,16 +1237,44 @@ func (m *awsRestjson1_deserializeOpDeleteCalculatedAttributeDefinition) HandleDe } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteCalculatedAttributeDefinition(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateIntegrationWorkflow(response, &metadata) } - output := &DeleteCalculatedAttributeDefinitionOutput{} + output := &CreateIntegrationWorkflowOutput{} 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_deserializeOpDocumentCreateIntegrationWorkflowOutput(&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(), + } + } + span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteCalculatedAttributeDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateIntegrationWorkflow(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1309,19 +1340,68 @@ func awsRestjson1_deserializeOpErrorDeleteCalculatedAttributeDefinition(response } } -type awsRestjson1_deserializeOpDeleteDomain struct { -} - -func (*awsRestjson1_deserializeOpDeleteDomain) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpDeleteDomain) HandleDeserialize(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_deserializeOpDocumentCreateIntegrationWorkflowOutput(v **CreateIntegrationWorkflowOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateIntegrationWorkflowOutput + if *v == nil { + sv = &CreateIntegrationWorkflowOutput{} + } 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 string1To255 to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "WorkflowId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected uuid to be of type string, got %T instead", value) + } + sv.WorkflowId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpCreateProfile struct { +} + +func (*awsRestjson1_deserializeOpCreateProfile) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateProfile) HandleDeserialize(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 } _, span := tracing.StartSpan(ctx, "OperationDeserializer") @@ -1334,9 +1414,9 @@ func (m *awsRestjson1_deserializeOpDeleteDomain) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteDomain(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateProfile(response, &metadata) } - output := &DeleteDomainOutput{} + output := &CreateProfileOutput{} out.Result = output var buff [1024]byte @@ -1357,7 +1437,7 @@ func (m *awsRestjson1_deserializeOpDeleteDomain) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteDomainOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentCreateProfileOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1371,7 +1451,7 @@ func (m *awsRestjson1_deserializeOpDeleteDomain) HandleDeserialize(ctx context.C return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteDomain(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1437,7 +1517,7 @@ func awsRestjson1_deserializeOpErrorDeleteDomain(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentDeleteDomainOutput(v **DeleteDomainOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentCreateProfileOutput(v **CreateProfileOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1450,22 +1530,22 @@ func awsRestjson1_deserializeOpDocumentDeleteDomainOutput(v **DeleteDomainOutput return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteDomainOutput + var sv *CreateProfileOutput if *v == nil { - sv = &DeleteDomainOutput{} + sv = &CreateProfileOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "ProfileId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected message 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.ProfileId = ptr.String(jtv) } default: @@ -1477,14 +1557,14 @@ func awsRestjson1_deserializeOpDocumentDeleteDomainOutput(v **DeleteDomainOutput return nil } -type awsRestjson1_deserializeOpDeleteEventStream struct { +type awsRestjson1_deserializeOpCreateSegmentDefinition struct { } -func (*awsRestjson1_deserializeOpDeleteEventStream) ID() string { +func (*awsRestjson1_deserializeOpCreateSegmentDefinition) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteEventStream) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreateSegmentDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1502,16 +1582,44 @@ func (m *awsRestjson1_deserializeOpDeleteEventStream) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteEventStream(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateSegmentDefinition(response, &metadata) } - output := &DeleteEventStreamOutput{} + output := &CreateSegmentDefinitionOutput{} 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_deserializeOpDocumentCreateSegmentDefinitionOutput(&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(), + } + } + span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteEventStream(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateSegmentDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1577,14 +1685,102 @@ func awsRestjson1_deserializeOpErrorDeleteEventStream(response *smithyhttp.Respo } } -type awsRestjson1_deserializeOpDeleteIntegration struct { +func awsRestjson1_deserializeOpDocumentCreateSegmentDefinitionOutput(v **CreateSegmentDefinitionOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateSegmentDefinitionOutput + if *v == nil { + sv = &CreateSegmentDefinitionOutput{} + } 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 "Description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected sensitiveText 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 string1To255 to be of type string, got %T instead", value) + } + sv.DisplayName = ptr.String(jtv) + } + + case "SegmentDefinitionArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SegmentDefinitionArn to be of type string, got %T instead", value) + } + sv.SegmentDefinitionArn = ptr.String(jtv) + } + + case "SegmentDefinitionName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected name to be of type string, got %T instead", value) + } + sv.SegmentDefinitionName = ptr.String(jtv) + } + + case "Tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil } -func (*awsRestjson1_deserializeOpDeleteIntegration) ID() string { +type awsRestjson1_deserializeOpCreateSegmentEstimate struct { +} + +func (*awsRestjson1_deserializeOpCreateSegmentEstimate) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteIntegration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreateSegmentEstimate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1602,11 +1798,16 @@ func (m *awsRestjson1_deserializeOpDeleteIntegration) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteIntegration(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateSegmentEstimate(response, &metadata) } - output := &DeleteIntegrationOutput{} + output := &CreateSegmentEstimateOutput{} out.Result = output + err = awsRestjson1_deserializeOpHttpBindingsCreateSegmentEstimateOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -1625,7 +1826,7 @@ func (m *awsRestjson1_deserializeOpDeleteIntegration) HandleDeserialize(ctx cont return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteIntegrationOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentCreateSegmentEstimateOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1639,7 +1840,7 @@ func (m *awsRestjson1_deserializeOpDeleteIntegration) HandleDeserialize(ctx cont return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteIntegration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateSegmentEstimate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1705,7 +1906,16 @@ func awsRestjson1_deserializeOpErrorDeleteIntegration(response *smithyhttp.Respo } } -func awsRestjson1_deserializeOpDocumentDeleteIntegrationOutput(v **DeleteIntegrationOutput, value interface{}) error { +func awsRestjson1_deserializeOpHttpBindingsCreateSegmentEstimateOutput(v *CreateSegmentEstimateOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + v.StatusCode = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentCreateSegmentEstimateOutput(v **CreateSegmentEstimateOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1718,22 +1928,31 @@ func awsRestjson1_deserializeOpDocumentDeleteIntegrationOutput(v **DeleteIntegra return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteIntegrationOutput + var sv *CreateSegmentEstimateOutput if *v == nil { - sv = &DeleteIntegrationOutput{} + sv = &CreateSegmentEstimateOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "DomainName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected message to be of type string, got %T instead", value) + return fmt.Errorf("expected name to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.DomainName = ptr.String(jtv) + } + + case "EstimateId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.EstimateId = ptr.String(jtv) } default: @@ -1745,14 +1964,14 @@ func awsRestjson1_deserializeOpDocumentDeleteIntegrationOutput(v **DeleteIntegra return nil } -type awsRestjson1_deserializeOpDeleteProfile struct { +type awsRestjson1_deserializeOpCreateSegmentSnapshot struct { } -func (*awsRestjson1_deserializeOpDeleteProfile) ID() string { +func (*awsRestjson1_deserializeOpCreateSegmentSnapshot) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreateSegmentSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1770,9 +1989,9 @@ func (m *awsRestjson1_deserializeOpDeleteProfile) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteProfile(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateSegmentSnapshot(response, &metadata) } - output := &DeleteProfileOutput{} + output := &CreateSegmentSnapshotOutput{} out.Result = output var buff [1024]byte @@ -1793,7 +2012,7 @@ func (m *awsRestjson1_deserializeOpDeleteProfile) HandleDeserialize(ctx context. return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteProfileOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentCreateSegmentSnapshotOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1807,7 +2026,7 @@ func (m *awsRestjson1_deserializeOpDeleteProfile) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateSegmentSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1873,7 +2092,7 @@ func awsRestjson1_deserializeOpErrorDeleteProfile(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentDeleteProfileOutput(v **DeleteProfileOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentCreateSegmentSnapshotOutput(v **CreateSegmentSnapshotOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1886,22 +2105,22 @@ func awsRestjson1_deserializeOpDocumentDeleteProfileOutput(v **DeleteProfileOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteProfileOutput + var sv *CreateSegmentSnapshotOutput if *v == nil { - sv = &DeleteProfileOutput{} + sv = &CreateSegmentSnapshotOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "SnapshotId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected message 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.SnapshotId = ptr.String(jtv) } default: @@ -1913,14 +2132,14 @@ func awsRestjson1_deserializeOpDocumentDeleteProfileOutput(v **DeleteProfileOutp return nil } -type awsRestjson1_deserializeOpDeleteProfileKey struct { +type awsRestjson1_deserializeOpDeleteCalculatedAttributeDefinition struct { } -func (*awsRestjson1_deserializeOpDeleteProfileKey) ID() string { +func (*awsRestjson1_deserializeOpDeleteCalculatedAttributeDefinition) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteProfileKey) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteCalculatedAttributeDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1938,44 +2157,16 @@ func (m *awsRestjson1_deserializeOpDeleteProfileKey) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteProfileKey(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteCalculatedAttributeDefinition(response, &metadata) } - output := &DeleteProfileKeyOutput{} + output := &DeleteCalculatedAttributeDefinitionOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) + span.End() + return out, metadata, err +} - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - 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_deserializeOpDocumentDeleteProfileKeyOutput(&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(), - } - } - - span.End() - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorDeleteProfileKey(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteCalculatedAttributeDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2041,54 +2232,14 @@ func awsRestjson1_deserializeOpErrorDeleteProfileKey(response *smithyhttp.Respon } } -func awsRestjson1_deserializeOpDocumentDeleteProfileKeyOutput(v **DeleteProfileKeyOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DeleteProfileKeyOutput - if *v == nil { - sv = &DeleteProfileKeyOutput{} - } 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 -} - -type awsRestjson1_deserializeOpDeleteProfileObject struct { +type awsRestjson1_deserializeOpDeleteDomain struct { } -func (*awsRestjson1_deserializeOpDeleteProfileObject) ID() string { +func (*awsRestjson1_deserializeOpDeleteDomain) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteProfileObject) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteDomain) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2106,9 +2257,9 @@ func (m *awsRestjson1_deserializeOpDeleteProfileObject) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteProfileObject(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteDomain(response, &metadata) } - output := &DeleteProfileObjectOutput{} + output := &DeleteDomainOutput{} out.Result = output var buff [1024]byte @@ -2129,7 +2280,7 @@ func (m *awsRestjson1_deserializeOpDeleteProfileObject) HandleDeserialize(ctx co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteProfileObjectOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteDomainOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2143,7 +2294,7 @@ func (m *awsRestjson1_deserializeOpDeleteProfileObject) HandleDeserialize(ctx co return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteProfileObject(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteDomain(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2209,7 +2360,7 @@ func awsRestjson1_deserializeOpErrorDeleteProfileObject(response *smithyhttp.Res } } -func awsRestjson1_deserializeOpDocumentDeleteProfileObjectOutput(v **DeleteProfileObjectOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteDomainOutput(v **DeleteDomainOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2222,9 +2373,9 @@ func awsRestjson1_deserializeOpDocumentDeleteProfileObjectOutput(v **DeleteProfi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteProfileObjectOutput + var sv *DeleteDomainOutput if *v == nil { - sv = &DeleteProfileObjectOutput{} + sv = &DeleteDomainOutput{} } else { sv = *v } @@ -2249,14 +2400,14 @@ func awsRestjson1_deserializeOpDocumentDeleteProfileObjectOutput(v **DeleteProfi return nil } -type awsRestjson1_deserializeOpDeleteProfileObjectType struct { +type awsRestjson1_deserializeOpDeleteEventStream struct { } -func (*awsRestjson1_deserializeOpDeleteProfileObjectType) ID() string { +func (*awsRestjson1_deserializeOpDeleteEventStream) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteProfileObjectType) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteEventStream) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2274,9 +2425,109 @@ func (m *awsRestjson1_deserializeOpDeleteProfileObjectType) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteProfileObjectType(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteEventStream(response, &metadata) } - output := &DeleteProfileObjectTypeOutput{} + output := &DeleteEventStreamOutput{} + out.Result = output + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeleteEventStream(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("BadRequestException", errorCode): + return awsRestjson1_deserializeErrorBadRequestException(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 + + } +} + +type awsRestjson1_deserializeOpDeleteIntegration struct { +} + +func (*awsRestjson1_deserializeOpDeleteIntegration) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteIntegration) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorDeleteIntegration(response, &metadata) + } + output := &DeleteIntegrationOutput{} out.Result = output var buff [1024]byte @@ -2297,7 +2548,7 @@ func (m *awsRestjson1_deserializeOpDeleteProfileObjectType) HandleDeserialize(ct return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteProfileObjectTypeOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteIntegrationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2311,7 +2562,7 @@ func (m *awsRestjson1_deserializeOpDeleteProfileObjectType) HandleDeserialize(ct return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteProfileObjectType(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteIntegration(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2377,7 +2628,7 @@ func awsRestjson1_deserializeOpErrorDeleteProfileObjectType(response *smithyhttp } } -func awsRestjson1_deserializeOpDocumentDeleteProfileObjectTypeOutput(v **DeleteProfileObjectTypeOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteIntegrationOutput(v **DeleteIntegrationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2390,9 +2641,9 @@ func awsRestjson1_deserializeOpDocumentDeleteProfileObjectTypeOutput(v **DeleteP return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteProfileObjectTypeOutput + var sv *DeleteIntegrationOutput if *v == nil { - sv = &DeleteProfileObjectTypeOutput{} + sv = &DeleteIntegrationOutput{} } else { sv = *v } @@ -2417,14 +2668,14 @@ func awsRestjson1_deserializeOpDocumentDeleteProfileObjectTypeOutput(v **DeleteP return nil } -type awsRestjson1_deserializeOpDeleteWorkflow struct { +type awsRestjson1_deserializeOpDeleteProfile struct { } -func (*awsRestjson1_deserializeOpDeleteWorkflow) ID() string { +func (*awsRestjson1_deserializeOpDeleteProfile) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteWorkflow) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2442,16 +2693,44 @@ func (m *awsRestjson1_deserializeOpDeleteWorkflow) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteWorkflow(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteProfile(response, &metadata) } - output := &DeleteWorkflowOutput{} + output := &DeleteProfileOutput{} 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_deserializeOpDocumentDeleteProfileOutput(&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(), + } + } + span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteWorkflow(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2517,14 +2796,54 @@ func awsRestjson1_deserializeOpErrorDeleteWorkflow(response *smithyhttp.Response } } -type awsRestjson1_deserializeOpDetectProfileObjectType struct { -} +func awsRestjson1_deserializeOpDocumentDeleteProfileOutput(v **DeleteProfileOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } -func (*awsRestjson1_deserializeOpDetectProfileObjectType) ID() string { - return "OperationDeserializer" + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DeleteProfileOutput + if *v == nil { + sv = &DeleteProfileOutput{} + } 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 (m *awsRestjson1_deserializeOpDetectProfileObjectType) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +type awsRestjson1_deserializeOpDeleteProfileKey struct { +} + +func (*awsRestjson1_deserializeOpDeleteProfileKey) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteProfileKey) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2542,9 +2861,9 @@ func (m *awsRestjson1_deserializeOpDetectProfileObjectType) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDetectProfileObjectType(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteProfileKey(response, &metadata) } - output := &DetectProfileObjectTypeOutput{} + output := &DeleteProfileKeyOutput{} out.Result = output var buff [1024]byte @@ -2565,7 +2884,7 @@ func (m *awsRestjson1_deserializeOpDetectProfileObjectType) HandleDeserialize(ct return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDetectProfileObjectTypeOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteProfileKeyOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2579,7 +2898,7 @@ func (m *awsRestjson1_deserializeOpDetectProfileObjectType) HandleDeserialize(ct return out, metadata, err } -func awsRestjson1_deserializeOpErrorDetectProfileObjectType(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteProfileKey(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2645,7 +2964,7 @@ func awsRestjson1_deserializeOpErrorDetectProfileObjectType(response *smithyhttp } } -func awsRestjson1_deserializeOpDocumentDetectProfileObjectTypeOutput(v **DetectProfileObjectTypeOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteProfileKeyOutput(v **DeleteProfileKeyOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2658,18 +2977,22 @@ func awsRestjson1_deserializeOpDocumentDetectProfileObjectTypeOutput(v **DetectP return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DetectProfileObjectTypeOutput + var sv *DeleteProfileKeyOutput if *v == nil { - sv = &DetectProfileObjectTypeOutput{} + sv = &DeleteProfileKeyOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DetectedProfileObjectTypes": - if err := awsRestjson1_deserializeDocumentDetectedProfileObjectTypes(&sv.DetectedProfileObjectTypes, value); err != nil { - return err + 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: @@ -2681,14 +3004,14 @@ func awsRestjson1_deserializeOpDocumentDetectProfileObjectTypeOutput(v **DetectP return nil } -type awsRestjson1_deserializeOpGetAutoMergingPreview struct { +type awsRestjson1_deserializeOpDeleteProfileObject struct { } -func (*awsRestjson1_deserializeOpGetAutoMergingPreview) ID() string { +func (*awsRestjson1_deserializeOpDeleteProfileObject) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetAutoMergingPreview) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteProfileObject) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2706,9 +3029,9 @@ func (m *awsRestjson1_deserializeOpGetAutoMergingPreview) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetAutoMergingPreview(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteProfileObject(response, &metadata) } - output := &GetAutoMergingPreviewOutput{} + output := &DeleteProfileObjectOutput{} out.Result = output var buff [1024]byte @@ -2729,7 +3052,7 @@ func (m *awsRestjson1_deserializeOpGetAutoMergingPreview) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetAutoMergingPreviewOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteProfileObjectOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2743,7 +3066,7 @@ func (m *awsRestjson1_deserializeOpGetAutoMergingPreview) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetAutoMergingPreview(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteProfileObject(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2809,7 +3132,7 @@ func awsRestjson1_deserializeOpErrorGetAutoMergingPreview(response *smithyhttp.R } } -func awsRestjson1_deserializeOpDocumentGetAutoMergingPreviewOutput(v **GetAutoMergingPreviewOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteProfileObjectOutput(v **DeleteProfileObjectOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2822,61 +3145,22 @@ func awsRestjson1_deserializeOpDocumentGetAutoMergingPreviewOutput(v **GetAutoMe return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetAutoMergingPreviewOutput + var sv *DeleteProfileObjectOutput if *v == nil { - sv = &GetAutoMergingPreviewOutput{} + sv = &DeleteProfileObjectOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DomainName": + case "Message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected name to be of type string, got %T instead", value) - } - sv.DomainName = ptr.String(jtv) - } - - case "NumberOfMatchesInSample": - 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.NumberOfMatchesInSample = i64 - } - - case "NumberOfProfilesInSample": - 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.NumberOfProfilesInSample = i64 - } - - case "NumberOfProfilesWillBeMerged": - 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 + return fmt.Errorf("expected message to be of type string, got %T instead", value) } - sv.NumberOfProfilesWillBeMerged = i64 + sv.Message = ptr.String(jtv) } default: @@ -2888,14 +3172,14 @@ func awsRestjson1_deserializeOpDocumentGetAutoMergingPreviewOutput(v **GetAutoMe return nil } -type awsRestjson1_deserializeOpGetCalculatedAttributeDefinition struct { +type awsRestjson1_deserializeOpDeleteProfileObjectType struct { } -func (*awsRestjson1_deserializeOpGetCalculatedAttributeDefinition) ID() string { +func (*awsRestjson1_deserializeOpDeleteProfileObjectType) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetCalculatedAttributeDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteProfileObjectType) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2913,9 +3197,9 @@ func (m *awsRestjson1_deserializeOpGetCalculatedAttributeDefinition) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetCalculatedAttributeDefinition(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteProfileObjectType(response, &metadata) } - output := &GetCalculatedAttributeDefinitionOutput{} + output := &DeleteProfileObjectTypeOutput{} out.Result = output var buff [1024]byte @@ -2936,7 +3220,7 @@ func (m *awsRestjson1_deserializeOpGetCalculatedAttributeDefinition) HandleDeser return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetCalculatedAttributeDefinitionOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteProfileObjectTypeOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2950,7 +3234,7 @@ func (m *awsRestjson1_deserializeOpGetCalculatedAttributeDefinition) HandleDeser return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetCalculatedAttributeDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteProfileObjectType(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3016,7 +3300,7 @@ func awsRestjson1_deserializeOpErrorGetCalculatedAttributeDefinition(response *s } } -func awsRestjson1_deserializeOpDocumentGetCalculatedAttributeDefinitionOutput(v **GetCalculatedAttributeDefinitionOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteProfileObjectTypeOutput(v **DeleteProfileObjectTypeOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3029,96 +3313,22 @@ func awsRestjson1_deserializeOpDocumentGetCalculatedAttributeDefinitionOutput(v return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetCalculatedAttributeDefinitionOutput + var sv *DeleteProfileObjectTypeOutput if *v == nil { - sv = &GetCalculatedAttributeDefinitionOutput{} + sv = &DeleteProfileObjectTypeOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AttributeDetails": - if err := awsRestjson1_deserializeDocumentAttributeDetails(&sv.AttributeDetails, value); err != nil { - return err - } - - case "CalculatedAttributeName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected typeName to be of type string, got %T instead", value) - } - sv.CalculatedAttributeName = ptr.String(jtv) - } - - case "Conditions": - if err := awsRestjson1_deserializeDocumentConditions(&sv.Conditions, 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 sensitiveText 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 displayName to be of type string, got %T instead", value) - } - sv.DisplayName = ptr.String(jtv) - } - - case "LastUpdatedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "Statistic": + case "Message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Statistic to be of type string, got %T instead", value) + return fmt.Errorf("expected message to be of type string, got %T instead", value) } - sv.Statistic = types.Statistic(jtv) - } - - case "Tags": - if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { - return err + sv.Message = ptr.String(jtv) } default: @@ -3130,14 +3340,14 @@ func awsRestjson1_deserializeOpDocumentGetCalculatedAttributeDefinitionOutput(v return nil } -type awsRestjson1_deserializeOpGetCalculatedAttributeForProfile struct { +type awsRestjson1_deserializeOpDeleteSegmentDefinition struct { } -func (*awsRestjson1_deserializeOpGetCalculatedAttributeForProfile) ID() string { +func (*awsRestjson1_deserializeOpDeleteSegmentDefinition) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetCalculatedAttributeForProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteSegmentDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3155,9 +3365,9 @@ func (m *awsRestjson1_deserializeOpGetCalculatedAttributeForProfile) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetCalculatedAttributeForProfile(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteSegmentDefinition(response, &metadata) } - output := &GetCalculatedAttributeForProfileOutput{} + output := &DeleteSegmentDefinitionOutput{} out.Result = output var buff [1024]byte @@ -3178,7 +3388,7 @@ func (m *awsRestjson1_deserializeOpGetCalculatedAttributeForProfile) HandleDeser return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetCalculatedAttributeForProfileOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteSegmentDefinitionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3192,7 +3402,7 @@ func (m *awsRestjson1_deserializeOpGetCalculatedAttributeForProfile) HandleDeser return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetCalculatedAttributeForProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteSegmentDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3258,7 +3468,7 @@ func awsRestjson1_deserializeOpErrorGetCalculatedAttributeForProfile(response *s } } -func awsRestjson1_deserializeOpDocumentGetCalculatedAttributeForProfileOutput(v **GetCalculatedAttributeForProfileOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteSegmentDefinitionOutput(v **DeleteSegmentDefinitionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3271,68 +3481,141 @@ func awsRestjson1_deserializeOpDocumentGetCalculatedAttributeForProfileOutput(v return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetCalculatedAttributeForProfileOutput + var sv *DeleteSegmentDefinitionOutput if *v == nil { - sv = &GetCalculatedAttributeForProfileOutput{} + sv = &DeleteSegmentDefinitionOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "CalculatedAttributeName": + case "Message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected typeName to be of type string, got %T instead", value) + return fmt.Errorf("expected string1To1000 to be of type string, got %T instead", value) } - sv.CalculatedAttributeName = ptr.String(jtv) + sv.Message = ptr.String(jtv) } - 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) - } + default: + _, _ = key, value - case "IsDataPartial": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - sv.IsDataPartial = ptr.String(jtv) - } + } + } + *v = sv + return nil +} - case "Value": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - sv.Value = ptr.String(jtv) - } +type awsRestjson1_deserializeOpDeleteWorkflow struct { +} - default: - _, _ = key, value +func (*awsRestjson1_deserializeOpDeleteWorkflow) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteWorkflow) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorDeleteWorkflow(response, &metadata) + } + output := &DeleteWorkflowOutput{} + out.Result = output + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeleteWorkflow(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("BadRequestException", errorCode): + return awsRestjson1_deserializeErrorBadRequestException(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 + } - *v = sv - return nil } -type awsRestjson1_deserializeOpGetDomain struct { +type awsRestjson1_deserializeOpDetectProfileObjectType struct { } -func (*awsRestjson1_deserializeOpGetDomain) ID() string { +func (*awsRestjson1_deserializeOpDetectProfileObjectType) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetDomain) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDetectProfileObjectType) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3350,9 +3633,9 @@ func (m *awsRestjson1_deserializeOpGetDomain) HandleDeserialize(ctx context.Cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetDomain(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDetectProfileObjectType(response, &metadata) } - output := &GetDomainOutput{} + output := &DetectProfileObjectTypeOutput{} out.Result = output var buff [1024]byte @@ -3373,7 +3656,7 @@ func (m *awsRestjson1_deserializeOpGetDomain) HandleDeserialize(ctx context.Cont return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetDomainOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDetectProfileObjectTypeOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3387,7 +3670,7 @@ func (m *awsRestjson1_deserializeOpGetDomain) HandleDeserialize(ctx context.Cont return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetDomain(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDetectProfileObjectType(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3453,7 +3736,7 @@ func awsRestjson1_deserializeOpErrorGetDomain(response *smithyhttp.Response, met } } -func awsRestjson1_deserializeOpDocumentGetDomainOutput(v **GetDomainOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDetectProfileObjectTypeOutput(v **DetectProfileObjectTypeOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3466,104 +3749,17 @@ func awsRestjson1_deserializeOpDocumentGetDomainOutput(v **GetDomainOutput, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetDomainOutput + var sv *DetectProfileObjectTypeOutput if *v == nil { - sv = &GetDomainOutput{} + sv = &DetectProfileObjectTypeOutput{} } 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 "DeadLetterQueueUrl": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected sqsQueueUrl to be of type string, got %T instead", value) - } - sv.DeadLetterQueueUrl = ptr.String(jtv) - } - - case "DefaultEncryptionKey": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected encryptionKey to be of type string, got %T instead", value) - } - sv.DefaultEncryptionKey = ptr.String(jtv) - } - - case "DefaultExpirationDays": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected expirationDaysInteger to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.DefaultExpirationDays = ptr.Int32(int32(i64)) - } - - case "DomainName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected name to be of type string, got %T instead", value) - } - sv.DomainName = ptr.String(jtv) - } - - case "LastUpdatedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "Matching": - if err := awsRestjson1_deserializeDocumentMatchingResponse(&sv.Matching, value); err != nil { - return err - } - - case "RuleBasedMatching": - if err := awsRestjson1_deserializeDocumentRuleBasedMatchingResponse(&sv.RuleBasedMatching, value); err != nil { - return err - } - - case "Stats": - if err := awsRestjson1_deserializeDocumentDomainStats(&sv.Stats, value); err != nil { - return err - } - - case "Tags": - if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + case "DetectedProfileObjectTypes": + if err := awsRestjson1_deserializeDocumentDetectedProfileObjectTypes(&sv.DetectedProfileObjectTypes, value); err != nil { return err } @@ -3576,14 +3772,14 @@ func awsRestjson1_deserializeOpDocumentGetDomainOutput(v **GetDomainOutput, valu return nil } -type awsRestjson1_deserializeOpGetEventStream struct { +type awsRestjson1_deserializeOpGetAutoMergingPreview struct { } -func (*awsRestjson1_deserializeOpGetEventStream) ID() string { +func (*awsRestjson1_deserializeOpGetAutoMergingPreview) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetEventStream) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetAutoMergingPreview) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3601,9 +3797,9 @@ func (m *awsRestjson1_deserializeOpGetEventStream) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetEventStream(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetAutoMergingPreview(response, &metadata) } - output := &GetEventStreamOutput{} + output := &GetAutoMergingPreviewOutput{} out.Result = output var buff [1024]byte @@ -3624,7 +3820,7 @@ func (m *awsRestjson1_deserializeOpGetEventStream) HandleDeserialize(ctx context return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetEventStreamOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetAutoMergingPreviewOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3638,7 +3834,7 @@ func (m *awsRestjson1_deserializeOpGetEventStream) HandleDeserialize(ctx context return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetEventStream(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetAutoMergingPreview(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3704,7 +3900,7 @@ func awsRestjson1_deserializeOpErrorGetEventStream(response *smithyhttp.Response } } -func awsRestjson1_deserializeOpDocumentGetEventStreamOutput(v **GetEventStreamOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetAutoMergingPreviewOutput(v **GetAutoMergingPreviewOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3717,37 +3913,16 @@ func awsRestjson1_deserializeOpDocumentGetEventStreamOutput(v **GetEventStreamOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetEventStreamOutput + var sv *GetAutoMergingPreviewOutput if *v == nil { - sv = &GetEventStreamOutput{} + sv = &GetAutoMergingPreviewOutput{} } 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 "DestinationDetails": - if err := awsRestjson1_deserializeDocumentEventStreamDestinationDetails(&sv.DestinationDetails, value); err != nil { - return err - } - - case "DomainName": + case "DomainName": if value != nil { jtv, ok := value.(string) if !ok { @@ -3756,43 +3931,43 @@ func awsRestjson1_deserializeOpDocumentGetEventStreamOutput(v **GetEventStreamOu sv.DomainName = ptr.String(jtv) } - case "EventStreamArn": + case "NumberOfMatchesInSample": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + return fmt.Errorf("expected long to be json.Number, got %T instead", value) } - sv.EventStreamArn = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.NumberOfMatchesInSample = i64 } - case "State": + case "NumberOfProfilesInSample": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected EventStreamState to be of type string, got %T instead", value) + return fmt.Errorf("expected long to be json.Number, got %T instead", value) } - sv.State = types.EventStreamState(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.NumberOfProfilesInSample = i64 } - case "StoppedSince": + case "NumberOfProfilesWillBeMerged": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.StoppedSince = 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 long to be json.Number, got %T instead", value) } - } - - case "Tags": - if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { - return err + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.NumberOfProfilesWillBeMerged = i64 } default: @@ -3804,14 +3979,14 @@ func awsRestjson1_deserializeOpDocumentGetEventStreamOutput(v **GetEventStreamOu return nil } -type awsRestjson1_deserializeOpGetIdentityResolutionJob struct { +type awsRestjson1_deserializeOpGetCalculatedAttributeDefinition struct { } -func (*awsRestjson1_deserializeOpGetIdentityResolutionJob) ID() string { +func (*awsRestjson1_deserializeOpGetCalculatedAttributeDefinition) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetIdentityResolutionJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetCalculatedAttributeDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3829,9 +4004,9 @@ func (m *awsRestjson1_deserializeOpGetIdentityResolutionJob) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetIdentityResolutionJob(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetCalculatedAttributeDefinition(response, &metadata) } - output := &GetIdentityResolutionJobOutput{} + output := &GetCalculatedAttributeDefinitionOutput{} out.Result = output var buff [1024]byte @@ -3852,7 +4027,7 @@ func (m *awsRestjson1_deserializeOpGetIdentityResolutionJob) HandleDeserialize(c return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetIdentityResolutionJobOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetCalculatedAttributeDefinitionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3866,7 +4041,7 @@ func (m *awsRestjson1_deserializeOpGetIdentityResolutionJob) HandleDeserialize(c return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetIdentityResolutionJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetCalculatedAttributeDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3932,7 +4107,7 @@ func awsRestjson1_deserializeOpErrorGetIdentityResolutionJob(response *smithyhtt } } -func awsRestjson1_deserializeOpDocumentGetIdentityResolutionJobOutput(v **GetIdentityResolutionJobOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetCalculatedAttributeDefinitionOutput(v **GetCalculatedAttributeDefinitionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3945,51 +4120,35 @@ func awsRestjson1_deserializeOpDocumentGetIdentityResolutionJobOutput(v **GetIde return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetIdentityResolutionJobOutput + var sv *GetCalculatedAttributeDefinitionOutput if *v == nil { - sv = &GetIdentityResolutionJobOutput{} + sv = &GetCalculatedAttributeDefinitionOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AutoMerging": - if err := awsRestjson1_deserializeDocumentAutoMerging(&sv.AutoMerging, value); err != nil { + case "AttributeDetails": + if err := awsRestjson1_deserializeDocumentAttributeDetails(&sv.AttributeDetails, value); err != nil { return err } - case "DomainName": + case "CalculatedAttributeName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected name to be of type string, got %T instead", value) + return fmt.Errorf("expected typeName to be of type string, got %T instead", value) } - sv.DomainName = ptr.String(jtv) + sv.CalculatedAttributeName = ptr.String(jtv) } - case "ExportingLocation": - if err := awsRestjson1_deserializeDocumentExportingLocation(&sv.ExportingLocation, value); err != nil { + case "Conditions": + if err := awsRestjson1_deserializeDocumentConditions(&sv.Conditions, value); err != nil { return err } - case "JobEndTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.JobEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "JobExpirationTime": + case "CreatedAt": if value != nil { switch jtv := value.(type) { case json.Number: @@ -3997,7 +4156,7 @@ func awsRestjson1_deserializeOpDocumentGetIdentityResolutionJobOutput(v **GetIde if err != nil { return err } - sv.JobExpirationTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) @@ -4005,33 +4164,26 @@ func awsRestjson1_deserializeOpDocumentGetIdentityResolutionJobOutput(v **GetIde } } - case "JobId": + case "Description": 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 sensitiveText to be of type string, got %T instead", value) } - sv.JobId = ptr.String(jtv) + sv.Description = ptr.String(jtv) } - case "JobStartTime": + case "DisplayName": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.JobStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) - + 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 "JobStats": - if err := awsRestjson1_deserializeDocumentJobStats(&sv.JobStats, value); err != nil { + case "Filter": + if err := awsRestjson1_deserializeDocumentFilter(&sv.Filter, value); err != nil { return err } @@ -4051,22 +4203,18 @@ func awsRestjson1_deserializeOpDocumentGetIdentityResolutionJobOutput(v **GetIde } } - case "Message": + case "Statistic": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected stringTo2048 to be of type string, got %T instead", value) + return fmt.Errorf("expected Statistic to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.Statistic = types.Statistic(jtv) } - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected IdentityResolutionJobStatus to be of type string, got %T instead", value) - } - sv.Status = types.IdentityResolutionJobStatus(jtv) + case "Tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err } default: @@ -4078,14 +4226,14 @@ func awsRestjson1_deserializeOpDocumentGetIdentityResolutionJobOutput(v **GetIde return nil } -type awsRestjson1_deserializeOpGetIntegration struct { +type awsRestjson1_deserializeOpGetCalculatedAttributeForProfile struct { } -func (*awsRestjson1_deserializeOpGetIntegration) ID() string { +func (*awsRestjson1_deserializeOpGetCalculatedAttributeForProfile) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetIntegration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetCalculatedAttributeForProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4103,9 +4251,9 @@ func (m *awsRestjson1_deserializeOpGetIntegration) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetIntegration(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetCalculatedAttributeForProfile(response, &metadata) } - output := &GetIntegrationOutput{} + output := &GetCalculatedAttributeForProfileOutput{} out.Result = output var buff [1024]byte @@ -4126,7 +4274,7 @@ func (m *awsRestjson1_deserializeOpGetIntegration) HandleDeserialize(ctx context return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetIntegrationOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetCalculatedAttributeForProfileOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4140,7 +4288,7 @@ func (m *awsRestjson1_deserializeOpGetIntegration) HandleDeserialize(ctx context return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetIntegration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetCalculatedAttributeForProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4206,7 +4354,7 @@ func awsRestjson1_deserializeOpErrorGetIntegration(response *smithyhttp.Response } } -func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetCalculatedAttributeForProfileOutput(v **GetCalculatedAttributeForProfileOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4219,109 +4367,49 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetIntegrationOutput + var sv *GetCalculatedAttributeForProfileOutput if *v == nil { - sv = &GetIntegrationOutput{} + sv = &GetCalculatedAttributeForProfileOutput{} } 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 "DomainName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected name to be of type string, got %T instead", value) - } - sv.DomainName = ptr.String(jtv) - } - - case "IsUnstructured": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected optionalBoolean to be of type *bool, got %T instead", value) - } - sv.IsUnstructured = ptr.Bool(jtv) - } - - case "LastUpdatedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "ObjectTypeName": + case "CalculatedAttributeName": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected typeName to be of type string, got %T instead", value) } - sv.ObjectTypeName = ptr.String(jtv) - } - - case "ObjectTypeNames": - if err := awsRestjson1_deserializeDocumentObjectTypeNames(&sv.ObjectTypeNames, value); err != nil { - return err + sv.CalculatedAttributeName = ptr.String(jtv) } - case "RoleArn": + case "DisplayName": 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 displayName to be of type string, got %T instead", value) } - sv.RoleArn = ptr.String(jtv) - } - - case "Tags": - if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { - return err + sv.DisplayName = ptr.String(jtv) } - case "Uri": + case "IsDataPartial": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) } - sv.Uri = ptr.String(jtv) + sv.IsDataPartial = ptr.String(jtv) } - case "WorkflowId": + case "Value": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) } - sv.WorkflowId = ptr.String(jtv) + sv.Value = ptr.String(jtv) } default: @@ -4333,14 +4421,14 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOu return nil } -type awsRestjson1_deserializeOpGetMatches struct { +type awsRestjson1_deserializeOpGetDomain struct { } -func (*awsRestjson1_deserializeOpGetMatches) ID() string { +func (*awsRestjson1_deserializeOpGetDomain) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetMatches) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetDomain) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4358,9 +4446,9 @@ func (m *awsRestjson1_deserializeOpGetMatches) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetMatches(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetDomain(response, &metadata) } - output := &GetMatchesOutput{} + output := &GetDomainOutput{} out.Result = output var buff [1024]byte @@ -4381,7 +4469,7 @@ func (m *awsRestjson1_deserializeOpGetMatches) HandleDeserialize(ctx context.Con return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetMatchesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetDomainOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4395,7 +4483,7 @@ func (m *awsRestjson1_deserializeOpGetMatches) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetMatches(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetDomain(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4461,7 +4549,7 @@ func awsRestjson1_deserializeOpErrorGetMatches(response *smithyhttp.Response, me } } -func awsRestjson1_deserializeOpDocumentGetMatchesOutput(v **GetMatchesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetDomainOutput(v **GetDomainOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4474,21 +4562,16 @@ func awsRestjson1_deserializeOpDocumentGetMatchesOutput(v **GetMatchesOutput, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetMatchesOutput + var sv *GetDomainOutput if *v == nil { - sv = &GetMatchesOutput{} + sv = &GetDomainOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Matches": - if err := awsRestjson1_deserializeDocumentMatchesList(&sv.Matches, value); err != nil { - return err - } - - case "MatchGenerationDate": + case "CreatedAt": if value != nil { switch jtv := value.(type) { case json.Number: @@ -4496,7 +4579,7 @@ func awsRestjson1_deserializeOpDocumentGetMatchesOutput(v **GetMatchesOutput, va if err != nil { return err } - sv.MatchGenerationDate = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) @@ -4504,26 +4587,80 @@ func awsRestjson1_deserializeOpDocumentGetMatchesOutput(v **GetMatchesOutput, va } } - case "NextToken": + case "DeadLetterQueueUrl": 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 sqsQueueUrl to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.DeadLetterQueueUrl = ptr.String(jtv) } - case "PotentialMatches": + case "DefaultEncryptionKey": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected encryptionKey to be of type string, got %T instead", value) + } + sv.DefaultEncryptionKey = ptr.String(jtv) + } + + case "DefaultExpirationDays": if value != nil { jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected matchesNumber to be json.Number, got %T instead", value) + return fmt.Errorf("expected expirationDaysInteger to be json.Number, got %T instead", value) } i64, err := jtv.Int64() if err != nil { return err } - sv.PotentialMatches = ptr.Int32(int32(i64)) + sv.DefaultExpirationDays = ptr.Int32(int32(i64)) + } + + case "DomainName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected name to be of type string, got %T instead", value) + } + sv.DomainName = ptr.String(jtv) + } + + case "LastUpdatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Matching": + if err := awsRestjson1_deserializeDocumentMatchingResponse(&sv.Matching, value); err != nil { + return err + } + + case "RuleBasedMatching": + if err := awsRestjson1_deserializeDocumentRuleBasedMatchingResponse(&sv.RuleBasedMatching, value); err != nil { + return err + } + + case "Stats": + if err := awsRestjson1_deserializeDocumentDomainStats(&sv.Stats, value); err != nil { + return err + } + + case "Tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err } default: @@ -4535,14 +4672,14 @@ func awsRestjson1_deserializeOpDocumentGetMatchesOutput(v **GetMatchesOutput, va return nil } -type awsRestjson1_deserializeOpGetProfileObjectType struct { +type awsRestjson1_deserializeOpGetEventStream struct { } -func (*awsRestjson1_deserializeOpGetProfileObjectType) ID() string { +func (*awsRestjson1_deserializeOpGetEventStream) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetProfileObjectType) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetEventStream) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4560,9 +4697,9 @@ func (m *awsRestjson1_deserializeOpGetProfileObjectType) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetProfileObjectType(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetEventStream(response, &metadata) } - output := &GetProfileObjectTypeOutput{} + output := &GetEventStreamOutput{} out.Result = output var buff [1024]byte @@ -4583,7 +4720,7 @@ func (m *awsRestjson1_deserializeOpGetProfileObjectType) HandleDeserialize(ctx c return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetProfileObjectTypeOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetEventStreamOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4597,7 +4734,7 @@ func (m *awsRestjson1_deserializeOpGetProfileObjectType) HandleDeserialize(ctx c return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetProfileObjectType(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetEventStream(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4663,7 +4800,7 @@ func awsRestjson1_deserializeOpErrorGetProfileObjectType(response *smithyhttp.Re } } -func awsRestjson1_deserializeOpDocumentGetProfileObjectTypeOutput(v **GetProfileObjectTypeOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetEventStreamOutput(v **GetEventStreamOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4676,24 +4813,15 @@ func awsRestjson1_deserializeOpDocumentGetProfileObjectTypeOutput(v **GetProfile return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetProfileObjectTypeOutput + var sv *GetEventStreamOutput if *v == nil { - sv = &GetProfileObjectTypeOutput{} + sv = &GetEventStreamOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AllowProfileCreation": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) - } - sv.AllowProfileCreation = jtv - } - case "CreatedAt": if value != nil { switch jtv := value.(type) { @@ -4710,48 +4838,39 @@ func awsRestjson1_deserializeOpDocumentGetProfileObjectTypeOutput(v **GetProfile } } - case "Description": + case "DestinationDetails": + if err := awsRestjson1_deserializeDocumentEventStreamDestinationDetails(&sv.DestinationDetails, value); err != nil { + return err + } + + case "DomainName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected sensitiveText to be of type string, got %T instead", value) + return fmt.Errorf("expected name to be of type string, got %T instead", value) } - sv.Description = ptr.String(jtv) + sv.DomainName = ptr.String(jtv) } - case "EncryptionKey": + case "EventStreamArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected encryptionKey to be of type string, got %T instead", value) + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) } - sv.EncryptionKey = ptr.String(jtv) + sv.EventStreamArn = ptr.String(jtv) } - case "ExpirationDays": + case "State": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected expirationDaysInteger to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected EventStreamState to be of type string, got %T instead", value) } - sv.ExpirationDays = ptr.Int32(int32(i64)) - } - - case "Fields": - if err := awsRestjson1_deserializeDocumentFieldMap(&sv.Fields, value); err != nil { - return err - } - - case "Keys": - if err := awsRestjson1_deserializeDocumentKeyMap(&sv.Keys, value); err != nil { - return err + sv.State = types.EventStreamState(jtv) } - case "LastUpdatedAt": + case "StoppedSince": if value != nil { switch jtv := value.(type) { case json.Number: @@ -4759,7 +4878,7 @@ func awsRestjson1_deserializeOpDocumentGetProfileObjectTypeOutput(v **GetProfile if err != nil { return err } - sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.StoppedSince = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) @@ -4767,64 +4886,11 @@ func awsRestjson1_deserializeOpDocumentGetProfileObjectTypeOutput(v **GetProfile } } - case "MaxAvailableProfileObjectCount": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected minSize0 to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.MaxAvailableProfileObjectCount = ptr.Int32(int32(i64)) - } - - case "MaxProfileObjectCount": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected minSize1 to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.MaxProfileObjectCount = ptr.Int32(int32(i64)) - } - - case "ObjectTypeName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected typeName to be of type string, got %T instead", value) - } - sv.ObjectTypeName = ptr.String(jtv) - } - - case "SourceLastUpdatedTimestampFormat": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - sv.SourceLastUpdatedTimestampFormat = ptr.String(jtv) - } - case "Tags": if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { return err } - case "TemplateId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected name to be of type string, got %T instead", value) - } - sv.TemplateId = ptr.String(jtv) - } - default: _, _ = key, value @@ -4834,14 +4900,14 @@ func awsRestjson1_deserializeOpDocumentGetProfileObjectTypeOutput(v **GetProfile return nil } -type awsRestjson1_deserializeOpGetProfileObjectTypeTemplate struct { +type awsRestjson1_deserializeOpGetIdentityResolutionJob struct { } -func (*awsRestjson1_deserializeOpGetProfileObjectTypeTemplate) ID() string { +func (*awsRestjson1_deserializeOpGetIdentityResolutionJob) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetProfileObjectTypeTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetIdentityResolutionJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4859,9 +4925,9 @@ func (m *awsRestjson1_deserializeOpGetProfileObjectTypeTemplate) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetProfileObjectTypeTemplate(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetIdentityResolutionJob(response, &metadata) } - output := &GetProfileObjectTypeTemplateOutput{} + output := &GetIdentityResolutionJobOutput{} out.Result = output var buff [1024]byte @@ -4882,7 +4948,7 @@ func (m *awsRestjson1_deserializeOpGetProfileObjectTypeTemplate) HandleDeseriali return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetProfileObjectTypeTemplateOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetIdentityResolutionJobOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4896,7 +4962,7 @@ func (m *awsRestjson1_deserializeOpGetProfileObjectTypeTemplate) HandleDeseriali return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetProfileObjectTypeTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetIdentityResolutionJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4962,7 +5028,7 @@ func awsRestjson1_deserializeOpErrorGetProfileObjectTypeTemplate(response *smith } } -func awsRestjson1_deserializeOpDocumentGetProfileObjectTypeTemplateOutput(v **GetProfileObjectTypeTemplateOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetIdentityResolutionJobOutput(v **GetIdentityResolutionJobOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4975,68 +5041,128 @@ func awsRestjson1_deserializeOpDocumentGetProfileObjectTypeTemplateOutput(v **Ge return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetProfileObjectTypeTemplateOutput + var sv *GetIdentityResolutionJobOutput if *v == nil { - sv = &GetProfileObjectTypeTemplateOutput{} + sv = &GetIdentityResolutionJobOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AllowProfileCreation": + case "AutoMerging": + if err := awsRestjson1_deserializeDocumentAutoMerging(&sv.AutoMerging, value); err != nil { + return err + } + + case "DomainName": 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 name to be of type string, got %T instead", value) } - sv.AllowProfileCreation = jtv + sv.DomainName = ptr.String(jtv) } - case "Fields": - if err := awsRestjson1_deserializeDocumentFieldMap(&sv.Fields, value); err != nil { + case "ExportingLocation": + if err := awsRestjson1_deserializeDocumentExportingLocation(&sv.ExportingLocation, value); err != nil { return err } - case "Keys": - if err := awsRestjson1_deserializeDocumentKeyMap(&sv.Keys, value); err != nil { - return err + case "JobEndTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.JobEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + + } } - case "SourceLastUpdatedTimestampFormat": + case "JobExpirationTime": if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.JobExpirationTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + } - sv.SourceLastUpdatedTimestampFormat = ptr.String(jtv) } - case "SourceName": + case "JobId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected name to be of type string, got %T instead", value) + return fmt.Errorf("expected uuid to be of type string, got %T instead", value) } - sv.SourceName = ptr.String(jtv) + sv.JobId = ptr.String(jtv) } - case "SourceObject": + case "JobStartTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.JobStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "JobStats": + if err := awsRestjson1_deserializeDocumentJobStats(&sv.JobStats, value); err != nil { + return err + } + + case "LastUpdatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected name to be of type string, got %T instead", value) + return fmt.Errorf("expected stringTo2048 to be of type string, got %T instead", value) } - sv.SourceObject = ptr.String(jtv) + sv.Message = ptr.String(jtv) } - case "TemplateId": + case "Status": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected name to be of type string, got %T instead", value) + return fmt.Errorf("expected IdentityResolutionJobStatus to be of type string, got %T instead", value) } - sv.TemplateId = ptr.String(jtv) + sv.Status = types.IdentityResolutionJobStatus(jtv) } default: @@ -5048,14 +5174,14 @@ func awsRestjson1_deserializeOpDocumentGetProfileObjectTypeTemplateOutput(v **Ge return nil } -type awsRestjson1_deserializeOpGetSimilarProfiles struct { +type awsRestjson1_deserializeOpGetIntegration struct { } -func (*awsRestjson1_deserializeOpGetSimilarProfiles) ID() string { +func (*awsRestjson1_deserializeOpGetIntegration) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetSimilarProfiles) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetIntegration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5073,9 +5199,9 @@ func (m *awsRestjson1_deserializeOpGetSimilarProfiles) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetSimilarProfiles(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetIntegration(response, &metadata) } - output := &GetSimilarProfilesOutput{} + output := &GetIntegrationOutput{} out.Result = output var buff [1024]byte @@ -5096,7 +5222,7 @@ func (m *awsRestjson1_deserializeOpGetSimilarProfiles) HandleDeserialize(ctx con return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetSimilarProfilesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetIntegrationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5110,7 +5236,7 @@ func (m *awsRestjson1_deserializeOpGetSimilarProfiles) HandleDeserialize(ctx con return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetSimilarProfiles(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetIntegration(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5176,7 +5302,7 @@ func awsRestjson1_deserializeOpErrorGetSimilarProfiles(response *smithyhttp.Resp } } -func awsRestjson1_deserializeOpDocumentGetSimilarProfilesOutput(v **GetSimilarProfilesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5189,16 +5315,16 @@ func awsRestjson1_deserializeOpDocumentGetSimilarProfilesOutput(v **GetSimilarPr return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetSimilarProfilesOutput + var sv *GetIntegrationOutput if *v == nil { - sv = &GetSimilarProfilesOutput{} + sv = &GetIntegrationOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "ConfidenceScore": + case "CreatedAt": if value != nil { switch jtv := value.(type) { case json.Number: @@ -5206,75 +5332,92 @@ func awsRestjson1_deserializeOpDocumentGetSimilarProfilesOutput(v **GetSimilarPr if err != nil { return err } - sv.ConfidenceScore = ptr.Float64(f64) + sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() + default: + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) + } + } - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) + case "DomainName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected name to be of type string, got %T instead", value) + } + sv.DomainName = ptr.String(jtv) + } - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) + case "IsUnstructured": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected optionalBoolean to be of type *bool, got %T instead", value) + } + sv.IsUnstructured = ptr.Bool(jtv) + } + case "LastUpdatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err } - sv.ConfidenceScore = ptr.Float64(f64) + sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) } } - case "MatchId": + case "ObjectTypeName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + return fmt.Errorf("expected typeName to be of type string, got %T instead", value) } - sv.MatchId = ptr.String(jtv) + sv.ObjectTypeName = ptr.String(jtv) } - case "MatchType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected MatchType to be of type string, got %T instead", value) - } - sv.MatchType = types.MatchType(jtv) + case "ObjectTypeNames": + if err := awsRestjson1_deserializeDocumentObjectTypeNames(&sv.ObjectTypeNames, value); err != nil { + return err } - case "NextToken": + case "RoleArn": 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 RoleArn to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.RoleArn = ptr.String(jtv) } - case "ProfileIds": - if err := awsRestjson1_deserializeDocumentProfileIdList(&sv.ProfileIds, value); err != nil { + case "Tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { return err } - case "RuleLevel": + case "Uri": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected RuleLevel to be json.Number, got %T instead", value) + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) } - i64, err := jtv.Int64() - if err != nil { - return err + sv.Uri = ptr.String(jtv) + } + + case "WorkflowId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) } - sv.RuleLevel = ptr.Int32(int32(i64)) + sv.WorkflowId = ptr.String(jtv) } default: @@ -5286,14 +5429,14 @@ func awsRestjson1_deserializeOpDocumentGetSimilarProfilesOutput(v **GetSimilarPr return nil } -type awsRestjson1_deserializeOpGetWorkflow struct { +type awsRestjson1_deserializeOpGetMatches struct { } -func (*awsRestjson1_deserializeOpGetWorkflow) ID() string { +func (*awsRestjson1_deserializeOpGetMatches) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetWorkflow) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetMatches) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5311,9 +5454,9 @@ func (m *awsRestjson1_deserializeOpGetWorkflow) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetWorkflow(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetMatches(response, &metadata) } - output := &GetWorkflowOutput{} + output := &GetMatchesOutput{} out.Result = output var buff [1024]byte @@ -5334,7 +5477,7 @@ func (m *awsRestjson1_deserializeOpGetWorkflow) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetWorkflowOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetMatchesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5348,7 +5491,7 @@ func (m *awsRestjson1_deserializeOpGetWorkflow) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetWorkflow(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetMatches(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5414,7 +5557,7 @@ func awsRestjson1_deserializeOpErrorGetWorkflow(response *smithyhttp.Response, m } } -func awsRestjson1_deserializeOpDocumentGetWorkflowOutput(v **GetWorkflowOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetMatchesOutput(v **GetMatchesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5427,30 +5570,21 @@ func awsRestjson1_deserializeOpDocumentGetWorkflowOutput(v **GetWorkflowOutput, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetWorkflowOutput + var sv *GetMatchesOutput if *v == nil { - sv = &GetWorkflowOutput{} + sv = &GetMatchesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Attributes": - if err := awsRestjson1_deserializeDocumentWorkflowAttributes(&sv.Attributes, value); err != nil { + case "Matches": + if err := awsRestjson1_deserializeDocumentMatchesList(&sv.Matches, value); err != nil { return err } - case "ErrorDescription": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - sv.ErrorDescription = ptr.String(jtv) - } - - case "LastUpdatedAt": + case "MatchGenerationDate": if value != nil { switch jtv := value.(type) { case json.Number: @@ -5458,7 +5592,7 @@ func awsRestjson1_deserializeOpDocumentGetWorkflowOutput(v **GetWorkflowOutput, if err != nil { return err } - sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.MatchGenerationDate = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) @@ -5466,52 +5600,26 @@ func awsRestjson1_deserializeOpDocumentGetWorkflowOutput(v **GetWorkflowOutput, } } - case "Metrics": - if err := awsRestjson1_deserializeDocumentWorkflowMetrics(&sv.Metrics, 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) } - case "StartDate": + case "PotentialMatches": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.StartDate = 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 Status to be of type string, got %T instead", value) - } - sv.Status = types.Status(jtv) - } - - case "WorkflowId": - if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected uuid to be of type string, got %T instead", value) + return fmt.Errorf("expected matchesNumber to be json.Number, got %T instead", value) } - sv.WorkflowId = ptr.String(jtv) - } - - case "WorkflowType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected WorkflowType to be of type string, got %T instead", value) + i64, err := jtv.Int64() + if err != nil { + return err } - sv.WorkflowType = types.WorkflowType(jtv) + sv.PotentialMatches = ptr.Int32(int32(i64)) } default: @@ -5523,14 +5631,14 @@ func awsRestjson1_deserializeOpDocumentGetWorkflowOutput(v **GetWorkflowOutput, return nil } -type awsRestjson1_deserializeOpGetWorkflowSteps struct { +type awsRestjson1_deserializeOpGetProfileObjectType struct { } -func (*awsRestjson1_deserializeOpGetWorkflowSteps) ID() string { +func (*awsRestjson1_deserializeOpGetProfileObjectType) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetWorkflowSteps) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetProfileObjectType) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5548,9 +5656,9 @@ func (m *awsRestjson1_deserializeOpGetWorkflowSteps) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetWorkflowSteps(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetProfileObjectType(response, &metadata) } - output := &GetWorkflowStepsOutput{} + output := &GetProfileObjectTypeOutput{} out.Result = output var buff [1024]byte @@ -5571,7 +5679,7 @@ func (m *awsRestjson1_deserializeOpGetWorkflowSteps) HandleDeserialize(ctx conte return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetWorkflowStepsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetProfileObjectTypeOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5585,7 +5693,7 @@ func (m *awsRestjson1_deserializeOpGetWorkflowSteps) HandleDeserialize(ctx conte return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetWorkflowSteps(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetProfileObjectType(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5651,7 +5759,7 @@ func awsRestjson1_deserializeOpErrorGetWorkflowSteps(response *smithyhttp.Respon } } -func awsRestjson1_deserializeOpDocumentGetWorkflowStepsOutput(v **GetWorkflowStepsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetProfileObjectTypeOutput(v **GetProfileObjectTypeOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5664,45 +5772,153 @@ func awsRestjson1_deserializeOpDocumentGetWorkflowStepsOutput(v **GetWorkflowSte return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetWorkflowStepsOutput + var sv *GetProfileObjectTypeOutput if *v == nil { - sv = &GetWorkflowStepsOutput{} + sv = &GetProfileObjectTypeOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Items": - if err := awsRestjson1_deserializeDocumentWorkflowStepsList(&sv.Items, value); err != nil { + case "AllowProfileCreation": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) + } + sv.AllowProfileCreation = jtv + } + + 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 sensitiveText to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "EncryptionKey": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected encryptionKey to be of type string, got %T instead", value) + } + sv.EncryptionKey = ptr.String(jtv) + } + + case "ExpirationDays": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected expirationDaysInteger to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ExpirationDays = ptr.Int32(int32(i64)) + } + + case "Fields": + if err := awsRestjson1_deserializeDocumentFieldMap(&sv.Fields, value); err != nil { return err } - case "NextToken": + case "Keys": + if err := awsRestjson1_deserializeDocumentKeyMap(&sv.Keys, value); err != nil { + return err + } + + case "LastUpdatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "MaxAvailableProfileObjectCount": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected minSize0 to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaxAvailableProfileObjectCount = ptr.Int32(int32(i64)) + } + + case "MaxProfileObjectCount": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected minSize1 to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaxProfileObjectCount = ptr.Int32(int32(i64)) + } + + case "ObjectTypeName": 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 typeName to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.ObjectTypeName = ptr.String(jtv) } - case "WorkflowId": + case "SourceLastUpdatedTimestampFormat": 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 string1To255 to be of type string, got %T instead", value) } - sv.WorkflowId = ptr.String(jtv) + sv.SourceLastUpdatedTimestampFormat = ptr.String(jtv) } - case "WorkflowType": + case "Tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err + } + + case "TemplateId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected WorkflowType to be of type string, got %T instead", value) + return fmt.Errorf("expected name to be of type string, got %T instead", value) } - sv.WorkflowType = types.WorkflowType(jtv) + sv.TemplateId = ptr.String(jtv) } default: @@ -5714,14 +5930,14 @@ func awsRestjson1_deserializeOpDocumentGetWorkflowStepsOutput(v **GetWorkflowSte return nil } -type awsRestjson1_deserializeOpListAccountIntegrations struct { +type awsRestjson1_deserializeOpGetProfileObjectTypeTemplate struct { } -func (*awsRestjson1_deserializeOpListAccountIntegrations) ID() string { +func (*awsRestjson1_deserializeOpGetProfileObjectTypeTemplate) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListAccountIntegrations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetProfileObjectTypeTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5739,9 +5955,9 @@ func (m *awsRestjson1_deserializeOpListAccountIntegrations) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListAccountIntegrations(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetProfileObjectTypeTemplate(response, &metadata) } - output := &ListAccountIntegrationsOutput{} + output := &GetProfileObjectTypeTemplateOutput{} out.Result = output var buff [1024]byte @@ -5762,7 +5978,7 @@ func (m *awsRestjson1_deserializeOpListAccountIntegrations) HandleDeserialize(ct return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListAccountIntegrationsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetProfileObjectTypeTemplateOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5776,7 +5992,7 @@ func (m *awsRestjson1_deserializeOpListAccountIntegrations) HandleDeserialize(ct return out, metadata, err } -func awsRestjson1_deserializeOpErrorListAccountIntegrations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetProfileObjectTypeTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5842,7 +6058,7 @@ func awsRestjson1_deserializeOpErrorListAccountIntegrations(response *smithyhttp } } -func awsRestjson1_deserializeOpDocumentListAccountIntegrationsOutput(v **ListAccountIntegrationsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetProfileObjectTypeTemplateOutput(v **GetProfileObjectTypeTemplateOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5855,46 +6071,87 @@ func awsRestjson1_deserializeOpDocumentListAccountIntegrationsOutput(v **ListAcc return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListAccountIntegrationsOutput + var sv *GetProfileObjectTypeTemplateOutput if *v == nil { - sv = &ListAccountIntegrationsOutput{} + sv = &GetProfileObjectTypeTemplateOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Items": - if err := awsRestjson1_deserializeDocumentIntegrationList(&sv.Items, value); err != nil { + case "AllowProfileCreation": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) + } + sv.AllowProfileCreation = jtv + } + + case "Fields": + if err := awsRestjson1_deserializeDocumentFieldMap(&sv.Fields, value); err != nil { return err } - case "NextToken": + case "Keys": + if err := awsRestjson1_deserializeDocumentKeyMap(&sv.Keys, value); err != nil { + return err + } + + case "SourceLastUpdatedTimestampFormat": 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 string1To255 to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.SourceLastUpdatedTimestampFormat = ptr.String(jtv) } - default: - _, _ = key, value + case "SourceName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected name to be of type string, got %T instead", value) + } + sv.SourceName = ptr.String(jtv) + } - } - } - *v = sv - return nil -} + case "SourceObject": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected name to be of type string, got %T instead", value) + } + sv.SourceObject = ptr.String(jtv) + } -type awsRestjson1_deserializeOpListCalculatedAttributeDefinitions struct { + case "TemplateId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected name to be of type string, got %T instead", value) + } + sv.TemplateId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil } -func (*awsRestjson1_deserializeOpListCalculatedAttributeDefinitions) ID() string { +type awsRestjson1_deserializeOpGetSegmentDefinition struct { +} + +func (*awsRestjson1_deserializeOpGetSegmentDefinition) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListCalculatedAttributeDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetSegmentDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5912,9 +6169,9 @@ func (m *awsRestjson1_deserializeOpListCalculatedAttributeDefinitions) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListCalculatedAttributeDefinitions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetSegmentDefinition(response, &metadata) } - output := &ListCalculatedAttributeDefinitionsOutput{} + output := &GetSegmentDefinitionOutput{} out.Result = output var buff [1024]byte @@ -5935,7 +6192,7 @@ func (m *awsRestjson1_deserializeOpListCalculatedAttributeDefinitions) HandleDes return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListCalculatedAttributeDefinitionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetSegmentDefinitionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5949,7 +6206,7 @@ func (m *awsRestjson1_deserializeOpListCalculatedAttributeDefinitions) HandleDes return out, metadata, err } -func awsRestjson1_deserializeOpErrorListCalculatedAttributeDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetSegmentDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6015,7 +6272,7 @@ func awsRestjson1_deserializeOpErrorListCalculatedAttributeDefinitions(response } } -func awsRestjson1_deserializeOpDocumentListCalculatedAttributeDefinitionsOutput(v **ListCalculatedAttributeDefinitionsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetSegmentDefinitionOutput(v **GetSegmentDefinitionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6028,27 +6285,75 @@ func awsRestjson1_deserializeOpDocumentListCalculatedAttributeDefinitionsOutput( return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListCalculatedAttributeDefinitionsOutput + var sv *GetSegmentDefinitionOutput if *v == nil { - sv = &ListCalculatedAttributeDefinitionsOutput{} + sv = &GetSegmentDefinitionOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Items": - if err := awsRestjson1_deserializeDocumentCalculatedAttributeDefinitionsList(&sv.Items, 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 "NextToken": + case "Description": 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 sensitiveText to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.Description = ptr.String(jtv) + } + + case "DisplayName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.DisplayName = ptr.String(jtv) + } + + case "SegmentDefinitionArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SegmentDefinitionArn to be of type string, got %T instead", value) + } + sv.SegmentDefinitionArn = ptr.String(jtv) + } + + case "SegmentDefinitionName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected name to be of type string, got %T instead", value) + } + sv.SegmentDefinitionName = ptr.String(jtv) + } + + case "SegmentGroups": + if err := awsRestjson1_deserializeDocumentSegmentGroup(&sv.SegmentGroups, value); err != nil { + return err + } + + case "Tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err } default: @@ -6060,14 +6365,14 @@ func awsRestjson1_deserializeOpDocumentListCalculatedAttributeDefinitionsOutput( return nil } -type awsRestjson1_deserializeOpListCalculatedAttributesForProfile struct { +type awsRestjson1_deserializeOpGetSegmentEstimate struct { } -func (*awsRestjson1_deserializeOpListCalculatedAttributesForProfile) ID() string { +func (*awsRestjson1_deserializeOpGetSegmentEstimate) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListCalculatedAttributesForProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetSegmentEstimate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6085,11 +6390,16 @@ func (m *awsRestjson1_deserializeOpListCalculatedAttributesForProfile) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListCalculatedAttributesForProfile(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetSegmentEstimate(response, &metadata) } - output := &ListCalculatedAttributesForProfileOutput{} + output := &GetSegmentEstimateOutput{} out.Result = output + err = awsRestjson1_deserializeOpHttpBindingsGetSegmentEstimateOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -6108,7 +6418,7 @@ func (m *awsRestjson1_deserializeOpListCalculatedAttributesForProfile) HandleDes return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListCalculatedAttributesForProfileOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetSegmentEstimateOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6122,7 +6432,7 @@ func (m *awsRestjson1_deserializeOpListCalculatedAttributesForProfile) HandleDes return out, metadata, err } -func awsRestjson1_deserializeOpErrorListCalculatedAttributesForProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetSegmentEstimate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6188,7 +6498,16 @@ func awsRestjson1_deserializeOpErrorListCalculatedAttributesForProfile(response } } -func awsRestjson1_deserializeOpDocumentListCalculatedAttributesForProfileOutput(v **ListCalculatedAttributesForProfileOutput, value interface{}) error { +func awsRestjson1_deserializeOpHttpBindingsGetSegmentEstimateOutput(v *GetSegmentEstimateOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + v.StatusCode = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentGetSegmentEstimateOutput(v **GetSegmentEstimateOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6201,27 +6520,58 @@ func awsRestjson1_deserializeOpDocumentListCalculatedAttributesForProfileOutput( return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListCalculatedAttributesForProfileOutput + var sv *GetSegmentEstimateOutput if *v == nil { - sv = &ListCalculatedAttributesForProfileOutput{} + sv = &GetSegmentEstimateOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Items": - if err := awsRestjson1_deserializeDocumentCalculatedAttributesForProfileList(&sv.Items, value); err != nil { - return err + case "DomainName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected name to be of type string, got %T instead", value) + } + sv.DomainName = ptr.String(jtv) } - case "NextToken": + case "Estimate": 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 string1To255 to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.Estimate = ptr.String(jtv) + } + + case "EstimateId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.EstimateId = ptr.String(jtv) + } + + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EstimateStatus to be of type string, got %T instead", value) + } + sv.Status = types.EstimateStatus(jtv) } default: @@ -6233,14 +6583,14 @@ func awsRestjson1_deserializeOpDocumentListCalculatedAttributesForProfileOutput( return nil } -type awsRestjson1_deserializeOpListDomains struct { +type awsRestjson1_deserializeOpGetSegmentMembership struct { } -func (*awsRestjson1_deserializeOpListDomains) ID() string { +func (*awsRestjson1_deserializeOpGetSegmentMembership) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListDomains) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetSegmentMembership) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6258,9 +6608,9 @@ func (m *awsRestjson1_deserializeOpListDomains) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListDomains(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetSegmentMembership(response, &metadata) } - output := &ListDomainsOutput{} + output := &GetSegmentMembershipOutput{} out.Result = output var buff [1024]byte @@ -6281,7 +6631,7 @@ func (m *awsRestjson1_deserializeOpListDomains) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListDomainsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetSegmentMembershipOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6295,7 +6645,7 @@ func (m *awsRestjson1_deserializeOpListDomains) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsRestjson1_deserializeOpErrorListDomains(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetSegmentMembership(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6361,7 +6711,7 @@ func awsRestjson1_deserializeOpErrorListDomains(response *smithyhttp.Response, m } } -func awsRestjson1_deserializeOpDocumentListDomainsOutput(v **ListDomainsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetSegmentMembershipOutput(v **GetSegmentMembershipOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6374,27 +6724,32 @@ func awsRestjson1_deserializeOpDocumentListDomainsOutput(v **ListDomainsOutput, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListDomainsOutput + var sv *GetSegmentMembershipOutput if *v == nil { - sv = &ListDomainsOutput{} + sv = &GetSegmentMembershipOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Items": - if err := awsRestjson1_deserializeDocumentDomainList(&sv.Items, value); err != nil { + case "Failures": + if err := awsRestjson1_deserializeDocumentFailures(&sv.Failures, value); err != nil { return err } - case "NextToken": + case "Profiles": + if err := awsRestjson1_deserializeDocumentProfiles(&sv.Profiles, value); err != nil { + return err + } + + case "SegmentDefinitionName": 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 name to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.SegmentDefinitionName = ptr.String(jtv) } default: @@ -6406,14 +6761,14 @@ func awsRestjson1_deserializeOpDocumentListDomainsOutput(v **ListDomainsOutput, return nil } -type awsRestjson1_deserializeOpListEventStreams struct { +type awsRestjson1_deserializeOpGetSegmentSnapshot struct { } -func (*awsRestjson1_deserializeOpListEventStreams) ID() string { +func (*awsRestjson1_deserializeOpGetSegmentSnapshot) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListEventStreams) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetSegmentSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6431,9 +6786,9 @@ func (m *awsRestjson1_deserializeOpListEventStreams) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListEventStreams(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetSegmentSnapshot(response, &metadata) } - output := &ListEventStreamsOutput{} + output := &GetSegmentSnapshotOutput{} out.Result = output var buff [1024]byte @@ -6454,7 +6809,7 @@ func (m *awsRestjson1_deserializeOpListEventStreams) HandleDeserialize(ctx conte return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListEventStreamsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetSegmentSnapshotOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6468,7 +6823,7 @@ func (m *awsRestjson1_deserializeOpListEventStreams) HandleDeserialize(ctx conte return out, metadata, err } -func awsRestjson1_deserializeOpErrorListEventStreams(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetSegmentSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6534,7 +6889,7 @@ func awsRestjson1_deserializeOpErrorListEventStreams(response *smithyhttp.Respon } } -func awsRestjson1_deserializeOpDocumentListEventStreamsOutput(v **ListEventStreamsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetSegmentSnapshotOutput(v **GetSegmentSnapshotOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6547,27 +6902,76 @@ func awsRestjson1_deserializeOpDocumentListEventStreamsOutput(v **ListEventStrea return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListEventStreamsOutput + var sv *GetSegmentSnapshotOutput if *v == nil { - sv = &ListEventStreamsOutput{} + sv = &GetSegmentSnapshotOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Items": - if err := awsRestjson1_deserializeDocumentEventStreamSummaryList(&sv.Items, value); err != nil { - return err + case "DataFormat": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataFormat to be of type string, got %T instead", value) + } + sv.DataFormat = types.DataFormat(jtv) } - case "NextToken": + case "DestinationUri": 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 string1To255 to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.DestinationUri = ptr.String(jtv) + } + + case "EncryptionKey": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected encryptionKey to be of type string, got %T instead", value) + } + sv.EncryptionKey = 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 "SnapshotId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected uuid to be of type string, got %T instead", value) + } + sv.SnapshotId = ptr.String(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SegmentSnapshotStatus to be of type string, got %T instead", value) + } + sv.Status = types.SegmentSnapshotStatus(jtv) + } + + case "StatusMessage": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To1000 to be of type string, got %T instead", value) + } + sv.StatusMessage = ptr.String(jtv) } default: @@ -6579,14 +6983,14 @@ func awsRestjson1_deserializeOpDocumentListEventStreamsOutput(v **ListEventStrea return nil } -type awsRestjson1_deserializeOpListIdentityResolutionJobs struct { +type awsRestjson1_deserializeOpGetSimilarProfiles struct { } -func (*awsRestjson1_deserializeOpListIdentityResolutionJobs) ID() string { +func (*awsRestjson1_deserializeOpGetSimilarProfiles) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListIdentityResolutionJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetSimilarProfiles) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6604,9 +7008,9 @@ func (m *awsRestjson1_deserializeOpListIdentityResolutionJobs) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListIdentityResolutionJobs(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetSimilarProfiles(response, &metadata) } - output := &ListIdentityResolutionJobsOutput{} + output := &GetSimilarProfilesOutput{} out.Result = output var buff [1024]byte @@ -6627,7 +7031,7 @@ func (m *awsRestjson1_deserializeOpListIdentityResolutionJobs) HandleDeserialize return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListIdentityResolutionJobsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetSimilarProfilesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6641,7 +7045,7 @@ func (m *awsRestjson1_deserializeOpListIdentityResolutionJobs) HandleDeserialize return out, metadata, err } -func awsRestjson1_deserializeOpErrorListIdentityResolutionJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetSimilarProfiles(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6707,7 +7111,7 @@ func awsRestjson1_deserializeOpErrorListIdentityResolutionJobs(response *smithyh } } -func awsRestjson1_deserializeOpDocumentListIdentityResolutionJobsOutput(v **ListIdentityResolutionJobsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetSimilarProfilesOutput(v **GetSimilarProfilesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6720,30 +7124,95 @@ func awsRestjson1_deserializeOpDocumentListIdentityResolutionJobsOutput(v **List return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListIdentityResolutionJobsOutput + var sv *GetSimilarProfilesOutput if *v == nil { - sv = &ListIdentityResolutionJobsOutput{} + sv = &GetSimilarProfilesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "IdentityResolutionJobsList": - if err := awsRestjson1_deserializeDocumentIdentityResolutionJobsList(&sv.IdentityResolutionJobsList, value); err != nil { - return err - } - - case "NextToken": + case "ConfidenceScore": 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) - } + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.ConfidenceScore = ptr.Float64(f64) - default: + 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.ConfidenceScore = ptr.Float64(f64) + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } + } + + case "MatchId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.MatchId = ptr.String(jtv) + } + + case "MatchType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MatchType to be of type string, got %T instead", value) + } + sv.MatchType = types.MatchType(jtv) + } + + 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 "ProfileIds": + if err := awsRestjson1_deserializeDocumentProfileIdList(&sv.ProfileIds, value); err != nil { + return err + } + + case "RuleLevel": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected RuleLevel to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.RuleLevel = ptr.Int32(int32(i64)) + } + + default: _, _ = key, value } @@ -6752,14 +7221,14 @@ func awsRestjson1_deserializeOpDocumentListIdentityResolutionJobsOutput(v **List return nil } -type awsRestjson1_deserializeOpListIntegrations struct { +type awsRestjson1_deserializeOpGetWorkflow struct { } -func (*awsRestjson1_deserializeOpListIntegrations) ID() string { +func (*awsRestjson1_deserializeOpGetWorkflow) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListIntegrations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetWorkflow) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6777,9 +7246,9 @@ func (m *awsRestjson1_deserializeOpListIntegrations) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListIntegrations(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetWorkflow(response, &metadata) } - output := &ListIntegrationsOutput{} + output := &GetWorkflowOutput{} out.Result = output var buff [1024]byte @@ -6800,7 +7269,7 @@ func (m *awsRestjson1_deserializeOpListIntegrations) HandleDeserialize(ctx conte return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListIntegrationsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetWorkflowOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6814,7 +7283,7 @@ func (m *awsRestjson1_deserializeOpListIntegrations) HandleDeserialize(ctx conte return out, metadata, err } -func awsRestjson1_deserializeOpErrorListIntegrations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetWorkflow(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6880,7 +7349,7 @@ func awsRestjson1_deserializeOpErrorListIntegrations(response *smithyhttp.Respon } } -func awsRestjson1_deserializeOpDocumentListIntegrationsOutput(v **ListIntegrationsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetWorkflowOutput(v **GetWorkflowOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6893,27 +7362,91 @@ func awsRestjson1_deserializeOpDocumentListIntegrationsOutput(v **ListIntegratio return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListIntegrationsOutput + var sv *GetWorkflowOutput if *v == nil { - sv = &ListIntegrationsOutput{} + sv = &GetWorkflowOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Items": - if err := awsRestjson1_deserializeDocumentIntegrationList(&sv.Items, value); err != nil { + case "Attributes": + if err := awsRestjson1_deserializeDocumentWorkflowAttributes(&sv.Attributes, value); err != nil { return err } - case "NextToken": + case "ErrorDescription": 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 string1To255 to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.ErrorDescription = ptr.String(jtv) + } + + case "LastUpdatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Metrics": + if err := awsRestjson1_deserializeDocumentWorkflowMetrics(&sv.Metrics, value); err != nil { + return err + } + + case "StartDate": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.StartDate = 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 Status to be of type string, got %T instead", value) + } + sv.Status = types.Status(jtv) + } + + case "WorkflowId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected uuid to be of type string, got %T instead", value) + } + sv.WorkflowId = ptr.String(jtv) + } + + case "WorkflowType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected WorkflowType to be of type string, got %T instead", value) + } + sv.WorkflowType = types.WorkflowType(jtv) } default: @@ -6925,14 +7458,14 @@ func awsRestjson1_deserializeOpDocumentListIntegrationsOutput(v **ListIntegratio return nil } -type awsRestjson1_deserializeOpListProfileObjects struct { +type awsRestjson1_deserializeOpGetWorkflowSteps struct { } -func (*awsRestjson1_deserializeOpListProfileObjects) ID() string { +func (*awsRestjson1_deserializeOpGetWorkflowSteps) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListProfileObjects) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetWorkflowSteps) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6950,9 +7483,9 @@ func (m *awsRestjson1_deserializeOpListProfileObjects) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListProfileObjects(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetWorkflowSteps(response, &metadata) } - output := &ListProfileObjectsOutput{} + output := &GetWorkflowStepsOutput{} out.Result = output var buff [1024]byte @@ -6973,7 +7506,7 @@ func (m *awsRestjson1_deserializeOpListProfileObjects) HandleDeserialize(ctx con return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListProfileObjectsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetWorkflowStepsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6987,7 +7520,7 @@ func (m *awsRestjson1_deserializeOpListProfileObjects) HandleDeserialize(ctx con return out, metadata, err } -func awsRestjson1_deserializeOpErrorListProfileObjects(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetWorkflowSteps(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7053,7 +7586,7 @@ func awsRestjson1_deserializeOpErrorListProfileObjects(response *smithyhttp.Resp } } -func awsRestjson1_deserializeOpDocumentListProfileObjectsOutput(v **ListProfileObjectsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetWorkflowStepsOutput(v **GetWorkflowStepsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7066,9 +7599,9 @@ func awsRestjson1_deserializeOpDocumentListProfileObjectsOutput(v **ListProfileO return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListProfileObjectsOutput + var sv *GetWorkflowStepsOutput if *v == nil { - sv = &ListProfileObjectsOutput{} + sv = &GetWorkflowStepsOutput{} } else { sv = *v } @@ -7076,7 +7609,7 @@ func awsRestjson1_deserializeOpDocumentListProfileObjectsOutput(v **ListProfileO for key, value := range shape { switch key { case "Items": - if err := awsRestjson1_deserializeDocumentProfileObjectList(&sv.Items, value); err != nil { + if err := awsRestjson1_deserializeDocumentWorkflowStepsList(&sv.Items, value); err != nil { return err } @@ -7089,6 +7622,24 @@ func awsRestjson1_deserializeOpDocumentListProfileObjectsOutput(v **ListProfileO sv.NextToken = ptr.String(jtv) } + case "WorkflowId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected uuid to be of type string, got %T instead", value) + } + sv.WorkflowId = ptr.String(jtv) + } + + case "WorkflowType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected WorkflowType to be of type string, got %T instead", value) + } + sv.WorkflowType = types.WorkflowType(jtv) + } + default: _, _ = key, value @@ -7098,14 +7649,14 @@ func awsRestjson1_deserializeOpDocumentListProfileObjectsOutput(v **ListProfileO return nil } -type awsRestjson1_deserializeOpListProfileObjectTypes struct { +type awsRestjson1_deserializeOpListAccountIntegrations struct { } -func (*awsRestjson1_deserializeOpListProfileObjectTypes) ID() string { +func (*awsRestjson1_deserializeOpListAccountIntegrations) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListProfileObjectTypes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListAccountIntegrations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7123,9 +7674,9 @@ func (m *awsRestjson1_deserializeOpListProfileObjectTypes) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListProfileObjectTypes(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListAccountIntegrations(response, &metadata) } - output := &ListProfileObjectTypesOutput{} + output := &ListAccountIntegrationsOutput{} out.Result = output var buff [1024]byte @@ -7146,7 +7697,7 @@ func (m *awsRestjson1_deserializeOpListProfileObjectTypes) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListProfileObjectTypesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListAccountIntegrationsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7160,7 +7711,7 @@ func (m *awsRestjson1_deserializeOpListProfileObjectTypes) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorListProfileObjectTypes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListAccountIntegrations(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7226,7 +7777,7 @@ func awsRestjson1_deserializeOpErrorListProfileObjectTypes(response *smithyhttp. } } -func awsRestjson1_deserializeOpDocumentListProfileObjectTypesOutput(v **ListProfileObjectTypesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListAccountIntegrationsOutput(v **ListAccountIntegrationsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7239,9 +7790,9 @@ func awsRestjson1_deserializeOpDocumentListProfileObjectTypesOutput(v **ListProf return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListProfileObjectTypesOutput + var sv *ListAccountIntegrationsOutput if *v == nil { - sv = &ListProfileObjectTypesOutput{} + sv = &ListAccountIntegrationsOutput{} } else { sv = *v } @@ -7249,7 +7800,7 @@ func awsRestjson1_deserializeOpDocumentListProfileObjectTypesOutput(v **ListProf for key, value := range shape { switch key { case "Items": - if err := awsRestjson1_deserializeDocumentProfileObjectTypeList(&sv.Items, value); err != nil { + if err := awsRestjson1_deserializeDocumentIntegrationList(&sv.Items, value); err != nil { return err } @@ -7271,14 +7822,14 @@ func awsRestjson1_deserializeOpDocumentListProfileObjectTypesOutput(v **ListProf return nil } -type awsRestjson1_deserializeOpListProfileObjectTypeTemplates struct { +type awsRestjson1_deserializeOpListCalculatedAttributeDefinitions struct { } -func (*awsRestjson1_deserializeOpListProfileObjectTypeTemplates) ID() string { +func (*awsRestjson1_deserializeOpListCalculatedAttributeDefinitions) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListProfileObjectTypeTemplates) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListCalculatedAttributeDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7296,9 +7847,9 @@ func (m *awsRestjson1_deserializeOpListProfileObjectTypeTemplates) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListProfileObjectTypeTemplates(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListCalculatedAttributeDefinitions(response, &metadata) } - output := &ListProfileObjectTypeTemplatesOutput{} + output := &ListCalculatedAttributeDefinitionsOutput{} out.Result = output var buff [1024]byte @@ -7319,7 +7870,7 @@ func (m *awsRestjson1_deserializeOpListProfileObjectTypeTemplates) HandleDeseria return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListProfileObjectTypeTemplatesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListCalculatedAttributeDefinitionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7333,7 +7884,7 @@ func (m *awsRestjson1_deserializeOpListProfileObjectTypeTemplates) HandleDeseria return out, metadata, err } -func awsRestjson1_deserializeOpErrorListProfileObjectTypeTemplates(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListCalculatedAttributeDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7399,7 +7950,7 @@ func awsRestjson1_deserializeOpErrorListProfileObjectTypeTemplates(response *smi } } -func awsRestjson1_deserializeOpDocumentListProfileObjectTypeTemplatesOutput(v **ListProfileObjectTypeTemplatesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListCalculatedAttributeDefinitionsOutput(v **ListCalculatedAttributeDefinitionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7412,9 +7963,9 @@ func awsRestjson1_deserializeOpDocumentListProfileObjectTypeTemplatesOutput(v ** return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListProfileObjectTypeTemplatesOutput + var sv *ListCalculatedAttributeDefinitionsOutput if *v == nil { - sv = &ListProfileObjectTypeTemplatesOutput{} + sv = &ListCalculatedAttributeDefinitionsOutput{} } else { sv = *v } @@ -7422,7 +7973,7 @@ func awsRestjson1_deserializeOpDocumentListProfileObjectTypeTemplatesOutput(v ** for key, value := range shape { switch key { case "Items": - if err := awsRestjson1_deserializeDocumentProfileObjectTypeTemplateList(&sv.Items, value); err != nil { + if err := awsRestjson1_deserializeDocumentCalculatedAttributeDefinitionsList(&sv.Items, value); err != nil { return err } @@ -7444,14 +7995,14 @@ func awsRestjson1_deserializeOpDocumentListProfileObjectTypeTemplatesOutput(v ** return nil } -type awsRestjson1_deserializeOpListRuleBasedMatches struct { +type awsRestjson1_deserializeOpListCalculatedAttributesForProfile struct { } -func (*awsRestjson1_deserializeOpListRuleBasedMatches) ID() string { +func (*awsRestjson1_deserializeOpListCalculatedAttributesForProfile) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListRuleBasedMatches) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListCalculatedAttributesForProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7469,9 +8020,9 @@ func (m *awsRestjson1_deserializeOpListRuleBasedMatches) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListRuleBasedMatches(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListCalculatedAttributesForProfile(response, &metadata) } - output := &ListRuleBasedMatchesOutput{} + output := &ListCalculatedAttributesForProfileOutput{} out.Result = output var buff [1024]byte @@ -7492,7 +8043,7 @@ func (m *awsRestjson1_deserializeOpListRuleBasedMatches) HandleDeserialize(ctx c return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListRuleBasedMatchesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListCalculatedAttributesForProfileOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7506,7 +8057,7 @@ func (m *awsRestjson1_deserializeOpListRuleBasedMatches) HandleDeserialize(ctx c return out, metadata, err } -func awsRestjson1_deserializeOpErrorListRuleBasedMatches(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListCalculatedAttributesForProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7572,7 +8123,7 @@ func awsRestjson1_deserializeOpErrorListRuleBasedMatches(response *smithyhttp.Re } } -func awsRestjson1_deserializeOpDocumentListRuleBasedMatchesOutput(v **ListRuleBasedMatchesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListCalculatedAttributesForProfileOutput(v **ListCalculatedAttributesForProfileOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7585,17 +8136,17 @@ func awsRestjson1_deserializeOpDocumentListRuleBasedMatchesOutput(v **ListRuleBa return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListRuleBasedMatchesOutput + var sv *ListCalculatedAttributesForProfileOutput if *v == nil { - sv = &ListRuleBasedMatchesOutput{} + sv = &ListCalculatedAttributesForProfileOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "MatchIds": - if err := awsRestjson1_deserializeDocumentMatchIdList(&sv.MatchIds, value); err != nil { + case "Items": + if err := awsRestjson1_deserializeDocumentCalculatedAttributesForProfileList(&sv.Items, value); err != nil { return err } @@ -7617,14 +8168,14 @@ func awsRestjson1_deserializeOpDocumentListRuleBasedMatchesOutput(v **ListRuleBa return nil } -type awsRestjson1_deserializeOpListTagsForResource struct { +type awsRestjson1_deserializeOpListDomains struct { } -func (*awsRestjson1_deserializeOpListTagsForResource) ID() string { +func (*awsRestjson1_deserializeOpListDomains) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_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) @@ -7642,9 +8193,9 @@ func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListTagsForResource(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListDomains(response, &metadata) } - output := &ListTagsForResourceOutput{} + output := &ListDomainsOutput{} out.Result = output var buff [1024]byte @@ -7665,7 +8216,7 @@ func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListDomainsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7679,7 +8230,7 @@ func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx co return out, metadata, err } -func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_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)} @@ -7720,6 +8271,9 @@ func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Res } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("BadRequestException", errorCode): return awsRestjson1_deserializeErrorBadRequestException(response, errorBody) @@ -7729,6 +8283,9 @@ func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Res 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, @@ -7739,7 +8296,7 @@ func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Res } } -func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListDomainsOutput(v **ListDomainsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7752,20 +8309,29 @@ func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListTagsForResourceOutput + var sv *ListDomainsOutput if *v == nil { - sv = &ListTagsForResourceOutput{} + sv = &ListDomainsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "tags": - if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + case "Items": + if err := awsRestjson1_deserializeDocumentDomainList(&sv.Items, 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 @@ -7775,14 +8341,14 @@ func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor return nil } -type awsRestjson1_deserializeOpListWorkflows struct { +type awsRestjson1_deserializeOpListEventStreams struct { } -func (*awsRestjson1_deserializeOpListWorkflows) ID() string { +func (*awsRestjson1_deserializeOpListEventStreams) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListWorkflows) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListEventStreams) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7800,9 +8366,9 @@ func (m *awsRestjson1_deserializeOpListWorkflows) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListWorkflows(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListEventStreams(response, &metadata) } - output := &ListWorkflowsOutput{} + output := &ListEventStreamsOutput{} out.Result = output var buff [1024]byte @@ -7823,7 +8389,7 @@ func (m *awsRestjson1_deserializeOpListWorkflows) HandleDeserialize(ctx context. return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListWorkflowsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListEventStreamsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7837,7 +8403,7 @@ func (m *awsRestjson1_deserializeOpListWorkflows) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestjson1_deserializeOpErrorListWorkflows(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListEventStreams(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7903,7 +8469,7 @@ func awsRestjson1_deserializeOpErrorListWorkflows(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentListWorkflowsOutput(v **ListWorkflowsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListEventStreamsOutput(v **ListEventStreamsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7916,9 +8482,9 @@ func awsRestjson1_deserializeOpDocumentListWorkflowsOutput(v **ListWorkflowsOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListWorkflowsOutput + var sv *ListEventStreamsOutput if *v == nil { - sv = &ListWorkflowsOutput{} + sv = &ListEventStreamsOutput{} } else { sv = *v } @@ -7926,7 +8492,7 @@ func awsRestjson1_deserializeOpDocumentListWorkflowsOutput(v **ListWorkflowsOutp for key, value := range shape { switch key { case "Items": - if err := awsRestjson1_deserializeDocumentWorkflowList(&sv.Items, value); err != nil { + if err := awsRestjson1_deserializeDocumentEventStreamSummaryList(&sv.Items, value); err != nil { return err } @@ -7948,14 +8514,14 @@ func awsRestjson1_deserializeOpDocumentListWorkflowsOutput(v **ListWorkflowsOutp return nil } -type awsRestjson1_deserializeOpMergeProfiles struct { +type awsRestjson1_deserializeOpListIdentityResolutionJobs struct { } -func (*awsRestjson1_deserializeOpMergeProfiles) ID() string { +func (*awsRestjson1_deserializeOpListIdentityResolutionJobs) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpMergeProfiles) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListIdentityResolutionJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7973,9 +8539,9 @@ func (m *awsRestjson1_deserializeOpMergeProfiles) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorMergeProfiles(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListIdentityResolutionJobs(response, &metadata) } - output := &MergeProfilesOutput{} + output := &ListIdentityResolutionJobsOutput{} out.Result = output var buff [1024]byte @@ -7996,7 +8562,7 @@ func (m *awsRestjson1_deserializeOpMergeProfiles) HandleDeserialize(ctx context. return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentMergeProfilesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListIdentityResolutionJobsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8010,7 +8576,7 @@ func (m *awsRestjson1_deserializeOpMergeProfiles) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestjson1_deserializeOpErrorMergeProfiles(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListIdentityResolutionJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -8051,6 +8617,9 @@ func awsRestjson1_deserializeOpErrorMergeProfiles(response *smithyhttp.Response, } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("BadRequestException", errorCode): return awsRestjson1_deserializeErrorBadRequestException(response, errorBody) @@ -8073,7 +8642,7 @@ func awsRestjson1_deserializeOpErrorMergeProfiles(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentMergeProfilesOutput(v **MergeProfilesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListIdentityResolutionJobsOutput(v **ListIdentityResolutionJobsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8086,22 +8655,27 @@ func awsRestjson1_deserializeOpDocumentMergeProfilesOutput(v **MergeProfilesOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *MergeProfilesOutput + var sv *ListIdentityResolutionJobsOutput if *v == nil { - sv = &MergeProfilesOutput{} + sv = &ListIdentityResolutionJobsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "IdentityResolutionJobsList": + if err := awsRestjson1_deserializeDocumentIdentityResolutionJobsList(&sv.IdentityResolutionJobsList, value); err != nil { + return err + } + + case "NextToken": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected message to be of type string, got %T instead", value) + return fmt.Errorf("expected token to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.NextToken = ptr.String(jtv) } default: @@ -8113,14 +8687,14 @@ func awsRestjson1_deserializeOpDocumentMergeProfilesOutput(v **MergeProfilesOutp return nil } -type awsRestjson1_deserializeOpPutIntegration struct { +type awsRestjson1_deserializeOpListIntegrations struct { } -func (*awsRestjson1_deserializeOpPutIntegration) ID() string { +func (*awsRestjson1_deserializeOpListIntegrations) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpPutIntegration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListIntegrations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -8138,9 +8712,9 @@ func (m *awsRestjson1_deserializeOpPutIntegration) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorPutIntegration(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListIntegrations(response, &metadata) } - output := &PutIntegrationOutput{} + output := &ListIntegrationsOutput{} out.Result = output var buff [1024]byte @@ -8161,7 +8735,7 @@ func (m *awsRestjson1_deserializeOpPutIntegration) HandleDeserialize(ctx context return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentPutIntegrationOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListIntegrationsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8175,7 +8749,7 @@ func (m *awsRestjson1_deserializeOpPutIntegration) HandleDeserialize(ctx context return out, metadata, err } -func awsRestjson1_deserializeOpErrorPutIntegration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListIntegrations(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -8241,7 +8815,7 @@ func awsRestjson1_deserializeOpErrorPutIntegration(response *smithyhttp.Response } } -func awsRestjson1_deserializeOpDocumentPutIntegrationOutput(v **PutIntegrationOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListIntegrationsOutput(v **ListIntegrationsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8254,109 +8828,27 @@ func awsRestjson1_deserializeOpDocumentPutIntegrationOutput(v **PutIntegrationOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *PutIntegrationOutput + var sv *ListIntegrationsOutput if *v == nil { - sv = &PutIntegrationOutput{} + sv = &ListIntegrationsOutput{} } 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 "DomainName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected name to be of type string, got %T instead", value) - } - sv.DomainName = ptr.String(jtv) - } - - case "IsUnstructured": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected optionalBoolean to be of type *bool, got %T instead", value) - } - sv.IsUnstructured = ptr.Bool(jtv) - } - - case "LastUpdatedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "ObjectTypeName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected typeName to be of type string, got %T instead", value) - } - sv.ObjectTypeName = ptr.String(jtv) - } - - case "ObjectTypeNames": - if err := awsRestjson1_deserializeDocumentObjectTypeNames(&sv.ObjectTypeNames, value); err != nil { - return err - } - - 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 "Tags": - if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + case "Items": + if err := awsRestjson1_deserializeDocumentIntegrationList(&sv.Items, value); err != nil { return err } - case "Uri": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - sv.Uri = ptr.String(jtv) - } - - case "WorkflowId": + case "NextToken": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + return fmt.Errorf("expected token to be of type string, got %T instead", value) } - sv.WorkflowId = ptr.String(jtv) + sv.NextToken = ptr.String(jtv) } default: @@ -8368,14 +8860,14 @@ func awsRestjson1_deserializeOpDocumentPutIntegrationOutput(v **PutIntegrationOu return nil } -type awsRestjson1_deserializeOpPutProfileObject struct { +type awsRestjson1_deserializeOpListObjectTypeAttributes struct { } -func (*awsRestjson1_deserializeOpPutProfileObject) ID() string { +func (*awsRestjson1_deserializeOpListObjectTypeAttributes) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpPutProfileObject) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListObjectTypeAttributes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -8393,9 +8885,9 @@ func (m *awsRestjson1_deserializeOpPutProfileObject) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorPutProfileObject(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListObjectTypeAttributes(response, &metadata) } - output := &PutProfileObjectOutput{} + output := &ListObjectTypeAttributesOutput{} out.Result = output var buff [1024]byte @@ -8416,7 +8908,7 @@ func (m *awsRestjson1_deserializeOpPutProfileObject) HandleDeserialize(ctx conte return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentPutProfileObjectOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListObjectTypeAttributesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8430,7 +8922,7 @@ func (m *awsRestjson1_deserializeOpPutProfileObject) HandleDeserialize(ctx conte return out, metadata, err } -func awsRestjson1_deserializeOpErrorPutProfileObject(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListObjectTypeAttributes(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -8496,7 +8988,7 @@ func awsRestjson1_deserializeOpErrorPutProfileObject(response *smithyhttp.Respon } } -func awsRestjson1_deserializeOpDocumentPutProfileObjectOutput(v **PutProfileObjectOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListObjectTypeAttributesOutput(v **ListObjectTypeAttributesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8509,22 +9001,27 @@ func awsRestjson1_deserializeOpDocumentPutProfileObjectOutput(v **PutProfileObje return fmt.Errorf("unexpected JSON type %v", value) } - var sv *PutProfileObjectOutput + var sv *ListObjectTypeAttributesOutput if *v == nil { - sv = &PutProfileObjectOutput{} + sv = &ListObjectTypeAttributesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "ProfileObjectUniqueKey": + case "Items": + if err := awsRestjson1_deserializeDocumentListObjectTypeAttributesList(&sv.Items, value); err != nil { + return err + } + + case "NextToken": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + return fmt.Errorf("expected token to be of type string, got %T instead", value) } - sv.ProfileObjectUniqueKey = ptr.String(jtv) + sv.NextToken = ptr.String(jtv) } default: @@ -8536,14 +9033,14 @@ func awsRestjson1_deserializeOpDocumentPutProfileObjectOutput(v **PutProfileObje return nil } -type awsRestjson1_deserializeOpPutProfileObjectType struct { +type awsRestjson1_deserializeOpListProfileAttributeValues struct { } -func (*awsRestjson1_deserializeOpPutProfileObjectType) ID() string { +func (*awsRestjson1_deserializeOpListProfileAttributeValues) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpPutProfileObjectType) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListProfileAttributeValues) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -8561,11 +9058,16 @@ func (m *awsRestjson1_deserializeOpPutProfileObjectType) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorPutProfileObjectType(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListProfileAttributeValues(response, &metadata) } - output := &PutProfileObjectTypeOutput{} + output := &ListProfileAttributeValuesOutput{} out.Result = output + err = awsRestjson1_deserializeOpHttpBindingsListProfileAttributeValuesOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -8584,7 +9086,7 @@ func (m *awsRestjson1_deserializeOpPutProfileObjectType) HandleDeserialize(ctx c return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentPutProfileObjectTypeOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListProfileAttributeValuesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8598,7 +9100,7 @@ func (m *awsRestjson1_deserializeOpPutProfileObjectType) HandleDeserialize(ctx c return out, metadata, err } -func awsRestjson1_deserializeOpErrorPutProfileObjectType(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListProfileAttributeValues(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -8664,11 +9166,20 @@ func awsRestjson1_deserializeOpErrorPutProfileObjectType(response *smithyhttp.Re } } -func awsRestjson1_deserializeOpDocumentPutProfileObjectTypeOutput(v **PutProfileObjectTypeOutput, value interface{}) error { +func awsRestjson1_deserializeOpHttpBindingsListProfileAttributeValuesOutput(v *ListProfileAttributeValuesOutput, response *smithyhttp.Response) error { if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) + return fmt.Errorf("unsupported deserialization for nil %T", v) } - if value == nil { + + v.StatusCode = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentListProfileAttributeValuesOutput(v **ListProfileAttributeValuesOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { return nil } @@ -8677,155 +9188,38 @@ func awsRestjson1_deserializeOpDocumentPutProfileObjectTypeOutput(v **PutProfile return fmt.Errorf("unexpected JSON type %v", value) } - var sv *PutProfileObjectTypeOutput + var sv *ListProfileAttributeValuesOutput if *v == nil { - sv = &PutProfileObjectTypeOutput{} + sv = &ListProfileAttributeValuesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AllowProfileCreation": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) - } - sv.AllowProfileCreation = jtv - } - - 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 sensitiveText to be of type string, got %T instead", value) - } - sv.Description = ptr.String(jtv) - } - - case "EncryptionKey": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected encryptionKey to be of type string, got %T instead", value) - } - sv.EncryptionKey = ptr.String(jtv) - } - - case "ExpirationDays": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected expirationDaysInteger to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.ExpirationDays = ptr.Int32(int32(i64)) - } - - case "Fields": - if err := awsRestjson1_deserializeDocumentFieldMap(&sv.Fields, value); err != nil { - return err - } - - case "Keys": - if err := awsRestjson1_deserializeDocumentKeyMap(&sv.Keys, value); err != nil { - return err - } - - case "LastUpdatedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "MaxAvailableProfileObjectCount": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected minSize0 to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.MaxAvailableProfileObjectCount = ptr.Int32(int32(i64)) - } - - case "MaxProfileObjectCount": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected minSize1 to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.MaxProfileObjectCount = ptr.Int32(int32(i64)) - } - - case "ObjectTypeName": + case "AttributeName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected typeName to be of type string, got %T instead", value) + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) } - sv.ObjectTypeName = ptr.String(jtv) + sv.AttributeName = ptr.String(jtv) } - case "SourceLastUpdatedTimestampFormat": + case "DomainName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + return fmt.Errorf("expected name to be of type string, got %T instead", value) } - sv.SourceLastUpdatedTimestampFormat = ptr.String(jtv) + sv.DomainName = ptr.String(jtv) } - case "Tags": - if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + case "Items": + if err := awsRestjson1_deserializeDocumentAttributeValueItemList(&sv.Items, value); err != nil { return err } - case "TemplateId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected name to be of type string, got %T instead", value) - } - sv.TemplateId = ptr.String(jtv) - } - default: _, _ = key, value @@ -8835,14 +9229,14 @@ func awsRestjson1_deserializeOpDocumentPutProfileObjectTypeOutput(v **PutProfile return nil } -type awsRestjson1_deserializeOpSearchProfiles struct { +type awsRestjson1_deserializeOpListProfileObjects struct { } -func (*awsRestjson1_deserializeOpSearchProfiles) ID() string { +func (*awsRestjson1_deserializeOpListProfileObjects) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpSearchProfiles) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListProfileObjects) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -8860,9 +9254,9 @@ func (m *awsRestjson1_deserializeOpSearchProfiles) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorSearchProfiles(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListProfileObjects(response, &metadata) } - output := &SearchProfilesOutput{} + output := &ListProfileObjectsOutput{} out.Result = output var buff [1024]byte @@ -8883,7 +9277,7 @@ func (m *awsRestjson1_deserializeOpSearchProfiles) HandleDeserialize(ctx context return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentSearchProfilesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListProfileObjectsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8897,7 +9291,7 @@ func (m *awsRestjson1_deserializeOpSearchProfiles) HandleDeserialize(ctx context return out, metadata, err } -func awsRestjson1_deserializeOpErrorSearchProfiles(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListProfileObjects(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -8963,7 +9357,7 @@ func awsRestjson1_deserializeOpErrorSearchProfiles(response *smithyhttp.Response } } -func awsRestjson1_deserializeOpDocumentSearchProfilesOutput(v **SearchProfilesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListProfileObjectsOutput(v **ListProfileObjectsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8976,9 +9370,9 @@ func awsRestjson1_deserializeOpDocumentSearchProfilesOutput(v **SearchProfilesOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *SearchProfilesOutput + var sv *ListProfileObjectsOutput if *v == nil { - sv = &SearchProfilesOutput{} + sv = &ListProfileObjectsOutput{} } else { sv = *v } @@ -8986,7 +9380,7 @@ func awsRestjson1_deserializeOpDocumentSearchProfilesOutput(v **SearchProfilesOu for key, value := range shape { switch key { case "Items": - if err := awsRestjson1_deserializeDocumentProfileList(&sv.Items, value); err != nil { + if err := awsRestjson1_deserializeDocumentProfileObjectList(&sv.Items, value); err != nil { return err } @@ -9008,14 +9402,14 @@ func awsRestjson1_deserializeOpDocumentSearchProfilesOutput(v **SearchProfilesOu return nil } -type awsRestjson1_deserializeOpTagResource struct { +type awsRestjson1_deserializeOpListProfileObjectTypes struct { } -func (*awsRestjson1_deserializeOpTagResource) ID() string { +func (*awsRestjson1_deserializeOpListProfileObjectTypes) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListProfileObjectTypes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -9033,16 +9427,44 @@ func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorTagResource(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListProfileObjectTypes(response, &metadata) } - output := &TagResourceOutput{} + output := &ListProfileObjectTypesOutput{} 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_deserializeOpDocumentListProfileObjectTypesOutput(&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(), + } + } + span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListProfileObjectTypes(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -9083,6 +9505,9 @@ func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, m } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("BadRequestException", errorCode): return awsRestjson1_deserializeErrorBadRequestException(response, errorBody) @@ -9092,6 +9517,9 @@ func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, m 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, @@ -9102,43 +9530,116 @@ func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, m } } -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 +func awsRestjson1_deserializeOpDocumentListProfileObjectTypesOutput(v **ListProfileObjectTypesOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil } - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - 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, awsRestjson1_deserializeOpErrorUntagResource(response, &metadata) + var sv *ListProfileObjectTypesOutput + if *v == nil { + sv = &ListProfileObjectTypesOutput{} + } else { + sv = *v } - output := &UntagResourceOutput{} - out.Result = output - span.End() - return out, metadata, err -} + for key, value := range shape { + switch key { + case "Items": + if err := awsRestjson1_deserializeDocumentProfileObjectTypeList(&sv.Items, value); err != nil { + return err + } -func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + 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_deserializeOpListProfileObjectTypeTemplates struct { +} + +func (*awsRestjson1_deserializeOpListProfileObjectTypeTemplates) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListProfileObjectTypeTemplates) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorListProfileObjectTypeTemplates(response, &metadata) + } + output := &ListProfileObjectTypeTemplatesOutput{} + 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_deserializeOpDocumentListProfileObjectTypeTemplatesOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListProfileObjectTypeTemplates(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.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()) @@ -9177,6 +9678,9 @@ func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("BadRequestException", errorCode): return awsRestjson1_deserializeErrorBadRequestException(response, errorBody) @@ -9186,6 +9690,9 @@ func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, 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, @@ -9196,14 +9703,59 @@ func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, } } -type awsRestjson1_deserializeOpUpdateCalculatedAttributeDefinition struct { +func awsRestjson1_deserializeOpDocumentListProfileObjectTypeTemplatesOutput(v **ListProfileObjectTypeTemplatesOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListProfileObjectTypeTemplatesOutput + if *v == nil { + sv = &ListProfileObjectTypeTemplatesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Items": + if err := awsRestjson1_deserializeDocumentProfileObjectTypeTemplateList(&sv.Items, 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 } -func (*awsRestjson1_deserializeOpUpdateCalculatedAttributeDefinition) ID() string { +type awsRestjson1_deserializeOpListRuleBasedMatches struct { +} + +func (*awsRestjson1_deserializeOpListRuleBasedMatches) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateCalculatedAttributeDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListRuleBasedMatches) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -9221,9 +9773,9 @@ func (m *awsRestjson1_deserializeOpUpdateCalculatedAttributeDefinition) HandleDe } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateCalculatedAttributeDefinition(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListRuleBasedMatches(response, &metadata) } - output := &UpdateCalculatedAttributeDefinitionOutput{} + output := &ListRuleBasedMatchesOutput{} out.Result = output var buff [1024]byte @@ -9244,7 +9796,7 @@ func (m *awsRestjson1_deserializeOpUpdateCalculatedAttributeDefinition) HandleDe return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateCalculatedAttributeDefinitionOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListRuleBasedMatchesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9258,7 +9810,7 @@ func (m *awsRestjson1_deserializeOpUpdateCalculatedAttributeDefinition) HandleDe return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateCalculatedAttributeDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListRuleBasedMatches(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -9324,7 +9876,7 @@ func awsRestjson1_deserializeOpErrorUpdateCalculatedAttributeDefinition(response } } -func awsRestjson1_deserializeOpDocumentUpdateCalculatedAttributeDefinitionOutput(v **UpdateCalculatedAttributeDefinitionOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListRuleBasedMatchesOutput(v **ListRuleBasedMatchesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9337,96 +9889,27 @@ func awsRestjson1_deserializeOpDocumentUpdateCalculatedAttributeDefinitionOutput return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateCalculatedAttributeDefinitionOutput + var sv *ListRuleBasedMatchesOutput if *v == nil { - sv = &UpdateCalculatedAttributeDefinitionOutput{} + sv = &ListRuleBasedMatchesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AttributeDetails": - if err := awsRestjson1_deserializeDocumentAttributeDetails(&sv.AttributeDetails, value); err != nil { - return err - } - - case "CalculatedAttributeName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected typeName to be of type string, got %T instead", value) - } - sv.CalculatedAttributeName = ptr.String(jtv) - } - - case "Conditions": - if err := awsRestjson1_deserializeDocumentConditions(&sv.Conditions, value); err != nil { + case "MatchIds": + if err := awsRestjson1_deserializeDocumentMatchIdList(&sv.MatchIds, 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 sensitiveText 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 displayName to be of type string, got %T instead", value) - } - sv.DisplayName = ptr.String(jtv) - } - - case "LastUpdatedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "Statistic": + case "NextToken": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Statistic to be of type string, got %T instead", value) + return fmt.Errorf("expected token to be of type string, got %T instead", value) } - sv.Statistic = types.Statistic(jtv) - } - - case "Tags": - if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { - return err + sv.NextToken = ptr.String(jtv) } default: @@ -9438,14 +9921,14 @@ func awsRestjson1_deserializeOpDocumentUpdateCalculatedAttributeDefinitionOutput return nil } -type awsRestjson1_deserializeOpUpdateDomain struct { +type awsRestjson1_deserializeOpListSegmentDefinitions struct { } -func (*awsRestjson1_deserializeOpUpdateDomain) ID() string { +func (*awsRestjson1_deserializeOpListSegmentDefinitions) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateDomain) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListSegmentDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -9463,9 +9946,9 @@ func (m *awsRestjson1_deserializeOpUpdateDomain) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateDomain(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListSegmentDefinitions(response, &metadata) } - output := &UpdateDomainOutput{} + output := &ListSegmentDefinitionsOutput{} out.Result = output var buff [1024]byte @@ -9486,7 +9969,7 @@ func (m *awsRestjson1_deserializeOpUpdateDomain) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateDomainOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListSegmentDefinitionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9500,7 +9983,7 @@ func (m *awsRestjson1_deserializeOpUpdateDomain) HandleDeserialize(ctx context.C return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateDomain(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListSegmentDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -9566,7 +10049,7 @@ func awsRestjson1_deserializeOpErrorUpdateDomain(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentUpdateDomainOutput(v **UpdateDomainOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListSegmentDefinitionsOutput(v **ListSegmentDefinitionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9579,100 +10062,27 @@ func awsRestjson1_deserializeOpDocumentUpdateDomainOutput(v **UpdateDomainOutput return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateDomainOutput + var sv *ListSegmentDefinitionsOutput if *v == nil { - sv = &UpdateDomainOutput{} + sv = &ListSegmentDefinitionsOutput{} } 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)) + case "Items": + if err := awsRestjson1_deserializeDocumentSegmentDefinitionsList(&sv.Items, value); err != nil { + return err + } - default: - return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "DeadLetterQueueUrl": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected sqsQueueUrl to be of type string, got %T instead", value) - } - sv.DeadLetterQueueUrl = ptr.String(jtv) - } - - case "DefaultEncryptionKey": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected encryptionKey to be of type string, got %T instead", value) - } - sv.DefaultEncryptionKey = ptr.String(jtv) - } - - case "DefaultExpirationDays": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected expirationDaysInteger to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.DefaultExpirationDays = ptr.Int32(int32(i64)) - } - - case "DomainName": + case "NextToken": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected name to be of type string, got %T instead", value) - } - sv.DomainName = ptr.String(jtv) - } - - case "LastUpdatedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) - + return fmt.Errorf("expected token to be of type string, got %T instead", value) } - } - - case "Matching": - if err := awsRestjson1_deserializeDocumentMatchingResponse(&sv.Matching, value); err != nil { - return err - } - - case "RuleBasedMatching": - if err := awsRestjson1_deserializeDocumentRuleBasedMatchingResponse(&sv.RuleBasedMatching, value); err != nil { - return err - } - - case "Tags": - if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { - return err + sv.NextToken = ptr.String(jtv) } default: @@ -9684,14 +10094,14 @@ func awsRestjson1_deserializeOpDocumentUpdateDomainOutput(v **UpdateDomainOutput return nil } -type awsRestjson1_deserializeOpUpdateProfile struct { +type awsRestjson1_deserializeOpListTagsForResource struct { } -func (*awsRestjson1_deserializeOpUpdateProfile) ID() string { +func (*awsRestjson1_deserializeOpListTagsForResource) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -9709,9 +10119,9 @@ func (m *awsRestjson1_deserializeOpUpdateProfile) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateProfile(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListTagsForResource(response, &metadata) } - output := &UpdateProfileOutput{} + output := &ListTagsForResourceOutput{} out.Result = output var buff [1024]byte @@ -9732,7 +10142,7 @@ func (m *awsRestjson1_deserializeOpUpdateProfile) HandleDeserialize(ctx context. return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateProfileOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9746,7 +10156,7 @@ func (m *awsRestjson1_deserializeOpUpdateProfile) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -9787,9 +10197,6 @@ func awsRestjson1_deserializeOpErrorUpdateProfile(response *smithyhttp.Response, } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("BadRequestException", errorCode): return awsRestjson1_deserializeErrorBadRequestException(response, errorBody) @@ -9799,9 +10206,6 @@ func awsRestjson1_deserializeOpErrorUpdateProfile(response *smithyhttp.Response, 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, @@ -9812,7 +10216,7 @@ func awsRestjson1_deserializeOpErrorUpdateProfile(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentUpdateProfileOutput(v **UpdateProfileOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9825,22 +10229,18 @@ func awsRestjson1_deserializeOpDocumentUpdateProfileOutput(v **UpdateProfileOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateProfileOutput + var sv *ListTagsForResourceOutput if *v == nil { - sv = &UpdateProfileOutput{} + sv = &ListTagsForResourceOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "ProfileId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected uuid to be of type string, got %T instead", value) - } - sv.ProfileId = ptr.String(jtv) + case "tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err } default: @@ -9852,48 +10252,41 @@ func awsRestjson1_deserializeOpDocumentUpdateProfileOutput(v **UpdateProfileOutp 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 - } +type awsRestjson1_deserializeOpListWorkflows struct { +} - err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape) +func (*awsRestjson1_deserializeOpListWorkflows) ID() string { + return "OperationDeserializer" +} +func (m *awsRestjson1_deserializeOpListWorkflows) HandleDeserialize(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) + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } - return output -} + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorListWorkflows(response, &metadata) + } + output := &ListWorkflowsOutput{} + out.Result = output -func awsRestjson1_deserializeErrorBadRequestException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.BadRequestException{} 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{} @@ -9904,83 +10297,45 @@ func awsRestjson1_deserializeErrorBadRequestException(response *smithyhttp.Respo Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - err := awsRestjson1_deserializeDocumentBadRequestException(&output, shape) - + err = awsRestjson1_deserializeOpDocumentListWorkflowsOutput(&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 err } - errorBody.Seek(0, io.SeekStart) - - return output + span.End() + return out, metadata, err } -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 +func awsRestjson1_deserializeOpErrorListWorkflows(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.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()) - err := awsRestjson1_deserializeDocumentInternalServerException(&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 + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) } - 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) - + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9992,16 +10347,119 @@ func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp } errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } - return output -} + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) -func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ThrottlingException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + case strings.EqualFold("BadRequestException", errorCode): + return awsRestjson1_deserializeErrorBadRequestException(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_deserializeOpDocumentListWorkflowsOutput(v **ListWorkflowsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListWorkflowsOutput + if *v == nil { + sv = &ListWorkflowsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Items": + if err := awsRestjson1_deserializeDocumentWorkflowList(&sv.Items, 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_deserializeOpMergeProfiles struct { +} + +func (*awsRestjson1_deserializeOpMergeProfiles) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpMergeProfiles) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorMergeProfiles(response, &metadata) + } + output := &MergeProfilesOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) - body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} @@ -10012,11 +10470,45 @@ func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Respo Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - err := awsRestjson1_deserializeDocumentThrottlingException(&output, shape) + err = awsRestjson1_deserializeOpDocumentMergeProfilesOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorMergeProfiles(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10028,11 +10520,37 @@ func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Respo } errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } - return output + switch { + case strings.EqualFold("BadRequestException", errorCode): + return awsRestjson1_deserializeErrorBadRequestException(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_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { +func awsRestjson1_deserializeOpDocumentMergeProfilesOutput(v **MergeProfilesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10045,22 +10563,4329 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AccessDeniedException + var sv *MergeProfilesOutput + if *v == nil { + sv = &MergeProfilesOutput{} + } 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 +} + +type awsRestjson1_deserializeOpPutIntegration struct { +} + +func (*awsRestjson1_deserializeOpPutIntegration) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpPutIntegration) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorPutIntegration(response, &metadata) + } + output := &PutIntegrationOutput{} + 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_deserializeOpDocumentPutIntegrationOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorPutIntegration(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("BadRequestException", errorCode): + return awsRestjson1_deserializeErrorBadRequestException(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_deserializeOpDocumentPutIntegrationOutput(v **PutIntegrationOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *PutIntegrationOutput + if *v == nil { + sv = &PutIntegrationOutput{} + } 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 "DomainName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected name to be of type string, got %T instead", value) + } + sv.DomainName = ptr.String(jtv) + } + + case "IsUnstructured": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected optionalBoolean to be of type *bool, got %T instead", value) + } + sv.IsUnstructured = ptr.Bool(jtv) + } + + case "LastUpdatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "ObjectTypeName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected typeName to be of type string, got %T instead", value) + } + sv.ObjectTypeName = ptr.String(jtv) + } + + case "ObjectTypeNames": + if err := awsRestjson1_deserializeDocumentObjectTypeNames(&sv.ObjectTypeNames, value); err != nil { + return err + } + + 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 "Tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err + } + + case "Uri": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.Uri = ptr.String(jtv) + } + + case "WorkflowId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.WorkflowId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpPutProfileObject struct { +} + +func (*awsRestjson1_deserializeOpPutProfileObject) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpPutProfileObject) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorPutProfileObject(response, &metadata) + } + output := &PutProfileObjectOutput{} + 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_deserializeOpDocumentPutProfileObjectOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorPutProfileObject(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("BadRequestException", errorCode): + return awsRestjson1_deserializeErrorBadRequestException(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_deserializeOpDocumentPutProfileObjectOutput(v **PutProfileObjectOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *PutProfileObjectOutput + if *v == nil { + sv = &PutProfileObjectOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ProfileObjectUniqueKey": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.ProfileObjectUniqueKey = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpPutProfileObjectType struct { +} + +func (*awsRestjson1_deserializeOpPutProfileObjectType) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpPutProfileObjectType) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorPutProfileObjectType(response, &metadata) + } + output := &PutProfileObjectTypeOutput{} + 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_deserializeOpDocumentPutProfileObjectTypeOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorPutProfileObjectType(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("BadRequestException", errorCode): + return awsRestjson1_deserializeErrorBadRequestException(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_deserializeOpDocumentPutProfileObjectTypeOutput(v **PutProfileObjectTypeOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *PutProfileObjectTypeOutput + if *v == nil { + sv = &PutProfileObjectTypeOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AllowProfileCreation": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected boolean to be of type *bool, got %T instead", value) + } + sv.AllowProfileCreation = jtv + } + + 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 sensitiveText to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "EncryptionKey": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected encryptionKey to be of type string, got %T instead", value) + } + sv.EncryptionKey = ptr.String(jtv) + } + + case "ExpirationDays": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected expirationDaysInteger to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ExpirationDays = ptr.Int32(int32(i64)) + } + + case "Fields": + if err := awsRestjson1_deserializeDocumentFieldMap(&sv.Fields, value); err != nil { + return err + } + + case "Keys": + if err := awsRestjson1_deserializeDocumentKeyMap(&sv.Keys, value); err != nil { + return err + } + + case "LastUpdatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "MaxAvailableProfileObjectCount": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected minSize0 to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaxAvailableProfileObjectCount = ptr.Int32(int32(i64)) + } + + case "MaxProfileObjectCount": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected minSize1 to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaxProfileObjectCount = ptr.Int32(int32(i64)) + } + + case "ObjectTypeName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected typeName to be of type string, got %T instead", value) + } + sv.ObjectTypeName = ptr.String(jtv) + } + + case "SourceLastUpdatedTimestampFormat": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.SourceLastUpdatedTimestampFormat = ptr.String(jtv) + } + + case "Tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err + } + + case "TemplateId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected name to be of type string, got %T instead", value) + } + sv.TemplateId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpSearchProfiles struct { +} + +func (*awsRestjson1_deserializeOpSearchProfiles) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpSearchProfiles) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorSearchProfiles(response, &metadata) + } + output := &SearchProfilesOutput{} + 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_deserializeOpDocumentSearchProfilesOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorSearchProfiles(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("BadRequestException", errorCode): + return awsRestjson1_deserializeErrorBadRequestException(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_deserializeOpDocumentSearchProfilesOutput(v **SearchProfilesOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *SearchProfilesOutput + if *v == nil { + sv = &SearchProfilesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Items": + if err := awsRestjson1_deserializeDocumentProfileList(&sv.Items, 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_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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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 + + span.End() + 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 + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("BadRequestException", errorCode): + return awsRestjson1_deserializeErrorBadRequestException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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 + + span.End() + 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 + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("BadRequestException", errorCode): + return awsRestjson1_deserializeErrorBadRequestException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpUpdateCalculatedAttributeDefinition struct { +} + +func (*awsRestjson1_deserializeOpUpdateCalculatedAttributeDefinition) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateCalculatedAttributeDefinition) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorUpdateCalculatedAttributeDefinition(response, &metadata) + } + output := &UpdateCalculatedAttributeDefinitionOutput{} + 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_deserializeOpDocumentUpdateCalculatedAttributeDefinitionOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateCalculatedAttributeDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("BadRequestException", errorCode): + return awsRestjson1_deserializeErrorBadRequestException(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_deserializeOpDocumentUpdateCalculatedAttributeDefinitionOutput(v **UpdateCalculatedAttributeDefinitionOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateCalculatedAttributeDefinitionOutput + if *v == nil { + sv = &UpdateCalculatedAttributeDefinitionOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AttributeDetails": + if err := awsRestjson1_deserializeDocumentAttributeDetails(&sv.AttributeDetails, value); err != nil { + return err + } + + case "CalculatedAttributeName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected typeName to be of type string, got %T instead", value) + } + sv.CalculatedAttributeName = ptr.String(jtv) + } + + case "Conditions": + if err := awsRestjson1_deserializeDocumentConditions(&sv.Conditions, 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 sensitiveText 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 displayName to be of type string, got %T instead", value) + } + sv.DisplayName = ptr.String(jtv) + } + + case "LastUpdatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Statistic": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Statistic to be of type string, got %T instead", value) + } + sv.Statistic = types.Statistic(jtv) + } + + case "Tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateDomain struct { +} + +func (*awsRestjson1_deserializeOpUpdateDomain) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorUpdateDomain(response, &metadata) + } + output := &UpdateDomainOutput{} + 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_deserializeOpDocumentUpdateDomainOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_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)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("BadRequestException", errorCode): + return awsRestjson1_deserializeErrorBadRequestException(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_deserializeOpDocumentUpdateDomainOutput(v **UpdateDomainOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateDomainOutput + if *v == nil { + sv = &UpdateDomainOutput{} + } 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 "DeadLetterQueueUrl": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected sqsQueueUrl to be of type string, got %T instead", value) + } + sv.DeadLetterQueueUrl = ptr.String(jtv) + } + + case "DefaultEncryptionKey": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected encryptionKey to be of type string, got %T instead", value) + } + sv.DefaultEncryptionKey = ptr.String(jtv) + } + + case "DefaultExpirationDays": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected expirationDaysInteger to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.DefaultExpirationDays = ptr.Int32(int32(i64)) + } + + case "DomainName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected name to be of type string, got %T instead", value) + } + sv.DomainName = ptr.String(jtv) + } + + case "LastUpdatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Matching": + if err := awsRestjson1_deserializeDocumentMatchingResponse(&sv.Matching, value); err != nil { + return err + } + + case "RuleBasedMatching": + if err := awsRestjson1_deserializeDocumentRuleBasedMatchingResponse(&sv.RuleBasedMatching, value); err != nil { + return err + } + + case "Tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateProfile struct { +} + +func (*awsRestjson1_deserializeOpUpdateProfile) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateProfile) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorUpdateProfile(response, &metadata) + } + output := &UpdateProfileOutput{} + 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_deserializeOpDocumentUpdateProfileOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("BadRequestException", errorCode): + return awsRestjson1_deserializeErrorBadRequestException(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_deserializeOpDocumentUpdateProfileOutput(v **UpdateProfileOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateProfileOutput + if *v == nil { + sv = &UpdateProfileOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ProfileId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected uuid to be of type string, got %T instead", value) + } + sv.ProfileId = 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_deserializeErrorBadRequestException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.BadRequestException{} + 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_deserializeDocumentBadRequestException(&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_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_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", "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_deserializeDocumentAddress(v **types.Address, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.Address + if *v == nil { + sv = &types.Address{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Address1": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.Address1 = ptr.String(jtv) + } + + case "Address2": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.Address2 = ptr.String(jtv) + } + + case "Address3": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.Address3 = ptr.String(jtv) + } + + case "Address4": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.Address4 = ptr.String(jtv) + } + + case "City": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.City = ptr.String(jtv) + } + + case "Country": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.Country = ptr.String(jtv) + } + + case "County": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.County = ptr.String(jtv) + } + + case "PostalCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.PostalCode = ptr.String(jtv) + } + + case "Province": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.Province = ptr.String(jtv) + } + + case "State": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.State = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAddressDimension(v **types.AddressDimension, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AddressDimension + if *v == nil { + sv = &types.AddressDimension{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "City": + if err := awsRestjson1_deserializeDocumentProfileDimension(&sv.City, value); err != nil { + return err + } + + case "Country": + if err := awsRestjson1_deserializeDocumentProfileDimension(&sv.Country, value); err != nil { + return err + } + + case "County": + if err := awsRestjson1_deserializeDocumentProfileDimension(&sv.County, value); err != nil { + return err + } + + case "PostalCode": + if err := awsRestjson1_deserializeDocumentProfileDimension(&sv.PostalCode, value); err != nil { + return err + } + + case "Province": + if err := awsRestjson1_deserializeDocumentProfileDimension(&sv.Province, value); err != nil { + return err + } + + case "State": + if err := awsRestjson1_deserializeDocumentProfileDimension(&sv.State, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAddressList(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 string1To255 to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAppflowIntegrationWorkflowAttributes(v **types.AppflowIntegrationWorkflowAttributes, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AppflowIntegrationWorkflowAttributes + if *v == nil { + sv = &types.AppflowIntegrationWorkflowAttributes{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ConnectorProfileName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConnectorProfileName to be of type string, got %T instead", value) + } + sv.ConnectorProfileName = ptr.String(jtv) + } + + case "RoleArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.RoleArn = ptr.String(jtv) + } + + case "SourceConnectorType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SourceConnectorType to be of type string, got %T instead", value) + } + sv.SourceConnectorType = types.SourceConnectorType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAppflowIntegrationWorkflowMetrics(v **types.AppflowIntegrationWorkflowMetrics, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AppflowIntegrationWorkflowMetrics + if *v == nil { + sv = &types.AppflowIntegrationWorkflowMetrics{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "RecordsProcessed": + 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.RecordsProcessed = i64 + } + + case "StepsCompleted": + 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.StepsCompleted = i64 + } + + case "TotalSteps": + 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.TotalSteps = i64 + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAppflowIntegrationWorkflowStep(v **types.AppflowIntegrationWorkflowStep, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AppflowIntegrationWorkflowStep + if *v == nil { + sv = &types.AppflowIntegrationWorkflowStep{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "BatchRecordsEndTime": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.BatchRecordsEndTime = ptr.String(jtv) + } + + case "BatchRecordsStartTime": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.BatchRecordsStartTime = ptr.String(jtv) + } + + 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 "ExecutionMessage": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.ExecutionMessage = ptr.String(jtv) + } + + case "FlowName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FlowName to be of type string, got %T instead", value) + } + sv.FlowName = ptr.String(jtv) + } + + case "LastUpdatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "RecordsProcessed": + 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.RecordsProcessed = i64 + } + + 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) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAttributeDetails(v **types.AttributeDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AttributeDetails + if *v == nil { + sv = &types.AttributeDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Attributes": + if err := awsRestjson1_deserializeDocumentAttributeList(&sv.Attributes, value); err != nil { + return err + } + + case "Expression": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.Expression = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAttributeDimension(v **types.AttributeDimension, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AttributeDimension + if *v == nil { + sv = &types.AttributeDimension{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DimensionType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AttributeDimensionType to be of type string, got %T instead", value) + } + sv.DimensionType = types.AttributeDimensionType(jtv) + } + + case "Values": + if err := awsRestjson1_deserializeDocumentValues(&sv.Values, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAttributeItem(v **types.AttributeItem, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AttributeItem + if *v == nil { + sv = &types.AttributeItem{} + } 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 attributeName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAttributeList(v *[]types.AttributeItem, 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.AttributeItem + if *v == nil { + cv = []types.AttributeItem{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AttributeItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentAttributeItem(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAttributeMap(v *map[string]types.FilterAttributeDimension, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %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.FilterAttributeDimension + if *v == nil { + mv = map[string]types.FilterAttributeDimension{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal types.FilterAttributeDimension + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentFilterAttributeDimension(&destAddr, value); err != nil { + return err + } + parsedVal = *destAddr + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentAttributes(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 string1To255 to be of type string, got %T instead", value) + } + parsedVal = jtv + } + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentAttributeTypesSelector(v **types.AttributeTypesSelector, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AttributeTypesSelector + if *v == nil { + sv = &types.AttributeTypesSelector{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Address": + if err := awsRestjson1_deserializeDocumentAddressList(&sv.Address, value); err != nil { + return err + } + + case "AttributeMatchingModel": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AttributeMatchingModel to be of type string, got %T instead", value) + } + sv.AttributeMatchingModel = types.AttributeMatchingModel(jtv) + } + + case "EmailAddress": + if err := awsRestjson1_deserializeDocumentEmailList(&sv.EmailAddress, value); err != nil { + return err + } + + case "PhoneNumber": + if err := awsRestjson1_deserializeDocumentPhoneNumberList(&sv.PhoneNumber, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAttributeValueItem(v **types.AttributeValueItem, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AttributeValueItem + if *v == nil { + sv = &types.AttributeValueItem{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Value": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.Value = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAttributeValueItemList(v *[]types.AttributeValueItem, 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.AttributeValueItem + if *v == nil { + cv = []types.AttributeValueItem{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AttributeValueItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentAttributeValueItem(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAutoMerging(v **types.AutoMerging, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AutoMerging + if *v == nil { + sv = &types.AutoMerging{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ConflictResolution": + if err := awsRestjson1_deserializeDocumentConflictResolution(&sv.ConflictResolution, value); err != nil { + return err + } + + case "Consolidation": + if err := awsRestjson1_deserializeDocumentConsolidation(&sv.Consolidation, value); err != nil { + return err + } + + case "Enabled": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected optionalBoolean to be of type *bool, got %T instead", value) + } + sv.Enabled = ptr.Bool(jtv) + } + + case "MinAllowedConfidenceScoreForMerging": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.MinAllowedConfidenceScoreForMerging = 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.MinAllowedConfidenceScoreForMerging = ptr.Float64(f64) + + default: + return fmt.Errorf("expected Double0To1 to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.BadRequestException + if *v == nil { + sv = &types.BadRequestException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message", "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_deserializeDocumentBatchGetCalculatedAttributeForProfileError(v **types.BatchGetCalculatedAttributeForProfileError, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.BatchGetCalculatedAttributeForProfileError + if *v == nil { + sv = &types.BatchGetCalculatedAttributeForProfileError{} + } 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 string1To255 to be of type string, got %T instead", value) + } + sv.Code = ptr.String(jtv) + } + + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To1000 to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "ProfileId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected uuid to be of type string, got %T instead", value) + } + sv.ProfileId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentBatchGetCalculatedAttributeForProfileErrorList(v *[]types.BatchGetCalculatedAttributeForProfileError, 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.BatchGetCalculatedAttributeForProfileError + if *v == nil { + cv = []types.BatchGetCalculatedAttributeForProfileError{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.BatchGetCalculatedAttributeForProfileError + destAddr := &col + if err := awsRestjson1_deserializeDocumentBatchGetCalculatedAttributeForProfileError(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentBatchGetProfileError(v **types.BatchGetProfileError, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.BatchGetProfileError + if *v == nil { + sv = &types.BatchGetProfileError{} + } 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 string1To255 to be of type string, got %T instead", value) + } + sv.Code = ptr.String(jtv) + } + + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To1000 to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "ProfileId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected uuid to be of type string, got %T instead", value) + } + sv.ProfileId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentBatchGetProfileErrorList(v *[]types.BatchGetProfileError, 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.BatchGetProfileError + if *v == nil { + cv = []types.BatchGetProfileError{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.BatchGetProfileError + destAddr := &col + if err := awsRestjson1_deserializeDocumentBatchGetProfileError(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentCalculatedAttributeDefinitionsList(v *[]types.ListCalculatedAttributeDefinitionItem, 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.ListCalculatedAttributeDefinitionItem + if *v == nil { + cv = []types.ListCalculatedAttributeDefinitionItem{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ListCalculatedAttributeDefinitionItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentListCalculatedAttributeDefinitionItem(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentCalculatedAttributeDimension(v **types.CalculatedAttributeDimension, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.CalculatedAttributeDimension + if *v == nil { + sv = &types.CalculatedAttributeDimension{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ConditionOverrides": + if err := awsRestjson1_deserializeDocumentConditionOverrides(&sv.ConditionOverrides, value); err != nil { + return err + } + + case "DimensionType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AttributeDimensionType to be of type string, got %T instead", value) + } + sv.DimensionType = types.AttributeDimensionType(jtv) + } + + case "Values": + if err := awsRestjson1_deserializeDocumentValues(&sv.Values, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentCalculatedAttributesForProfileList(v *[]types.ListCalculatedAttributeForProfileItem, 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.ListCalculatedAttributeForProfileItem + if *v == nil { + cv = []types.ListCalculatedAttributeForProfileItem{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ListCalculatedAttributeForProfileItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentListCalculatedAttributeForProfileItem(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentCalculatedAttributeValue(v **types.CalculatedAttributeValue, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.CalculatedAttributeValue + if *v == nil { + sv = &types.CalculatedAttributeValue{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CalculatedAttributeName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected typeName to be of type string, got %T instead", value) + } + sv.CalculatedAttributeName = ptr.String(jtv) + } + + 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 "IsDataPartial": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.IsDataPartial = ptr.String(jtv) + } + + case "ProfileId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected uuid to be of type string, got %T instead", value) + } + sv.ProfileId = ptr.String(jtv) + } + + case "Value": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.Value = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentCalculatedAttributeValueList(v *[]types.CalculatedAttributeValue, 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.CalculatedAttributeValue + if *v == nil { + cv = []types.CalculatedAttributeValue{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.CalculatedAttributeValue + destAddr := &col + if err := awsRestjson1_deserializeDocumentCalculatedAttributeValue(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentCalculatedCustomAttributes(v *map[string]types.CalculatedAttributeDimension, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %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.CalculatedAttributeDimension + if *v == nil { + mv = map[string]types.CalculatedAttributeDimension{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal types.CalculatedAttributeDimension + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentCalculatedAttributeDimension(&destAddr, value); err != nil { + return err + } + parsedVal = *destAddr + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentConditionOverrides(v **types.ConditionOverrides, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.ConditionOverrides + if *v == nil { + sv = &types.ConditionOverrides{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Range": + if err := awsRestjson1_deserializeDocumentRangeOverride(&sv.Range, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentConditions(v **types.Conditions, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.Conditions + if *v == nil { + sv = &types.Conditions{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ObjectCount": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected ObjectCount to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ObjectCount = ptr.Int32(int32(i64)) + } + + case "Range": + if err := awsRestjson1_deserializeDocumentRange(&sv.Range, value); err != nil { + return err + } + + case "Threshold": + if err := awsRestjson1_deserializeDocumentThreshold(&sv.Threshold, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentConflictResolution(v **types.ConflictResolution, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.ConflictResolution + if *v == nil { + sv = &types.ConflictResolution{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ConflictResolvingModel": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConflictResolvingModel to be of type string, got %T instead", value) + } + sv.ConflictResolvingModel = types.ConflictResolvingModel(jtv) + } + + case "SourceName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.SourceName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentConsolidation(v **types.Consolidation, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.Consolidation + if *v == nil { + sv = &types.Consolidation{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "MatchingAttributesList": + if err := awsRestjson1_deserializeDocumentMatchingAttributesList(&sv.MatchingAttributesList, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentCustomAttributes(v *map[string]types.AttributeDimension, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %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.AttributeDimension + if *v == nil { + mv = map[string]types.AttributeDimension{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal types.AttributeDimension + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentAttributeDimension(&destAddr, value); err != nil { + return err + } + parsedVal = *destAddr + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentDateDimension(v **types.DateDimension, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.DateDimension + if *v == nil { + sv = &types.DateDimension{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DimensionType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DateDimensionType to be of type string, got %T instead", value) + } + sv.DimensionType = types.DateDimensionType(jtv) + } + + case "Values": + if err := awsRestjson1_deserializeDocumentDateValues(&sv.Values, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDateValues(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 awsRestjson1_deserializeDocumentDestinationSummary(v **types.DestinationSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.DestinationSummary + if *v == nil { + sv = &types.DestinationSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EventStreamDestinationStatus to be of type string, got %T instead", value) + } + sv.Status = types.EventStreamDestinationStatus(jtv) + } + + case "UnhealthySince": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UnhealthySince = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Uri": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.Uri = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDetectedProfileObjectType(v **types.DetectedProfileObjectType, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.DetectedProfileObjectType + if *v == nil { + sv = &types.DetectedProfileObjectType{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Fields": + if err := awsRestjson1_deserializeDocumentFieldMap(&sv.Fields, value); err != nil { + return err + } + + case "Keys": + if err := awsRestjson1_deserializeDocumentKeyMap(&sv.Keys, value); err != nil { + return err + } + + case "SourceLastUpdatedTimestampFormat": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.SourceLastUpdatedTimestampFormat = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDetectedProfileObjectTypes(v *[]types.DetectedProfileObjectType, 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.DetectedProfileObjectType + if *v == nil { + cv = []types.DetectedProfileObjectType{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.DetectedProfileObjectType + destAddr := &col + if err := awsRestjson1_deserializeDocumentDetectedProfileObjectType(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentDimension(v *types.Dimension, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var uv types.Dimension +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "CalculatedAttributes": + var mv map[string]types.CalculatedAttributeDimension + if err := awsRestjson1_deserializeDocumentCalculatedCustomAttributes(&mv, value); err != nil { + return err + } + uv = &types.DimensionMemberCalculatedAttributes{Value: mv} + break loop + + case "ProfileAttributes": + var mv types.ProfileAttributes + destAddr := &mv + if err := awsRestjson1_deserializeDocumentProfileAttributes(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.DimensionMemberProfileAttributes{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + +func awsRestjson1_deserializeDocumentDimensionList(v *[]types.Dimension, 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.Dimension + if *v == nil { + cv = []types.Dimension{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Dimension + if err := awsRestjson1_deserializeDocumentDimension(&col, value); err != nil { + return err + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentDomainList(v *[]types.ListDomainItem, 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.ListDomainItem + if *v == nil { + cv = []types.ListDomainItem{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ListDomainItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentListDomainItem(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentDomainStats(v **types.DomainStats, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.DomainStats + if *v == nil { + sv = &types.DomainStats{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "MeteringProfileCount": + 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.MeteringProfileCount = i64 + } + + case "ObjectCount": + 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.ObjectCount = i64 + } + + case "ProfileCount": + 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.ProfileCount = i64 + } + + case "TotalSize": + 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.TotalSize = i64 + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentEmailList(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 string1To255 to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentEventStreamDestinationDetails(v **types.EventStreamDestinationDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.EventStreamDestinationDetails + if *v == nil { + sv = &types.EventStreamDestinationDetails{} + } 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 string1To1000 to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EventStreamDestinationStatus to be of type string, got %T instead", value) + } + sv.Status = types.EventStreamDestinationStatus(jtv) + } + + case "UnhealthySince": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UnhealthySince = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Uri": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.Uri = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentEventStreamSummary(v **types.EventStreamSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.EventStreamSummary + if *v == nil { + sv = &types.EventStreamSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DestinationSummary": + if err := awsRestjson1_deserializeDocumentDestinationSummary(&sv.DestinationSummary, value); err != nil { + return err + } + + case "DomainName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected name to be of type string, got %T instead", value) + } + sv.DomainName = ptr.String(jtv) + } + + case "EventStreamArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.EventStreamArn = ptr.String(jtv) + } + + case "EventStreamName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected name to be of type string, got %T instead", value) + } + sv.EventStreamName = ptr.String(jtv) + } + + case "State": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EventStreamState to be of type string, got %T instead", value) + } + sv.State = types.EventStreamState(jtv) + } + + case "StoppedSince": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.StoppedSince = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentEventStreamSummaryList(v *[]types.EventStreamSummary, 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.EventStreamSummary + if *v == nil { + cv = []types.EventStreamSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.EventStreamSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentEventStreamSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentExportingConfig(v **types.ExportingConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.ExportingConfig + if *v == nil { + sv = &types.ExportingConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "S3Exporting": + if err := awsRestjson1_deserializeDocumentS3ExportingConfig(&sv.S3Exporting, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentExportingLocation(v **types.ExportingLocation, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.ExportingLocation if *v == nil { - sv = &types.AccessDeniedException{} + sv = &types.ExportingLocation{} } else { sv = *v } for key, value := range shape { switch key { - case "message", "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) + case "S3Exporting": + if err := awsRestjson1_deserializeDocumentS3ExportingLocation(&sv.S3Exporting, value); err != nil { + return err } default: @@ -10072,7 +14897,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie return nil } -func awsRestjson1_deserializeDocumentAddress(v **types.Address, value interface{}) error { +func awsRestjson1_deserializeDocumentExtraLengthValueProfileDimension(v **types.ExtraLengthValueProfileDimension, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10085,103 +14910,27 @@ func awsRestjson1_deserializeDocumentAddress(v **types.Address, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Address + var sv *types.ExtraLengthValueProfileDimension if *v == nil { - sv = &types.Address{} + sv = &types.ExtraLengthValueProfileDimension{} } else { sv = *v } for key, value := range shape { switch key { - case "Address1": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - sv.Address1 = ptr.String(jtv) - } - - case "Address2": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - sv.Address2 = ptr.String(jtv) - } - - case "Address3": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - sv.Address3 = ptr.String(jtv) - } - - case "Address4": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - sv.Address4 = ptr.String(jtv) - } - - case "City": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - sv.City = ptr.String(jtv) - } - - case "Country": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - sv.Country = ptr.String(jtv) - } - - case "County": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - sv.County = ptr.String(jtv) - } - - case "PostalCode": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - sv.PostalCode = ptr.String(jtv) - } - - case "Province": + case "DimensionType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + return fmt.Errorf("expected StringDimensionType to be of type string, got %T instead", value) } - sv.Province = ptr.String(jtv) + sv.DimensionType = types.StringDimensionType(jtv) } - case "State": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - sv.State = ptr.String(jtv) + case "Values": + if err := awsRestjson1_deserializeDocumentExtraLengthValues(&sv.Values, value); err != nil { + return err } default: @@ -10193,7 +14942,7 @@ func awsRestjson1_deserializeDocumentAddress(v **types.Address, value interface{ return nil } -func awsRestjson1_deserializeDocumentAddressList(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentExtraLengthValues(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10218,7 +14967,7 @@ func awsRestjson1_deserializeDocumentAddressList(v *[]string, value interface{}) if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + return fmt.Errorf("expected string1To1000 to be of type string, got %T instead", value) } col = jtv } @@ -10229,7 +14978,7 @@ func awsRestjson1_deserializeDocumentAddressList(v *[]string, value interface{}) return nil } -func awsRestjson1_deserializeDocumentAppflowIntegrationWorkflowAttributes(v **types.AppflowIntegrationWorkflowAttributes, value interface{}) error { +func awsRestjson1_deserializeDocumentFailures(v *[]types.ProfileQueryFailures, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10237,57 +14986,33 @@ func awsRestjson1_deserializeDocumentAppflowIntegrationWorkflowAttributes(v **ty 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.AppflowIntegrationWorkflowAttributes + var cv []types.ProfileQueryFailures if *v == nil { - sv = &types.AppflowIntegrationWorkflowAttributes{} + cv = []types.ProfileQueryFailures{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "ConnectorProfileName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ConnectorProfileName to be of type string, got %T instead", value) - } - sv.ConnectorProfileName = ptr.String(jtv) - } - - case "RoleArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - sv.RoleArn = ptr.String(jtv) - } - - case "SourceConnectorType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SourceConnectorType to be of type string, got %T instead", value) - } - sv.SourceConnectorType = types.SourceConnectorType(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.ProfileQueryFailures + destAddr := &col + if err := awsRestjson1_deserializeDocumentProfileQueryFailures(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentAppflowIntegrationWorkflowMetrics(v **types.AppflowIntegrationWorkflowMetrics, value interface{}) error { +func awsRestjson1_deserializeDocumentFieldMap(v *map[string]types.ObjectTypeField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10300,64 +15025,29 @@ func awsRestjson1_deserializeDocumentAppflowIntegrationWorkflowMetrics(v **types return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AppflowIntegrationWorkflowMetrics + var mv map[string]types.ObjectTypeField if *v == nil { - sv = &types.AppflowIntegrationWorkflowMetrics{} + mv = map[string]types.ObjectTypeField{} } else { - sv = *v + mv = *v } for key, value := range shape { - switch key { - case "RecordsProcessed": - 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.RecordsProcessed = i64 - } - - case "StepsCompleted": - 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.StepsCompleted = i64 - } - - case "TotalSteps": - 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.TotalSteps = i64 - } - - default: - _, _ = key, value - + var parsedVal types.ObjectTypeField + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentObjectTypeField(&destAddr, value); err != nil { + return err } + parsedVal = *destAddr + mv[key] = parsedVal + } - *v = sv + *v = mv return nil } -func awsRestjson1_deserializeDocumentAppflowIntegrationWorkflowStep(v **types.AppflowIntegrationWorkflowStep, value interface{}) error { +func awsRestjson1_deserializeDocumentFieldNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10365,108 +15055,68 @@ func awsRestjson1_deserializeDocumentAppflowIntegrationWorkflowStep(v **types.Ap 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.AppflowIntegrationWorkflowStep - if *v == nil { - sv = &types.AppflowIntegrationWorkflowStep{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "BatchRecordsEndTime": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - sv.BatchRecordsEndTime = ptr.String(jtv) - } - - case "BatchRecordsStartTime": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - sv.BatchRecordsStartTime = ptr.String(jtv) - } - - 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) - - } - } + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } - case "ExecutionMessage": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - sv.ExecutionMessage = ptr.String(jtv) + 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) - case "FlowName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FlowName to be of type string, got %T instead", value) - } - sv.FlowName = ptr.String(jtv) - } + } + *v = cv + return nil +} - case "LastUpdatedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) +func awsRestjson1_deserializeDocumentFilter(v **types.Filter, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - default: - return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - } - } + var sv *types.Filter + if *v == nil { + sv = &types.Filter{} + } else { + sv = *v + } - case "RecordsProcessed": - 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.RecordsProcessed = i64 + for key, value := range shape { + switch key { + case "Groups": + if err := awsRestjson1_deserializeDocumentGroupList(&sv.Groups, value); err != nil { + return err } - case "Status": + case "Include": 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 Include to be of type string, got %T instead", value) } - sv.Status = types.Status(jtv) + sv.Include = types.Include(jtv) } default: @@ -10478,7 +15128,7 @@ func awsRestjson1_deserializeDocumentAppflowIntegrationWorkflowStep(v **types.Ap return nil } -func awsRestjson1_deserializeDocumentAttributeDetails(v **types.AttributeDetails, value interface{}) error { +func awsRestjson1_deserializeDocumentFilterAttributeDimension(v **types.FilterAttributeDimension, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10491,27 +15141,27 @@ func awsRestjson1_deserializeDocumentAttributeDetails(v **types.AttributeDetails return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AttributeDetails + var sv *types.FilterAttributeDimension if *v == nil { - sv = &types.AttributeDetails{} + sv = &types.FilterAttributeDimension{} } else { sv = *v } for key, value := range shape { switch key { - case "Attributes": - if err := awsRestjson1_deserializeDocumentAttributeList(&sv.Attributes, value); err != nil { - return err - } - - case "Expression": + case "DimensionType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + return fmt.Errorf("expected FilterDimensionType to be of type string, got %T instead", value) } - sv.Expression = ptr.String(jtv) + sv.DimensionType = types.FilterDimensionType(jtv) + } + + case "Values": + if err := awsRestjson1_deserializeDocumentValueList(&sv.Values, value); err != nil { + return err } default: @@ -10523,7 +15173,7 @@ func awsRestjson1_deserializeDocumentAttributeDetails(v **types.AttributeDetails return nil } -func awsRestjson1_deserializeDocumentAttributeItem(v **types.AttributeItem, value interface{}) error { +func awsRestjson1_deserializeDocumentFilterDimension(v **types.FilterDimension, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10536,22 +15186,18 @@ func awsRestjson1_deserializeDocumentAttributeItem(v **types.AttributeItem, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AttributeItem + var sv *types.FilterDimension if *v == nil { - sv = &types.AttributeItem{} + sv = &types.FilterDimension{} } 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 attributeName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) + case "Attributes": + if err := awsRestjson1_deserializeDocumentAttributeMap(&sv.Attributes, value); err != nil { + return err } default: @@ -10563,7 +15209,7 @@ func awsRestjson1_deserializeDocumentAttributeItem(v **types.AttributeItem, valu return nil } -func awsRestjson1_deserializeDocumentAttributeList(v *[]types.AttributeItem, value interface{}) error { +func awsRestjson1_deserializeDocumentFilterDimensionList(v *[]types.FilterDimension, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10576,17 +15222,17 @@ func awsRestjson1_deserializeDocumentAttributeList(v *[]types.AttributeItem, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.AttributeItem + var cv []types.FilterDimension if *v == nil { - cv = []types.AttributeItem{} + cv = []types.FilterDimension{} } else { cv = *v } for _, value := range shape { - var col types.AttributeItem + var col types.FilterDimension destAddr := &col - if err := awsRestjson1_deserializeDocumentAttributeItem(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentFilterDimension(&destAddr, value); err != nil { return err } col = *destAddr @@ -10597,7 +15243,7 @@ func awsRestjson1_deserializeDocumentAttributeList(v *[]types.AttributeItem, val return nil } -func awsRestjson1_deserializeDocumentAttributes(v *map[string]string, value interface{}) error { +func awsRestjson1_deserializeDocumentFilterGroup(v **types.FilterGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10610,30 +15256,39 @@ func awsRestjson1_deserializeDocumentAttributes(v *map[string]string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]string + var sv *types.FilterGroup if *v == nil { - mv = map[string]string{} + sv = &types.FilterGroup{} } else { - mv = *v + sv = *v } for key, value := range shape { - var parsedVal string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + switch key { + case "Dimensions": + if err := awsRestjson1_deserializeDocumentFilterDimensionList(&sv.Dimensions, value); err != nil { + return err } - parsedVal = jtv - } - mv[key] = parsedVal + 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) + } + + default: + _, _ = key, value + + } } - *v = mv + *v = sv return nil } -func awsRestjson1_deserializeDocumentAttributeTypesSelector(v **types.AttributeTypesSelector, value interface{}) error { +func awsRestjson1_deserializeDocumentFoundByKeyValue(v **types.FoundByKeyValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10646,36 +15301,26 @@ func awsRestjson1_deserializeDocumentAttributeTypesSelector(v **types.AttributeT return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AttributeTypesSelector + var sv *types.FoundByKeyValue if *v == nil { - sv = &types.AttributeTypesSelector{} + sv = &types.FoundByKeyValue{} } else { sv = *v } for key, value := range shape { switch key { - case "Address": - if err := awsRestjson1_deserializeDocumentAddressList(&sv.Address, value); err != nil { - return err - } - - case "AttributeMatchingModel": + case "KeyName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AttributeMatchingModel to be of type string, got %T instead", value) + return fmt.Errorf("expected name to be of type string, got %T instead", value) } - sv.AttributeMatchingModel = types.AttributeMatchingModel(jtv) - } - - case "EmailAddress": - if err := awsRestjson1_deserializeDocumentEmailList(&sv.EmailAddress, value); err != nil { - return err + sv.KeyName = ptr.String(jtv) } - case "PhoneNumber": - if err := awsRestjson1_deserializeDocumentPhoneNumberList(&sv.PhoneNumber, value); err != nil { + case "Values": + if err := awsRestjson1_deserializeDocumentRequestValueList(&sv.Values, value); err != nil { return err } @@ -10688,7 +15333,7 @@ func awsRestjson1_deserializeDocumentAttributeTypesSelector(v **types.AttributeT return nil } -func awsRestjson1_deserializeDocumentAutoMerging(v **types.AutoMerging, value interface{}) error { +func awsRestjson1_deserializeDocumentFoundByList(v *[]types.FoundByKeyValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10696,83 +15341,33 @@ func awsRestjson1_deserializeDocumentAutoMerging(v **types.AutoMerging, value in 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.AutoMerging + var cv []types.FoundByKeyValue if *v == nil { - sv = &types.AutoMerging{} + cv = []types.FoundByKeyValue{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "ConflictResolution": - if err := awsRestjson1_deserializeDocumentConflictResolution(&sv.ConflictResolution, value); err != nil { - return err - } - - case "Consolidation": - if err := awsRestjson1_deserializeDocumentConsolidation(&sv.Consolidation, value); err != nil { - return err - } - - case "Enabled": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected optionalBoolean to be of type *bool, got %T instead", value) - } - sv.Enabled = ptr.Bool(jtv) - } - - case "MinAllowedConfidenceScoreForMerging": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.MinAllowedConfidenceScoreForMerging = 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.MinAllowedConfidenceScoreForMerging = ptr.Float64(f64) - - default: - return fmt.Errorf("expected Double0To1 to be a JSON Number, got %T instead", value) - - } - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.FoundByKeyValue + destAddr := &col + if err := awsRestjson1_deserializeDocumentFoundByKeyValue(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestException, value interface{}) error { +func awsRestjson1_deserializeDocumentGroup(v **types.Group, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10785,22 +15380,41 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BadRequestException + var sv *types.Group if *v == nil { - sv = &types.BadRequestException{} + sv = &types.Group{} } else { sv = *v } - for key, value := range shape { - switch key { - case "message", "Message": + for key, value := range shape { + switch key { + case "Dimensions": + if err := awsRestjson1_deserializeDocumentDimensionList(&sv.Dimensions, value); err != nil { + return err + } + + case "SourceSegments": + if err := awsRestjson1_deserializeDocumentSourceSegmentList(&sv.SourceSegments, value); err != nil { + return err + } + + case "SourceType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IncludeOptions to be of type string, got %T instead", value) + } + sv.SourceType = types.IncludeOptions(jtv) + } + + case "Type": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected message to be of type string, got %T instead", value) + return fmt.Errorf("expected IncludeOptions to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.Type = types.IncludeOptions(jtv) } default: @@ -10812,7 +15426,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc return nil } -func awsRestjson1_deserializeDocumentCalculatedAttributeDefinitionsList(v *[]types.ListCalculatedAttributeDefinitionItem, value interface{}) error { +func awsRestjson1_deserializeDocumentGroupList(v *[]types.FilterGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10825,17 +15439,17 @@ func awsRestjson1_deserializeDocumentCalculatedAttributeDefinitionsList(v *[]typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ListCalculatedAttributeDefinitionItem + var cv []types.FilterGroup if *v == nil { - cv = []types.ListCalculatedAttributeDefinitionItem{} + cv = []types.FilterGroup{} } else { cv = *v } for _, value := range shape { - var col types.ListCalculatedAttributeDefinitionItem + var col types.FilterGroup destAddr := &col - if err := awsRestjson1_deserializeDocumentListCalculatedAttributeDefinitionItem(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentFilterGroup(&destAddr, value); err != nil { return err } col = *destAddr @@ -10846,7 +15460,7 @@ func awsRestjson1_deserializeDocumentCalculatedAttributeDefinitionsList(v *[]typ return nil } -func awsRestjson1_deserializeDocumentCalculatedAttributesForProfileList(v *[]types.ListCalculatedAttributeForProfileItem, value interface{}) error { +func awsRestjson1_deserializeDocumentIdentityResolutionJob(v **types.IdentityResolutionJob, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10854,75 +15468,96 @@ func awsRestjson1_deserializeDocumentCalculatedAttributesForProfileList(v *[]typ 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.ListCalculatedAttributeForProfileItem + var sv *types.IdentityResolutionJob if *v == nil { - cv = []types.ListCalculatedAttributeForProfileItem{} + sv = &types.IdentityResolutionJob{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.ListCalculatedAttributeForProfileItem - destAddr := &col - if err := awsRestjson1_deserializeDocumentListCalculatedAttributeForProfileItem(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "DomainName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected name to be of type string, got %T instead", value) + } + sv.DomainName = ptr.String(jtv) + } - } - *v = cv - return nil -} + case "ExportingLocation": + if err := awsRestjson1_deserializeDocumentExportingLocation(&sv.ExportingLocation, value); err != nil { + return err + } -func awsRestjson1_deserializeDocumentConditions(v **types.Conditions, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "JobEndTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.JobEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + default: + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) - var sv *types.Conditions - if *v == nil { - sv = &types.Conditions{} - } else { - sv = *v - } + } + } - for key, value := range shape { - switch key { - case "ObjectCount": + case "JobId": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ObjectCount to be json.Number, got %T instead", value) + return fmt.Errorf("expected uuid to be of type string, got %T instead", value) } - i64, err := jtv.Int64() - if err != nil { - return err + sv.JobId = ptr.String(jtv) + } + + case "JobStartTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.JobStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + } - sv.ObjectCount = ptr.Int32(int32(i64)) } - case "Range": - if err := awsRestjson1_deserializeDocumentRange(&sv.Range, value); err != nil { + case "JobStats": + if err := awsRestjson1_deserializeDocumentJobStats(&sv.JobStats, value); err != nil { return err } - case "Threshold": - if err := awsRestjson1_deserializeDocumentThreshold(&sv.Threshold, value); err != nil { - return err + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected stringTo2048 to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IdentityResolutionJobStatus to be of type string, got %T instead", value) + } + sv.Status = types.IdentityResolutionJobStatus(jtv) } default: @@ -10934,7 +15569,7 @@ func awsRestjson1_deserializeDocumentConditions(v **types.Conditions, value inte return nil } -func awsRestjson1_deserializeDocumentConflictResolution(v **types.ConflictResolution, value interface{}) error { +func awsRestjson1_deserializeDocumentIdentityResolutionJobsList(v *[]types.IdentityResolutionJob, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10942,48 +15577,33 @@ func awsRestjson1_deserializeDocumentConflictResolution(v **types.ConflictResolu 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.ConflictResolution + var cv []types.IdentityResolutionJob if *v == nil { - sv = &types.ConflictResolution{} + cv = []types.IdentityResolutionJob{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "ConflictResolvingModel": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ConflictResolvingModel to be of type string, got %T instead", value) - } - sv.ConflictResolvingModel = types.ConflictResolvingModel(jtv) - } - - case "SourceName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - sv.SourceName = ptr.String(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.IdentityResolutionJob + destAddr := &col + if err := awsRestjson1_deserializeDocumentIdentityResolutionJob(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentConsolidation(v **types.Consolidation, value interface{}) error { +func awsRestjson1_deserializeDocumentIntegrationList(v *[]types.ListIntegrationItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10991,35 +15611,33 @@ func awsRestjson1_deserializeDocumentConsolidation(v **types.Consolidation, valu 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.Consolidation + var cv []types.ListIntegrationItem if *v == nil { - sv = &types.Consolidation{} + cv = []types.ListIntegrationItem{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "MatchingAttributesList": - if err := awsRestjson1_deserializeDocumentMatchingAttributesList(&sv.MatchingAttributesList, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.ListIntegrationItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentListIntegrationItem(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentDestinationSummary(v **types.DestinationSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11032,47 +15650,22 @@ func awsRestjson1_deserializeDocumentDestinationSummary(v **types.DestinationSum return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DestinationSummary + var sv *types.InternalServerException if *v == nil { - sv = &types.DestinationSummary{} + sv = &types.InternalServerException{} } else { sv = *v } for key, value := range shape { switch key { - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected EventStreamDestinationStatus to be of type string, got %T instead", value) - } - sv.Status = types.EventStreamDestinationStatus(jtv) - } - - case "UnhealthySince": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.UnhealthySince = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "Uri": + case "message", "Message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + return fmt.Errorf("expected message to be of type string, got %T instead", value) } - sv.Uri = ptr.String(jtv) + sv.Message = ptr.String(jtv) } default: @@ -11084,7 +15677,7 @@ func awsRestjson1_deserializeDocumentDestinationSummary(v **types.DestinationSum return nil } -func awsRestjson1_deserializeDocumentDetectedProfileObjectType(v **types.DetectedProfileObjectType, value interface{}) error { +func awsRestjson1_deserializeDocumentJobSchedule(v **types.JobSchedule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11097,32 +15690,31 @@ func awsRestjson1_deserializeDocumentDetectedProfileObjectType(v **types.Detecte return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DetectedProfileObjectType + var sv *types.JobSchedule if *v == nil { - sv = &types.DetectedProfileObjectType{} + sv = &types.JobSchedule{} } else { sv = *v } for key, value := range shape { switch key { - case "Fields": - if err := awsRestjson1_deserializeDocumentFieldMap(&sv.Fields, value); err != nil { - return err - } - - case "Keys": - if err := awsRestjson1_deserializeDocumentKeyMap(&sv.Keys, value); err != nil { - return err + case "DayOfTheWeek": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected JobScheduleDayOfTheWeek to be of type string, got %T instead", value) + } + sv.DayOfTheWeek = types.JobScheduleDayOfTheWeek(jtv) } - case "SourceLastUpdatedTimestampFormat": + case "Time": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + return fmt.Errorf("expected JobScheduleTime to be of type string, got %T instead", value) } - sv.SourceLastUpdatedTimestampFormat = ptr.String(jtv) + sv.Time = ptr.String(jtv) } default: @@ -11134,7 +15726,7 @@ func awsRestjson1_deserializeDocumentDetectedProfileObjectType(v **types.Detecte return nil } -func awsRestjson1_deserializeDocumentDetectedProfileObjectTypes(v *[]types.DetectedProfileObjectType, value interface{}) error { +func awsRestjson1_deserializeDocumentJobStats(v **types.JobStats, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11142,33 +15734,69 @@ func awsRestjson1_deserializeDocumentDetectedProfileObjectTypes(v *[]types.Detec 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.DetectedProfileObjectType + var sv *types.JobStats if *v == nil { - cv = []types.DetectedProfileObjectType{} + sv = &types.JobStats{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.DetectedProfileObjectType - destAddr := &col - if err := awsRestjson1_deserializeDocumentDetectedProfileObjectType(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "NumberOfMatchesFound": + 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.NumberOfMatchesFound = i64 + } + + case "NumberOfMergesDone": + 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.NumberOfMergesDone = i64 + } + + case "NumberOfProfilesReviewed": + 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.NumberOfProfilesReviewed = i64 + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentDomainList(v *[]types.ListDomainItem, value interface{}) error { +func awsRestjson1_deserializeDocumentKeyMap(v *map[string][]types.ObjectTypeKey, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11176,33 +15804,33 @@ func awsRestjson1_deserializeDocumentDomainList(v *[]types.ListDomainItem, 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 []types.ListDomainItem + var mv map[string][]types.ObjectTypeKey if *v == nil { - cv = []types.ListDomainItem{} + mv = map[string][]types.ObjectTypeKey{} } else { - cv = *v + mv = *v } - for _, value := range shape { - var col types.ListDomainItem - destAddr := &col - if err := awsRestjson1_deserializeDocumentListDomainItem(&destAddr, value); err != nil { + for key, value := range shape { + var parsedVal []types.ObjectTypeKey + mapVar := parsedVal + if err := awsRestjson1_deserializeDocumentObjectTypeKeyList(&mapVar, value); err != nil { return err } - col = *destAddr - cv = append(cv, col) + parsedVal = mapVar + mv[key] = parsedVal } - *v = cv + *v = mv return nil } -func awsRestjson1_deserializeDocumentDomainStats(v **types.DomainStats, value interface{}) error { +func awsRestjson1_deserializeDocumentListCalculatedAttributeDefinitionItem(v **types.ListCalculatedAttributeDefinitionItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11215,65 +15843,77 @@ func awsRestjson1_deserializeDocumentDomainStats(v **types.DomainStats, value in return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DomainStats + var sv *types.ListCalculatedAttributeDefinitionItem if *v == nil { - sv = &types.DomainStats{} + sv = &types.ListCalculatedAttributeDefinitionItem{} } else { sv = *v } for key, value := range shape { switch key { - case "MeteringProfileCount": + case "CalculatedAttributeName": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected long to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected typeName to be of type string, got %T instead", value) } - sv.MeteringProfileCount = i64 + sv.CalculatedAttributeName = ptr.String(jtv) } - case "ObjectCount": + case "CreatedAt": 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 + 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) + } - sv.ObjectCount = i64 } - case "ProfileCount": + case "Description": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected long to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected sensitiveText to be of type string, got %T instead", value) } - sv.ProfileCount = i64 + sv.Description = ptr.String(jtv) } - case "TotalSize": + case "DisplayName": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected long to be json.Number, got %T instead", value) + return fmt.Errorf("expected displayName to be of type string, got %T instead", value) } - i64, err := jtv.Int64() - if err != nil { - return err + sv.DisplayName = ptr.String(jtv) + } + + case "LastUpdatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + } - sv.TotalSize = i64 + } + + case "Tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err } default: @@ -11285,7 +15925,7 @@ func awsRestjson1_deserializeDocumentDomainStats(v **types.DomainStats, value in return nil } -func awsRestjson1_deserializeDocumentEmailList(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentListCalculatedAttributeForProfileItem(v **types.ListCalculatedAttributeForProfileItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11293,35 +15933,66 @@ func awsRestjson1_deserializeDocumentEmailList(v *[]string, value interface{}) e 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.ListCalculatedAttributeForProfileItem if *v == nil { - cv = []string{} + sv = &types.ListCalculatedAttributeForProfileItem{} } 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 string1To255 to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "CalculatedAttributeName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected typeName to be of type string, got %T instead", value) + } + sv.CalculatedAttributeName = ptr.String(jtv) } - col = jtv - } - cv = append(cv, col) + 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 "IsDataPartial": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.IsDataPartial = ptr.String(jtv) + } + + case "Value": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.Value = ptr.String(jtv) + } + + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentEventStreamDestinationDetails(v **types.EventStreamDestinationDetails, value interface{}) error { +func awsRestjson1_deserializeDocumentListDomainItem(v **types.ListDomainItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11334,34 +16005,41 @@ func awsRestjson1_deserializeDocumentEventStreamDestinationDetails(v **types.Eve return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.EventStreamDestinationDetails + var sv *types.ListDomainItem if *v == nil { - sv = &types.EventStreamDestinationDetails{} + sv = &types.ListDomainItem{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "CreatedAt": if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To1000 to be of type string, got %T instead", value) + 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) + } - sv.Message = ptr.String(jtv) } - case "Status": + case "DomainName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected EventStreamDestinationStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected name to be of type string, got %T instead", value) } - sv.Status = types.EventStreamDestinationStatus(jtv) + sv.DomainName = ptr.String(jtv) } - case "UnhealthySince": + case "LastUpdatedAt": if value != nil { switch jtv := value.(type) { case json.Number: @@ -11369,7 +16047,7 @@ func awsRestjson1_deserializeDocumentEventStreamDestinationDetails(v **types.Eve if err != nil { return err } - sv.UnhealthySince = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) @@ -11377,13 +16055,9 @@ func awsRestjson1_deserializeDocumentEventStreamDestinationDetails(v **types.Eve } } - case "Uri": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - sv.Uri = ptr.String(jtv) + case "Tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err } default: @@ -11395,7 +16069,7 @@ func awsRestjson1_deserializeDocumentEventStreamDestinationDetails(v **types.Eve return nil } -func awsRestjson1_deserializeDocumentEventStreamSummary(v **types.EventStreamSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentListIntegrationItem(v **types.ListIntegrationItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11408,57 +16082,50 @@ func awsRestjson1_deserializeDocumentEventStreamSummary(v **types.EventStreamSum return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.EventStreamSummary + var sv *types.ListIntegrationItem if *v == nil { - sv = &types.EventStreamSummary{} + sv = &types.ListIntegrationItem{} } else { sv = *v } for key, value := range shape { switch key { - case "DestinationSummary": - if err := awsRestjson1_deserializeDocumentDestinationSummary(&sv.DestinationSummary, value); err != nil { - return err - } - - case "DomainName": + case "CreatedAt": if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected name to be of type string, got %T instead", value) - } - sv.DomainName = ptr.String(jtv) - } + 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 "EventStreamArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) } - sv.EventStreamArn = ptr.String(jtv) } - case "EventStreamName": + case "DomainName": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected name to be of type string, got %T instead", value) } - sv.EventStreamName = ptr.String(jtv) + sv.DomainName = ptr.String(jtv) } - case "State": + case "IsUnstructured": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected EventStreamState to be of type string, got %T instead", value) + return fmt.Errorf("expected optionalBoolean to be of type *bool, got %T instead", value) } - sv.State = types.EventStreamState(jtv) + sv.IsUnstructured = ptr.Bool(jtv) } - case "StoppedSince": + case "LastUpdatedAt": if value != nil { switch jtv := value.(type) { case json.Number: @@ -11466,7 +16133,7 @@ func awsRestjson1_deserializeDocumentEventStreamSummary(v **types.EventStreamSum if err != nil { return err } - sv.StoppedSince = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) @@ -11474,11 +16141,52 @@ func awsRestjson1_deserializeDocumentEventStreamSummary(v **types.EventStreamSum } } + case "ObjectTypeName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected typeName to be of type string, got %T instead", value) + } + sv.ObjectTypeName = ptr.String(jtv) + } + + case "ObjectTypeNames": + if err := awsRestjson1_deserializeDocumentObjectTypeNames(&sv.ObjectTypeNames, value); err != nil { + return err + } + + 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 "Tags": if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { return err } + case "Uri": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.Uri = ptr.String(jtv) + } + + case "WorkflowId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.WorkflowId = ptr.String(jtv) + } + default: _, _ = key, value @@ -11488,41 +16196,7 @@ func awsRestjson1_deserializeDocumentEventStreamSummary(v **types.EventStreamSum return nil } -func awsRestjson1_deserializeDocumentEventStreamSummaryList(v *[]types.EventStreamSummary, 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.EventStreamSummary - if *v == nil { - cv = []types.EventStreamSummary{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.EventStreamSummary - destAddr := &col - if err := awsRestjson1_deserializeDocumentEventStreamSummary(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentExportingConfig(v **types.ExportingConfig, value interface{}) error { +func awsRestjson1_deserializeDocumentListObjectTypeAttributeItem(v **types.ListObjectTypeAttributeItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11535,54 +16209,38 @@ func awsRestjson1_deserializeDocumentExportingConfig(v **types.ExportingConfig, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ExportingConfig + var sv *types.ListObjectTypeAttributeItem if *v == nil { - sv = &types.ExportingConfig{} + sv = &types.ListObjectTypeAttributeItem{} } else { sv = *v } for key, value := range shape { switch key { - case "S3Exporting": - if err := awsRestjson1_deserializeDocumentS3ExportingConfig(&sv.S3Exporting, value); err != nil { - return err + case "AttributeName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected name to be of type string, got %T instead", value) + } + sv.AttributeName = ptr.String(jtv) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentExportingLocation(v **types.ExportingLocation, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of 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 "LastUpdatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - var sv *types.ExportingLocation - if *v == nil { - sv = &types.ExportingLocation{} - } else { - sv = *v - } + default: + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) - for key, value := range shape { - switch key { - case "S3Exporting": - if err := awsRestjson1_deserializeDocumentS3ExportingLocation(&sv.S3Exporting, value); err != nil { - return err + } } default: @@ -11594,7 +16252,7 @@ func awsRestjson1_deserializeDocumentExportingLocation(v **types.ExportingLocati return nil } -func awsRestjson1_deserializeDocumentFieldMap(v *map[string]types.ObjectTypeField, value interface{}) error { +func awsRestjson1_deserializeDocumentListObjectTypeAttributesList(v *[]types.ListObjectTypeAttributeItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11602,34 +16260,33 @@ func awsRestjson1_deserializeDocumentFieldMap(v *map[string]types.ObjectTypeFiel return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]types.ObjectTypeField + var cv []types.ListObjectTypeAttributeItem if *v == nil { - mv = map[string]types.ObjectTypeField{} + cv = []types.ListObjectTypeAttributeItem{} } else { - mv = *v + cv = *v } - for key, value := range shape { - var parsedVal types.ObjectTypeField - mapVar := parsedVal - destAddr := &mapVar - if err := awsRestjson1_deserializeDocumentObjectTypeField(&destAddr, value); err != nil { + for _, value := range shape { + var col types.ListObjectTypeAttributeItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentListObjectTypeAttributeItem(&destAddr, value); err != nil { return err } - parsedVal = *destAddr - mv[key] = parsedVal + col = *destAddr + cv = append(cv, col) } - *v = mv + *v = cv return nil } -func awsRestjson1_deserializeDocumentFieldNameList(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentListProfileObjectsItem(v **types.ListProfileObjectsItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11637,35 +16294,57 @@ func awsRestjson1_deserializeDocumentFieldNameList(v *[]string, 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 []string + var sv *types.ListProfileObjectsItem if *v == nil { - cv = []string{} + sv = &types.ListProfileObjectsItem{} } 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 name to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "Object": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected stringifiedJson to be of type string, got %T instead", value) + } + sv.Object = ptr.String(jtv) + } + + case "ObjectTypeName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected typeName to be of type string, got %T instead", value) + } + sv.ObjectTypeName = ptr.String(jtv) + } + + case "ProfileObjectUniqueKey": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.ProfileObjectUniqueKey = ptr.String(jtv) } - col = jtv - } - cv = append(cv, col) + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentFoundByKeyValue(v **types.FoundByKeyValue, value interface{}) error { +func awsRestjson1_deserializeDocumentListProfileObjectTypeItem(v **types.ListProfileObjectTypeItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11678,26 +16357,93 @@ func awsRestjson1_deserializeDocumentFoundByKeyValue(v **types.FoundByKeyValue, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FoundByKeyValue + var sv *types.ListProfileObjectTypeItem if *v == nil { - sv = &types.FoundByKeyValue{} + sv = &types.ListProfileObjectTypeItem{} } else { sv = *v } for key, value := range shape { switch key { - case "KeyName": + 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 name to be of type string, got %T instead", value) + return fmt.Errorf("expected text to be of type string, got %T instead", value) } - sv.KeyName = ptr.String(jtv) + sv.Description = ptr.String(jtv) } - case "Values": - if err := awsRestjson1_deserializeDocumentRequestValueList(&sv.Values, value); err != nil { + case "LastUpdatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "MaxAvailableProfileObjectCount": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected minSize0 to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaxAvailableProfileObjectCount = ptr.Int32(int32(i64)) + } + + case "MaxProfileObjectCount": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected minSize1 to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaxProfileObjectCount = ptr.Int32(int32(i64)) + } + + case "ObjectTypeName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected typeName to be of type string, got %T instead", value) + } + sv.ObjectTypeName = ptr.String(jtv) + } + + case "Tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { return err } @@ -11710,7 +16456,7 @@ func awsRestjson1_deserializeDocumentFoundByKeyValue(v **types.FoundByKeyValue, return nil } -func awsRestjson1_deserializeDocumentFoundByList(v *[]types.FoundByKeyValue, value interface{}) error { +func awsRestjson1_deserializeDocumentListProfileObjectTypeTemplateItem(v **types.ListProfileObjectTypeTemplateItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11718,33 +16464,57 @@ func awsRestjson1_deserializeDocumentFoundByList(v *[]types.FoundByKeyValue, val 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.FoundByKeyValue + var sv *types.ListProfileObjectTypeTemplateItem if *v == nil { - cv = []types.FoundByKeyValue{} + sv = &types.ListProfileObjectTypeTemplateItem{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.FoundByKeyValue - destAddr := &col - if err := awsRestjson1_deserializeDocumentFoundByKeyValue(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "SourceName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected name to be of type string, got %T instead", value) + } + sv.SourceName = ptr.String(jtv) + } + + case "SourceObject": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected name to be of type string, got %T instead", value) + } + sv.SourceObject = ptr.String(jtv) + } + case "TemplateId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected name to be of type string, got %T instead", value) + } + sv.TemplateId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentIdentityResolutionJob(v **types.IdentityResolutionJob, value interface{}) error { +func awsRestjson1_deserializeDocumentListWorkflowsItem(v **types.ListWorkflowsItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11757,30 +16527,16 @@ func awsRestjson1_deserializeDocumentIdentityResolutionJob(v **types.IdentityRes return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.IdentityResolutionJob + var sv *types.ListWorkflowsItem if *v == nil { - sv = &types.IdentityResolutionJob{} + sv = &types.ListWorkflowsItem{} } else { sv = *v } for key, value := range shape { switch key { - case "DomainName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected name to be of type string, got %T instead", value) - } - sv.DomainName = ptr.String(jtv) - } - - case "ExportingLocation": - if err := awsRestjson1_deserializeDocumentExportingLocation(&sv.ExportingLocation, value); err != nil { - return err - } - - case "JobEndTime": + case "CreatedAt": if value != nil { switch jtv := value.(type) { case json.Number: @@ -11788,7 +16544,7 @@ func awsRestjson1_deserializeDocumentIdentityResolutionJob(v **types.IdentityRes if err != nil { return err } - sv.JobEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) @@ -11796,16 +16552,7 @@ func awsRestjson1_deserializeDocumentIdentityResolutionJob(v **types.IdentityRes } } - case "JobId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected uuid to be of type string, got %T instead", value) - } - sv.JobId = ptr.String(jtv) - } - - case "JobStartTime": + case "LastUpdatedAt": if value != nil { switch jtv := value.(type) { case json.Number: @@ -11813,7 +16560,7 @@ func awsRestjson1_deserializeDocumentIdentityResolutionJob(v **types.IdentityRes if err != nil { return err } - sv.JobStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) @@ -11821,27 +16568,40 @@ func awsRestjson1_deserializeDocumentIdentityResolutionJob(v **types.IdentityRes } } - case "JobStats": - if err := awsRestjson1_deserializeDocumentJobStats(&sv.JobStats, value); err != nil { - return err + 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 "Message": + case "StatusDescription": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected stringTo2048 to be of type string, got %T instead", value) + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.StatusDescription = ptr.String(jtv) } - case "Status": + case "WorkflowId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected IdentityResolutionJobStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) } - sv.Status = types.IdentityResolutionJobStatus(jtv) + sv.WorkflowId = ptr.String(jtv) + } + + case "WorkflowType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected WorkflowType to be of type string, got %T instead", value) + } + sv.WorkflowType = types.WorkflowType(jtv) } default: @@ -11849,11 +16609,45 @@ func awsRestjson1_deserializeDocumentIdentityResolutionJob(v **types.IdentityRes } } - *v = sv + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentMatchesList(v *[]types.MatchItem, 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.MatchItem + if *v == nil { + cv = []types.MatchItem{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.MatchItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentMatchItem(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv return nil } -func awsRestjson1_deserializeDocumentIdentityResolutionJobsList(v *[]types.IdentityResolutionJob, value interface{}) error { +func awsRestjson1_deserializeDocumentMatchIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11866,20 +16660,22 @@ func awsRestjson1_deserializeDocumentIdentityResolutionJobsList(v *[]types.Ident return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.IdentityResolutionJob + var cv []string if *v == nil { - cv = []types.IdentityResolutionJob{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col types.IdentityResolutionJob - destAddr := &col - if err := awsRestjson1_deserializeDocumentIdentityResolutionJob(&destAddr, value); err != nil { - return err + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + col = jtv } - col = *destAddr cv = append(cv, col) } @@ -11887,7 +16683,7 @@ func awsRestjson1_deserializeDocumentIdentityResolutionJobsList(v *[]types.Ident return nil } -func awsRestjson1_deserializeDocumentIntegrationList(v *[]types.ListIntegrationItem, value interface{}) error { +func awsRestjson1_deserializeDocumentMatchingAttributes(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11900,20 +16696,22 @@ func awsRestjson1_deserializeDocumentIntegrationList(v *[]types.ListIntegrationI return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ListIntegrationItem + var cv []string if *v == nil { - cv = []types.ListIntegrationItem{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col types.ListIntegrationItem - destAddr := &col - if err := awsRestjson1_deserializeDocumentListIntegrationItem(&destAddr, value); err != nil { - return err + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + col = jtv } - col = *destAddr cv = append(cv, col) } @@ -11921,7 +16719,7 @@ func awsRestjson1_deserializeDocumentIntegrationList(v *[]types.ListIntegrationI return nil } -func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error { +func awsRestjson1_deserializeDocumentMatchingAttributesList(v *[][]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11929,39 +16727,31 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS 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.InternalServerException + var cv [][]string if *v == nil { - sv = &types.InternalServerException{} + cv = [][]string{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "message", "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 - + for _, value := range shape { + var col []string + if err := awsRestjson1_deserializeDocumentMatchingAttributes(&col, value); err != nil { + return err } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentJobSchedule(v **types.JobSchedule, value interface{}) error { +func awsRestjson1_deserializeDocumentMatchingResponse(v **types.MatchingResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11974,31 +16764,37 @@ func awsRestjson1_deserializeDocumentJobSchedule(v **types.JobSchedule, value in return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.JobSchedule + var sv *types.MatchingResponse if *v == nil { - sv = &types.JobSchedule{} + sv = &types.MatchingResponse{} } else { sv = *v } for key, value := range shape { switch key { - case "DayOfTheWeek": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected JobScheduleDayOfTheWeek to be of type string, got %T instead", value) - } - sv.DayOfTheWeek = types.JobScheduleDayOfTheWeek(jtv) + case "AutoMerging": + if err := awsRestjson1_deserializeDocumentAutoMerging(&sv.AutoMerging, value); err != nil { + return err } - case "Time": + case "Enabled": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected JobScheduleTime to be of type string, got %T instead", value) + return fmt.Errorf("expected optionalBoolean to be of type *bool, got %T instead", value) } - sv.Time = ptr.String(jtv) + sv.Enabled = ptr.Bool(jtv) + } + + case "ExportingConfig": + if err := awsRestjson1_deserializeDocumentExportingConfig(&sv.ExportingConfig, value); err != nil { + return err + } + + case "JobSchedule": + if err := awsRestjson1_deserializeDocumentJobSchedule(&sv.JobSchedule, value); err != nil { + return err } default: @@ -12010,7 +16806,7 @@ func awsRestjson1_deserializeDocumentJobSchedule(v **types.JobSchedule, value in return nil } -func awsRestjson1_deserializeDocumentJobStats(v **types.JobStats, value interface{}) error { +func awsRestjson1_deserializeDocumentMatchingRule(v **types.MatchingRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12023,52 +16819,18 @@ func awsRestjson1_deserializeDocumentJobStats(v **types.JobStats, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.JobStats + var sv *types.MatchingRule if *v == nil { - sv = &types.JobStats{} + sv = &types.MatchingRule{} } else { sv = *v } for key, value := range shape { switch key { - case "NumberOfMatchesFound": - 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.NumberOfMatchesFound = i64 - } - - case "NumberOfMergesDone": - 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.NumberOfMergesDone = i64 - } - - case "NumberOfProfilesReviewed": - 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.NumberOfProfilesReviewed = i64 + case "Rule": + if err := awsRestjson1_deserializeDocumentMatchingRuleAttributeList(&sv.Rule, value); err != nil { + return err } default: @@ -12080,7 +16842,7 @@ func awsRestjson1_deserializeDocumentJobStats(v **types.JobStats, value interfac return nil } -func awsRestjson1_deserializeDocumentKeyMap(v *map[string][]types.ObjectTypeKey, value interface{}) error { +func awsRestjson1_deserializeDocumentMatchingRuleAttributeList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12088,33 +16850,35 @@ func awsRestjson1_deserializeDocumentKeyMap(v *map[string][]types.ObjectTypeKey, return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]types.ObjectTypeKey + var cv []string if *v == nil { - mv = map[string][]types.ObjectTypeKey{} + cv = []string{} } else { - mv = *v + cv = *v } - for key, value := range shape { - var parsedVal []types.ObjectTypeKey - mapVar := parsedVal - if err := awsRestjson1_deserializeDocumentObjectTypeKeyList(&mapVar, 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 string1To255 to be of type string, got %T instead", value) + } + col = jtv } - parsedVal = mapVar - mv[key] = parsedVal + cv = append(cv, col) } - *v = mv + *v = cv return nil } -func awsRestjson1_deserializeDocumentListCalculatedAttributeDefinitionItem(v **types.ListCalculatedAttributeDefinitionItem, value interface{}) error { +func awsRestjson1_deserializeDocumentMatchingRules(v *[]types.MatchingRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12122,64 +16886,55 @@ func awsRestjson1_deserializeDocumentListCalculatedAttributeDefinitionItem(v **t 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.ListCalculatedAttributeDefinitionItem + var cv []types.MatchingRule if *v == nil { - sv = &types.ListCalculatedAttributeDefinitionItem{} + cv = []types.MatchingRule{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "CalculatedAttributeName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected typeName to be of type string, got %T instead", value) - } - sv.CalculatedAttributeName = ptr.String(jtv) - } - - 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)) + for _, value := range shape { + var col types.MatchingRule + destAddr := &col + if err := awsRestjson1_deserializeDocumentMatchingRule(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) - default: - return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + } + *v = cv + return nil +} - } - } +func awsRestjson1_deserializeDocumentMatchItem(v **types.MatchItem, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - case "Description": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected sensitiveText to be of type string, got %T instead", value) - } - sv.Description = ptr.String(jtv) - } + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", 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) - } + var sv *types.MatchItem + if *v == nil { + sv = &types.MatchItem{} + } else { + sv = *v + } - case "LastUpdatedAt": + for key, value := range shape { + switch key { + case "ConfidenceScore": if value != nil { switch jtv := value.(type) { case json.Number: @@ -12187,16 +16942,43 @@ func awsRestjson1_deserializeDocumentListCalculatedAttributeDefinitionItem(v **t if err != nil { return err } - sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.ConfidenceScore = 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.ConfidenceScore = ptr.Float64(f64) default: - return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) } } - case "Tags": - if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + case "MatchId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + } + sv.MatchId = ptr.String(jtv) + } + + case "ProfileIds": + if err := awsRestjson1_deserializeDocumentProfileIdList(&sv.ProfileIds, value); err != nil { return err } @@ -12209,7 +16991,7 @@ func awsRestjson1_deserializeDocumentListCalculatedAttributeDefinitionItem(v **t return nil } -func awsRestjson1_deserializeDocumentListCalculatedAttributeForProfileItem(v **types.ListCalculatedAttributeForProfileItem, value interface{}) error { +func awsRestjson1_deserializeDocumentObjectTypeField(v **types.ObjectTypeField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12222,49 +17004,40 @@ func awsRestjson1_deserializeDocumentListCalculatedAttributeForProfileItem(v **t return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ListCalculatedAttributeForProfileItem + var sv *types.ObjectTypeField if *v == nil { - sv = &types.ListCalculatedAttributeForProfileItem{} + sv = &types.ObjectTypeField{} } else { sv = *v } for key, value := range shape { switch key { - case "CalculatedAttributeName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected typeName to be of type string, got %T instead", value) - } - sv.CalculatedAttributeName = ptr.String(jtv) - } - - case "DisplayName": + case "ContentType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected displayName to be of type string, got %T instead", value) + return fmt.Errorf("expected FieldContentType to be of type string, got %T instead", value) } - sv.DisplayName = ptr.String(jtv) + sv.ContentType = types.FieldContentType(jtv) } - case "IsDataPartial": + case "Source": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + return fmt.Errorf("expected text to be of type string, got %T instead", value) } - sv.IsDataPartial = ptr.String(jtv) + sv.Source = ptr.String(jtv) } - case "Value": + case "Target": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + return fmt.Errorf("expected text to be of type string, got %T instead", value) } - sv.Value = ptr.String(jtv) + sv.Target = ptr.String(jtv) } default: @@ -12276,7 +17049,7 @@ func awsRestjson1_deserializeDocumentListCalculatedAttributeForProfileItem(v **t return nil } -func awsRestjson1_deserializeDocumentListDomainItem(v **types.ListDomainItem, value interface{}) error { +func awsRestjson1_deserializeDocumentObjectTypeKey(v **types.ObjectTypeKey, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12289,58 +17062,22 @@ func awsRestjson1_deserializeDocumentListDomainItem(v **types.ListDomainItem, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ListDomainItem + var sv *types.ObjectTypeKey if *v == nil { - sv = &types.ListDomainItem{} + sv = &types.ObjectTypeKey{} } 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 "DomainName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected name to be of type string, got %T instead", value) - } - sv.DomainName = ptr.String(jtv) - } - - case "LastUpdatedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) - - } + case "FieldNames": + if err := awsRestjson1_deserializeDocumentFieldNameList(&sv.FieldNames, value); err != nil { + return err } - case "Tags": - if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + case "StandardIdentifiers": + if err := awsRestjson1_deserializeDocumentStandardIdentifierList(&sv.StandardIdentifiers, value); err != nil { return err } @@ -12353,7 +17090,7 @@ func awsRestjson1_deserializeDocumentListDomainItem(v **types.ListDomainItem, va return nil } -func awsRestjson1_deserializeDocumentListIntegrationItem(v **types.ListIntegrationItem, value interface{}) error { +func awsRestjson1_deserializeDocumentObjectTypeKeyList(v *[]types.ObjectTypeKey, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12361,126 +17098,69 @@ func awsRestjson1_deserializeDocumentListIntegrationItem(v **types.ListIntegrati 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.ListIntegrationItem + var cv []types.ObjectTypeKey if *v == nil { - sv = &types.ListIntegrationItem{} + cv = []types.ObjectTypeKey{} } else { - sv = *v + cv = *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 "DomainName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected name to be of type string, got %T instead", value) - } - sv.DomainName = ptr.String(jtv) - } - - case "IsUnstructured": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected optionalBoolean to be of type *bool, got %T instead", value) - } - sv.IsUnstructured = ptr.Bool(jtv) - } - - case "LastUpdatedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "ObjectTypeName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected typeName to be of type string, got %T instead", value) - } - sv.ObjectTypeName = ptr.String(jtv) - } - - case "ObjectTypeNames": - if err := awsRestjson1_deserializeDocumentObjectTypeNames(&sv.ObjectTypeNames, value); err != nil { - return err - } - - 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) - } + for _, value := range shape { + var col types.ObjectTypeKey + destAddr := &col + if err := awsRestjson1_deserializeDocumentObjectTypeKey(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) - case "Tags": - if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { - return err - } + } + *v = cv + return nil +} - case "Uri": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - sv.Uri = ptr.String(jtv) - } +func awsRestjson1_deserializeDocumentObjectTypeNames(v *map[string]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - case "WorkflowId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - sv.WorkflowId = ptr.String(jtv) - } + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - default: - _, _ = key, 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 typeName to be of type string, got %T instead", value) + } + parsedVal = jtv } + mv[key] = parsedVal + } - *v = sv + *v = mv return nil } -func awsRestjson1_deserializeDocumentListProfileObjectsItem(v **types.ListProfileObjectsItem, value interface{}) error { +func awsRestjson1_deserializeDocumentPhoneNumberList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12488,57 +17168,35 @@ func awsRestjson1_deserializeDocumentListProfileObjectsItem(v **types.ListProfil 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.ListProfileObjectsItem + var cv []string if *v == nil { - sv = &types.ListProfileObjectsItem{} + cv = []string{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Object": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected stringifiedJson to be of type string, got %T instead", value) - } - sv.Object = ptr.String(jtv) - } - - case "ObjectTypeName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected typeName to be of type string, got %T instead", value) - } - sv.ObjectTypeName = ptr.String(jtv) - } - - case "ProfileObjectUniqueKey": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - sv.ProfileObjectUniqueKey = ptr.String(jtv) + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string1To255 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 awsRestjson1_deserializeDocumentListProfileObjectTypeItem(v **types.ListProfileObjectTypeItem, value interface{}) error { +func awsRestjson1_deserializeDocumentProfile(v **types.Profile, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12551,251 +17209,214 @@ func awsRestjson1_deserializeDocumentListProfileObjectTypeItem(v **types.ListPro return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ListProfileObjectTypeItem + var sv *types.Profile if *v == nil { - sv = &types.ListProfileObjectTypeItem{} + sv = &types.Profile{} } else { sv = *v } for key, value := range shape { switch key { - case "CreatedAt": + case "AccountNumber": 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) - + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) } + sv.AccountNumber = ptr.String(jtv) } - case "Description": + case "AdditionalInformation": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected text to be of type string, got %T instead", value) + return fmt.Errorf("expected sensitiveString1To1000 to be of type string, got %T instead", value) } - sv.Description = ptr.String(jtv) + sv.AdditionalInformation = ptr.String(jtv) } - case "LastUpdatedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + case "Address": + if err := awsRestjson1_deserializeDocumentAddress(&sv.Address, value); err != nil { + return err + } - default: - return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + case "Attributes": + if err := awsRestjson1_deserializeDocumentAttributes(&sv.Attributes, value); err != nil { + return err + } - } + case "BillingAddress": + if err := awsRestjson1_deserializeDocumentAddress(&sv.BillingAddress, value); err != nil { + return err } - case "MaxAvailableProfileObjectCount": + case "BirthDate": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected minSize0 to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) } - sv.MaxAvailableProfileObjectCount = ptr.Int32(int32(i64)) + sv.BirthDate = ptr.String(jtv) } - case "MaxProfileObjectCount": + case "BusinessEmailAddress": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected minSize1 to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) } - sv.MaxProfileObjectCount = ptr.Int32(int32(i64)) + sv.BusinessEmailAddress = ptr.String(jtv) } - case "ObjectTypeName": + case "BusinessName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected typeName to be of type string, got %T instead", value) + return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) } - sv.ObjectTypeName = ptr.String(jtv) - } - - case "Tags": - if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { - return err + sv.BusinessName = ptr.String(jtv) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentListProfileObjectTypeTemplateItem(v **types.ListProfileObjectTypeTemplateItem, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", 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.ListProfileObjectTypeTemplateItem - if *v == nil { - sv = &types.ListProfileObjectTypeTemplateItem{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "SourceName": + case "BusinessPhoneNumber": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected name to be of type string, got %T instead", value) + return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) } - sv.SourceName = ptr.String(jtv) + sv.BusinessPhoneNumber = ptr.String(jtv) } - case "SourceObject": + case "EmailAddress": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected name to be of type string, got %T instead", value) + return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) } - sv.SourceObject = ptr.String(jtv) + sv.EmailAddress = ptr.String(jtv) } - case "TemplateId": + case "FirstName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected name to be of type string, got %T instead", value) + return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) } - sv.TemplateId = ptr.String(jtv) + sv.FirstName = ptr.String(jtv) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} + case "FoundByItems": + if err := awsRestjson1_deserializeDocumentFoundByList(&sv.FoundByItems, value); err != nil { + return err + } -func awsRestjson1_deserializeDocumentListWorkflowsItem(v **types.ListWorkflowsItem, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "Gender": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Gender to be of type string, got %T instead", value) + } + sv.Gender = types.Gender(jtv) + } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "GenderString": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) + } + sv.GenderString = ptr.String(jtv) + } - var sv *types.ListWorkflowsItem - if *v == nil { - sv = &types.ListWorkflowsItem{} - } else { - sv = *v - } + case "HomePhoneNumber": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) + } + sv.HomePhoneNumber = ptr.String(jtv) + } - for key, value := range shape { - switch key { - case "CreatedAt": + case "LastName": 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)) + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) + } + sv.LastName = ptr.String(jtv) + } - default: - return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + case "MailingAddress": + if err := awsRestjson1_deserializeDocumentAddress(&sv.MailingAddress, value); err != nil { + return err + } + case "MiddleName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) } + sv.MiddleName = ptr.String(jtv) } - case "LastUpdatedAt": + case "MobilePhoneNumber": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value) + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) + } + sv.MobilePhoneNumber = ptr.String(jtv) + } + case "PartyType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PartyType to be of type string, got %T instead", value) } + sv.PartyType = types.PartyType(jtv) } - case "Status": + case "PartyTypeString": 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 sensitiveString1To255 to be of type string, got %T instead", value) } - sv.Status = types.Status(jtv) + sv.PartyTypeString = ptr.String(jtv) } - case "StatusDescription": + case "PersonalEmailAddress": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) } - sv.StatusDescription = ptr.String(jtv) + sv.PersonalEmailAddress = ptr.String(jtv) } - case "WorkflowId": + case "PhoneNumber": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) } - sv.WorkflowId = ptr.String(jtv) + sv.PhoneNumber = ptr.String(jtv) } - case "WorkflowType": + case "ProfileId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected WorkflowType to be of type string, got %T instead", value) + return fmt.Errorf("expected uuid to be of type string, got %T instead", value) } - sv.WorkflowType = types.WorkflowType(jtv) + sv.ProfileId = ptr.String(jtv) + } + + case "ShippingAddress": + if err := awsRestjson1_deserializeDocumentAddress(&sv.ShippingAddress, value); err != nil { + return err } default: @@ -12807,7 +17428,7 @@ func awsRestjson1_deserializeDocumentListWorkflowsItem(v **types.ListWorkflowsIt return nil } -func awsRestjson1_deserializeDocumentMatchesList(v *[]types.MatchItem, value interface{}) error { +func awsRestjson1_deserializeDocumentProfileAttributes(v **types.ProfileAttributes, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12815,179 +17436,122 @@ func awsRestjson1_deserializeDocumentMatchesList(v *[]types.MatchItem, 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 []types.MatchItem + var sv *types.ProfileAttributes if *v == nil { - cv = []types.MatchItem{} + sv = &types.ProfileAttributes{} } else { - cv = *v - } - - for _, value := range shape { - var col types.MatchItem - destAddr := &col - if err := awsRestjson1_deserializeDocumentMatchItem(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentMatchIdList(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil + sv = *v } - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + for key, value := range shape { + switch key { + case "AccountNumber": + if err := awsRestjson1_deserializeDocumentProfileDimension(&sv.AccountNumber, value); err != nil { + return err + } - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v - } + case "AdditionalInformation": + if err := awsRestjson1_deserializeDocumentExtraLengthValueProfileDimension(&sv.AdditionalInformation, 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 string1To255 to be of type string, got %T instead", value) + case "Address": + if err := awsRestjson1_deserializeDocumentAddressDimension(&sv.Address, value); err != nil { + return err } - col = jtv - } - cv = append(cv, col) - } - *v = cv - return nil -} + case "Attributes": + if err := awsRestjson1_deserializeDocumentCustomAttributes(&sv.Attributes, value); err != nil { + return err + } -func awsRestjson1_deserializeDocumentMatchingAttributes(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "BillingAddress": + if err := awsRestjson1_deserializeDocumentAddressDimension(&sv.BillingAddress, value); err != nil { + return err + } - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "BirthDate": + if err := awsRestjson1_deserializeDocumentDateDimension(&sv.BirthDate, value); err != nil { + return err + } - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v - } + case "BusinessEmailAddress": + if err := awsRestjson1_deserializeDocumentProfileDimension(&sv.BusinessEmailAddress, 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 string1To255 to be of type string, got %T instead", value) + case "BusinessName": + if err := awsRestjson1_deserializeDocumentProfileDimension(&sv.BusinessName, value); err != nil { + return err } - col = jtv - } - cv = append(cv, col) - } - *v = cv - return nil -} + case "BusinessPhoneNumber": + if err := awsRestjson1_deserializeDocumentProfileDimension(&sv.BusinessPhoneNumber, value); err != nil { + return err + } -func awsRestjson1_deserializeDocumentMatchingAttributesList(v *[][]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "EmailAddress": + if err := awsRestjson1_deserializeDocumentProfileDimension(&sv.EmailAddress, value); err != nil { + return err + } - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "FirstName": + if err := awsRestjson1_deserializeDocumentProfileDimension(&sv.FirstName, value); err != nil { + return err + } - var cv [][]string - if *v == nil { - cv = [][]string{} - } else { - cv = *v - } + case "GenderString": + if err := awsRestjson1_deserializeDocumentProfileDimension(&sv.GenderString, value); err != nil { + return err + } - for _, value := range shape { - var col []string - if err := awsRestjson1_deserializeDocumentMatchingAttributes(&col, value); err != nil { - return err - } - cv = append(cv, col) + case "HomePhoneNumber": + if err := awsRestjson1_deserializeDocumentProfileDimension(&sv.HomePhoneNumber, value); err != nil { + return err + } - } - *v = cv - return nil -} + case "LastName": + if err := awsRestjson1_deserializeDocumentProfileDimension(&sv.LastName, value); err != nil { + return err + } -func awsRestjson1_deserializeDocumentMatchingResponse(v **types.MatchingResponse, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "MailingAddress": + if err := awsRestjson1_deserializeDocumentAddressDimension(&sv.MailingAddress, value); err != nil { + return err + } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "MiddleName": + if err := awsRestjson1_deserializeDocumentProfileDimension(&sv.MiddleName, value); err != nil { + return err + } - var sv *types.MatchingResponse - if *v == nil { - sv = &types.MatchingResponse{} - } else { - sv = *v - } + case "MobilePhoneNumber": + if err := awsRestjson1_deserializeDocumentProfileDimension(&sv.MobilePhoneNumber, value); err != nil { + return err + } - for key, value := range shape { - switch key { - case "AutoMerging": - if err := awsRestjson1_deserializeDocumentAutoMerging(&sv.AutoMerging, value); err != nil { + case "PartyTypeString": + if err := awsRestjson1_deserializeDocumentProfileDimension(&sv.PartyTypeString, value); err != nil { return err } - case "Enabled": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected optionalBoolean to be of type *bool, got %T instead", value) - } - sv.Enabled = ptr.Bool(jtv) + case "PersonalEmailAddress": + if err := awsRestjson1_deserializeDocumentProfileDimension(&sv.PersonalEmailAddress, value); err != nil { + return err } - case "ExportingConfig": - if err := awsRestjson1_deserializeDocumentExportingConfig(&sv.ExportingConfig, value); err != nil { + case "PhoneNumber": + if err := awsRestjson1_deserializeDocumentProfileDimension(&sv.PhoneNumber, value); err != nil { return err } - case "JobSchedule": - if err := awsRestjson1_deserializeDocumentJobSchedule(&sv.JobSchedule, value); err != nil { + case "ShippingAddress": + if err := awsRestjson1_deserializeDocumentAddressDimension(&sv.ShippingAddress, value); err != nil { return err } @@ -13000,7 +17564,7 @@ func awsRestjson1_deserializeDocumentMatchingResponse(v **types.MatchingResponse return nil } -func awsRestjson1_deserializeDocumentMatchingRule(v **types.MatchingRule, value interface{}) error { +func awsRestjson1_deserializeDocumentProfileDimension(v **types.ProfileDimension, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13013,17 +17577,26 @@ func awsRestjson1_deserializeDocumentMatchingRule(v **types.MatchingRule, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.MatchingRule + var sv *types.ProfileDimension if *v == nil { - sv = &types.MatchingRule{} + sv = &types.ProfileDimension{} } else { sv = *v } for key, value := range shape { switch key { - case "Rule": - if err := awsRestjson1_deserializeDocumentMatchingRuleAttributeList(&sv.Rule, value); err != nil { + case "DimensionType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected StringDimensionType to be of type string, got %T instead", value) + } + sv.DimensionType = types.StringDimensionType(jtv) + } + + case "Values": + if err := awsRestjson1_deserializeDocumentValues(&sv.Values, value); err != nil { return err } @@ -13036,7 +17609,7 @@ func awsRestjson1_deserializeDocumentMatchingRule(v **types.MatchingRule, value return nil } -func awsRestjson1_deserializeDocumentMatchingRuleAttributeList(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentProfileIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13061,7 +17634,7 @@ func awsRestjson1_deserializeDocumentMatchingRuleAttributeList(v *[]string, valu if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) + return fmt.Errorf("expected uuid to be of type string, got %T instead", value) } col = jtv } @@ -13072,7 +17645,7 @@ func awsRestjson1_deserializeDocumentMatchingRuleAttributeList(v *[]string, valu return nil } -func awsRestjson1_deserializeDocumentMatchingRules(v *[]types.MatchingRule, value interface{}) error { +func awsRestjson1_deserializeDocumentProfileList(v *[]types.Profile, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13085,17 +17658,17 @@ func awsRestjson1_deserializeDocumentMatchingRules(v *[]types.MatchingRule, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.MatchingRule + var cv []types.Profile if *v == nil { - cv = []types.MatchingRule{} + cv = []types.Profile{} } else { cv = *v } for _, value := range shape { - var col types.MatchingRule + var col types.Profile destAddr := &col - if err := awsRestjson1_deserializeDocumentMatchingRule(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentProfile(&destAddr, value); err != nil { return err } col = *destAddr @@ -13106,7 +17679,7 @@ func awsRestjson1_deserializeDocumentMatchingRules(v *[]types.MatchingRule, valu return nil } -func awsRestjson1_deserializeDocumentMatchItem(v **types.MatchItem, value interface{}) error { +func awsRestjson1_deserializeDocumentProfileObjectList(v *[]types.ListProfileObjectsItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13114,78 +17687,33 @@ func awsRestjson1_deserializeDocumentMatchItem(v **types.MatchItem, value interf 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.MatchItem + var cv []types.ListProfileObjectsItem if *v == nil { - sv = &types.MatchItem{} + cv = []types.ListProfileObjectsItem{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "ConfidenceScore": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.ConfidenceScore = 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.ConfidenceScore = ptr.Float64(f64) - - default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) - - } - } - - case "MatchId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - sv.MatchId = ptr.String(jtv) - } - - case "ProfileIds": - if err := awsRestjson1_deserializeDocumentProfileIdList(&sv.ProfileIds, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.ListProfileObjectsItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentListProfileObjectsItem(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentObjectTypeField(v **types.ObjectTypeField, value interface{}) error { +func awsRestjson1_deserializeDocumentProfileObjectTypeList(v *[]types.ListProfileObjectTypeItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13193,57 +17721,33 @@ func awsRestjson1_deserializeDocumentObjectTypeField(v **types.ObjectTypeField, 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.ObjectTypeField + var cv []types.ListProfileObjectTypeItem if *v == nil { - sv = &types.ObjectTypeField{} + cv = []types.ListProfileObjectTypeItem{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "ContentType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FieldContentType to be of type string, got %T instead", value) - } - sv.ContentType = types.FieldContentType(jtv) - } - - case "Source": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected text to be of type string, got %T instead", value) - } - sv.Source = ptr.String(jtv) - } - - case "Target": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected text to be of type string, got %T instead", value) - } - sv.Target = ptr.String(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.ListProfileObjectTypeItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentListProfileObjectTypeItem(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentObjectTypeKey(v **types.ObjectTypeKey, value interface{}) error { +func awsRestjson1_deserializeDocumentProfileObjectTypeTemplateList(v *[]types.ListProfileObjectTypeTemplateItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13251,40 +17755,33 @@ func awsRestjson1_deserializeDocumentObjectTypeKey(v **types.ObjectTypeKey, valu 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.ObjectTypeKey + var cv []types.ListProfileObjectTypeTemplateItem if *v == nil { - sv = &types.ObjectTypeKey{} + cv = []types.ListProfileObjectTypeTemplateItem{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "FieldNames": - if err := awsRestjson1_deserializeDocumentFieldNameList(&sv.FieldNames, value); err != nil { - return err - } - - case "StandardIdentifiers": - if err := awsRestjson1_deserializeDocumentStandardIdentifierList(&sv.StandardIdentifiers, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.ListProfileObjectTypeTemplateItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentListProfileObjectTypeTemplateItem(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentObjectTypeKeyList(v *[]types.ObjectTypeKey, value interface{}) error { +func awsRestjson1_deserializeDocumentProfileQueryFailures(v **types.ProfileQueryFailures, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13292,33 +17789,61 @@ func awsRestjson1_deserializeDocumentObjectTypeKeyList(v *[]types.ObjectTypeKey, 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.ObjectTypeKey + var sv *types.ProfileQueryFailures if *v == nil { - cv = []types.ObjectTypeKey{} + sv = &types.ProfileQueryFailures{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.ObjectTypeKey - destAddr := &col - if err := awsRestjson1_deserializeDocumentObjectTypeKey(&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 GetSegmentMembershipMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "ProfileId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ProfileId to be of type string, got %T instead", value) + } + sv.ProfileId = ptr.String(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected GetSegmentMembershipStatus to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Status = ptr.Int32(int32(i64)) + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentObjectTypeNames(v *map[string]string, value interface{}) error { +func awsRestjson1_deserializeDocumentProfileQueryResult(v **types.ProfileQueryResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13331,30 +17856,48 @@ func awsRestjson1_deserializeDocumentObjectTypeNames(v *map[string]string, value return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]string + var sv *types.ProfileQueryResult if *v == nil { - mv = map[string]string{} + sv = &types.ProfileQueryResult{} } else { - mv = *v + sv = *v } for key, value := range shape { - var parsedVal string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected typeName to be of type string, got %T instead", value) + switch key { + case "Profile": + if err := awsRestjson1_deserializeDocumentProfile(&sv.Profile, value); err != nil { + return err } - parsedVal = jtv - } - mv[key] = parsedVal + case "ProfileId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ProfileId to be of type string, got %T instead", value) + } + sv.ProfileId = ptr.String(jtv) + } + + case "QueryResult": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected QueryResult to be of type string, got %T instead", value) + } + sv.QueryResult = types.QueryResult(jtv) + } + + default: + _, _ = key, value + + } } - *v = mv + *v = sv return nil } -func awsRestjson1_deserializeDocumentPhoneNumberList(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentProfiles(v *[]types.ProfileQueryResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13367,22 +17910,20 @@ func awsRestjson1_deserializeDocumentPhoneNumberList(v *[]string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var cv []types.ProfileQueryResult if *v == nil { - cv = []string{} + cv = []types.ProfileQueryResult{} } else { cv = *v } for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - col = jtv + var col types.ProfileQueryResult + destAddr := &col + if err := awsRestjson1_deserializeDocumentProfileQueryResult(&destAddr, value); err != nil { + return err } + col = *destAddr cv = append(cv, col) } @@ -13390,7 +17931,7 @@ func awsRestjson1_deserializeDocumentPhoneNumberList(v *[]string, value interfac return nil } -func awsRestjson1_deserializeDocumentProfile(v **types.Profile, value interface{}) error { +func awsRestjson1_deserializeDocumentRange(v **types.Range, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13403,214 +17944,101 @@ func awsRestjson1_deserializeDocumentProfile(v **types.Profile, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Profile + var sv *types.Range if *v == nil { - sv = &types.Profile{} + sv = &types.Range{} } else { sv = *v } for key, value := range shape { switch key { - case "AccountNumber": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) - } - sv.AccountNumber = ptr.String(jtv) - } - - case "AdditionalInformation": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected sensitiveString1To1000 to be of type string, got %T instead", value) - } - sv.AdditionalInformation = ptr.String(jtv) - } - - case "Address": - if err := awsRestjson1_deserializeDocumentAddress(&sv.Address, value); err != nil { - return err - } - - case "Attributes": - if err := awsRestjson1_deserializeDocumentAttributes(&sv.Attributes, value); err != nil { - return err - } - - case "BillingAddress": - if err := awsRestjson1_deserializeDocumentAddress(&sv.BillingAddress, value); err != nil { - return err - } - - case "BirthDate": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) - } - sv.BirthDate = ptr.String(jtv) - } - - case "BusinessEmailAddress": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) - } - sv.BusinessEmailAddress = ptr.String(jtv) - } - - case "BusinessName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) - } - sv.BusinessName = ptr.String(jtv) - } - - case "BusinessPhoneNumber": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) - } - sv.BusinessPhoneNumber = ptr.String(jtv) - } - - case "EmailAddress": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) - } - sv.EmailAddress = ptr.String(jtv) - } - - case "FirstName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) - } - sv.FirstName = ptr.String(jtv) - } - - case "FoundByItems": - if err := awsRestjson1_deserializeDocumentFoundByList(&sv.FoundByItems, value); err != nil { - return err - } - - case "Gender": + case "Unit": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Gender to be of type string, got %T instead", value) + return fmt.Errorf("expected Unit to be of type string, got %T instead", value) } - sv.Gender = types.Gender(jtv) + sv.Unit = types.Unit(jtv) } - case "GenderString": + case "Value": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) + return fmt.Errorf("expected Value to be json.Number, got %T instead", value) } - sv.GenderString = ptr.String(jtv) - } - - case "HomePhoneNumber": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) + i64, err := jtv.Int64() + if err != nil { + return err } - sv.HomePhoneNumber = ptr.String(jtv) + sv.Value = ptr.Int32(int32(i64)) } - case "LastName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) - } - sv.LastName = ptr.String(jtv) - } + default: + _, _ = key, value - case "MailingAddress": - if err := awsRestjson1_deserializeDocumentAddress(&sv.MailingAddress, value); err != nil { - return err - } + } + } + *v = sv + return nil +} - case "MiddleName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) - } - sv.MiddleName = ptr.String(jtv) - } +func awsRestjson1_deserializeDocumentRangeOverride(v **types.RangeOverride, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - case "MobilePhoneNumber": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) - } - sv.MobilePhoneNumber = ptr.String(jtv) - } + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - case "PartyType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected PartyType to be of type string, got %T instead", value) - } - sv.PartyType = types.PartyType(jtv) - } + var sv *types.RangeOverride + if *v == nil { + sv = &types.RangeOverride{} + } else { + sv = *v + } - case "PartyTypeString": + for key, value := range shape { + switch key { + case "End": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) + return fmt.Errorf("expected End to be json.Number, got %T instead", value) } - sv.PartyTypeString = ptr.String(jtv) - } - - case "PersonalEmailAddress": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) + i64, err := jtv.Int64() + if err != nil { + return err } - sv.PersonalEmailAddress = ptr.String(jtv) + sv.End = int32(i64) } - case "PhoneNumber": + case "Start": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected sensitiveString1To255 to be of type string, got %T instead", value) + return fmt.Errorf("expected Start to be json.Number, got %T instead", value) } - sv.PhoneNumber = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Start = ptr.Int32(int32(i64)) } - case "ProfileId": + case "Unit": 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 RangeUnit to be of type string, got %T instead", value) } - sv.ProfileId = ptr.String(jtv) - } - - case "ShippingAddress": - if err := awsRestjson1_deserializeDocumentAddress(&sv.ShippingAddress, value); err != nil { - return err + sv.Unit = types.RangeUnit(jtv) } default: @@ -13622,7 +18050,7 @@ func awsRestjson1_deserializeDocumentProfile(v **types.Profile, value interface{ return nil } -func awsRestjson1_deserializeDocumentProfileIdList(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentRequestValueList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13647,7 +18075,7 @@ func awsRestjson1_deserializeDocumentProfileIdList(v *[]string, value interface{ 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 string1To255 to be of type string, got %T instead", value) } col = jtv } @@ -13658,7 +18086,7 @@ func awsRestjson1_deserializeDocumentProfileIdList(v *[]string, value interface{ return nil } -func awsRestjson1_deserializeDocumentProfileList(v *[]types.Profile, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13666,33 +18094,39 @@ func awsRestjson1_deserializeDocumentProfileList(v *[]types.Profile, value inter 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.Profile + var sv *types.ResourceNotFoundException if *v == nil { - cv = []types.Profile{} + sv = &types.ResourceNotFoundException{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.Profile - destAddr := &col - if err := awsRestjson1_deserializeDocumentProfile(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "message", "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 = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentProfileObjectList(v *[]types.ListProfileObjectsItem, value interface{}) error { +func awsRestjson1_deserializeDocumentRuleBasedMatchingResponse(v **types.RuleBasedMatchingResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13700,33 +18134,94 @@ func awsRestjson1_deserializeDocumentProfileObjectList(v *[]types.ListProfileObj 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.ListProfileObjectsItem + var sv *types.RuleBasedMatchingResponse if *v == nil { - cv = []types.ListProfileObjectsItem{} + sv = &types.RuleBasedMatchingResponse{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.ListProfileObjectsItem - destAddr := &col - if err := awsRestjson1_deserializeDocumentListProfileObjectsItem(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "AttributeTypesSelector": + if err := awsRestjson1_deserializeDocumentAttributeTypesSelector(&sv.AttributeTypesSelector, value); err != nil { + return err + } + + case "ConflictResolution": + if err := awsRestjson1_deserializeDocumentConflictResolution(&sv.ConflictResolution, value); err != nil { + return err + } + + case "Enabled": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected optionalBoolean to be of type *bool, got %T instead", value) + } + sv.Enabled = ptr.Bool(jtv) + } + + case "ExportingConfig": + if err := awsRestjson1_deserializeDocumentExportingConfig(&sv.ExportingConfig, value); err != nil { + return err + } + + case "MatchingRules": + if err := awsRestjson1_deserializeDocumentMatchingRules(&sv.MatchingRules, value); err != nil { + return err + } + + case "MaxAllowedRuleLevelForMatching": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected MaxAllowedRuleLevelForMatching to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaxAllowedRuleLevelForMatching = ptr.Int32(int32(i64)) + } + + case "MaxAllowedRuleLevelForMerging": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected MaxAllowedRuleLevelForMerging to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaxAllowedRuleLevelForMerging = ptr.Int32(int32(i64)) + } + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuleBasedMatchingStatus to be of type string, got %T instead", value) + } + sv.Status = types.RuleBasedMatchingStatus(jtv) + } + + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentProfileObjectTypeList(v *[]types.ListProfileObjectTypeItem, value interface{}) error { +func awsRestjson1_deserializeDocumentS3ExportingConfig(v **types.S3ExportingConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13734,33 +18229,48 @@ func awsRestjson1_deserializeDocumentProfileObjectTypeList(v *[]types.ListProfil 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.ListProfileObjectTypeItem + var sv *types.S3ExportingConfig if *v == nil { - cv = []types.ListProfileObjectTypeItem{} + sv = &types.S3ExportingConfig{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.ListProfileObjectTypeItem - destAddr := &col - if err := awsRestjson1_deserializeDocumentListProfileObjectTypeItem(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + 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 "S3KeyName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected s3KeyNameCustomerOutputConfig to be of type string, got %T instead", value) + } + sv.S3KeyName = ptr.String(jtv) + } + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentProfileObjectTypeTemplateList(v *[]types.ListProfileObjectTypeTemplateItem, value interface{}) error { +func awsRestjson1_deserializeDocumentS3ExportingLocation(v **types.S3ExportingLocation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13768,33 +18278,48 @@ func awsRestjson1_deserializeDocumentProfileObjectTypeTemplateList(v *[]types.Li 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.ListProfileObjectTypeTemplateItem + var sv *types.S3ExportingLocation if *v == nil { - cv = []types.ListProfileObjectTypeTemplateItem{} + sv = &types.S3ExportingLocation{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.ListProfileObjectTypeTemplateItem - destAddr := &col - if err := awsRestjson1_deserializeDocumentListProfileObjectTypeTemplateItem(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + 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 "S3KeyName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected s3KeyName to be of type string, got %T instead", value) + } + sv.S3KeyName = ptr.String(jtv) + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentRange(v **types.Range, value interface{}) error { +func awsRestjson1_deserializeDocumentSegmentDefinitionItem(v **types.SegmentDefinitionItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13807,35 +18332,70 @@ func awsRestjson1_deserializeDocumentRange(v **types.Range, value interface{}) e return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Range + var sv *types.SegmentDefinitionItem if *v == nil { - sv = &types.Range{} + sv = &types.SegmentDefinitionItem{} } else { sv = *v } for key, value := range shape { switch key { - case "Unit": + 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 sensitiveText 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 Unit to be of type string, got %T instead", value) + return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) } - sv.Unit = types.Unit(jtv) + sv.DisplayName = ptr.String(jtv) } - case "Value": + case "SegmentDefinitionArn": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Value to be json.Number, got %T instead", value) + return fmt.Errorf("expected SegmentDefinitionArn to be of type string, got %T instead", value) } - i64, err := jtv.Int64() - if err != nil { - return err + sv.SegmentDefinitionArn = ptr.String(jtv) + } + + case "SegmentDefinitionName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected name to be of type string, got %T instead", value) } - sv.Value = ptr.Int32(int32(i64)) + sv.SegmentDefinitionName = ptr.String(jtv) + } + + case "Tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err } default: @@ -13847,7 +18407,7 @@ func awsRestjson1_deserializeDocumentRange(v **types.Range, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentRequestValueList(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentSegmentDefinitionsList(v *[]types.SegmentDefinitionItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13860,22 +18420,20 @@ func awsRestjson1_deserializeDocumentRequestValueList(v *[]string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var cv []types.SegmentDefinitionItem if *v == nil { - cv = []string{} + cv = []types.SegmentDefinitionItem{} } else { cv = *v } for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected string1To255 to be of type string, got %T instead", value) - } - col = jtv + var col types.SegmentDefinitionItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentSegmentDefinitionItem(&destAddr, value); err != nil { + return err } + col = *destAddr cv = append(cv, col) } @@ -13883,7 +18441,7 @@ func awsRestjson1_deserializeDocumentRequestValueList(v *[]string, value interfa return nil } -func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error { +func awsRestjson1_deserializeDocumentSegmentGroup(v **types.SegmentGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13896,22 +18454,27 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ResourceNotFoundException + var sv *types.SegmentGroup if *v == nil { - sv = &types.ResourceNotFoundException{} + sv = &types.SegmentGroup{} } else { sv = *v } for key, value := range shape { switch key { - case "message", "Message": + case "Groups": + if err := awsRestjson1_deserializeDocumentSegmentGroupList(&sv.Groups, value); err != nil { + return err + } + + case "Include": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected message to be of type string, got %T instead", value) + return fmt.Errorf("expected IncludeOptions to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.Include = types.IncludeOptions(jtv) } default: @@ -13923,7 +18486,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsRestjson1_deserializeDocumentRuleBasedMatchingResponse(v **types.RuleBasedMatchingResponse, value interface{}) error { +func awsRestjson1_deserializeDocumentSegmentGroupList(v *[]types.Group, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13931,94 +18494,33 @@ func awsRestjson1_deserializeDocumentRuleBasedMatchingResponse(v **types.RuleBas 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.RuleBasedMatchingResponse + var cv []types.Group if *v == nil { - sv = &types.RuleBasedMatchingResponse{} + cv = []types.Group{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "AttributeTypesSelector": - if err := awsRestjson1_deserializeDocumentAttributeTypesSelector(&sv.AttributeTypesSelector, value); err != nil { - return err - } - - case "ConflictResolution": - if err := awsRestjson1_deserializeDocumentConflictResolution(&sv.ConflictResolution, value); err != nil { - return err - } - - case "Enabled": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected optionalBoolean to be of type *bool, got %T instead", value) - } - sv.Enabled = ptr.Bool(jtv) - } - - case "ExportingConfig": - if err := awsRestjson1_deserializeDocumentExportingConfig(&sv.ExportingConfig, value); err != nil { - return err - } - - case "MatchingRules": - if err := awsRestjson1_deserializeDocumentMatchingRules(&sv.MatchingRules, value); err != nil { - return err - } - - case "MaxAllowedRuleLevelForMatching": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected MaxAllowedRuleLevelForMatching to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.MaxAllowedRuleLevelForMatching = ptr.Int32(int32(i64)) - } - - case "MaxAllowedRuleLevelForMerging": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected MaxAllowedRuleLevelForMerging to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.MaxAllowedRuleLevelForMerging = ptr.Int32(int32(i64)) - } - - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RuleBasedMatchingStatus to be of type string, got %T instead", value) - } - sv.Status = types.RuleBasedMatchingStatus(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.Group + destAddr := &col + if err := awsRestjson1_deserializeDocumentGroup(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentS3ExportingConfig(v **types.S3ExportingConfig, value interface{}) error { +func awsRestjson1_deserializeDocumentSourceSegment(v **types.SourceSegment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14031,31 +18533,22 @@ func awsRestjson1_deserializeDocumentS3ExportingConfig(v **types.S3ExportingConf return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.S3ExportingConfig + var sv *types.SourceSegment if *v == nil { - sv = &types.S3ExportingConfig{} + sv = &types.SourceSegment{} } else { sv = *v } for key, value := range shape { switch key { - 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 "S3KeyName": + case "SegmentDefinitionName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected s3KeyNameCustomerOutputConfig to be of type string, got %T instead", value) + return fmt.Errorf("expected name to be of type string, got %T instead", value) } - sv.S3KeyName = ptr.String(jtv) + sv.SegmentDefinitionName = ptr.String(jtv) } default: @@ -14067,7 +18560,7 @@ func awsRestjson1_deserializeDocumentS3ExportingConfig(v **types.S3ExportingConf return nil } -func awsRestjson1_deserializeDocumentS3ExportingLocation(v **types.S3ExportingLocation, value interface{}) error { +func awsRestjson1_deserializeDocumentSourceSegmentList(v *[]types.SourceSegment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14075,44 +18568,29 @@ func awsRestjson1_deserializeDocumentS3ExportingLocation(v **types.S3ExportingLo 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.S3ExportingLocation + var cv []types.SourceSegment if *v == nil { - sv = &types.S3ExportingLocation{} + cv = []types.SourceSegment{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - 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 "S3KeyName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected s3KeyName to be of type string, got %T instead", value) - } - sv.S3KeyName = ptr.String(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.SourceSegment + destAddr := &col + if err := awsRestjson1_deserializeDocumentSourceSegment(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } @@ -14277,6 +18755,78 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc return nil } +func awsRestjson1_deserializeDocumentValueList(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 string1To255 to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentValues(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 string1To255 to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentWorkflowAttributes(v **types.WorkflowAttributes, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/customerprofiles/generated.json b/service/customerprofiles/generated.json index 3fee19e4061..0b96cb3efba 100644 --- a/service/customerprofiles/generated.json +++ b/service/customerprofiles/generated.json @@ -9,11 +9,16 @@ "api_client.go", "api_client_test.go", "api_op_AddProfileKey.go", + "api_op_BatchGetCalculatedAttributeForProfile.go", + "api_op_BatchGetProfile.go", "api_op_CreateCalculatedAttributeDefinition.go", "api_op_CreateDomain.go", "api_op_CreateEventStream.go", "api_op_CreateIntegrationWorkflow.go", "api_op_CreateProfile.go", + "api_op_CreateSegmentDefinition.go", + "api_op_CreateSegmentEstimate.go", + "api_op_CreateSegmentSnapshot.go", "api_op_DeleteCalculatedAttributeDefinition.go", "api_op_DeleteDomain.go", "api_op_DeleteEventStream.go", @@ -22,6 +27,7 @@ "api_op_DeleteProfileKey.go", "api_op_DeleteProfileObject.go", "api_op_DeleteProfileObjectType.go", + "api_op_DeleteSegmentDefinition.go", "api_op_DeleteWorkflow.go", "api_op_DetectProfileObjectType.go", "api_op_GetAutoMergingPreview.go", @@ -34,6 +40,10 @@ "api_op_GetMatches.go", "api_op_GetProfileObjectType.go", "api_op_GetProfileObjectTypeTemplate.go", + "api_op_GetSegmentDefinition.go", + "api_op_GetSegmentEstimate.go", + "api_op_GetSegmentMembership.go", + "api_op_GetSegmentSnapshot.go", "api_op_GetSimilarProfiles.go", "api_op_GetWorkflow.go", "api_op_GetWorkflowSteps.go", @@ -44,10 +54,13 @@ "api_op_ListEventStreams.go", "api_op_ListIdentityResolutionJobs.go", "api_op_ListIntegrations.go", + "api_op_ListObjectTypeAttributes.go", + "api_op_ListProfileAttributeValues.go", "api_op_ListProfileObjectTypeTemplates.go", "api_op_ListProfileObjectTypes.go", "api_op_ListProfileObjects.go", "api_op_ListRuleBasedMatches.go", + "api_op_ListSegmentDefinitions.go", "api_op_ListTagsForResource.go", "api_op_ListWorkflows.go", "api_op_MergeProfiles.go", @@ -76,6 +89,7 @@ "types/enums.go", "types/errors.go", "types/types.go", + "types/types_exported_test.go", "validators.go" ], "go": "1.15", diff --git a/service/customerprofiles/go.mod b/service/customerprofiles/go.mod index ed62d9414e1..20f3d0f068f 100644 --- a/service/customerprofiles/go.mod +++ b/service/customerprofiles/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/customerprofiles go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/customerprofiles/go.sum b/service/customerprofiles/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/customerprofiles/go.sum +++ b/service/customerprofiles/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/customerprofiles/go_module_metadata.go b/service/customerprofiles/go_module_metadata.go index 9ffea2994ef..48933186d89 100644 --- a/service/customerprofiles/go_module_metadata.go +++ b/service/customerprofiles/go_module_metadata.go @@ -3,4 +3,4 @@ package customerprofiles // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.42.5" +const goModuleVersion = "1.43.0" diff --git a/service/customerprofiles/serializers.go b/service/customerprofiles/serializers.go index d9db2201b8f..791b12873a8 100644 --- a/service/customerprofiles/serializers.go +++ b/service/customerprofiles/serializers.go @@ -123,6 +123,214 @@ func awsRestjson1_serializeOpDocumentAddProfileKeyInput(v *AddProfileKeyInput, v return nil } +type awsRestjson1_serializeOpBatchGetCalculatedAttributeForProfile struct { +} + +func (*awsRestjson1_serializeOpBatchGetCalculatedAttributeForProfile) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpBatchGetCalculatedAttributeForProfile) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*BatchGetCalculatedAttributeForProfileInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}/batch-get-for-profiles") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsBatchGetCalculatedAttributeForProfileInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentBatchGetCalculatedAttributeForProfileInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsBatchGetCalculatedAttributeForProfileInput(v *BatchGetCalculatedAttributeForProfileInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.CalculatedAttributeName == nil || len(*v.CalculatedAttributeName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member CalculatedAttributeName must not be empty")} + } + if v.CalculatedAttributeName != nil { + if err := encoder.SetURI("CalculatedAttributeName").String(*v.CalculatedAttributeName); err != nil { + return err + } + } + + if v.DomainName == nil || len(*v.DomainName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} + } + if v.DomainName != nil { + if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentBatchGetCalculatedAttributeForProfileInput(v *BatchGetCalculatedAttributeForProfileInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ConditionOverrides != nil { + ok := object.Key("ConditionOverrides") + if err := awsRestjson1_serializeDocumentConditionOverrides(v.ConditionOverrides, ok); err != nil { + return err + } + } + + if v.ProfileIds != nil { + ok := object.Key("ProfileIds") + if err := awsRestjson1_serializeDocumentBatchGetCalculatedAttributeForProfileIdList(v.ProfileIds, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpBatchGetProfile struct { +} + +func (*awsRestjson1_serializeOpBatchGetProfile) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpBatchGetProfile) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*BatchGetProfileInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/batch-get-profiles") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsBatchGetProfileInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentBatchGetProfileInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsBatchGetProfileInput(v *BatchGetProfileInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.DomainName == nil || len(*v.DomainName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} + } + if v.DomainName != nil { + if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentBatchGetProfileInput(v *BatchGetProfileInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ProfileIds != nil { + ok := object.Key("ProfileIds") + if err := awsRestjson1_serializeDocumentBatchGetProfileIdList(v.ProfileIds, ok); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpCreateCalculatedAttributeDefinition struct { } @@ -242,6 +450,13 @@ func awsRestjson1_serializeOpDocumentCreateCalculatedAttributeDefinitionInput(v ok.String(*v.DisplayName) } + if v.Filter != nil { + ok := object.Key("Filter") + if err := awsRestjson1_serializeDocumentFilter(v.Filter, ok); err != nil { + return err + } + } + if len(v.Statistic) > 0 { ok := object.Key("Statistic") ok.String(string(v.Statistic)) @@ -824,14 +1039,14 @@ func awsRestjson1_serializeOpDocumentCreateProfileInput(v *CreateProfileInput, v return nil } -type awsRestjson1_serializeOpDeleteCalculatedAttributeDefinition struct { +type awsRestjson1_serializeOpCreateSegmentDefinition struct { } -func (*awsRestjson1_serializeOpDeleteCalculatedAttributeDefinition) ID() string { +func (*awsRestjson1_serializeOpCreateSegmentDefinition) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpDeleteCalculatedAttributeDefinition) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpCreateSegmentDefinition) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -843,16 +1058,16 @@ func (m *awsRestjson1_serializeOpDeleteCalculatedAttributeDefinition) HandleSeri return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteCalculatedAttributeDefinitionInput) + input, ok := in.Parameters.(*CreateSegmentDefinitionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}") + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/segment-definitions/{SegmentDefinitionName}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "DELETE" + request.Method = "POST" var restEncoder *httpbinding.Encoder if request.URL.RawPath == "" { restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) @@ -865,7 +1080,18 @@ func (m *awsRestjson1_serializeOpDeleteCalculatedAttributeDefinition) HandleSeri return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsDeleteCalculatedAttributeDefinitionInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsCreateSegmentDefinitionInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateSegmentDefinitionInput(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} } @@ -878,25 +1104,25 @@ func (m *awsRestjson1_serializeOpDeleteCalculatedAttributeDefinition) HandleSeri span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsDeleteCalculatedAttributeDefinitionInput(v *DeleteCalculatedAttributeDefinitionInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsCreateSegmentDefinitionInput(v *CreateSegmentDefinitionInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CalculatedAttributeName == nil || len(*v.CalculatedAttributeName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CalculatedAttributeName must not be empty")} + if v.DomainName == nil || len(*v.DomainName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} } - if v.CalculatedAttributeName != nil { - if err := encoder.SetURI("CalculatedAttributeName").String(*v.CalculatedAttributeName); err != nil { + if v.DomainName != nil { + if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { return err } } - if v.DomainName == nil || len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} + if v.SegmentDefinitionName == nil || len(*v.SegmentDefinitionName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member SegmentDefinitionName must not be empty")} } - if v.DomainName != nil { - if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { + if v.SegmentDefinitionName != nil { + if err := encoder.SetURI("SegmentDefinitionName").String(*v.SegmentDefinitionName); err != nil { return err } } @@ -904,14 +1130,45 @@ func awsRestjson1_serializeOpHttpBindingsDeleteCalculatedAttributeDefinitionInpu return nil } -type awsRestjson1_serializeOpDeleteDomain struct { +func awsRestjson1_serializeOpDocumentCreateSegmentDefinitionInput(v *CreateSegmentDefinitionInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Description != nil { + ok := object.Key("Description") + ok.String(*v.Description) + } + + if v.DisplayName != nil { + ok := object.Key("DisplayName") + ok.String(*v.DisplayName) + } + + if v.SegmentGroups != nil { + ok := object.Key("SegmentGroups") + if err := awsRestjson1_serializeDocumentSegmentGroup(v.SegmentGroups, 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 } -func (*awsRestjson1_serializeOpDeleteDomain) ID() string { +type awsRestjson1_serializeOpCreateSegmentEstimate struct { +} + +func (*awsRestjson1_serializeOpCreateSegmentEstimate) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpDeleteDomain) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpCreateSegmentEstimate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -923,16 +1180,16 @@ func (m *awsRestjson1_serializeOpDeleteDomain) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteDomainInput) + input, ok := in.Parameters.(*CreateSegmentEstimateInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}") + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/segment-estimates") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "DELETE" + request.Method = "POST" var restEncoder *httpbinding.Encoder if request.URL.RawPath == "" { restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) @@ -945,20 +1202,570 @@ func (m *awsRestjson1_serializeOpDeleteDomain) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsDeleteDomainInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsCreateSegmentEstimateInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if request.Request, err = restEncoder.Encode(request.Request); err != nil { + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateSegmentEstimateInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - in.Request = request + + 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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateSegmentEstimateInput(v *CreateSegmentEstimateInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.DomainName == nil || len(*v.DomainName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} + } + if v.DomainName != nil { + if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateSegmentEstimateInput(v *CreateSegmentEstimateInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.SegmentQuery != nil { + ok := object.Key("SegmentQuery") + if err := awsRestjson1_serializeDocumentSegmentGroupStructure(v.SegmentQuery, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpCreateSegmentSnapshot struct { +} + +func (*awsRestjson1_serializeOpCreateSegmentSnapshot) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateSegmentSnapshot) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*CreateSegmentSnapshotInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/segments/{SegmentDefinitionName}/snapshots") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsCreateSegmentSnapshotInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateSegmentSnapshotInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateSegmentSnapshotInput(v *CreateSegmentSnapshotInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.DomainName == nil || len(*v.DomainName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} + } + if v.DomainName != nil { + if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { + return err + } + } + + if v.SegmentDefinitionName == nil || len(*v.SegmentDefinitionName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member SegmentDefinitionName must not be empty")} + } + if v.SegmentDefinitionName != nil { + if err := encoder.SetURI("SegmentDefinitionName").String(*v.SegmentDefinitionName); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateSegmentSnapshotInput(v *CreateSegmentSnapshotInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.DataFormat) > 0 { + ok := object.Key("DataFormat") + ok.String(string(v.DataFormat)) + } + + if v.DestinationUri != nil { + ok := object.Key("DestinationUri") + ok.String(*v.DestinationUri) + } + + if v.EncryptionKey != nil { + ok := object.Key("EncryptionKey") + ok.String(*v.EncryptionKey) + } + + if v.RoleArn != nil { + ok := object.Key("RoleArn") + ok.String(*v.RoleArn) + } + + return nil +} + +type awsRestjson1_serializeOpDeleteCalculatedAttributeDefinition struct { +} + +func (*awsRestjson1_serializeOpDeleteCalculatedAttributeDefinition) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteCalculatedAttributeDefinition) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DeleteCalculatedAttributeDefinitionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteCalculatedAttributeDefinitionInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteCalculatedAttributeDefinitionInput(v *DeleteCalculatedAttributeDefinitionInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.CalculatedAttributeName == nil || len(*v.CalculatedAttributeName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member CalculatedAttributeName must not be empty")} + } + if v.CalculatedAttributeName != nil { + if err := encoder.SetURI("CalculatedAttributeName").String(*v.CalculatedAttributeName); err != nil { + return err + } + } + + if v.DomainName == nil || len(*v.DomainName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} + } + if v.DomainName != nil { + if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteDomain struct { +} + +func (*awsRestjson1_serializeOpDeleteDomain) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteDomain) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DeleteDomainInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteDomainInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteDomainInput(v *DeleteDomainInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.DomainName == nil || len(*v.DomainName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} + } + if v.DomainName != nil { + if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteEventStream struct { +} + +func (*awsRestjson1_serializeOpDeleteEventStream) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteEventStream) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DeleteEventStreamInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/event-streams/{EventStreamName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteEventStreamInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteEventStreamInput(v *DeleteEventStreamInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.DomainName == nil || len(*v.DomainName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} + } + if v.DomainName != nil { + if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { + return err + } + } + + if v.EventStreamName == nil || len(*v.EventStreamName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member EventStreamName must not be empty")} + } + if v.EventStreamName != nil { + if err := encoder.SetURI("EventStreamName").String(*v.EventStreamName); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteIntegration struct { +} + +func (*awsRestjson1_serializeOpDeleteIntegration) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteIntegration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DeleteIntegrationInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/integrations/delete") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteIntegrationInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentDeleteIntegrationInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteIntegrationInput(v *DeleteIntegrationInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.DomainName == nil || len(*v.DomainName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} + } + if v.DomainName != nil { + if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentDeleteIntegrationInput(v *DeleteIntegrationInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Uri != nil { + ok := object.Key("Uri") + ok.String(*v.Uri) + } + + return nil +} + +type awsRestjson1_serializeOpDeleteProfile struct { +} + +func (*awsRestjson1_serializeOpDeleteProfile) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteProfile) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DeleteProfileInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/profiles/delete") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteProfileInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentDeleteProfileInput(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 endTimer() span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsDeleteDomainInput(v *DeleteDomainInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsDeleteProfileInput(v *DeleteProfileInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -975,14 +1782,26 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDomainInput(v *DeleteDomainInput, return nil } -type awsRestjson1_serializeOpDeleteEventStream struct { +func awsRestjson1_serializeOpDocumentDeleteProfileInput(v *DeleteProfileInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ProfileId != nil { + ok := object.Key("ProfileId") + ok.String(*v.ProfileId) + } + + return nil } -func (*awsRestjson1_serializeOpDeleteEventStream) ID() string { +type awsRestjson1_serializeOpDeleteProfileKey struct { +} + +func (*awsRestjson1_serializeOpDeleteProfileKey) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpDeleteEventStream) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDeleteProfileKey) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -994,13 +1813,223 @@ func (m *awsRestjson1_serializeOpDeleteEventStream) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteEventStreamInput) + input, ok := in.Parameters.(*DeleteProfileKeyInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/event-streams/{EventStreamName}") + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/profiles/keys/delete") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteProfileKeyInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentDeleteProfileKeyInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteProfileKeyInput(v *DeleteProfileKeyInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.DomainName == nil || len(*v.DomainName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} + } + if v.DomainName != nil { + if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentDeleteProfileKeyInput(v *DeleteProfileKeyInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.KeyName != nil { + ok := object.Key("KeyName") + ok.String(*v.KeyName) + } + + if v.ProfileId != nil { + ok := object.Key("ProfileId") + ok.String(*v.ProfileId) + } + + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentRequestValueList(v.Values, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteProfileObject struct { +} + +func (*awsRestjson1_serializeOpDeleteProfileObject) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteProfileObject) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DeleteProfileObjectInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/profiles/objects/delete") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteProfileObjectInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentDeleteProfileObjectInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteProfileObjectInput(v *DeleteProfileObjectInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.DomainName == nil || len(*v.DomainName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} + } + if v.DomainName != nil { + if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentDeleteProfileObjectInput(v *DeleteProfileObjectInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ObjectTypeName != nil { + ok := object.Key("ObjectTypeName") + ok.String(*v.ObjectTypeName) + } + + if v.ProfileId != nil { + ok := object.Key("ProfileId") + ok.String(*v.ProfileId) + } + + if v.ProfileObjectUniqueKey != nil { + ok := object.Key("ProfileObjectUniqueKey") + ok.String(*v.ProfileObjectUniqueKey) + } + + return nil +} + +type awsRestjson1_serializeOpDeleteProfileObjectType struct { +} + +func (*awsRestjson1_serializeOpDeleteProfileObjectType) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteProfileObjectType) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DeleteProfileObjectTypeInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/object-types/{ObjectTypeName}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" @@ -1016,7 +2045,7 @@ func (m *awsRestjson1_serializeOpDeleteEventStream) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsDeleteEventStreamInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsDeleteProfileObjectTypeInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1029,7 +2058,7 @@ func (m *awsRestjson1_serializeOpDeleteEventStream) HandleSerialize(ctx context. span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsDeleteEventStreamInput(v *DeleteEventStreamInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsDeleteProfileObjectTypeInput(v *DeleteProfileObjectTypeInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -1043,11 +2072,11 @@ func awsRestjson1_serializeOpHttpBindingsDeleteEventStreamInput(v *DeleteEventSt } } - if v.EventStreamName == nil || len(*v.EventStreamName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EventStreamName must not be empty")} + if v.ObjectTypeName == nil || len(*v.ObjectTypeName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ObjectTypeName must not be empty")} } - if v.EventStreamName != nil { - if err := encoder.SetURI("EventStreamName").String(*v.EventStreamName); err != nil { + if v.ObjectTypeName != nil { + if err := encoder.SetURI("ObjectTypeName").String(*v.ObjectTypeName); err != nil { return err } } @@ -1055,14 +2084,14 @@ func awsRestjson1_serializeOpHttpBindingsDeleteEventStreamInput(v *DeleteEventSt return nil } -type awsRestjson1_serializeOpDeleteIntegration struct { +type awsRestjson1_serializeOpDeleteSegmentDefinition struct { } -func (*awsRestjson1_serializeOpDeleteIntegration) ID() string { +func (*awsRestjson1_serializeOpDeleteSegmentDefinition) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpDeleteIntegration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDeleteSegmentDefinition) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -1074,16 +2103,16 @@ func (m *awsRestjson1_serializeOpDeleteIntegration) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteIntegrationInput) + input, ok := in.Parameters.(*DeleteSegmentDefinitionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/integrations/delete") + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/segment-definitions/{SegmentDefinitionName}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" + request.Method = "DELETE" var restEncoder *httpbinding.Encoder if request.URL.RawPath == "" { restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) @@ -1096,18 +2125,7 @@ func (m *awsRestjson1_serializeOpDeleteIntegration) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsDeleteIntegrationInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentDeleteIntegrationInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsDeleteSegmentDefinitionInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1120,7 +2138,7 @@ func (m *awsRestjson1_serializeOpDeleteIntegration) HandleSerialize(ctx context. span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsDeleteIntegrationInput(v *DeleteIntegrationInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsDeleteSegmentDefinitionInput(v *DeleteSegmentDefinitionInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -1134,29 +2152,26 @@ func awsRestjson1_serializeOpHttpBindingsDeleteIntegrationInput(v *DeleteIntegra } } - return nil -} - -func awsRestjson1_serializeOpDocumentDeleteIntegrationInput(v *DeleteIntegrationInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Uri != nil { - ok := object.Key("Uri") - ok.String(*v.Uri) + if v.SegmentDefinitionName == nil || len(*v.SegmentDefinitionName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member SegmentDefinitionName must not be empty")} + } + if v.SegmentDefinitionName != nil { + if err := encoder.SetURI("SegmentDefinitionName").String(*v.SegmentDefinitionName); err != nil { + return err + } } return nil } -type awsRestjson1_serializeOpDeleteProfile struct { +type awsRestjson1_serializeOpDeleteWorkflow struct { } -func (*awsRestjson1_serializeOpDeleteProfile) ID() string { +func (*awsRestjson1_serializeOpDeleteWorkflow) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpDeleteProfile) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDeleteWorkflow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -1168,16 +2183,16 @@ func (m *awsRestjson1_serializeOpDeleteProfile) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteProfileInput) + input, ok := in.Parameters.(*DeleteWorkflowInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/profiles/delete") + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/workflows/{WorkflowId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" + request.Method = "DELETE" var restEncoder *httpbinding.Encoder if request.URL.RawPath == "" { restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) @@ -1190,18 +2205,7 @@ func (m *awsRestjson1_serializeOpDeleteProfile) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsDeleteProfileInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentDeleteProfileInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsDeleteWorkflowInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1214,7 +2218,7 @@ func (m *awsRestjson1_serializeOpDeleteProfile) HandleSerialize(ctx context.Cont span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsDeleteProfileInput(v *DeleteProfileInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsDeleteWorkflowInput(v *DeleteWorkflowInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -1228,29 +2232,26 @@ func awsRestjson1_serializeOpHttpBindingsDeleteProfileInput(v *DeleteProfileInpu } } - return nil -} - -func awsRestjson1_serializeOpDocumentDeleteProfileInput(v *DeleteProfileInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ProfileId != nil { - ok := object.Key("ProfileId") - ok.String(*v.ProfileId) + if v.WorkflowId == nil || len(*v.WorkflowId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member WorkflowId must not be empty")} + } + if v.WorkflowId != nil { + if err := encoder.SetURI("WorkflowId").String(*v.WorkflowId); err != nil { + return err + } } return nil } -type awsRestjson1_serializeOpDeleteProfileKey struct { +type awsRestjson1_serializeOpDetectProfileObjectType struct { } -func (*awsRestjson1_serializeOpDeleteProfileKey) ID() string { +func (*awsRestjson1_serializeOpDetectProfileObjectType) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpDeleteProfileKey) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDetectProfileObjectType) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -1262,13 +2263,13 @@ func (m *awsRestjson1_serializeOpDeleteProfileKey) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteProfileKeyInput) + input, ok := in.Parameters.(*DetectProfileObjectTypeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/profiles/keys/delete") + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/detect/object-types") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" @@ -1284,14 +2285,14 @@ func (m *awsRestjson1_serializeOpDeleteProfileKey) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsDeleteProfileKeyInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsDetectProfileObjectTypeInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentDeleteProfileKeyInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentDetectProfileObjectTypeInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1308,7 +2309,7 @@ func (m *awsRestjson1_serializeOpDeleteProfileKey) HandleSerialize(ctx context.C span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsDeleteProfileKeyInput(v *DeleteProfileKeyInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsDetectProfileObjectTypeInput(v *DetectProfileObjectTypeInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -1325,23 +2326,13 @@ func awsRestjson1_serializeOpHttpBindingsDeleteProfileKeyInput(v *DeleteProfileK return nil } -func awsRestjson1_serializeOpDocumentDeleteProfileKeyInput(v *DeleteProfileKeyInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentDetectProfileObjectTypeInput(v *DetectProfileObjectTypeInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.KeyName != nil { - ok := object.Key("KeyName") - ok.String(*v.KeyName) - } - - if v.ProfileId != nil { - ok := object.Key("ProfileId") - ok.String(*v.ProfileId) - } - - if v.Values != nil { - ok := object.Key("Values") - if err := awsRestjson1_serializeDocumentRequestValueList(v.Values, ok); err != nil { + if v.Objects != nil { + ok := object.Key("Objects") + if err := awsRestjson1_serializeDocumentObjects(v.Objects, ok); err != nil { return err } } @@ -1349,14 +2340,14 @@ func awsRestjson1_serializeOpDocumentDeleteProfileKeyInput(v *DeleteProfileKeyIn return nil } -type awsRestjson1_serializeOpDeleteProfileObject struct { +type awsRestjson1_serializeOpGetAutoMergingPreview struct { } -func (*awsRestjson1_serializeOpDeleteProfileObject) ID() string { +func (*awsRestjson1_serializeOpGetAutoMergingPreview) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpDeleteProfileObject) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetAutoMergingPreview) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -1368,13 +2359,13 @@ func (m *awsRestjson1_serializeOpDeleteProfileObject) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteProfileObjectInput) + input, ok := in.Parameters.(*GetAutoMergingPreviewInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/profiles/objects/delete") + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/identity-resolution-jobs/auto-merging-preview") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" @@ -1390,14 +2381,14 @@ func (m *awsRestjson1_serializeOpDeleteProfileObject) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsDeleteProfileObjectInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetAutoMergingPreviewInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentDeleteProfileObjectInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentGetAutoMergingPreviewInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1414,7 +2405,7 @@ func (m *awsRestjson1_serializeOpDeleteProfileObject) HandleSerialize(ctx contex span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsDeleteProfileObjectInput(v *DeleteProfileObjectInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetAutoMergingPreviewInput(v *GetAutoMergingPreviewInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -1431,36 +2422,53 @@ func awsRestjson1_serializeOpHttpBindingsDeleteProfileObjectInput(v *DeleteProfi return nil } -func awsRestjson1_serializeOpDocumentDeleteProfileObjectInput(v *DeleteProfileObjectInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentGetAutoMergingPreviewInput(v *GetAutoMergingPreviewInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ObjectTypeName != nil { - ok := object.Key("ObjectTypeName") - ok.String(*v.ObjectTypeName) + if v.ConflictResolution != nil { + ok := object.Key("ConflictResolution") + if err := awsRestjson1_serializeDocumentConflictResolution(v.ConflictResolution, ok); err != nil { + return err + } } - if v.ProfileId != nil { - ok := object.Key("ProfileId") - ok.String(*v.ProfileId) + if v.Consolidation != nil { + ok := object.Key("Consolidation") + if err := awsRestjson1_serializeDocumentConsolidation(v.Consolidation, ok); err != nil { + return err + } } - if v.ProfileObjectUniqueKey != nil { - ok := object.Key("ProfileObjectUniqueKey") - ok.String(*v.ProfileObjectUniqueKey) + if v.MinAllowedConfidenceScoreForMerging != nil { + ok := object.Key("MinAllowedConfidenceScoreForMerging") + switch { + case math.IsNaN(*v.MinAllowedConfidenceScoreForMerging): + ok.String("NaN") + + case math.IsInf(*v.MinAllowedConfidenceScoreForMerging, 1): + ok.String("Infinity") + + case math.IsInf(*v.MinAllowedConfidenceScoreForMerging, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.MinAllowedConfidenceScoreForMerging) + + } } return nil } -type awsRestjson1_serializeOpDeleteProfileObjectType struct { +type awsRestjson1_serializeOpGetCalculatedAttributeDefinition struct { } -func (*awsRestjson1_serializeOpDeleteProfileObjectType) ID() string { +func (*awsRestjson1_serializeOpGetCalculatedAttributeDefinition) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpDeleteProfileObjectType) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetCalculatedAttributeDefinition) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -1472,16 +2480,16 @@ func (m *awsRestjson1_serializeOpDeleteProfileObjectType) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteProfileObjectTypeInput) + input, ok := in.Parameters.(*GetCalculatedAttributeDefinitionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/object-types/{ObjectTypeName}") + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "DELETE" + request.Method = "GET" var restEncoder *httpbinding.Encoder if request.URL.RawPath == "" { restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) @@ -1494,7 +2502,7 @@ func (m *awsRestjson1_serializeOpDeleteProfileObjectType) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsDeleteProfileObjectTypeInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetCalculatedAttributeDefinitionInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1507,25 +2515,25 @@ func (m *awsRestjson1_serializeOpDeleteProfileObjectType) HandleSerialize(ctx co span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsDeleteProfileObjectTypeInput(v *DeleteProfileObjectTypeInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetCalculatedAttributeDefinitionInput(v *GetCalculatedAttributeDefinitionInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainName == nil || len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} + if v.CalculatedAttributeName == nil || len(*v.CalculatedAttributeName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member CalculatedAttributeName must not be empty")} } - if v.DomainName != nil { - if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { + if v.CalculatedAttributeName != nil { + if err := encoder.SetURI("CalculatedAttributeName").String(*v.CalculatedAttributeName); err != nil { return err } } - if v.ObjectTypeName == nil || len(*v.ObjectTypeName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ObjectTypeName must not be empty")} + if v.DomainName == nil || len(*v.DomainName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} } - if v.ObjectTypeName != nil { - if err := encoder.SetURI("ObjectTypeName").String(*v.ObjectTypeName); err != nil { + if v.DomainName != nil { + if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { return err } } @@ -1533,14 +2541,14 @@ func awsRestjson1_serializeOpHttpBindingsDeleteProfileObjectTypeInput(v *DeleteP return nil } -type awsRestjson1_serializeOpDeleteWorkflow struct { +type awsRestjson1_serializeOpGetCalculatedAttributeForProfile struct { } -func (*awsRestjson1_serializeOpDeleteWorkflow) ID() string { +func (*awsRestjson1_serializeOpGetCalculatedAttributeForProfile) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpDeleteWorkflow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetCalculatedAttributeForProfile) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -1552,16 +2560,16 @@ func (m *awsRestjson1_serializeOpDeleteWorkflow) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteWorkflowInput) + input, ok := in.Parameters.(*GetCalculatedAttributeForProfileInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/workflows/{WorkflowId}") + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/profile/{ProfileId}/calculated-attributes/{CalculatedAttributeName}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "DELETE" + request.Method = "GET" var restEncoder *httpbinding.Encoder if request.URL.RawPath == "" { restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) @@ -1574,7 +2582,7 @@ func (m *awsRestjson1_serializeOpDeleteWorkflow) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsDeleteWorkflowInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetCalculatedAttributeForProfileInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1587,11 +2595,20 @@ func (m *awsRestjson1_serializeOpDeleteWorkflow) HandleSerialize(ctx context.Con span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsDeleteWorkflowInput(v *DeleteWorkflowInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetCalculatedAttributeForProfileInput(v *GetCalculatedAttributeForProfileInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } + if v.CalculatedAttributeName == nil || len(*v.CalculatedAttributeName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member CalculatedAttributeName must not be empty")} + } + if v.CalculatedAttributeName != nil { + if err := encoder.SetURI("CalculatedAttributeName").String(*v.CalculatedAttributeName); err != nil { + return err + } + } + if v.DomainName == nil || len(*v.DomainName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} } @@ -1601,11 +2618,11 @@ func awsRestjson1_serializeOpHttpBindingsDeleteWorkflowInput(v *DeleteWorkflowIn } } - if v.WorkflowId == nil || len(*v.WorkflowId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member WorkflowId must not be empty")} + if v.ProfileId == nil || len(*v.ProfileId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ProfileId must not be empty")} } - if v.WorkflowId != nil { - if err := encoder.SetURI("WorkflowId").String(*v.WorkflowId); err != nil { + if v.ProfileId != nil { + if err := encoder.SetURI("ProfileId").String(*v.ProfileId); err != nil { return err } } @@ -1613,14 +2630,14 @@ func awsRestjson1_serializeOpHttpBindingsDeleteWorkflowInput(v *DeleteWorkflowIn return nil } -type awsRestjson1_serializeOpDetectProfileObjectType struct { +type awsRestjson1_serializeOpGetDomain struct { } -func (*awsRestjson1_serializeOpDetectProfileObjectType) ID() string { +func (*awsRestjson1_serializeOpGetDomain) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpDetectProfileObjectType) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetDomain) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -1632,16 +2649,16 @@ func (m *awsRestjson1_serializeOpDetectProfileObjectType) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DetectProfileObjectTypeInput) + input, ok := in.Parameters.(*GetDomainInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/detect/object-types") + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" + request.Method = "GET" var restEncoder *httpbinding.Encoder if request.URL.RawPath == "" { restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) @@ -1654,18 +2671,7 @@ func (m *awsRestjson1_serializeOpDetectProfileObjectType) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsDetectProfileObjectTypeInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentDetectProfileObjectTypeInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetDomainInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1678,7 +2684,7 @@ func (m *awsRestjson1_serializeOpDetectProfileObjectType) HandleSerialize(ctx co span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsDetectProfileObjectTypeInput(v *DetectProfileObjectTypeInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetDomainInput(v *GetDomainInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -1695,28 +2701,14 @@ func awsRestjson1_serializeOpHttpBindingsDetectProfileObjectTypeInput(v *DetectP return nil } -func awsRestjson1_serializeOpDocumentDetectProfileObjectTypeInput(v *DetectProfileObjectTypeInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Objects != nil { - ok := object.Key("Objects") - if err := awsRestjson1_serializeDocumentObjects(v.Objects, ok); err != nil { - return err - } - } - - return nil -} - -type awsRestjson1_serializeOpGetAutoMergingPreview struct { +type awsRestjson1_serializeOpGetEventStream struct { } -func (*awsRestjson1_serializeOpGetAutoMergingPreview) ID() string { +func (*awsRestjson1_serializeOpGetEventStream) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetAutoMergingPreview) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetEventStream) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -1728,16 +2720,16 @@ func (m *awsRestjson1_serializeOpGetAutoMergingPreview) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetAutoMergingPreviewInput) + input, ok := in.Parameters.(*GetEventStreamInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/identity-resolution-jobs/auto-merging-preview") + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/event-streams/{EventStreamName}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" + request.Method = "GET" var restEncoder *httpbinding.Encoder if request.URL.RawPath == "" { restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) @@ -1750,18 +2742,7 @@ func (m *awsRestjson1_serializeOpGetAutoMergingPreview) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetAutoMergingPreviewInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentGetAutoMergingPreviewInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetEventStreamInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1774,7 +2755,7 @@ func (m *awsRestjson1_serializeOpGetAutoMergingPreview) HandleSerialize(ctx cont span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetAutoMergingPreviewInput(v *GetAutoMergingPreviewInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetEventStreamInput(v *GetEventStreamInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -1788,56 +2769,26 @@ func awsRestjson1_serializeOpHttpBindingsGetAutoMergingPreviewInput(v *GetAutoMe } } - return nil -} - -func awsRestjson1_serializeOpDocumentGetAutoMergingPreviewInput(v *GetAutoMergingPreviewInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ConflictResolution != nil { - ok := object.Key("ConflictResolution") - if err := awsRestjson1_serializeDocumentConflictResolution(v.ConflictResolution, ok); err != nil { - return err - } + if v.EventStreamName == nil || len(*v.EventStreamName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member EventStreamName must not be empty")} } - - if v.Consolidation != nil { - ok := object.Key("Consolidation") - if err := awsRestjson1_serializeDocumentConsolidation(v.Consolidation, ok); err != nil { + if v.EventStreamName != nil { + if err := encoder.SetURI("EventStreamName").String(*v.EventStreamName); err != nil { return err } } - if v.MinAllowedConfidenceScoreForMerging != nil { - ok := object.Key("MinAllowedConfidenceScoreForMerging") - switch { - case math.IsNaN(*v.MinAllowedConfidenceScoreForMerging): - ok.String("NaN") - - case math.IsInf(*v.MinAllowedConfidenceScoreForMerging, 1): - ok.String("Infinity") - - case math.IsInf(*v.MinAllowedConfidenceScoreForMerging, -1): - ok.String("-Infinity") - - default: - ok.Double(*v.MinAllowedConfidenceScoreForMerging) - - } - } - return nil } -type awsRestjson1_serializeOpGetCalculatedAttributeDefinition struct { +type awsRestjson1_serializeOpGetIdentityResolutionJob struct { } -func (*awsRestjson1_serializeOpGetCalculatedAttributeDefinition) ID() string { +func (*awsRestjson1_serializeOpGetIdentityResolutionJob) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetCalculatedAttributeDefinition) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetIdentityResolutionJob) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -1849,13 +2800,13 @@ func (m *awsRestjson1_serializeOpGetCalculatedAttributeDefinition) HandleSeriali return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetCalculatedAttributeDefinitionInput) + input, ok := in.Parameters.(*GetIdentityResolutionJobInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}") + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/identity-resolution-jobs/{JobId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -1871,7 +2822,7 @@ func (m *awsRestjson1_serializeOpGetCalculatedAttributeDefinition) HandleSeriali return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetCalculatedAttributeDefinitionInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetIdentityResolutionJobInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1884,25 +2835,25 @@ func (m *awsRestjson1_serializeOpGetCalculatedAttributeDefinition) HandleSeriali span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetCalculatedAttributeDefinitionInput(v *GetCalculatedAttributeDefinitionInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetIdentityResolutionJobInput(v *GetIdentityResolutionJobInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CalculatedAttributeName == nil || len(*v.CalculatedAttributeName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CalculatedAttributeName must not be empty")} + if v.DomainName == nil || len(*v.DomainName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} } - if v.CalculatedAttributeName != nil { - if err := encoder.SetURI("CalculatedAttributeName").String(*v.CalculatedAttributeName); err != nil { + if v.DomainName != nil { + if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { return err } } - if v.DomainName == nil || len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} + if v.JobId == nil || len(*v.JobId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} } - if v.DomainName != nil { - if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { + if v.JobId != nil { + if err := encoder.SetURI("JobId").String(*v.JobId); err != nil { return err } } @@ -1910,14 +2861,14 @@ func awsRestjson1_serializeOpHttpBindingsGetCalculatedAttributeDefinitionInput(v return nil } -type awsRestjson1_serializeOpGetCalculatedAttributeForProfile struct { +type awsRestjson1_serializeOpGetIntegration struct { } -func (*awsRestjson1_serializeOpGetCalculatedAttributeForProfile) ID() string { +func (*awsRestjson1_serializeOpGetIntegration) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetCalculatedAttributeForProfile) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetIntegration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -1929,16 +2880,16 @@ func (m *awsRestjson1_serializeOpGetCalculatedAttributeForProfile) HandleSeriali return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetCalculatedAttributeForProfileInput) + input, ok := in.Parameters.(*GetIntegrationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/profile/{ProfileId}/calculated-attributes/{CalculatedAttributeName}") + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/integrations") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" + request.Method = "POST" var restEncoder *httpbinding.Encoder if request.URL.RawPath == "" { restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) @@ -1951,7 +2902,18 @@ func (m *awsRestjson1_serializeOpGetCalculatedAttributeForProfile) HandleSeriali return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetCalculatedAttributeForProfileInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetIntegrationInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentGetIntegrationInput(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} } @@ -1964,20 +2926,11 @@ func (m *awsRestjson1_serializeOpGetCalculatedAttributeForProfile) HandleSeriali span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetCalculatedAttributeForProfileInput(v *GetCalculatedAttributeForProfileInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetIntegrationInput(v *GetIntegrationInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CalculatedAttributeName == nil || len(*v.CalculatedAttributeName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member CalculatedAttributeName must not be empty")} - } - if v.CalculatedAttributeName != nil { - if err := encoder.SetURI("CalculatedAttributeName").String(*v.CalculatedAttributeName); err != nil { - return err - } - } - if v.DomainName == nil || len(*v.DomainName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} } @@ -1987,26 +2940,29 @@ func awsRestjson1_serializeOpHttpBindingsGetCalculatedAttributeForProfileInput(v } } - if v.ProfileId == nil || len(*v.ProfileId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ProfileId must not be empty")} - } - if v.ProfileId != nil { - if err := encoder.SetURI("ProfileId").String(*v.ProfileId); err != nil { - return err - } + return nil +} + +func awsRestjson1_serializeOpDocumentGetIntegrationInput(v *GetIntegrationInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Uri != nil { + ok := object.Key("Uri") + ok.String(*v.Uri) } return nil } -type awsRestjson1_serializeOpGetDomain struct { +type awsRestjson1_serializeOpGetMatches struct { } -func (*awsRestjson1_serializeOpGetDomain) ID() string { +func (*awsRestjson1_serializeOpGetMatches) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetDomain) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetMatches) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -2018,13 +2974,13 @@ func (m *awsRestjson1_serializeOpGetDomain) HandleSerialize(ctx context.Context, return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetDomainInput) + input, ok := in.Parameters.(*GetMatchesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}") + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/matches") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -2040,7 +2996,7 @@ func (m *awsRestjson1_serializeOpGetDomain) HandleSerialize(ctx context.Context, return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetDomainInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetMatchesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2053,7 +3009,7 @@ func (m *awsRestjson1_serializeOpGetDomain) HandleSerialize(ctx context.Context, span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetDomainInput(v *GetDomainInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetMatchesInput(v *GetMatchesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -2067,17 +3023,25 @@ func awsRestjson1_serializeOpHttpBindingsGetDomainInput(v *GetDomainInput, encod } } + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("next-token").String(*v.NextToken) + } + return nil } -type awsRestjson1_serializeOpGetEventStream struct { +type awsRestjson1_serializeOpGetProfileObjectType struct { } -func (*awsRestjson1_serializeOpGetEventStream) ID() string { +func (*awsRestjson1_serializeOpGetProfileObjectType) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetEventStream) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetProfileObjectType) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -2089,13 +3053,13 @@ func (m *awsRestjson1_serializeOpGetEventStream) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetEventStreamInput) + input, ok := in.Parameters.(*GetProfileObjectTypeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/event-streams/{EventStreamName}") + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/object-types/{ObjectTypeName}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -2111,7 +3075,7 @@ func (m *awsRestjson1_serializeOpGetEventStream) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetEventStreamInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetProfileObjectTypeInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2124,7 +3088,7 @@ func (m *awsRestjson1_serializeOpGetEventStream) HandleSerialize(ctx context.Con span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetEventStreamInput(v *GetEventStreamInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetProfileObjectTypeInput(v *GetProfileObjectTypeInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -2138,11 +3102,11 @@ func awsRestjson1_serializeOpHttpBindingsGetEventStreamInput(v *GetEventStreamIn } } - if v.EventStreamName == nil || len(*v.EventStreamName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member EventStreamName must not be empty")} + if v.ObjectTypeName == nil || len(*v.ObjectTypeName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ObjectTypeName must not be empty")} } - if v.EventStreamName != nil { - if err := encoder.SetURI("EventStreamName").String(*v.EventStreamName); err != nil { + if v.ObjectTypeName != nil { + if err := encoder.SetURI("ObjectTypeName").String(*v.ObjectTypeName); err != nil { return err } } @@ -2150,14 +3114,14 @@ func awsRestjson1_serializeOpHttpBindingsGetEventStreamInput(v *GetEventStreamIn return nil } -type awsRestjson1_serializeOpGetIdentityResolutionJob struct { +type awsRestjson1_serializeOpGetProfileObjectTypeTemplate struct { } -func (*awsRestjson1_serializeOpGetIdentityResolutionJob) ID() string { +func (*awsRestjson1_serializeOpGetProfileObjectTypeTemplate) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetIdentityResolutionJob) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetProfileObjectTypeTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -2169,13 +3133,13 @@ func (m *awsRestjson1_serializeOpGetIdentityResolutionJob) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetIdentityResolutionJobInput) + input, ok := in.Parameters.(*GetProfileObjectTypeTemplateInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/identity-resolution-jobs/{JobId}") + opPath, opQuery := httpbinding.SplitURI("/templates/{TemplateId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -2191,7 +3155,7 @@ func (m *awsRestjson1_serializeOpGetIdentityResolutionJob) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetIdentityResolutionJobInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetProfileObjectTypeTemplateInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2204,25 +3168,16 @@ func (m *awsRestjson1_serializeOpGetIdentityResolutionJob) HandleSerialize(ctx c span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetIdentityResolutionJobInput(v *GetIdentityResolutionJobInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetProfileObjectTypeTemplateInput(v *GetProfileObjectTypeTemplateInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainName == nil || len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} - } - if v.DomainName != nil { - if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { - return err - } - } - - if v.JobId == nil || len(*v.JobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member JobId must not be empty")} + if v.TemplateId == nil || len(*v.TemplateId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} } - if v.JobId != nil { - if err := encoder.SetURI("JobId").String(*v.JobId); err != nil { + if v.TemplateId != nil { + if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { return err } } @@ -2230,14 +3185,14 @@ func awsRestjson1_serializeOpHttpBindingsGetIdentityResolutionJobInput(v *GetIde return nil } -type awsRestjson1_serializeOpGetIntegration struct { +type awsRestjson1_serializeOpGetSegmentDefinition struct { } -func (*awsRestjson1_serializeOpGetIntegration) ID() string { +func (*awsRestjson1_serializeOpGetSegmentDefinition) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetIntegration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetSegmentDefinition) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -2249,40 +3204,29 @@ func (m *awsRestjson1_serializeOpGetIntegration) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetIntegrationInput) + input, ok := in.Parameters.(*GetSegmentDefinitionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/integrations") + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/segment-definitions/{SegmentDefinitionName}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" + request.Method = "GET" var restEncoder *httpbinding.Encoder if request.URL.RawPath == "" { restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) } else { request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) - } - - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if err := awsRestjson1_serializeOpHttpBindingsGetIntegrationInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") + } - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentGetIntegrationInput(input, jsonEncoder.Value); err != nil { + if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetSegmentDefinitionInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2295,7 +3239,7 @@ func (m *awsRestjson1_serializeOpGetIntegration) HandleSerialize(ctx context.Con span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetIntegrationInput(v *GetIntegrationInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetSegmentDefinitionInput(v *GetSegmentDefinitionInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -2309,29 +3253,26 @@ func awsRestjson1_serializeOpHttpBindingsGetIntegrationInput(v *GetIntegrationIn } } - return nil -} - -func awsRestjson1_serializeOpDocumentGetIntegrationInput(v *GetIntegrationInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Uri != nil { - ok := object.Key("Uri") - ok.String(*v.Uri) + if v.SegmentDefinitionName == nil || len(*v.SegmentDefinitionName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member SegmentDefinitionName must not be empty")} + } + if v.SegmentDefinitionName != nil { + if err := encoder.SetURI("SegmentDefinitionName").String(*v.SegmentDefinitionName); err != nil { + return err + } } return nil } -type awsRestjson1_serializeOpGetMatches struct { +type awsRestjson1_serializeOpGetSegmentEstimate struct { } -func (*awsRestjson1_serializeOpGetMatches) ID() string { +func (*awsRestjson1_serializeOpGetSegmentEstimate) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetMatches) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetSegmentEstimate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -2343,13 +3284,13 @@ func (m *awsRestjson1_serializeOpGetMatches) HandleSerialize(ctx context.Context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetMatchesInput) + input, ok := in.Parameters.(*GetSegmentEstimateInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/matches") + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/segment-estimates/{EstimateId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -2365,7 +3306,7 @@ func (m *awsRestjson1_serializeOpGetMatches) HandleSerialize(ctx context.Context return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetMatchesInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetSegmentEstimateInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2378,7 +3319,7 @@ func (m *awsRestjson1_serializeOpGetMatches) HandleSerialize(ctx context.Context span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetMatchesInput(v *GetMatchesInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetSegmentEstimateInput(v *GetSegmentEstimateInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -2392,25 +3333,26 @@ func awsRestjson1_serializeOpHttpBindingsGetMatchesInput(v *GetMatchesInput, enc } } - if v.MaxResults != nil { - encoder.SetQuery("max-results").Integer(*v.MaxResults) + if v.EstimateId == nil || len(*v.EstimateId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member EstimateId must not be empty")} } - - if v.NextToken != nil { - encoder.SetQuery("next-token").String(*v.NextToken) + if v.EstimateId != nil { + if err := encoder.SetURI("EstimateId").String(*v.EstimateId); err != nil { + return err + } } return nil } -type awsRestjson1_serializeOpGetProfileObjectType struct { +type awsRestjson1_serializeOpGetSegmentMembership struct { } -func (*awsRestjson1_serializeOpGetProfileObjectType) ID() string { +func (*awsRestjson1_serializeOpGetSegmentMembership) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetProfileObjectType) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetSegmentMembership) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -2422,16 +3364,16 @@ func (m *awsRestjson1_serializeOpGetProfileObjectType) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetProfileObjectTypeInput) + input, ok := in.Parameters.(*GetSegmentMembershipInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/object-types/{ObjectTypeName}") + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/segments/{SegmentDefinitionName}/membership") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" + request.Method = "POST" var restEncoder *httpbinding.Encoder if request.URL.RawPath == "" { restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) @@ -2444,7 +3386,18 @@ func (m *awsRestjson1_serializeOpGetProfileObjectType) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetProfileObjectTypeInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetSegmentMembershipInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentGetSegmentMembershipInput(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} } @@ -2457,7 +3410,7 @@ func (m *awsRestjson1_serializeOpGetProfileObjectType) HandleSerialize(ctx conte span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetProfileObjectTypeInput(v *GetProfileObjectTypeInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetSegmentMembershipInput(v *GetSegmentMembershipInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -2471,11 +3424,11 @@ func awsRestjson1_serializeOpHttpBindingsGetProfileObjectTypeInput(v *GetProfile } } - if v.ObjectTypeName == nil || len(*v.ObjectTypeName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ObjectTypeName must not be empty")} + if v.SegmentDefinitionName == nil || len(*v.SegmentDefinitionName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member SegmentDefinitionName must not be empty")} } - if v.ObjectTypeName != nil { - if err := encoder.SetURI("ObjectTypeName").String(*v.ObjectTypeName); err != nil { + if v.SegmentDefinitionName != nil { + if err := encoder.SetURI("SegmentDefinitionName").String(*v.SegmentDefinitionName); err != nil { return err } } @@ -2483,14 +3436,28 @@ func awsRestjson1_serializeOpHttpBindingsGetProfileObjectTypeInput(v *GetProfile return nil } -type awsRestjson1_serializeOpGetProfileObjectTypeTemplate struct { +func awsRestjson1_serializeOpDocumentGetSegmentMembershipInput(v *GetSegmentMembershipInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ProfileIds != nil { + ok := object.Key("ProfileIds") + if err := awsRestjson1_serializeDocumentProfileIds(v.ProfileIds, ok); err != nil { + return err + } + } + + return nil } -func (*awsRestjson1_serializeOpGetProfileObjectTypeTemplate) ID() string { +type awsRestjson1_serializeOpGetSegmentSnapshot struct { +} + +func (*awsRestjson1_serializeOpGetSegmentSnapshot) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetProfileObjectTypeTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetSegmentSnapshot) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -2502,13 +3469,13 @@ func (m *awsRestjson1_serializeOpGetProfileObjectTypeTemplate) HandleSerialize(c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetProfileObjectTypeTemplateInput) + input, ok := in.Parameters.(*GetSegmentSnapshotInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/templates/{TemplateId}") + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/segments/{SegmentDefinitionName}/snapshots/{SnapshotId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -2524,7 +3491,7 @@ func (m *awsRestjson1_serializeOpGetProfileObjectTypeTemplate) HandleSerialize(c return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetProfileObjectTypeTemplateInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetSegmentSnapshotInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2537,16 +3504,34 @@ func (m *awsRestjson1_serializeOpGetProfileObjectTypeTemplate) HandleSerialize(c span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetProfileObjectTypeTemplateInput(v *GetProfileObjectTypeTemplateInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetSegmentSnapshotInput(v *GetSegmentSnapshotInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.TemplateId == nil || len(*v.TemplateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} + if v.DomainName == nil || len(*v.DomainName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} } - if v.TemplateId != nil { - if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { + if v.DomainName != nil { + if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { + return err + } + } + + if v.SegmentDefinitionName == nil || len(*v.SegmentDefinitionName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member SegmentDefinitionName must not be empty")} + } + if v.SegmentDefinitionName != nil { + if err := encoder.SetURI("SegmentDefinitionName").String(*v.SegmentDefinitionName); err != nil { + return err + } + } + + if v.SnapshotId == nil || len(*v.SnapshotId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member SnapshotId must not be empty")} + } + if v.SnapshotId != nil { + if err := encoder.SetURI("SnapshotId").String(*v.SnapshotId); err != nil { return err } } @@ -2931,14 +3916,181 @@ func awsRestjson1_serializeOpDocumentListAccountIntegrationsInput(v *ListAccount return nil } -type awsRestjson1_serializeOpListCalculatedAttributeDefinitions struct { +type awsRestjson1_serializeOpListCalculatedAttributeDefinitions struct { +} + +func (*awsRestjson1_serializeOpListCalculatedAttributeDefinitions) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListCalculatedAttributeDefinitions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*ListCalculatedAttributeDefinitionsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/calculated-attributes") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListCalculatedAttributeDefinitionsInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListCalculatedAttributeDefinitionsInput(v *ListCalculatedAttributeDefinitionsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.DomainName == nil || len(*v.DomainName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} + } + if v.DomainName != nil { + if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { + return err + } + } + + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("next-token").String(*v.NextToken) + } + + return nil +} + +type awsRestjson1_serializeOpListCalculatedAttributesForProfile struct { +} + +func (*awsRestjson1_serializeOpListCalculatedAttributesForProfile) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListCalculatedAttributesForProfile) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*ListCalculatedAttributesForProfileInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/profile/{ProfileId}/calculated-attributes") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListCalculatedAttributesForProfileInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListCalculatedAttributesForProfileInput(v *ListCalculatedAttributesForProfileInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.DomainName == nil || len(*v.DomainName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} + } + if v.DomainName != nil { + if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { + return err + } + } + + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("next-token").String(*v.NextToken) + } + + if v.ProfileId == nil || len(*v.ProfileId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ProfileId must not be empty")} + } + if v.ProfileId != nil { + if err := encoder.SetURI("ProfileId").String(*v.ProfileId); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpListDomains struct { } -func (*awsRestjson1_serializeOpListCalculatedAttributeDefinitions) ID() string { +func (*awsRestjson1_serializeOpListDomains) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListCalculatedAttributeDefinitions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListDomains) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -2950,13 +4102,13 @@ func (m *awsRestjson1_serializeOpListCalculatedAttributeDefinitions) HandleSeria return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListCalculatedAttributeDefinitionsInput) + input, ok := in.Parameters.(*ListDomainsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/calculated-attributes") + opPath, opQuery := httpbinding.SplitURI("/domains") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -2972,7 +4124,7 @@ func (m *awsRestjson1_serializeOpListCalculatedAttributeDefinitions) HandleSeria return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListCalculatedAttributeDefinitionsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListDomainsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2985,20 +4137,11 @@ func (m *awsRestjson1_serializeOpListCalculatedAttributeDefinitions) HandleSeria span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListCalculatedAttributeDefinitionsInput(v *ListCalculatedAttributeDefinitionsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListDomainsInput(v *ListDomainsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.DomainName == nil || len(*v.DomainName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} - } - if v.DomainName != nil { - if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { - return err - } - } - if v.MaxResults != nil { encoder.SetQuery("max-results").Integer(*v.MaxResults) } @@ -3010,14 +4153,14 @@ func awsRestjson1_serializeOpHttpBindingsListCalculatedAttributeDefinitionsInput return nil } -type awsRestjson1_serializeOpListCalculatedAttributesForProfile struct { +type awsRestjson1_serializeOpListEventStreams struct { } -func (*awsRestjson1_serializeOpListCalculatedAttributesForProfile) ID() string { +func (*awsRestjson1_serializeOpListEventStreams) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListCalculatedAttributesForProfile) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListEventStreams) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -3029,13 +4172,13 @@ func (m *awsRestjson1_serializeOpListCalculatedAttributesForProfile) HandleSeria return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListCalculatedAttributesForProfileInput) + input, ok := in.Parameters.(*ListEventStreamsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/profile/{ProfileId}/calculated-attributes") + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/event-streams") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -3051,7 +4194,7 @@ func (m *awsRestjson1_serializeOpListCalculatedAttributesForProfile) HandleSeria return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListCalculatedAttributesForProfileInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListEventStreamsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3064,7 +4207,7 @@ func (m *awsRestjson1_serializeOpListCalculatedAttributesForProfile) HandleSeria span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListCalculatedAttributesForProfileInput(v *ListCalculatedAttributesForProfileInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListEventStreamsInput(v *ListEventStreamsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -3086,26 +4229,17 @@ func awsRestjson1_serializeOpHttpBindingsListCalculatedAttributesForProfileInput encoder.SetQuery("next-token").String(*v.NextToken) } - if v.ProfileId == nil || len(*v.ProfileId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ProfileId must not be empty")} - } - if v.ProfileId != nil { - if err := encoder.SetURI("ProfileId").String(*v.ProfileId); err != nil { - return err - } - } - return nil } -type awsRestjson1_serializeOpListDomains struct { +type awsRestjson1_serializeOpListIdentityResolutionJobs struct { } -func (*awsRestjson1_serializeOpListDomains) ID() string { +func (*awsRestjson1_serializeOpListIdentityResolutionJobs) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListDomains) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListIdentityResolutionJobs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -3117,13 +4251,13 @@ func (m *awsRestjson1_serializeOpListDomains) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListDomainsInput) + input, ok := in.Parameters.(*ListIdentityResolutionJobsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains") + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/identity-resolution-jobs") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -3139,7 +4273,7 @@ func (m *awsRestjson1_serializeOpListDomains) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListDomainsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListIdentityResolutionJobsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3152,11 +4286,20 @@ func (m *awsRestjson1_serializeOpListDomains) HandleSerialize(ctx context.Contex span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListDomainsInput(v *ListDomainsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListIdentityResolutionJobsInput(v *ListIdentityResolutionJobsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } + if v.DomainName == nil || len(*v.DomainName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} + } + if v.DomainName != nil { + if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { + return err + } + } + if v.MaxResults != nil { encoder.SetQuery("max-results").Integer(*v.MaxResults) } @@ -3168,14 +4311,14 @@ func awsRestjson1_serializeOpHttpBindingsListDomainsInput(v *ListDomainsInput, e return nil } -type awsRestjson1_serializeOpListEventStreams struct { +type awsRestjson1_serializeOpListIntegrations struct { } -func (*awsRestjson1_serializeOpListEventStreams) ID() string { +func (*awsRestjson1_serializeOpListIntegrations) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListEventStreams) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListIntegrations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -3187,13 +4330,13 @@ func (m *awsRestjson1_serializeOpListEventStreams) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListEventStreamsInput) + input, ok := in.Parameters.(*ListIntegrationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/event-streams") + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/integrations") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -3209,7 +4352,7 @@ func (m *awsRestjson1_serializeOpListEventStreams) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListEventStreamsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListIntegrationsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3222,7 +4365,7 @@ func (m *awsRestjson1_serializeOpListEventStreams) HandleSerialize(ctx context.C span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListEventStreamsInput(v *ListEventStreamsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListIntegrationsInput(v *ListIntegrationsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -3236,6 +4379,10 @@ func awsRestjson1_serializeOpHttpBindingsListEventStreamsInput(v *ListEventStrea } } + if v.IncludeHidden != nil { + encoder.SetQuery("include-hidden").Boolean(*v.IncludeHidden) + } + if v.MaxResults != nil { encoder.SetQuery("max-results").Integer(*v.MaxResults) } @@ -3247,14 +4394,14 @@ func awsRestjson1_serializeOpHttpBindingsListEventStreamsInput(v *ListEventStrea return nil } -type awsRestjson1_serializeOpListIdentityResolutionJobs struct { +type awsRestjson1_serializeOpListObjectTypeAttributes struct { } -func (*awsRestjson1_serializeOpListIdentityResolutionJobs) ID() string { +func (*awsRestjson1_serializeOpListObjectTypeAttributes) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListIdentityResolutionJobs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListObjectTypeAttributes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -3266,13 +4413,13 @@ func (m *awsRestjson1_serializeOpListIdentityResolutionJobs) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListIdentityResolutionJobsInput) + input, ok := in.Parameters.(*ListObjectTypeAttributesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/identity-resolution-jobs") + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/object-types/{ObjectTypeName}/attributes") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -3288,7 +4435,7 @@ func (m *awsRestjson1_serializeOpListIdentityResolutionJobs) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListIdentityResolutionJobsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListObjectTypeAttributesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3301,7 +4448,7 @@ func (m *awsRestjson1_serializeOpListIdentityResolutionJobs) HandleSerialize(ctx span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListIdentityResolutionJobsInput(v *ListIdentityResolutionJobsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListObjectTypeAttributesInput(v *ListObjectTypeAttributesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -3323,17 +4470,26 @@ func awsRestjson1_serializeOpHttpBindingsListIdentityResolutionJobsInput(v *List encoder.SetQuery("next-token").String(*v.NextToken) } + if v.ObjectTypeName == nil || len(*v.ObjectTypeName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ObjectTypeName must not be empty")} + } + if v.ObjectTypeName != nil { + if err := encoder.SetURI("ObjectTypeName").String(*v.ObjectTypeName); err != nil { + return err + } + } + return nil } -type awsRestjson1_serializeOpListIntegrations struct { +type awsRestjson1_serializeOpListProfileAttributeValues struct { } -func (*awsRestjson1_serializeOpListIntegrations) ID() string { +func (*awsRestjson1_serializeOpListProfileAttributeValues) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListIntegrations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListProfileAttributeValues) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -3345,13 +4501,13 @@ func (m *awsRestjson1_serializeOpListIntegrations) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListIntegrationsInput) + input, ok := in.Parameters.(*ListProfileAttributeValuesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/integrations") + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/profile-attributes/{AttributeName}/values") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -3367,7 +4523,7 @@ func (m *awsRestjson1_serializeOpListIntegrations) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListIntegrationsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListProfileAttributeValuesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3380,11 +4536,20 @@ func (m *awsRestjson1_serializeOpListIntegrations) HandleSerialize(ctx context.C span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListIntegrationsInput(v *ListIntegrationsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListProfileAttributeValuesInput(v *ListProfileAttributeValuesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } + if v.AttributeName == nil || len(*v.AttributeName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AttributeName must not be empty")} + } + if v.AttributeName != nil { + if err := encoder.SetURI("AttributeName").String(*v.AttributeName); err != nil { + return err + } + } + if v.DomainName == nil || len(*v.DomainName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} } @@ -3394,18 +4559,6 @@ func awsRestjson1_serializeOpHttpBindingsListIntegrationsInput(v *ListIntegratio } } - if v.IncludeHidden != nil { - encoder.SetQuery("include-hidden").Boolean(*v.IncludeHidden) - } - - if v.MaxResults != nil { - encoder.SetQuery("max-results").Integer(*v.MaxResults) - } - - if v.NextToken != nil { - encoder.SetQuery("next-token").String(*v.NextToken) - } - return nil } @@ -3751,6 +4904,85 @@ func awsRestjson1_serializeOpHttpBindingsListRuleBasedMatchesInput(v *ListRuleBa return nil } +type awsRestjson1_serializeOpListSegmentDefinitions struct { +} + +func (*awsRestjson1_serializeOpListSegmentDefinitions) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListSegmentDefinitions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*ListSegmentDefinitionsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/domains/{DomainName}/segment-definitions") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListSegmentDefinitionsInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListSegmentDefinitionsInput(v *ListSegmentDefinitionsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.DomainName == nil || len(*v.DomainName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} + } + if v.DomainName != nil { + if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { + return err + } + } + + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("next-token").String(*v.NextToken) + } + + return nil +} + type awsRestjson1_serializeOpListTagsForResource struct { } @@ -5267,6 +6499,55 @@ func awsRestjson1_serializeDocumentAddress(v *types.Address, value smithyjson.Va return nil } +func awsRestjson1_serializeDocumentAddressDimension(v *types.AddressDimension, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.City != nil { + ok := object.Key("City") + if err := awsRestjson1_serializeDocumentProfileDimension(v.City, ok); err != nil { + return err + } + } + + if v.Country != nil { + ok := object.Key("Country") + if err := awsRestjson1_serializeDocumentProfileDimension(v.Country, ok); err != nil { + return err + } + } + + if v.County != nil { + ok := object.Key("County") + if err := awsRestjson1_serializeDocumentProfileDimension(v.County, ok); err != nil { + return err + } + } + + if v.PostalCode != nil { + ok := object.Key("PostalCode") + if err := awsRestjson1_serializeDocumentProfileDimension(v.PostalCode, ok); err != nil { + return err + } + } + + if v.Province != nil { + ok := object.Key("Province") + if err := awsRestjson1_serializeDocumentProfileDimension(v.Province, ok); err != nil { + return err + } + } + + if v.State != nil { + ok := object.Key("State") + if err := awsRestjson1_serializeDocumentProfileDimension(v.State, ok); err != nil { + return err + } + } + + return nil +} + func awsRestjson1_serializeDocumentAddressList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -5310,9 +6591,28 @@ func awsRestjson1_serializeDocumentAttributeDetails(v *types.AttributeDetails, v } } - if v.Expression != nil { - ok := object.Key("Expression") - ok.String(*v.Expression) + if v.Expression != nil { + ok := object.Key("Expression") + ok.String(*v.Expression) + } + + return nil +} + +func awsRestjson1_serializeDocumentAttributeDimension(v *types.AttributeDimension, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.DimensionType) > 0 { + ok := object.Key("DimensionType") + ok.String(string(v.DimensionType)) + } + + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentValues(v.Values, ok); err != nil { + return err + } } return nil @@ -5343,6 +6643,20 @@ func awsRestjson1_serializeDocumentAttributeList(v []types.AttributeItem, value return nil } +func awsRestjson1_serializeDocumentAttributeMap(v map[string]types.FilterAttributeDimension, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + mapVar := v[key] + if err := awsRestjson1_serializeDocumentFilterAttributeDimension(&mapVar, om); err != nil { + return err + } + } + return nil +} + func awsRestjson1_serializeDocumentAttributes(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -5472,6 +6786,82 @@ func awsRestjson1_serializeDocumentBatches(v []types.Batch, value smithyjson.Val return nil } +func awsRestjson1_serializeDocumentBatchGetCalculatedAttributeForProfileIdList(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_serializeDocumentBatchGetProfileIdList(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_serializeDocumentCalculatedAttributeDimension(v *types.CalculatedAttributeDimension, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ConditionOverrides != nil { + ok := object.Key("ConditionOverrides") + if err := awsRestjson1_serializeDocumentConditionOverrides(v.ConditionOverrides, ok); err != nil { + return err + } + } + + if len(v.DimensionType) > 0 { + ok := object.Key("DimensionType") + ok.String(string(v.DimensionType)) + } + + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentValues(v.Values, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentCalculatedCustomAttributes(v map[string]types.CalculatedAttributeDimension, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + mapVar := v[key] + if err := awsRestjson1_serializeDocumentCalculatedAttributeDimension(&mapVar, om); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentConditionOverrides(v *types.ConditionOverrides, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Range != nil { + ok := object.Key("Range") + if err := awsRestjson1_serializeDocumentRangeOverride(v.Range, ok); err != nil { + return err + } + } + + return nil +} + func awsRestjson1_serializeDocumentConditions(v *types.Conditions, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -5561,6 +6951,90 @@ func awsRestjson1_serializeDocumentConsolidation(v *types.Consolidation, value s return nil } +func awsRestjson1_serializeDocumentCustomAttributes(v map[string]types.AttributeDimension, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + mapVar := v[key] + if err := awsRestjson1_serializeDocumentAttributeDimension(&mapVar, om); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentDateDimension(v *types.DateDimension, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.DimensionType) > 0 { + ok := object.Key("DimensionType") + ok.String(string(v.DimensionType)) + } + + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentDateValues(v.Values, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentDateValues(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_serializeDocumentDimension(v types.Dimension, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.DimensionMemberCalculatedAttributes: + av := object.Key("CalculatedAttributes") + if err := awsRestjson1_serializeDocumentCalculatedCustomAttributes(uv.Value, av); err != nil { + return err + } + + case *types.DimensionMemberProfileAttributes: + av := object.Key("ProfileAttributes") + if err := awsRestjson1_serializeDocumentProfileAttributes(&uv.Value, av); err != nil { + return err + } + + default: + return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) + + } + return nil +} + +func awsRestjson1_serializeDocumentDimensionList(v []types.Dimension, 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_serializeDocumentDimension(v[i], av); err != nil { + return err + } + } + return nil +} + func awsRestjson1_serializeDocumentEmailList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -5586,6 +7060,36 @@ func awsRestjson1_serializeDocumentExportingConfig(v *types.ExportingConfig, val return nil } +func awsRestjson1_serializeDocumentExtraLengthValueProfileDimension(v *types.ExtraLengthValueProfileDimension, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.DimensionType) > 0 { + ok := object.Key("DimensionType") + ok.String(string(v.DimensionType)) + } + + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentExtraLengthValues(v.Values, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentExtraLengthValues(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_serializeDocumentFieldMap(v map[string]types.ObjectTypeField, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -5725,6 +7229,90 @@ func awsRestjson1_serializeDocumentFieldSourceProfileIds(v *types.FieldSourcePro return nil } +func awsRestjson1_serializeDocumentFilter(v *types.Filter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Groups != nil { + ok := object.Key("Groups") + if err := awsRestjson1_serializeDocumentGroupList(v.Groups, ok); err != nil { + return err + } + } + + if len(v.Include) > 0 { + ok := object.Key("Include") + ok.String(string(v.Include)) + } + + return nil +} + +func awsRestjson1_serializeDocumentFilterAttributeDimension(v *types.FilterAttributeDimension, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.DimensionType) > 0 { + ok := object.Key("DimensionType") + ok.String(string(v.DimensionType)) + } + + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentValueList(v.Values, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentFilterDimension(v *types.FilterDimension, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Attributes != nil { + ok := object.Key("Attributes") + if err := awsRestjson1_serializeDocumentAttributeMap(v.Attributes, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentFilterDimensionList(v []types.FilterDimension, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentFilterDimension(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentFilterGroup(v *types.FilterGroup, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Dimensions != nil { + ok := object.Key("Dimensions") + if err := awsRestjson1_serializeDocumentFilterDimensionList(v.Dimensions, ok); err != nil { + return err + } + } + + if len(v.Type) > 0 { + ok := object.Key("Type") + ok.String(string(v.Type)) + } + + return nil +} + func awsRestjson1_serializeDocumentFlowDefinition(v *types.FlowDefinition, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -5758,13 +7346,57 @@ func awsRestjson1_serializeDocumentFlowDefinition(v *types.FlowDefinition, value } } - if v.TriggerConfig != nil { - ok := object.Key("TriggerConfig") - if err := awsRestjson1_serializeDocumentTriggerConfig(v.TriggerConfig, ok); err != nil { + if v.TriggerConfig != nil { + ok := object.Key("TriggerConfig") + if err := awsRestjson1_serializeDocumentTriggerConfig(v.TriggerConfig, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentGroup(v *types.Group, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Dimensions != nil { + ok := object.Key("Dimensions") + if err := awsRestjson1_serializeDocumentDimensionList(v.Dimensions, ok); err != nil { + return err + } + } + + if v.SourceSegments != nil { + ok := object.Key("SourceSegments") + if err := awsRestjson1_serializeDocumentSourceSegmentList(v.SourceSegments, ok); err != nil { + return err + } + } + + if len(v.SourceType) > 0 { + ok := object.Key("SourceType") + ok.String(string(v.SourceType)) + } + + if len(v.Type) > 0 { + ok := object.Key("Type") + ok.String(string(v.Type)) + } + + return nil +} + +func awsRestjson1_serializeDocumentGroupList(v []types.FilterGroup, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentFilterGroup(&v[i], av); err != nil { return err } } - return nil } @@ -6045,6 +7677,190 @@ func awsRestjson1_serializeDocumentPhoneNumberList(v []string, value smithyjson. return nil } +func awsRestjson1_serializeDocumentProfileAttributes(v *types.ProfileAttributes, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AccountNumber != nil { + ok := object.Key("AccountNumber") + if err := awsRestjson1_serializeDocumentProfileDimension(v.AccountNumber, ok); err != nil { + return err + } + } + + if v.AdditionalInformation != nil { + ok := object.Key("AdditionalInformation") + if err := awsRestjson1_serializeDocumentExtraLengthValueProfileDimension(v.AdditionalInformation, ok); err != nil { + return err + } + } + + if v.Address != nil { + ok := object.Key("Address") + if err := awsRestjson1_serializeDocumentAddressDimension(v.Address, ok); err != nil { + return err + } + } + + if v.Attributes != nil { + ok := object.Key("Attributes") + if err := awsRestjson1_serializeDocumentCustomAttributes(v.Attributes, ok); err != nil { + return err + } + } + + if v.BillingAddress != nil { + ok := object.Key("BillingAddress") + if err := awsRestjson1_serializeDocumentAddressDimension(v.BillingAddress, ok); err != nil { + return err + } + } + + if v.BirthDate != nil { + ok := object.Key("BirthDate") + if err := awsRestjson1_serializeDocumentDateDimension(v.BirthDate, ok); err != nil { + return err + } + } + + if v.BusinessEmailAddress != nil { + ok := object.Key("BusinessEmailAddress") + if err := awsRestjson1_serializeDocumentProfileDimension(v.BusinessEmailAddress, ok); err != nil { + return err + } + } + + if v.BusinessName != nil { + ok := object.Key("BusinessName") + if err := awsRestjson1_serializeDocumentProfileDimension(v.BusinessName, ok); err != nil { + return err + } + } + + if v.BusinessPhoneNumber != nil { + ok := object.Key("BusinessPhoneNumber") + if err := awsRestjson1_serializeDocumentProfileDimension(v.BusinessPhoneNumber, ok); err != nil { + return err + } + } + + if v.EmailAddress != nil { + ok := object.Key("EmailAddress") + if err := awsRestjson1_serializeDocumentProfileDimension(v.EmailAddress, ok); err != nil { + return err + } + } + + if v.FirstName != nil { + ok := object.Key("FirstName") + if err := awsRestjson1_serializeDocumentProfileDimension(v.FirstName, ok); err != nil { + return err + } + } + + if v.GenderString != nil { + ok := object.Key("GenderString") + if err := awsRestjson1_serializeDocumentProfileDimension(v.GenderString, ok); err != nil { + return err + } + } + + if v.HomePhoneNumber != nil { + ok := object.Key("HomePhoneNumber") + if err := awsRestjson1_serializeDocumentProfileDimension(v.HomePhoneNumber, ok); err != nil { + return err + } + } + + if v.LastName != nil { + ok := object.Key("LastName") + if err := awsRestjson1_serializeDocumentProfileDimension(v.LastName, ok); err != nil { + return err + } + } + + if v.MailingAddress != nil { + ok := object.Key("MailingAddress") + if err := awsRestjson1_serializeDocumentAddressDimension(v.MailingAddress, ok); err != nil { + return err + } + } + + if v.MiddleName != nil { + ok := object.Key("MiddleName") + if err := awsRestjson1_serializeDocumentProfileDimension(v.MiddleName, ok); err != nil { + return err + } + } + + if v.MobilePhoneNumber != nil { + ok := object.Key("MobilePhoneNumber") + if err := awsRestjson1_serializeDocumentProfileDimension(v.MobilePhoneNumber, ok); err != nil { + return err + } + } + + if v.PartyTypeString != nil { + ok := object.Key("PartyTypeString") + if err := awsRestjson1_serializeDocumentProfileDimension(v.PartyTypeString, ok); err != nil { + return err + } + } + + if v.PersonalEmailAddress != nil { + ok := object.Key("PersonalEmailAddress") + if err := awsRestjson1_serializeDocumentProfileDimension(v.PersonalEmailAddress, ok); err != nil { + return err + } + } + + if v.PhoneNumber != nil { + ok := object.Key("PhoneNumber") + if err := awsRestjson1_serializeDocumentProfileDimension(v.PhoneNumber, ok); err != nil { + return err + } + } + + if v.ShippingAddress != nil { + ok := object.Key("ShippingAddress") + if err := awsRestjson1_serializeDocumentAddressDimension(v.ShippingAddress, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentProfileDimension(v *types.ProfileDimension, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.DimensionType) > 0 { + ok := object.Key("DimensionType") + ok.String(string(v.DimensionType)) + } + + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentValues(v.Values, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentProfileIds(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_serializeDocumentProfileIdToBeMergedList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -6073,6 +7889,28 @@ func awsRestjson1_serializeDocumentRange(v *types.Range, value smithyjson.Value) return nil } +func awsRestjson1_serializeDocumentRangeOverride(v *types.RangeOverride, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.End != 0 { + ok := object.Key("End") + ok.Integer(v.End) + } + + if v.Start != nil { + ok := object.Key("Start") + ok.Integer(*v.Start) + } + + if len(v.Unit) > 0 { + ok := object.Key("Unit") + ok.String(string(v.Unit)) + } + + return nil +} + func awsRestjson1_serializeDocumentRequestValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -6232,6 +8070,57 @@ func awsRestjson1_serializeDocumentScheduledTriggerProperties(v *types.Scheduled return nil } +func awsRestjson1_serializeDocumentSegmentGroup(v *types.SegmentGroup, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Groups != nil { + ok := object.Key("Groups") + if err := awsRestjson1_serializeDocumentSegmentGroupList(v.Groups, ok); err != nil { + return err + } + } + + if len(v.Include) > 0 { + ok := object.Key("Include") + ok.String(string(v.Include)) + } + + return nil +} + +func awsRestjson1_serializeDocumentSegmentGroupList(v []types.Group, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentGroup(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentSegmentGroupStructure(v *types.SegmentGroupStructure, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Groups != nil { + ok := object.Key("Groups") + if err := awsRestjson1_serializeDocumentSegmentGroupList(v.Groups, ok); err != nil { + return err + } + } + + if len(v.Include) > 0 { + ok := object.Key("Include") + ok.String(string(v.Include)) + } + + return nil +} + func awsRestjson1_serializeDocumentServiceNowSourceProperties(v *types.ServiceNowSourceProperties, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -6328,6 +8217,31 @@ func awsRestjson1_serializeDocumentSourceFlowConfig(v *types.SourceFlowConfig, v return nil } +func awsRestjson1_serializeDocumentSourceSegment(v *types.SourceSegment, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.SegmentDefinitionName != nil { + ok := object.Key("SegmentDefinitionName") + ok.String(*v.SegmentDefinitionName) + } + + return nil +} + +func awsRestjson1_serializeDocumentSourceSegmentList(v []types.SourceSegment, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentSourceSegment(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsRestjson1_serializeDocumentStandardIdentifierList(v []types.StandardIdentifier, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -6530,6 +8444,28 @@ func awsRestjson1_serializeDocumentUpdateAttributes(v map[string]string, value s return nil } +func awsRestjson1_serializeDocumentValueList(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_serializeDocumentValues(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_serializeDocumentZendeskSourceProperties(v *types.ZendeskSourceProperties, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/customerprofiles/snapshot/api_op_BatchGetCalculatedAttributeForProfile.go.snap b/service/customerprofiles/snapshot/api_op_BatchGetCalculatedAttributeForProfile.go.snap new file mode 100644 index 00000000000..09e90ac4b43 --- /dev/null +++ b/service/customerprofiles/snapshot/api_op_BatchGetCalculatedAttributeForProfile.go.snap @@ -0,0 +1,41 @@ +BatchGetCalculatedAttributeForProfile + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/customerprofiles/snapshot/api_op_BatchGetProfile.go.snap b/service/customerprofiles/snapshot/api_op_BatchGetProfile.go.snap new file mode 100644 index 00000000000..9b7b7b2110c --- /dev/null +++ b/service/customerprofiles/snapshot/api_op_BatchGetProfile.go.snap @@ -0,0 +1,41 @@ +BatchGetProfile + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/customerprofiles/snapshot/api_op_CreateSegmentDefinition.go.snap b/service/customerprofiles/snapshot/api_op_CreateSegmentDefinition.go.snap new file mode 100644 index 00000000000..a5c1cf2e4b2 --- /dev/null +++ b/service/customerprofiles/snapshot/api_op_CreateSegmentDefinition.go.snap @@ -0,0 +1,41 @@ +CreateSegmentDefinition + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/customerprofiles/snapshot/api_op_CreateSegmentEstimate.go.snap b/service/customerprofiles/snapshot/api_op_CreateSegmentEstimate.go.snap new file mode 100644 index 00000000000..d46bb8df7d6 --- /dev/null +++ b/service/customerprofiles/snapshot/api_op_CreateSegmentEstimate.go.snap @@ -0,0 +1,41 @@ +CreateSegmentEstimate + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/customerprofiles/snapshot/api_op_CreateSegmentSnapshot.go.snap b/service/customerprofiles/snapshot/api_op_CreateSegmentSnapshot.go.snap new file mode 100644 index 00000000000..755cb6a479a --- /dev/null +++ b/service/customerprofiles/snapshot/api_op_CreateSegmentSnapshot.go.snap @@ -0,0 +1,41 @@ +CreateSegmentSnapshot + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/customerprofiles/snapshot/api_op_DeleteSegmentDefinition.go.snap b/service/customerprofiles/snapshot/api_op_DeleteSegmentDefinition.go.snap new file mode 100644 index 00000000000..47241bf678d --- /dev/null +++ b/service/customerprofiles/snapshot/api_op_DeleteSegmentDefinition.go.snap @@ -0,0 +1,41 @@ +DeleteSegmentDefinition + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/customerprofiles/snapshot/api_op_GetSegmentDefinition.go.snap b/service/customerprofiles/snapshot/api_op_GetSegmentDefinition.go.snap new file mode 100644 index 00000000000..aa296b31483 --- /dev/null +++ b/service/customerprofiles/snapshot/api_op_GetSegmentDefinition.go.snap @@ -0,0 +1,41 @@ +GetSegmentDefinition + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/customerprofiles/snapshot/api_op_GetSegmentEstimate.go.snap b/service/customerprofiles/snapshot/api_op_GetSegmentEstimate.go.snap new file mode 100644 index 00000000000..692caea11c9 --- /dev/null +++ b/service/customerprofiles/snapshot/api_op_GetSegmentEstimate.go.snap @@ -0,0 +1,41 @@ +GetSegmentEstimate + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/customerprofiles/snapshot/api_op_GetSegmentMembership.go.snap b/service/customerprofiles/snapshot/api_op_GetSegmentMembership.go.snap new file mode 100644 index 00000000000..c2a83c6f66e --- /dev/null +++ b/service/customerprofiles/snapshot/api_op_GetSegmentMembership.go.snap @@ -0,0 +1,41 @@ +GetSegmentMembership + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/customerprofiles/snapshot/api_op_GetSegmentSnapshot.go.snap b/service/customerprofiles/snapshot/api_op_GetSegmentSnapshot.go.snap new file mode 100644 index 00000000000..b88363b10e8 --- /dev/null +++ b/service/customerprofiles/snapshot/api_op_GetSegmentSnapshot.go.snap @@ -0,0 +1,41 @@ +GetSegmentSnapshot + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/customerprofiles/snapshot/api_op_ListObjectTypeAttributes.go.snap b/service/customerprofiles/snapshot/api_op_ListObjectTypeAttributes.go.snap new file mode 100644 index 00000000000..4e8c7798f05 --- /dev/null +++ b/service/customerprofiles/snapshot/api_op_ListObjectTypeAttributes.go.snap @@ -0,0 +1,41 @@ +ListObjectTypeAttributes + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/customerprofiles/snapshot/api_op_ListProfileAttributeValues.go.snap b/service/customerprofiles/snapshot/api_op_ListProfileAttributeValues.go.snap new file mode 100644 index 00000000000..9d7d6ed33ae --- /dev/null +++ b/service/customerprofiles/snapshot/api_op_ListProfileAttributeValues.go.snap @@ -0,0 +1,41 @@ +ListProfileAttributeValues + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/customerprofiles/snapshot/api_op_ListSegmentDefinitions.go.snap b/service/customerprofiles/snapshot/api_op_ListSegmentDefinitions.go.snap new file mode 100644 index 00000000000..58008f6bb3c --- /dev/null +++ b/service/customerprofiles/snapshot/api_op_ListSegmentDefinitions.go.snap @@ -0,0 +1,41 @@ +ListSegmentDefinitions + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/customerprofiles/snapshot_test.go b/service/customerprofiles/snapshot_test.go index c01d00e1b61..bc3ed722a63 100644 --- a/service/customerprofiles/snapshot_test.go +++ b/service/customerprofiles/snapshot_test.go @@ -74,6 +74,30 @@ func TestCheckSnapshot_AddProfileKey(t *testing.T) { } } +func TestCheckSnapshot_BatchGetCalculatedAttributeForProfile(t *testing.T) { + svc := New(Options{}) + _, err := svc.BatchGetCalculatedAttributeForProfile(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "BatchGetCalculatedAttributeForProfile") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestCheckSnapshot_BatchGetProfile(t *testing.T) { + svc := New(Options{}) + _, err := svc.BatchGetProfile(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "BatchGetProfile") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_CreateCalculatedAttributeDefinition(t *testing.T) { svc := New(Options{}) _, err := svc.CreateCalculatedAttributeDefinition(context.Background(), nil, func(o *Options) { @@ -134,6 +158,42 @@ func TestCheckSnapshot_CreateProfile(t *testing.T) { } } +func TestCheckSnapshot_CreateSegmentDefinition(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateSegmentDefinition(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "CreateSegmentDefinition") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestCheckSnapshot_CreateSegmentEstimate(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateSegmentEstimate(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "CreateSegmentEstimate") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestCheckSnapshot_CreateSegmentSnapshot(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateSegmentSnapshot(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "CreateSegmentSnapshot") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_DeleteCalculatedAttributeDefinition(t *testing.T) { svc := New(Options{}) _, err := svc.DeleteCalculatedAttributeDefinition(context.Background(), nil, func(o *Options) { @@ -230,6 +290,18 @@ func TestCheckSnapshot_DeleteProfileObjectType(t *testing.T) { } } +func TestCheckSnapshot_DeleteSegmentDefinition(t *testing.T) { + svc := New(Options{}) + _, err := svc.DeleteSegmentDefinition(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "DeleteSegmentDefinition") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_DeleteWorkflow(t *testing.T) { svc := New(Options{}) _, err := svc.DeleteWorkflow(context.Background(), nil, func(o *Options) { @@ -374,6 +446,54 @@ func TestCheckSnapshot_GetProfileObjectTypeTemplate(t *testing.T) { } } +func TestCheckSnapshot_GetSegmentDefinition(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetSegmentDefinition(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "GetSegmentDefinition") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestCheckSnapshot_GetSegmentEstimate(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetSegmentEstimate(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "GetSegmentEstimate") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestCheckSnapshot_GetSegmentMembership(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetSegmentMembership(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "GetSegmentMembership") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestCheckSnapshot_GetSegmentSnapshot(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetSegmentSnapshot(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "GetSegmentSnapshot") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_GetSimilarProfiles(t *testing.T) { svc := New(Options{}) _, err := svc.GetSimilarProfiles(context.Background(), nil, func(o *Options) { @@ -494,6 +614,30 @@ func TestCheckSnapshot_ListIntegrations(t *testing.T) { } } +func TestCheckSnapshot_ListObjectTypeAttributes(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListObjectTypeAttributes(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "ListObjectTypeAttributes") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestCheckSnapshot_ListProfileAttributeValues(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListProfileAttributeValues(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "ListProfileAttributeValues") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_ListProfileObjects(t *testing.T) { svc := New(Options{}) _, err := svc.ListProfileObjects(context.Background(), nil, func(o *Options) { @@ -542,6 +686,18 @@ func TestCheckSnapshot_ListRuleBasedMatches(t *testing.T) { } } +func TestCheckSnapshot_ListSegmentDefinitions(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListSegmentDefinitions(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "ListSegmentDefinitions") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_ListTagsForResource(t *testing.T) { svc := New(Options{}) _, err := svc.ListTagsForResource(context.Background(), nil, func(o *Options) { @@ -697,6 +853,30 @@ func TestUpdateSnapshot_AddProfileKey(t *testing.T) { } } +func TestUpdateSnapshot_BatchGetCalculatedAttributeForProfile(t *testing.T) { + svc := New(Options{}) + _, err := svc.BatchGetCalculatedAttributeForProfile(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "BatchGetCalculatedAttributeForProfile") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestUpdateSnapshot_BatchGetProfile(t *testing.T) { + svc := New(Options{}) + _, err := svc.BatchGetProfile(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "BatchGetProfile") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_CreateCalculatedAttributeDefinition(t *testing.T) { svc := New(Options{}) _, err := svc.CreateCalculatedAttributeDefinition(context.Background(), nil, func(o *Options) { @@ -757,6 +937,42 @@ func TestUpdateSnapshot_CreateProfile(t *testing.T) { } } +func TestUpdateSnapshot_CreateSegmentDefinition(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateSegmentDefinition(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "CreateSegmentDefinition") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestUpdateSnapshot_CreateSegmentEstimate(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateSegmentEstimate(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "CreateSegmentEstimate") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestUpdateSnapshot_CreateSegmentSnapshot(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateSegmentSnapshot(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "CreateSegmentSnapshot") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_DeleteCalculatedAttributeDefinition(t *testing.T) { svc := New(Options{}) _, err := svc.DeleteCalculatedAttributeDefinition(context.Background(), nil, func(o *Options) { @@ -853,6 +1069,18 @@ func TestUpdateSnapshot_DeleteProfileObjectType(t *testing.T) { } } +func TestUpdateSnapshot_DeleteSegmentDefinition(t *testing.T) { + svc := New(Options{}) + _, err := svc.DeleteSegmentDefinition(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "DeleteSegmentDefinition") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_DeleteWorkflow(t *testing.T) { svc := New(Options{}) _, err := svc.DeleteWorkflow(context.Background(), nil, func(o *Options) { @@ -997,6 +1225,54 @@ func TestUpdateSnapshot_GetProfileObjectTypeTemplate(t *testing.T) { } } +func TestUpdateSnapshot_GetSegmentDefinition(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetSegmentDefinition(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "GetSegmentDefinition") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestUpdateSnapshot_GetSegmentEstimate(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetSegmentEstimate(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "GetSegmentEstimate") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestUpdateSnapshot_GetSegmentMembership(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetSegmentMembership(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "GetSegmentMembership") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestUpdateSnapshot_GetSegmentSnapshot(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetSegmentSnapshot(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "GetSegmentSnapshot") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_GetSimilarProfiles(t *testing.T) { svc := New(Options{}) _, err := svc.GetSimilarProfiles(context.Background(), nil, func(o *Options) { @@ -1117,6 +1393,30 @@ func TestUpdateSnapshot_ListIntegrations(t *testing.T) { } } +func TestUpdateSnapshot_ListObjectTypeAttributes(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListObjectTypeAttributes(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "ListObjectTypeAttributes") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestUpdateSnapshot_ListProfileAttributeValues(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListProfileAttributeValues(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "ListProfileAttributeValues") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_ListProfileObjects(t *testing.T) { svc := New(Options{}) _, err := svc.ListProfileObjects(context.Background(), nil, func(o *Options) { @@ -1165,6 +1465,18 @@ func TestUpdateSnapshot_ListRuleBasedMatches(t *testing.T) { } } +func TestUpdateSnapshot_ListSegmentDefinitions(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListSegmentDefinitions(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "ListSegmentDefinitions") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_ListTagsForResource(t *testing.T) { svc := New(Options{}) _, err := svc.ListTagsForResource(context.Background(), nil, func(o *Options) { diff --git a/service/customerprofiles/types/enums.go b/service/customerprofiles/types/enums.go index 9f7347afae6..fb3e6d5b12b 100644 --- a/service/customerprofiles/types/enums.go +++ b/service/customerprofiles/types/enums.go @@ -2,6 +2,51 @@ package types +type AttributeDimensionType string + +// Enum values for AttributeDimensionType +const ( + AttributeDimensionTypeInclusive AttributeDimensionType = "INCLUSIVE" + AttributeDimensionTypeExclusive AttributeDimensionType = "EXCLUSIVE" + AttributeDimensionTypeContains AttributeDimensionType = "CONTAINS" + AttributeDimensionTypeBeginsWith AttributeDimensionType = "BEGINS_WITH" + AttributeDimensionTypeEndsWith AttributeDimensionType = "ENDS_WITH" + AttributeDimensionTypeBefore AttributeDimensionType = "BEFORE" + AttributeDimensionTypeAfter AttributeDimensionType = "AFTER" + AttributeDimensionTypeBetween AttributeDimensionType = "BETWEEN" + AttributeDimensionTypeNotBetween AttributeDimensionType = "NOT_BETWEEN" + AttributeDimensionTypeOn AttributeDimensionType = "ON" + AttributeDimensionTypeGreaterThan AttributeDimensionType = "GREATER_THAN" + AttributeDimensionTypeLessThan AttributeDimensionType = "LESS_THAN" + AttributeDimensionTypeGreaterThanOrEqual AttributeDimensionType = "GREATER_THAN_OR_EQUAL" + AttributeDimensionTypeLessThanOrEqual AttributeDimensionType = "LESS_THAN_OR_EQUAL" + AttributeDimensionTypeEqual AttributeDimensionType = "EQUAL" +) + +// Values returns all known values for AttributeDimensionType. 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 (AttributeDimensionType) Values() []AttributeDimensionType { + return []AttributeDimensionType{ + "INCLUSIVE", + "EXCLUSIVE", + "CONTAINS", + "BEGINS_WITH", + "ENDS_WITH", + "BEFORE", + "AFTER", + "BETWEEN", + "NOT_BETWEEN", + "ON", + "GREATER_THAN", + "LESS_THAN", + "GREATER_THAN_OR_EQUAL", + "LESS_THAN_OR_EQUAL", + "EQUAL", + } +} + type AttributeMatchingModel string // Enum values for AttributeMatchingModel @@ -40,6 +85,27 @@ func (ConflictResolvingModel) Values() []ConflictResolvingModel { } } +type DataFormat string + +// Enum values for DataFormat +const ( + DataFormatCsv DataFormat = "CSV" + DataFormatJsonl DataFormat = "JSONL" + DataFormatOrc DataFormat = "ORC" +) + +// Values returns all known values for DataFormat. 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 (DataFormat) Values() []DataFormat { + return []DataFormat{ + "CSV", + "JSONL", + "ORC", + } +} + type DataPullMode string // Enum values for DataPullMode @@ -59,6 +125,52 @@ func (DataPullMode) Values() []DataPullMode { } } +type DateDimensionType string + +// Enum values for DateDimensionType +const ( + DateDimensionTypeBefore DateDimensionType = "BEFORE" + DateDimensionTypeAfter DateDimensionType = "AFTER" + DateDimensionTypeBetween DateDimensionType = "BETWEEN" + DateDimensionTypeNotBetween DateDimensionType = "NOT_BETWEEN" + DateDimensionTypeOn DateDimensionType = "ON" +) + +// Values returns all known values for DateDimensionType. 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 (DateDimensionType) Values() []DateDimensionType { + return []DateDimensionType{ + "BEFORE", + "AFTER", + "BETWEEN", + "NOT_BETWEEN", + "ON", + } +} + +type EstimateStatus string + +// Enum values for EstimateStatus +const ( + EstimateStatusRunning EstimateStatus = "RUNNING" + EstimateStatusSucceeded EstimateStatus = "SUCCEEDED" + EstimateStatusFailed EstimateStatus = "FAILED" +) + +// Values returns all known values for EstimateStatus. 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 (EstimateStatus) Values() []EstimateStatus { + return []EstimateStatus{ + "RUNNING", + "SUCCEEDED", + "FAILED", + } +} + type EventStreamDestinationStatus string // Enum values for EventStreamDestinationStatus @@ -123,6 +235,51 @@ func (FieldContentType) Values() []FieldContentType { } } +type FilterDimensionType string + +// Enum values for FilterDimensionType +const ( + FilterDimensionTypeInclusive FilterDimensionType = "INCLUSIVE" + FilterDimensionTypeExclusive FilterDimensionType = "EXCLUSIVE" + FilterDimensionTypeContains FilterDimensionType = "CONTAINS" + FilterDimensionTypeBeginsWith FilterDimensionType = "BEGINS_WITH" + FilterDimensionTypeEndsWith FilterDimensionType = "ENDS_WITH" + FilterDimensionTypeBefore FilterDimensionType = "BEFORE" + FilterDimensionTypeAfter FilterDimensionType = "AFTER" + FilterDimensionTypeBetween FilterDimensionType = "BETWEEN" + FilterDimensionTypeNotBetween FilterDimensionType = "NOT_BETWEEN" + FilterDimensionTypeOn FilterDimensionType = "ON" + FilterDimensionTypeGreaterThan FilterDimensionType = "GREATER_THAN" + FilterDimensionTypeLessThan FilterDimensionType = "LESS_THAN" + FilterDimensionTypeGreaterThanOrEqual FilterDimensionType = "GREATER_THAN_OR_EQUAL" + FilterDimensionTypeLessThanOrEqual FilterDimensionType = "LESS_THAN_OR_EQUAL" + FilterDimensionTypeEqual FilterDimensionType = "EQUAL" +) + +// Values returns all known values for FilterDimensionType. 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 (FilterDimensionType) Values() []FilterDimensionType { + return []FilterDimensionType{ + "INCLUSIVE", + "EXCLUSIVE", + "CONTAINS", + "BEGINS_WITH", + "ENDS_WITH", + "BEFORE", + "AFTER", + "BETWEEN", + "NOT_BETWEEN", + "ON", + "GREATER_THAN", + "LESS_THAN", + "GREATER_THAN_OR_EQUAL", + "LESS_THAN_OR_EQUAL", + "EQUAL", + } +} + type Gender string // Enum values for Gender @@ -173,6 +330,48 @@ func (IdentityResolutionJobStatus) Values() []IdentityResolutionJobStatus { } } +type Include string + +// Enum values for Include +const ( + IncludeAll Include = "ALL" + IncludeAny Include = "ANY" + IncludeNone Include = "NONE" +) + +// Values returns all known values for Include. 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 (Include) Values() []Include { + return []Include{ + "ALL", + "ANY", + "NONE", + } +} + +type IncludeOptions string + +// Enum values for IncludeOptions +const ( + IncludeOptionsAll IncludeOptions = "ALL" + IncludeOptionsAny IncludeOptions = "ANY" + IncludeOptionsNone IncludeOptions = "NONE" +) + +// Values returns all known values for IncludeOptions. 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 (IncludeOptions) Values() []IncludeOptions { + return []IncludeOptions{ + "ALL", + "ANY", + "NONE", + } +} + type JobScheduleDayOfTheWeek string // Enum values for JobScheduleDayOfTheWeek @@ -374,6 +573,42 @@ func (PartyType) Values() []PartyType { } } +type QueryResult string + +// Enum values for QueryResult +const ( + QueryResultPresent QueryResult = "PRESENT" + QueryResultAbsent QueryResult = "ABSENT" +) + +// Values returns all known values for QueryResult. 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 (QueryResult) Values() []QueryResult { + return []QueryResult{ + "PRESENT", + "ABSENT", + } +} + +type RangeUnit string + +// Enum values for RangeUnit +const ( + RangeUnitDays RangeUnit = "DAYS" +) + +// Values returns all known values for RangeUnit. 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 (RangeUnit) Values() []RangeUnit { + return []RangeUnit{ + "DAYS", + } +} + type RuleBasedMatchingStatus string // Enum values for RuleBasedMatchingStatus @@ -507,6 +742,27 @@ func (SalesforceConnectorOperator) Values() []SalesforceConnectorOperator { } } +type SegmentSnapshotStatus string + +// Enum values for SegmentSnapshotStatus +const ( + SegmentSnapshotStatusCompleted SegmentSnapshotStatus = "COMPLETED" + SegmentSnapshotStatusInProgress SegmentSnapshotStatus = "IN_PROGRESS" + SegmentSnapshotStatusFailed SegmentSnapshotStatus = "FAILED" +) + +// Values returns all known values for SegmentSnapshotStatus. 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 (SegmentSnapshotStatus) Values() []SegmentSnapshotStatus { + return []SegmentSnapshotStatus{ + "COMPLETED", + "IN_PROGRESS", + "FAILED", + } +} + type ServiceNowConnectorOperator string // Enum values for ServiceNowConnectorOperator @@ -593,14 +849,15 @@ type StandardIdentifier string // Enum values for StandardIdentifier const ( - StandardIdentifierProfile StandardIdentifier = "PROFILE" - StandardIdentifierAsset StandardIdentifier = "ASSET" - StandardIdentifierCase StandardIdentifier = "CASE" - StandardIdentifierUnique StandardIdentifier = "UNIQUE" - StandardIdentifierSecondary StandardIdentifier = "SECONDARY" - StandardIdentifierLookupOnly StandardIdentifier = "LOOKUP_ONLY" - StandardIdentifierNewOnly StandardIdentifier = "NEW_ONLY" - StandardIdentifierOrder StandardIdentifier = "ORDER" + StandardIdentifierProfile StandardIdentifier = "PROFILE" + StandardIdentifierAsset StandardIdentifier = "ASSET" + StandardIdentifierCase StandardIdentifier = "CASE" + StandardIdentifierOrder StandardIdentifier = "ORDER" + StandardIdentifierCommunicationRecord StandardIdentifier = "COMMUNICATION_RECORD" + StandardIdentifierUnique StandardIdentifier = "UNIQUE" + StandardIdentifierSecondary StandardIdentifier = "SECONDARY" + StandardIdentifierLookupOnly StandardIdentifier = "LOOKUP_ONLY" + StandardIdentifierNewOnly StandardIdentifier = "NEW_ONLY" ) // Values returns all known values for StandardIdentifier. Note that this can be @@ -612,11 +869,12 @@ func (StandardIdentifier) Values() []StandardIdentifier { "PROFILE", "ASSET", "CASE", + "ORDER", + "COMMUNICATION_RECORD", "UNIQUE", "SECONDARY", "LOOKUP_ONLY", "NEW_ONLY", - "ORDER", } } @@ -680,6 +938,31 @@ func (Status) Values() []Status { } } +type StringDimensionType string + +// Enum values for StringDimensionType +const ( + StringDimensionTypeInclusive StringDimensionType = "INCLUSIVE" + StringDimensionTypeExclusive StringDimensionType = "EXCLUSIVE" + StringDimensionTypeContains StringDimensionType = "CONTAINS" + StringDimensionTypeBeginsWith StringDimensionType = "BEGINS_WITH" + StringDimensionTypeEndsWith StringDimensionType = "ENDS_WITH" +) + +// Values returns all known values for StringDimensionType. 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 (StringDimensionType) Values() []StringDimensionType { + return []StringDimensionType{ + "INCLUSIVE", + "EXCLUSIVE", + "CONTAINS", + "BEGINS_WITH", + "ENDS_WITH", + } +} + type TaskType string // Enum values for TaskType @@ -730,6 +1013,27 @@ func (TriggerType) Values() []TriggerType { } } +type Type string + +// Enum values for Type +const ( + TypeAll Type = "ALL" + TypeAny Type = "ANY" + TypeNone Type = "NONE" +) + +// 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{ + "ALL", + "ANY", + "NONE", + } +} + type Unit string // Enum values for Unit diff --git a/service/customerprofiles/types/types.go b/service/customerprofiles/types/types.go index 0dc53831bee..7d881c3492a 100644 --- a/service/customerprofiles/types/types.go +++ b/service/customerprofiles/types/types.go @@ -65,6 +65,30 @@ type Address struct { noSmithyDocumentSerde } +// Object that segments on Customer Profile's address object. +type AddressDimension struct { + + // The city belonging to the address. + City *ProfileDimension + + // The country belonging to the address. + Country *ProfileDimension + + // The county belonging to the address. + County *ProfileDimension + + // The postal code belonging to the address. + PostalCode *ProfileDimension + + // The province belonging to the address. + Province *ProfileDimension + + // The state belonging to the address. + State *ProfileDimension + + noSmithyDocumentSerde +} + // Details for workflow of type APPFLOW_INTEGRATION . type AppflowIntegration struct { @@ -193,6 +217,22 @@ type AttributeDetails struct { noSmithyDocumentSerde } +// Object that segments on various Customer Profile's fields. +type AttributeDimension struct { + + // The action to segment with. + // + // This member is required. + DimensionType AttributeDimensionType + + // The values to apply the DimensionType on. + // + // This member is required. + Values []string + + noSmithyDocumentSerde +} + // The details of a single attribute item specified in the mathematical expression. type AttributeItem struct { @@ -269,6 +309,15 @@ type AttributeTypesSelector struct { noSmithyDocumentSerde } +// List containing the values for the given attribute. +type AttributeValueItem struct { + + // An individual value belonging to the given attribute. + Value *string + + noSmithyDocumentSerde +} + // Configuration settings for how to perform the auto-merging of profiles. type AutoMerging struct { @@ -314,6 +363,99 @@ type Batch struct { noSmithyDocumentSerde } +// Error object describing why a specific profile and calculated attribute failed. +type BatchGetCalculatedAttributeForProfileError struct { + + // Status code for why a specific profile and calculated attribute failed. + // + // This member is required. + Code *string + + // Message describing why a specific profile and calculated attribute failed. + // + // This member is required. + Message *string + + // The profile id that failed. + // + // This member is required. + ProfileId *string + + noSmithyDocumentSerde +} + +// Error object describing why a specific profile failed. +type BatchGetProfileError struct { + + // Status code for why a specific profile failed. + // + // This member is required. + Code *string + + // Message describing why a specific profile failed. + // + // This member is required. + Message *string + + // The profile id that failed. + // + // This member is required. + ProfileId *string + + noSmithyDocumentSerde +} + +// Object that segments on Customer Profile's Calculated Attributes. +type CalculatedAttributeDimension struct { + + // The action to segment with. + // + // This member is required. + DimensionType AttributeDimensionType + + // The values to apply the DimensionType with. + // + // This member is required. + Values []string + + // Applies the given condition over the initial Calculated Attribute's definition. + ConditionOverrides *ConditionOverrides + + noSmithyDocumentSerde +} + +// The object containing the values of a single calculated attribute value. +type CalculatedAttributeValue struct { + + // The unique name of the calculated attribute. + CalculatedAttributeName *string + + // The display name of the calculated attribute. + DisplayName *string + + // Indicates whether the calculated attribute's value is based on partial data. If + // the data is partial, it is set to true. + IsDataPartial *string + + // The profile id belonging to this calculated attribute value. + ProfileId *string + + // The value of the calculated attribute. + Value *string + + noSmithyDocumentSerde +} + +// An object to override the original condition block of a calculated attribute. +type ConditionOverrides struct { + + // The relative time period over which data is included in the aggregation for + // this override. + Range *RangeOverride + + noSmithyDocumentSerde +} + // The conditions including range, object count, and threshold for the calculated // attribute. type Conditions struct { @@ -386,6 +528,22 @@ type Consolidation struct { noSmithyDocumentSerde } +// Object that segments on various Customer Profile's date fields. +type DateDimension struct { + + // The action to segment with. + // + // This member is required. + DimensionType DateDimensionType + + // The values to apply the DimensionType on. + // + // This member is required. + Values []string + + noSmithyDocumentSerde +} + // Summary information about the Kinesis data stream type DestinationSummary struct { @@ -421,6 +579,34 @@ type DetectedProfileObjectType struct { noSmithyDocumentSerde } +// Object that holds what profile and calculated attributes to segment on. +// +// The following types satisfy this interface: +// +// DimensionMemberCalculatedAttributes +// DimensionMemberProfileAttributes +type Dimension interface { + isDimension() +} + +// Object that holds the calculated attributes to segment on. +type DimensionMemberCalculatedAttributes struct { + Value map[string]CalculatedAttributeDimension + + noSmithyDocumentSerde +} + +func (*DimensionMemberCalculatedAttributes) isDimension() {} + +// Object that holds the profile attributes to segment on. +type DimensionMemberProfileAttributes struct { + Value ProfileAttributes + + noSmithyDocumentSerde +} + +func (*DimensionMemberProfileAttributes) isDimension() {} + // Usage-specific statistics about the domain. type DomainStats struct { @@ -527,6 +713,23 @@ type ExportingLocation struct { noSmithyDocumentSerde } +// Object that segments on various Customer profile's fields that are larger than +// normal. +type ExtraLengthValueProfileDimension struct { + + // The action to segment with. + // + // This member is required. + DimensionType StringDimensionType + + // The values to apply the DimensionType on. + // + // This member is required. + Values []string + + noSmithyDocumentSerde +} + // A duplicate customer profile that is to be merged into a main profile. type FieldSourceProfileIds struct { @@ -596,6 +799,67 @@ type FieldSourceProfileIds struct { noSmithyDocumentSerde } +// Defines how to filter the objects coming in for calculated attributes. +type Filter struct { + + // Holds the list of Filter groups within the Filter definition. + // + // This member is required. + Groups []FilterGroup + + // Define whether to include or exclude objects for Calculated Attributed + // calculation that fit the filter groups criteria. + // + // This member is required. + Include Include + + noSmithyDocumentSerde +} + +// Object that defines how to filter the incoming objects for the calculated +// attribute. +type FilterAttributeDimension struct { + + // The action to filter with. + // + // This member is required. + DimensionType FilterDimensionType + + // The values to apply the DimensionType on. + // + // This member is required. + Values []string + + noSmithyDocumentSerde +} + +// Contains the map of attribute names to attribute dimensions. +type FilterDimension struct { + + // Is the attribute within the FilterDimension map + // + // This member is required. + Attributes map[string]FilterAttributeDimension + + noSmithyDocumentSerde +} + +// Object that holds the dimensions to filter on. +type FilterGroup struct { + + // Object that holds the attributes to filter on. + // + // This member is required. + Dimensions []FilterDimension + + // The type of logical relationship between the dimensions of the Filter group. + // + // This member is required. + Type Type + + noSmithyDocumentSerde +} + // The configurations that control how Customer Profiles retrieves data from the // source, Amazon AppFlow. Customer Profiles uses this information to create an // AppFlow flow on behalf of customers. @@ -651,6 +915,24 @@ type FoundByKeyValue struct { noSmithyDocumentSerde } +// Contains dimensions that determine what to segment on. +type Group struct { + + // Defines the attributes to segment on. + Dimensions []Dimension + + // Defines the starting source of data. + SourceSegments []SourceSegment + + // Defines how to interact with the source data. + SourceType IncludeOptions + + // Defines how to interact with the profiles found in the current filtering. + Type IncludeOptions + + noSmithyDocumentSerde +} + // Information about the Identity Resolution Job. type IdentityResolutionJob struct { @@ -872,6 +1154,22 @@ type ListIntegrationItem struct { noSmithyDocumentSerde } +// Item that contains the attribute and when it was last updated. +type ListObjectTypeAttributeItem struct { + + // Name of the attribute. + // + // This member is required. + AttributeName *string + + // When the attribute was last updated. + // + // This member is required. + LastUpdatedAt *time.Time + + noSmithyDocumentSerde +} + // A ProfileObject in a list of ProfileObjects. type ListProfileObjectsItem struct { @@ -1259,6 +1557,129 @@ type Profile struct { noSmithyDocumentSerde } +// The object used to segment on attributes within the customer profile. +type ProfileAttributes struct { + + // A field to describe values to segment on within account number. + AccountNumber *ProfileDimension + + // A field to describe values to segment on within additional information. + AdditionalInformation *ExtraLengthValueProfileDimension + + // A field to describe values to segment on within address. + Address *AddressDimension + + // A field to describe values to segment on within attributes. + Attributes map[string]AttributeDimension + + // A field to describe values to segment on within billing address. + BillingAddress *AddressDimension + + // A field to describe values to segment on within birthDate. + BirthDate *DateDimension + + // A field to describe values to segment on within business email address. + BusinessEmailAddress *ProfileDimension + + // A field to describe values to segment on within business name. + BusinessName *ProfileDimension + + // A field to describe values to segment on within business phone number. + BusinessPhoneNumber *ProfileDimension + + // A field to describe values to segment on within email address. + EmailAddress *ProfileDimension + + // A field to describe values to segment on within first name. + FirstName *ProfileDimension + + // A field to describe values to segment on within genderString. + GenderString *ProfileDimension + + // A field to describe values to segment on within home phone number. + HomePhoneNumber *ProfileDimension + + // A field to describe values to segment on within last name. + LastName *ProfileDimension + + // A field to describe values to segment on within mailing address. + MailingAddress *AddressDimension + + // A field to describe values to segment on within middle name. + MiddleName *ProfileDimension + + // A field to describe values to segment on within mobile phone number. + MobilePhoneNumber *ProfileDimension + + // A field to describe values to segment on within partyTypeString. + PartyTypeString *ProfileDimension + + // A field to describe values to segment on within personal email address. + PersonalEmailAddress *ProfileDimension + + // A field to describe values to segment on within phone number. + PhoneNumber *ProfileDimension + + // A field to describe values to segment on within shipping address. + ShippingAddress *AddressDimension + + noSmithyDocumentSerde +} + +// Object to hold the dimensions of a profile's fields to segment on. +type ProfileDimension struct { + + // The action to segment on. + // + // This member is required. + DimensionType StringDimensionType + + // The values to apply the DimensionType on. + // + // This member is required. + Values []string + + noSmithyDocumentSerde +} + +// Object that holds failures for membership. +type ProfileQueryFailures struct { + + // A message describing the failure. + // + // This member is required. + Message *string + + // The profile id the failure belongs to. + // + // This member is required. + ProfileId *string + + // The status describing the failure. + Status *int32 + + noSmithyDocumentSerde +} + +// Object that holds the results for membership. +type ProfileQueryResult struct { + + // The profile id the result belongs to. + // + // This member is required. + ProfileId *string + + // Describes whether the profile was absent or present in the segment. + // + // This member is required. + QueryResult QueryResult + + // The standard profile of a customer. + Profile *Profile + + noSmithyDocumentSerde +} + // The relative time period over which data is included in the aggregation. type Range struct { @@ -1275,6 +1696,25 @@ type Range struct { noSmithyDocumentSerde } +// Overrides the original range on a calculated attribute definition. +type RangeOverride struct { + + // The start time of when to include objects. + // + // This member is required. + Start *int32 + + // The unit for start and end. + // + // This member is required. + Unit RangeUnit + + // The end time of when to include objects. + End int32 + + noSmithyDocumentSerde +} + // The request to enable the rule-based matching. type RuleBasedMatchingRequest struct { @@ -1471,6 +1911,55 @@ type ScheduledTriggerProperties struct { noSmithyDocumentSerde } +// Object holding the segment definition fields. +type SegmentDefinitionItem struct { + + // When the segment definition was created. + CreatedAt *time.Time + + // The description of the segment definition. + Description *string + + // Display name of the segment definition. + DisplayName *string + + // The arn of the segment definition. + SegmentDefinitionArn *string + + // Name of the segment definition. + SegmentDefinitionName *string + + // The tags belonging to the segment definition. + Tags map[string]string + + noSmithyDocumentSerde +} + +// Contains all groups of the segment definition. +type SegmentGroup struct { + + // Holds the list of groups within the segment definition. + Groups []Group + + // Defines whether to include or exclude the profiles that fit the segment + // criteria. + Include IncludeOptions + + noSmithyDocumentSerde +} + +// Contains all groups of the segment definition. +type SegmentGroupStructure struct { + + // Holds the list of groups within the segment definition. + Groups []Group + + // Define whether to include or exclude the profiles that fit the segment criteria. + Include IncludeOptions + + noSmithyDocumentSerde +} + // The properties that are applied when ServiceNow is being used as a source. type ServiceNowSourceProperties struct { @@ -1532,6 +2021,15 @@ type SourceFlowConfig struct { noSmithyDocumentSerde } +// The source segments to build off of. +type SourceSegment struct { + + // The unique name of the segment definition. + SegmentDefinitionName *string + + noSmithyDocumentSerde +} + // A class for modeling different type of tasks. Task implementation varies based // on the TaskType. type Task struct { @@ -1678,3 +2176,14 @@ type ZendeskSourceProperties struct { } 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) isDimension() {} diff --git a/service/customerprofiles/types/types_exported_test.go b/service/customerprofiles/types/types_exported_test.go new file mode 100644 index 00000000000..0af626777bd --- /dev/null +++ b/service/customerprofiles/types/types_exported_test.go @@ -0,0 +1,30 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types_test + +import ( + "fmt" + "github.com/aws/aws-sdk-go-v2/service/customerprofiles/types" +) + +func ExampleDimension_outputUsage() { + var union types.Dimension + // type switches can be used to check the union value + switch v := union.(type) { + case *types.DimensionMemberCalculatedAttributes: + _ = v.Value // Value is map[string]types.CalculatedAttributeDimension + + case *types.DimensionMemberProfileAttributes: + _ = v.Value // Value is types.ProfileAttributes + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ map[string]types.CalculatedAttributeDimension +var _ *types.ProfileAttributes diff --git a/service/customerprofiles/validators.go b/service/customerprofiles/validators.go index d8ee4a74640..2431e393762 100644 --- a/service/customerprofiles/validators.go +++ b/service/customerprofiles/validators.go @@ -30,6 +30,46 @@ func (m *validateOpAddProfileKey) HandleInitialize(ctx context.Context, in middl return next.HandleInitialize(ctx, in) } +type validateOpBatchGetCalculatedAttributeForProfile struct { +} + +func (*validateOpBatchGetCalculatedAttributeForProfile) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpBatchGetCalculatedAttributeForProfile) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*BatchGetCalculatedAttributeForProfileInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpBatchGetCalculatedAttributeForProfileInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpBatchGetProfile struct { +} + +func (*validateOpBatchGetProfile) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpBatchGetProfile) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*BatchGetProfileInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpBatchGetProfileInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateCalculatedAttributeDefinition struct { } @@ -130,6 +170,66 @@ func (m *validateOpCreateProfile) HandleInitialize(ctx context.Context, in middl return next.HandleInitialize(ctx, in) } +type validateOpCreateSegmentDefinition struct { +} + +func (*validateOpCreateSegmentDefinition) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateSegmentDefinition) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateSegmentDefinitionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateSegmentDefinitionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateSegmentEstimate struct { +} + +func (*validateOpCreateSegmentEstimate) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateSegmentEstimate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateSegmentEstimateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateSegmentEstimateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateSegmentSnapshot struct { +} + +func (*validateOpCreateSegmentSnapshot) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateSegmentSnapshot) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateSegmentSnapshotInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateSegmentSnapshotInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteCalculatedAttributeDefinition struct { } @@ -290,6 +390,26 @@ func (m *validateOpDeleteProfileObjectType) HandleInitialize(ctx context.Context return next.HandleInitialize(ctx, in) } +type validateOpDeleteSegmentDefinition struct { +} + +func (*validateOpDeleteSegmentDefinition) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteSegmentDefinition) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteSegmentDefinitionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteSegmentDefinitionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteWorkflow struct { } @@ -530,6 +650,86 @@ func (m *validateOpGetProfileObjectTypeTemplate) HandleInitialize(ctx context.Co return next.HandleInitialize(ctx, in) } +type validateOpGetSegmentDefinition struct { +} + +func (*validateOpGetSegmentDefinition) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetSegmentDefinition) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetSegmentDefinitionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetSegmentDefinitionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetSegmentEstimate struct { +} + +func (*validateOpGetSegmentEstimate) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetSegmentEstimate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetSegmentEstimateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetSegmentEstimateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetSegmentMembership struct { +} + +func (*validateOpGetSegmentMembership) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetSegmentMembership) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetSegmentMembershipInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetSegmentMembershipInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetSegmentSnapshot struct { +} + +func (*validateOpGetSegmentSnapshot) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetSegmentSnapshot) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetSegmentSnapshotInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetSegmentSnapshotInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetSimilarProfiles struct { } @@ -710,6 +910,46 @@ func (m *validateOpListIntegrations) HandleInitialize(ctx context.Context, in mi return next.HandleInitialize(ctx, in) } +type validateOpListObjectTypeAttributes struct { +} + +func (*validateOpListObjectTypeAttributes) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListObjectTypeAttributes) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListObjectTypeAttributesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListObjectTypeAttributesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpListProfileAttributeValues struct { +} + +func (*validateOpListProfileAttributeValues) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListProfileAttributeValues) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListProfileAttributeValuesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListProfileAttributeValuesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListProfileObjects struct { } @@ -770,6 +1010,26 @@ func (m *validateOpListRuleBasedMatches) HandleInitialize(ctx context.Context, i return next.HandleInitialize(ctx, in) } +type validateOpListSegmentDefinitions struct { +} + +func (*validateOpListSegmentDefinitions) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListSegmentDefinitions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListSegmentDefinitionsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListSegmentDefinitionsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListTagsForResource struct { } @@ -1014,6 +1274,14 @@ func addOpAddProfileKeyValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpAddProfileKey{}, middleware.After) } +func addOpBatchGetCalculatedAttributeForProfileValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpBatchGetCalculatedAttributeForProfile{}, middleware.After) +} + +func addOpBatchGetProfileValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpBatchGetProfile{}, middleware.After) +} + func addOpCreateCalculatedAttributeDefinitionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateCalculatedAttributeDefinition{}, middleware.After) } @@ -1034,6 +1302,18 @@ func addOpCreateProfileValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateProfile{}, middleware.After) } +func addOpCreateSegmentDefinitionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateSegmentDefinition{}, middleware.After) +} + +func addOpCreateSegmentEstimateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateSegmentEstimate{}, middleware.After) +} + +func addOpCreateSegmentSnapshotValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateSegmentSnapshot{}, middleware.After) +} + func addOpDeleteCalculatedAttributeDefinitionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteCalculatedAttributeDefinition{}, middleware.After) } @@ -1066,6 +1346,10 @@ func addOpDeleteProfileObjectTypeValidationMiddleware(stack *middleware.Stack) e return stack.Initialize.Add(&validateOpDeleteProfileObjectType{}, middleware.After) } +func addOpDeleteSegmentDefinitionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteSegmentDefinition{}, middleware.After) +} + func addOpDeleteWorkflowValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteWorkflow{}, middleware.After) } @@ -1114,6 +1398,22 @@ func addOpGetProfileObjectTypeTemplateValidationMiddleware(stack *middleware.Sta return stack.Initialize.Add(&validateOpGetProfileObjectTypeTemplate{}, middleware.After) } +func addOpGetSegmentDefinitionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetSegmentDefinition{}, middleware.After) +} + +func addOpGetSegmentEstimateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetSegmentEstimate{}, middleware.After) +} + +func addOpGetSegmentMembershipValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetSegmentMembership{}, middleware.After) +} + +func addOpGetSegmentSnapshotValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetSegmentSnapshot{}, middleware.After) +} + func addOpGetSimilarProfilesValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetSimilarProfiles{}, middleware.After) } @@ -1150,6 +1450,14 @@ func addOpListIntegrationsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListIntegrations{}, middleware.After) } +func addOpListObjectTypeAttributesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListObjectTypeAttributes{}, middleware.After) +} + +func addOpListProfileAttributeValuesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListProfileAttributeValues{}, middleware.After) +} + func addOpListProfileObjectsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListProfileObjects{}, middleware.After) } @@ -1162,6 +1470,10 @@ func addOpListRuleBasedMatchesValidationMiddleware(stack *middleware.Stack) erro return stack.Initialize.Add(&validateOpListRuleBasedMatches{}, middleware.After) } +func addOpListSegmentDefinitionsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListSegmentDefinitions{}, middleware.After) +} + func addOpListTagsForResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListTagsForResource{}, middleware.After) } @@ -1245,6 +1557,48 @@ func validateAdditionalSearchKeysList(v []types.AdditionalSearchKey) error { } } +func validateAddressDimension(v *types.AddressDimension) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AddressDimension"} + if v.City != nil { + if err := validateProfileDimension(v.City); err != nil { + invalidParams.AddNested("City", err.(smithy.InvalidParamsError)) + } + } + if v.Country != nil { + if err := validateProfileDimension(v.Country); err != nil { + invalidParams.AddNested("Country", err.(smithy.InvalidParamsError)) + } + } + if v.County != nil { + if err := validateProfileDimension(v.County); err != nil { + invalidParams.AddNested("County", err.(smithy.InvalidParamsError)) + } + } + if v.PostalCode != nil { + if err := validateProfileDimension(v.PostalCode); err != nil { + invalidParams.AddNested("PostalCode", err.(smithy.InvalidParamsError)) + } + } + if v.Province != nil { + if err := validateProfileDimension(v.Province); err != nil { + invalidParams.AddNested("Province", err.(smithy.InvalidParamsError)) + } + } + if v.State != nil { + if err := validateProfileDimension(v.State); err != nil { + invalidParams.AddNested("State", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateAppflowIntegration(v *types.AppflowIntegration) error { if v == nil { return nil @@ -1291,13 +1645,16 @@ func validateAttributeDetails(v *types.AttributeDetails) error { } } -func validateAttributeItem(v *types.AttributeItem) error { +func validateAttributeDimension(v *types.AttributeDimension) error { if v == nil { return nil } - invalidParams := smithy.InvalidParamsError{Context: "AttributeItem"} - if v.Name == nil { - invalidParams.Add(smithy.NewErrParamRequired("Name")) + invalidParams := smithy.InvalidParamsError{Context: "AttributeDimension"} + if len(v.DimensionType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("DimensionType")) + } + if v.Values == nil { + invalidParams.Add(smithy.NewErrParamRequired("Values")) } if invalidParams.Len() > 0 { return invalidParams @@ -1306,14 +1663,47 @@ func validateAttributeItem(v *types.AttributeItem) error { } } -func validateAttributeList(v []types.AttributeItem) error { +func validateAttributeItem(v *types.AttributeItem) error { if v == nil { return nil } - invalidParams := smithy.InvalidParamsError{Context: "AttributeList"} - for i := range v { - if err := validateAttributeItem(&v[i]); err != nil { - invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + invalidParams := smithy.InvalidParamsError{Context: "AttributeItem"} + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateAttributeList(v []types.AttributeItem) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AttributeList"} + for i := range v { + if err := validateAttributeItem(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateAttributeMap(v map[string]types.FilterAttributeDimension) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AttributeMap"} + for key := range v { + value := v[key] + if err := validateFilterAttributeDimension(&value); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) } } if invalidParams.Len() > 0 { @@ -1398,6 +1788,64 @@ func validateBatches(v []types.Batch) error { } } +func validateCalculatedAttributeDimension(v *types.CalculatedAttributeDimension) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CalculatedAttributeDimension"} + if len(v.DimensionType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("DimensionType")) + } + if v.Values == nil { + invalidParams.Add(smithy.NewErrParamRequired("Values")) + } + if v.ConditionOverrides != nil { + if err := validateConditionOverrides(v.ConditionOverrides); err != nil { + invalidParams.AddNested("ConditionOverrides", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateCalculatedCustomAttributes(v map[string]types.CalculatedAttributeDimension) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CalculatedCustomAttributes"} + for key := range v { + value := v[key] + if err := validateCalculatedAttributeDimension(&value); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateConditionOverrides(v *types.ConditionOverrides) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ConditionOverrides"} + if v.Range != nil { + if err := validateRangeOverride(v.Range); err != nil { + invalidParams.AddNested("Range", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateConditions(v *types.Conditions) error { if v == nil { return nil @@ -1450,6 +1898,83 @@ func validateConsolidation(v *types.Consolidation) error { } } +func validateCustomAttributes(v map[string]types.AttributeDimension) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CustomAttributes"} + for key := range v { + value := v[key] + if err := validateAttributeDimension(&value); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDateDimension(v *types.DateDimension) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DateDimension"} + if len(v.DimensionType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("DimensionType")) + } + if v.Values == nil { + invalidParams.Add(smithy.NewErrParamRequired("Values")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDimension(v types.Dimension) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "Dimension"} + switch uv := v.(type) { + case *types.DimensionMemberCalculatedAttributes: + if err := validateCalculatedCustomAttributes(uv.Value); err != nil { + invalidParams.AddNested("[CalculatedAttributes]", err.(smithy.InvalidParamsError)) + } + + case *types.DimensionMemberProfileAttributes: + if err := validateProfileAttributes(&uv.Value); err != nil { + invalidParams.AddNested("[ProfileAttributes]", err.(smithy.InvalidParamsError)) + } + + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDimensionList(v []types.Dimension) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DimensionList"} + for i := range v { + if err := validateDimension(v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateExportingConfig(v *types.ExportingConfig) error { if v == nil { return nil @@ -1467,6 +1992,122 @@ func validateExportingConfig(v *types.ExportingConfig) error { } } +func validateExtraLengthValueProfileDimension(v *types.ExtraLengthValueProfileDimension) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ExtraLengthValueProfileDimension"} + if len(v.DimensionType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("DimensionType")) + } + if v.Values == nil { + invalidParams.Add(smithy.NewErrParamRequired("Values")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateFilter(v *types.Filter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "Filter"} + if len(v.Include) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Include")) + } + if v.Groups == nil { + invalidParams.Add(smithy.NewErrParamRequired("Groups")) + } else if v.Groups != nil { + if err := validateGroupList(v.Groups); err != nil { + invalidParams.AddNested("Groups", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateFilterAttributeDimension(v *types.FilterAttributeDimension) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "FilterAttributeDimension"} + if len(v.DimensionType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("DimensionType")) + } + if v.Values == nil { + invalidParams.Add(smithy.NewErrParamRequired("Values")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateFilterDimension(v *types.FilterDimension) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "FilterDimension"} + if v.Attributes == nil { + invalidParams.Add(smithy.NewErrParamRequired("Attributes")) + } else if v.Attributes != nil { + if err := validateAttributeMap(v.Attributes); err != nil { + invalidParams.AddNested("Attributes", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateFilterDimensionList(v []types.FilterDimension) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "FilterDimensionList"} + for i := range v { + if err := validateFilterDimension(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateFilterGroup(v *types.FilterGroup) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "FilterGroup"} + if len(v.Type) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Type")) + } + if v.Dimensions == nil { + invalidParams.Add(smithy.NewErrParamRequired("Dimensions")) + } else if v.Dimensions != nil { + if err := validateFilterDimensionList(v.Dimensions); err != nil { + invalidParams.AddNested("Dimensions", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateFlowDefinition(v *types.FlowDefinition) error { if v == nil { return nil @@ -1506,6 +2147,40 @@ func validateFlowDefinition(v *types.FlowDefinition) error { } } +func validateGroup(v *types.Group) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "Group"} + if v.Dimensions != nil { + if err := validateDimensionList(v.Dimensions); err != nil { + invalidParams.AddNested("Dimensions", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateGroupList(v []types.FilterGroup) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GroupList"} + for i := range v { + if err := validateFilterGroup(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateIntegrationConfig(v *types.IntegrationConfig) error { if v == nil { return nil @@ -1618,13 +2293,148 @@ func validateMatchingRules(v []types.MatchingRule) error { } } -func validateObjectFilter(v *types.ObjectFilter) error { +func validateObjectFilter(v *types.ObjectFilter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ObjectFilter"} + if v.KeyName == nil { + invalidParams.Add(smithy.NewErrParamRequired("KeyName")) + } + if v.Values == nil { + invalidParams.Add(smithy.NewErrParamRequired("Values")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateProfileAttributes(v *types.ProfileAttributes) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ProfileAttributes"} + if v.AccountNumber != nil { + if err := validateProfileDimension(v.AccountNumber); err != nil { + invalidParams.AddNested("AccountNumber", err.(smithy.InvalidParamsError)) + } + } + if v.AdditionalInformation != nil { + if err := validateExtraLengthValueProfileDimension(v.AdditionalInformation); err != nil { + invalidParams.AddNested("AdditionalInformation", err.(smithy.InvalidParamsError)) + } + } + if v.FirstName != nil { + if err := validateProfileDimension(v.FirstName); err != nil { + invalidParams.AddNested("FirstName", err.(smithy.InvalidParamsError)) + } + } + if v.LastName != nil { + if err := validateProfileDimension(v.LastName); err != nil { + invalidParams.AddNested("LastName", err.(smithy.InvalidParamsError)) + } + } + if v.MiddleName != nil { + if err := validateProfileDimension(v.MiddleName); err != nil { + invalidParams.AddNested("MiddleName", err.(smithy.InvalidParamsError)) + } + } + if v.GenderString != nil { + if err := validateProfileDimension(v.GenderString); err != nil { + invalidParams.AddNested("GenderString", err.(smithy.InvalidParamsError)) + } + } + if v.PartyTypeString != nil { + if err := validateProfileDimension(v.PartyTypeString); err != nil { + invalidParams.AddNested("PartyTypeString", err.(smithy.InvalidParamsError)) + } + } + if v.BirthDate != nil { + if err := validateDateDimension(v.BirthDate); err != nil { + invalidParams.AddNested("BirthDate", err.(smithy.InvalidParamsError)) + } + } + if v.PhoneNumber != nil { + if err := validateProfileDimension(v.PhoneNumber); err != nil { + invalidParams.AddNested("PhoneNumber", err.(smithy.InvalidParamsError)) + } + } + if v.BusinessName != nil { + if err := validateProfileDimension(v.BusinessName); err != nil { + invalidParams.AddNested("BusinessName", err.(smithy.InvalidParamsError)) + } + } + if v.BusinessPhoneNumber != nil { + if err := validateProfileDimension(v.BusinessPhoneNumber); err != nil { + invalidParams.AddNested("BusinessPhoneNumber", err.(smithy.InvalidParamsError)) + } + } + if v.HomePhoneNumber != nil { + if err := validateProfileDimension(v.HomePhoneNumber); err != nil { + invalidParams.AddNested("HomePhoneNumber", err.(smithy.InvalidParamsError)) + } + } + if v.MobilePhoneNumber != nil { + if err := validateProfileDimension(v.MobilePhoneNumber); err != nil { + invalidParams.AddNested("MobilePhoneNumber", err.(smithy.InvalidParamsError)) + } + } + if v.EmailAddress != nil { + if err := validateProfileDimension(v.EmailAddress); err != nil { + invalidParams.AddNested("EmailAddress", err.(smithy.InvalidParamsError)) + } + } + if v.PersonalEmailAddress != nil { + if err := validateProfileDimension(v.PersonalEmailAddress); err != nil { + invalidParams.AddNested("PersonalEmailAddress", err.(smithy.InvalidParamsError)) + } + } + if v.BusinessEmailAddress != nil { + if err := validateProfileDimension(v.BusinessEmailAddress); err != nil { + invalidParams.AddNested("BusinessEmailAddress", err.(smithy.InvalidParamsError)) + } + } + if v.Address != nil { + if err := validateAddressDimension(v.Address); err != nil { + invalidParams.AddNested("Address", err.(smithy.InvalidParamsError)) + } + } + if v.ShippingAddress != nil { + if err := validateAddressDimension(v.ShippingAddress); err != nil { + invalidParams.AddNested("ShippingAddress", err.(smithy.InvalidParamsError)) + } + } + if v.MailingAddress != nil { + if err := validateAddressDimension(v.MailingAddress); err != nil { + invalidParams.AddNested("MailingAddress", err.(smithy.InvalidParamsError)) + } + } + if v.BillingAddress != nil { + if err := validateAddressDimension(v.BillingAddress); err != nil { + invalidParams.AddNested("BillingAddress", err.(smithy.InvalidParamsError)) + } + } + if v.Attributes != nil { + if err := validateCustomAttributes(v.Attributes); err != nil { + invalidParams.AddNested("Attributes", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateProfileDimension(v *types.ProfileDimension) error { if v == nil { return nil } - invalidParams := smithy.InvalidParamsError{Context: "ObjectFilter"} - if v.KeyName == nil { - invalidParams.Add(smithy.NewErrParamRequired("KeyName")) + invalidParams := smithy.InvalidParamsError{Context: "ProfileDimension"} + if len(v.DimensionType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("DimensionType")) } if v.Values == nil { invalidParams.Add(smithy.NewErrParamRequired("Values")) @@ -1654,6 +2464,24 @@ func validateRange(v *types.Range) error { } } +func validateRangeOverride(v *types.RangeOverride) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "RangeOverride"} + if v.Start == nil { + invalidParams.Add(smithy.NewErrParamRequired("Start")) + } + if len(v.Unit) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Unit")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateRuleBasedMatchingRequest(v *types.RuleBasedMatchingRequest) error { if v == nil { return nil @@ -1749,6 +2577,57 @@ func validateScheduledTriggerProperties(v *types.ScheduledTriggerProperties) err } } +func validateSegmentGroup(v *types.SegmentGroup) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "SegmentGroup"} + if v.Groups != nil { + if err := validateSegmentGroupList(v.Groups); err != nil { + invalidParams.AddNested("Groups", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateSegmentGroupList(v []types.Group) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "SegmentGroupList"} + for i := range v { + if err := validateGroup(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateSegmentGroupStructure(v *types.SegmentGroupStructure) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "SegmentGroupStructure"} + if v.Groups != nil { + if err := validateSegmentGroupList(v.Groups); err != nil { + invalidParams.AddNested("Groups", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateServiceNowSourceProperties(v *types.ServiceNowSourceProperties) error { if v == nil { return nil @@ -1952,6 +2831,50 @@ func validateOpAddProfileKeyInput(v *AddProfileKeyInput) error { } } +func validateOpBatchGetCalculatedAttributeForProfileInput(v *BatchGetCalculatedAttributeForProfileInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "BatchGetCalculatedAttributeForProfileInput"} + if v.CalculatedAttributeName == nil { + invalidParams.Add(smithy.NewErrParamRequired("CalculatedAttributeName")) + } + if v.DomainName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainName")) + } + if v.ProfileIds == nil { + invalidParams.Add(smithy.NewErrParamRequired("ProfileIds")) + } + if v.ConditionOverrides != nil { + if err := validateConditionOverrides(v.ConditionOverrides); err != nil { + invalidParams.AddNested("ConditionOverrides", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpBatchGetProfileInput(v *BatchGetProfileInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "BatchGetProfileInput"} + if v.DomainName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainName")) + } + if v.ProfileIds == nil { + invalidParams.Add(smithy.NewErrParamRequired("ProfileIds")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateCalculatedAttributeDefinitionInput(v *CreateCalculatedAttributeDefinitionInput) error { if v == nil { return nil @@ -1975,6 +2898,11 @@ func validateOpCreateCalculatedAttributeDefinitionInput(v *CreateCalculatedAttri invalidParams.AddNested("Conditions", err.(smithy.InvalidParamsError)) } } + if v.Filter != nil { + if err := validateFilter(v.Filter); err != nil { + invalidParams.AddNested("Filter", err.(smithy.InvalidParamsError)) + } + } if len(v.Statistic) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Statistic")) } @@ -2080,6 +3008,77 @@ func validateOpCreateProfileInput(v *CreateProfileInput) error { } } +func validateOpCreateSegmentDefinitionInput(v *CreateSegmentDefinitionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateSegmentDefinitionInput"} + if v.DomainName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainName")) + } + if v.SegmentDefinitionName == nil { + invalidParams.Add(smithy.NewErrParamRequired("SegmentDefinitionName")) + } + if v.DisplayName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DisplayName")) + } + if v.SegmentGroups == nil { + invalidParams.Add(smithy.NewErrParamRequired("SegmentGroups")) + } else if v.SegmentGroups != nil { + if err := validateSegmentGroup(v.SegmentGroups); err != nil { + invalidParams.AddNested("SegmentGroups", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateSegmentEstimateInput(v *CreateSegmentEstimateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateSegmentEstimateInput"} + if v.DomainName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainName")) + } + if v.SegmentQuery == nil { + invalidParams.Add(smithy.NewErrParamRequired("SegmentQuery")) + } else if v.SegmentQuery != nil { + if err := validateSegmentGroupStructure(v.SegmentQuery); err != nil { + invalidParams.AddNested("SegmentQuery", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateSegmentSnapshotInput(v *CreateSegmentSnapshotInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateSegmentSnapshotInput"} + if v.DomainName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainName")) + } + if v.SegmentDefinitionName == nil { + invalidParams.Add(smithy.NewErrParamRequired("SegmentDefinitionName")) + } + if len(v.DataFormat) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("DataFormat")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteCalculatedAttributeDefinitionInput(v *DeleteCalculatedAttributeDefinitionInput) error { if v == nil { return nil @@ -2233,6 +3232,24 @@ func validateOpDeleteProfileObjectTypeInput(v *DeleteProfileObjectTypeInput) err } } +func validateOpDeleteSegmentDefinitionInput(v *DeleteSegmentDefinitionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteSegmentDefinitionInput"} + if v.DomainName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainName")) + } + if v.SegmentDefinitionName == nil { + invalidParams.Add(smithy.NewErrParamRequired("SegmentDefinitionName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteWorkflowInput(v *DeleteWorkflowInput) error { if v == nil { return nil @@ -2454,6 +3471,84 @@ func validateOpGetProfileObjectTypeTemplateInput(v *GetProfileObjectTypeTemplate } } +func validateOpGetSegmentDefinitionInput(v *GetSegmentDefinitionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetSegmentDefinitionInput"} + if v.DomainName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainName")) + } + if v.SegmentDefinitionName == nil { + invalidParams.Add(smithy.NewErrParamRequired("SegmentDefinitionName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetSegmentEstimateInput(v *GetSegmentEstimateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetSegmentEstimateInput"} + if v.DomainName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainName")) + } + if v.EstimateId == nil { + invalidParams.Add(smithy.NewErrParamRequired("EstimateId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetSegmentMembershipInput(v *GetSegmentMembershipInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetSegmentMembershipInput"} + if v.DomainName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainName")) + } + if v.SegmentDefinitionName == nil { + invalidParams.Add(smithy.NewErrParamRequired("SegmentDefinitionName")) + } + if v.ProfileIds == nil { + invalidParams.Add(smithy.NewErrParamRequired("ProfileIds")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetSegmentSnapshotInput(v *GetSegmentSnapshotInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetSegmentSnapshotInput"} + if v.DomainName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainName")) + } + if v.SegmentDefinitionName == nil { + invalidParams.Add(smithy.NewErrParamRequired("SegmentDefinitionName")) + } + if v.SnapshotId == nil { + invalidParams.Add(smithy.NewErrParamRequired("SnapshotId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetSimilarProfilesInput(v *GetSimilarProfilesInput) error { if v == nil { return nil @@ -2607,6 +3702,42 @@ func validateOpListIntegrationsInput(v *ListIntegrationsInput) error { } } +func validateOpListObjectTypeAttributesInput(v *ListObjectTypeAttributesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListObjectTypeAttributesInput"} + if v.DomainName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainName")) + } + if v.ObjectTypeName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ObjectTypeName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpListProfileAttributeValuesInput(v *ListProfileAttributeValuesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListProfileAttributeValuesInput"} + if v.DomainName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainName")) + } + if v.AttributeName == nil { + invalidParams.Add(smithy.NewErrParamRequired("AttributeName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListProfileObjectsInput(v *ListProfileObjectsInput) error { if v == nil { return nil @@ -2663,6 +3794,21 @@ func validateOpListRuleBasedMatchesInput(v *ListRuleBasedMatchesInput) error { } } +func validateOpListSegmentDefinitionsInput(v *ListSegmentDefinitionsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListSegmentDefinitionsInput"} + if v.DomainName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListTagsForResourceInput(v *ListTagsForResourceInput) error { if v == nil { return nil diff --git a/service/databasemigrationservice/CHANGELOG.md b/service/databasemigrationservice/CHANGELOG.md index 832c8eb526a..5c6abb257d7 100644 --- a/service/databasemigrationservice/CHANGELOG.md +++ b/service/databasemigrationservice/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.44.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.44.3 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/databasemigrationservice/go.mod b/service/databasemigrationservice/go.mod index 42ebcffef86..24c1fb45193 100644 --- a/service/databasemigrationservice/go.mod +++ b/service/databasemigrationservice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/databasemigrationservice go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/databasemigrationservice/go.sum b/service/databasemigrationservice/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/databasemigrationservice/go.sum +++ b/service/databasemigrationservice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/databasemigrationservice/go_module_metadata.go b/service/databasemigrationservice/go_module_metadata.go index f16d1e4b627..56355bbca02 100644 --- a/service/databasemigrationservice/go_module_metadata.go +++ b/service/databasemigrationservice/go_module_metadata.go @@ -3,4 +3,4 @@ package databasemigrationservice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.44.3" +const goModuleVersion = "1.44.4" diff --git a/service/databrew/CHANGELOG.md b/service/databrew/CHANGELOG.md index 13d55c669ae..7e4ab1b71d5 100644 --- a/service/databrew/CHANGELOG.md +++ b/service/databrew/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.33.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.33.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/databrew/go.mod b/service/databrew/go.mod index 0c0dc59601b..102e219fb5c 100644 --- a/service/databrew/go.mod +++ b/service/databrew/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/databrew go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/databrew/go.sum b/service/databrew/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/databrew/go.sum +++ b/service/databrew/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/databrew/go_module_metadata.go b/service/databrew/go_module_metadata.go index 2a2bf1f2e51..e02ce46b807 100644 --- a/service/databrew/go_module_metadata.go +++ b/service/databrew/go_module_metadata.go @@ -3,4 +3,4 @@ package databrew // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.33.5" +const goModuleVersion = "1.33.6" diff --git a/service/dataexchange/CHANGELOG.md b/service/dataexchange/CHANGELOG.md index 7157c3b6c42..d71264e2679 100644 --- a/service/dataexchange/CHANGELOG.md +++ b/service/dataexchange/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.33.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.33.3 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/dataexchange/go.mod b/service/dataexchange/go.mod index db64b70c29c..91847e14b43 100644 --- a/service/dataexchange/go.mod +++ b/service/dataexchange/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/dataexchange go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/dataexchange/go.sum b/service/dataexchange/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/dataexchange/go.sum +++ b/service/dataexchange/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/dataexchange/go_module_metadata.go b/service/dataexchange/go_module_metadata.go index 8b41867c008..b1f43c0556a 100644 --- a/service/dataexchange/go_module_metadata.go +++ b/service/dataexchange/go_module_metadata.go @@ -3,4 +3,4 @@ package dataexchange // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.33.3" +const goModuleVersion = "1.33.4" diff --git a/service/datapipeline/CHANGELOG.md b/service/datapipeline/CHANGELOG.md index b62a7acfe48..3e7ed0939ce 100644 --- a/service/datapipeline/CHANGELOG.md +++ b/service/datapipeline/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.25.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/datapipeline/go.mod b/service/datapipeline/go.mod index 13f83276fd3..a51a3245126 100644 --- a/service/datapipeline/go.mod +++ b/service/datapipeline/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/datapipeline go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/datapipeline/go.sum b/service/datapipeline/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/datapipeline/go.sum +++ b/service/datapipeline/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/datapipeline/go_module_metadata.go b/service/datapipeline/go_module_metadata.go index 18979dfd003..abadd91256c 100644 --- a/service/datapipeline/go_module_metadata.go +++ b/service/datapipeline/go_module_metadata.go @@ -3,4 +3,4 @@ package datapipeline // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.5" +const goModuleVersion = "1.25.6" diff --git a/service/datasync/CHANGELOG.md b/service/datasync/CHANGELOG.md index 87e09eae5df..95a63516c3f 100644 --- a/service/datasync/CHANGELOG.md +++ b/service/datasync/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.43.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.43.3 (2024-11-15.2) * **Documentation**: Doc-only updates and enhancements related to creating DataSync tasks and describing task executions. diff --git a/service/datasync/go.mod b/service/datasync/go.mod index b02f6478837..a743b3c9d5e 100644 --- a/service/datasync/go.mod +++ b/service/datasync/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/datasync go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/datasync/go.sum b/service/datasync/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/datasync/go.sum +++ b/service/datasync/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/datasync/go_module_metadata.go b/service/datasync/go_module_metadata.go index 84f6b18d7cd..b0ba1ae9de6 100644 --- a/service/datasync/go_module_metadata.go +++ b/service/datasync/go_module_metadata.go @@ -3,4 +3,4 @@ package datasync // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.43.3" +const goModuleVersion = "1.43.4" diff --git a/service/datazone/CHANGELOG.md b/service/datazone/CHANGELOG.md index 7508b969d86..90eccc190c9 100644 --- a/service/datazone/CHANGELOG.md +++ b/service/datazone/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.24.0 (2024-11-20) + +* **Feature**: This release supports Metadata Enforcement Rule feature for Create Subscription Request action. + +# v1.23.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.3 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/datazone/api_op_AcceptSubscriptionRequest.go b/service/datazone/api_op_AcceptSubscriptionRequest.go index 9331a070899..4f5f3095591 100644 --- a/service/datazone/api_op_AcceptSubscriptionRequest.go +++ b/service/datazone/api_op_AcceptSubscriptionRequest.go @@ -104,6 +104,12 @@ type AcceptSubscriptionRequestOutput struct { // Specifies the reason for accepting the subscription request. DecisionComment *string + // The ID of the existing subscription. + ExistingSubscriptionId *string + + // The metadata form in the subscription request. + MetadataForms []types.FormOutput + // Specifes the ID of the Amazon DataZone user who reviewed the subscription // request. ReviewerId *string diff --git a/service/datazone/api_op_CreateRule.go b/service/datazone/api_op_CreateRule.go new file mode 100644 index 00000000000..04416822631 --- /dev/null +++ b/service/datazone/api_op_CreateRule.go @@ -0,0 +1,281 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package datazone + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/datazone/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Creates a rule in Amazon DataZone. A rule is a formal agreement that enforces +// specific requirements across user workflows (e.g., publishing assets to the +// catalog, requesting subscriptions, creating projects) within the Amazon DataZone +// data portal. These rules help maintain consistency, ensure compliance, and +// uphold governance standards in data management processes. For instance, a +// metadata enforcement rule can specify the required information for creating a +// subscription request or publishing a data asset to the catalog, ensuring +// alignment with organizational standards. +func (c *Client) CreateRule(ctx context.Context, params *CreateRuleInput, optFns ...func(*Options)) (*CreateRuleOutput, error) { + if params == nil { + params = &CreateRuleInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateRule", params, optFns, c.addOperationCreateRuleMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateRuleOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateRuleInput struct { + + // The action of the rule. + // + // This member is required. + Action types.RuleAction + + // The detail of the rule. + // + // This member is required. + Detail types.RuleDetail + + // The ID of the domain where the rule is created. + // + // This member is required. + DomainIdentifier *string + + // The name of the rule. + // + // This member is required. + Name *string + + // The scope of the rule. + // + // This member is required. + Scope *types.RuleScope + + // The target of the rule. + // + // This member is required. + Target types.RuleTarget + + // A unique, case-sensitive identifier that is provided to ensure the idempotency + // of the request. + ClientToken *string + + // The description of the rule. + Description *string + + noSmithyDocumentSerde +} + +type CreateRuleOutput struct { + + // The action of the rule. + // + // This member is required. + Action types.RuleAction + + // The timestamp at which the rule is created. + // + // This member is required. + CreatedAt *time.Time + + // The user who creates the rule. + // + // This member is required. + CreatedBy *string + + // The detail of the rule. + // + // This member is required. + Detail types.RuleDetail + + // The ID of the rule. + // + // This member is required. + Identifier *string + + // The name of the rule. + // + // This member is required. + Name *string + + // The type of the rule. + // + // This member is required. + RuleType types.RuleType + + // The scope of the rule. + // + // This member is required. + Scope *types.RuleScope + + // The target of the rule. + // + // This member is required. + Target types.RuleTarget + + // The description of the rule. + Description *string + + // The target type of the rule. + TargetType types.RuleTargetType + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateRuleMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateRule{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateRule{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateRule"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addIdempotencyToken_opCreateRuleMiddleware(stack, options); err != nil { + return err + } + if err = addOpCreateRuleValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateRule(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +type idempotencyToken_initializeOpCreateRule struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateRule) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateRule) 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.(*CreateRuleInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateRuleInput ") + } + + 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_opCreateRuleMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateRule{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opCreateRule(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateRule", + } +} diff --git a/service/datazone/api_op_CreateSubscriptionRequest.go b/service/datazone/api_op_CreateSubscriptionRequest.go index 17095d71d4c..a4b9847a21d 100644 --- a/service/datazone/api_op_CreateSubscriptionRequest.go +++ b/service/datazone/api_op_CreateSubscriptionRequest.go @@ -55,6 +55,9 @@ type CreateSubscriptionRequestInput struct { // of the request. ClientToken *string + // The metadata form included in the subscription request. + MetadataForms []types.FormInput + noSmithyDocumentSerde } @@ -109,6 +112,12 @@ type CreateSubscriptionRequestOutput struct { // The decision comment of the subscription request. DecisionComment *string + // The ID of the existing subscription. + ExistingSubscriptionId *string + + // The metadata form included in the subscription request. + MetadataForms []types.FormOutput + // The ID of the reviewer of the subscription request. ReviewerId *string diff --git a/service/datazone/api_op_DeleteRule.go b/service/datazone/api_op_DeleteRule.go new file mode 100644 index 00000000000..8a1908e0b14 --- /dev/null +++ b/service/datazone/api_op_DeleteRule.go @@ -0,0 +1,164 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package datazone + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes a rule in Amazon DataZone. A rule is a formal agreement that enforces +// specific requirements across user workflows (e.g., publishing assets to the +// catalog, requesting subscriptions, creating projects) within the Amazon DataZone +// data portal. These rules help maintain consistency, ensure compliance, and +// uphold governance standards in data management processes. For instance, a +// metadata enforcement rule can specify the required information for creating a +// subscription request or publishing a data asset to the catalog, ensuring +// alignment with organizational standards. +func (c *Client) DeleteRule(ctx context.Context, params *DeleteRuleInput, optFns ...func(*Options)) (*DeleteRuleOutput, error) { + if params == nil { + params = &DeleteRuleInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteRule", params, optFns, c.addOperationDeleteRuleMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteRuleOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteRuleInput struct { + + // The ID of the domain that where the rule is to be deleted. + // + // This member is required. + DomainIdentifier *string + + // The ID of the rule that is to be deleted. + // + // This member is required. + Identifier *string + + noSmithyDocumentSerde +} + +type DeleteRuleOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteRuleMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteRule{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteRule{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteRule"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpDeleteRuleValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteRule(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteRule(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteRule", + } +} diff --git a/service/datazone/api_op_GetRule.go b/service/datazone/api_op_GetRule.go new file mode 100644 index 00000000000..268cc7ef320 --- /dev/null +++ b/service/datazone/api_op_GetRule.go @@ -0,0 +1,236 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package datazone + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/datazone/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Gets the details of a rule in Amazon DataZone. A rule is a formal agreement +// that enforces specific requirements across user workflows (e.g., publishing +// assets to the catalog, requesting subscriptions, creating projects) within the +// Amazon DataZone data portal. These rules help maintain consistency, ensure +// compliance, and uphold governance standards in data management processes. For +// instance, a metadata enforcement rule can specify the required information for +// creating a subscription request or publishing a data asset to the catalog, +// ensuring alignment with organizational standards. +func (c *Client) GetRule(ctx context.Context, params *GetRuleInput, optFns ...func(*Options)) (*GetRuleOutput, error) { + if params == nil { + params = &GetRuleInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetRule", params, optFns, c.addOperationGetRuleMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetRuleOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetRuleInput struct { + + // The ID of the domain where the GetRule action is to be invoked. + // + // This member is required. + DomainIdentifier *string + + // The ID of the rule. + // + // This member is required. + Identifier *string + + // The revision of the rule. + Revision *string + + noSmithyDocumentSerde +} + +type GetRuleOutput struct { + + // The action of the rule. + // + // This member is required. + Action types.RuleAction + + // The timestamp at which the rule was created. + // + // This member is required. + CreatedAt *time.Time + + // The user who created the rule. + // + // This member is required. + CreatedBy *string + + // The detail of the rule. + // + // This member is required. + Detail types.RuleDetail + + // The ID of the rule. + // + // This member is required. + Identifier *string + + // The timestamp at which the rule was last updated. + // + // This member is required. + LastUpdatedBy *string + + // The name of the rule. + // + // This member is required. + Name *string + + // The revision of the rule. + // + // This member is required. + Revision *string + + // The type of the rule. + // + // This member is required. + RuleType types.RuleType + + // The scope of the rule. + // + // This member is required. + Scope *types.RuleScope + + // The target of the rule. + // + // This member is required. + Target types.RuleTarget + + // The timestamp at which the rule was last updated. + // + // This member is required. + UpdatedAt *time.Time + + // The description of the rule. + Description *string + + // The target type of the rule. + TargetType types.RuleTargetType + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetRuleMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetRule{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetRule{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetRule"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpGetRuleValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetRule(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetRule(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetRule", + } +} diff --git a/service/datazone/api_op_GetSubscriptionRequestDetails.go b/service/datazone/api_op_GetSubscriptionRequestDetails.go index 469be226256..d58a8244987 100644 --- a/service/datazone/api_op_GetSubscriptionRequestDetails.go +++ b/service/datazone/api_op_GetSubscriptionRequestDetails.go @@ -94,6 +94,12 @@ type GetSubscriptionRequestDetailsOutput struct { // The decision comment of the subscription request. DecisionComment *string + // The ID of the existing subscription. + ExistingSubscriptionId *string + + // The metadata forms included in the subscription request. + MetadataForms []types.FormOutput + // The identifier of the Amazon DataZone user who reviewed the subscription // request. ReviewerId *string diff --git a/service/datazone/api_op_ListRules.go b/service/datazone/api_op_ListRules.go new file mode 100644 index 00000000000..8c3461ba965 --- /dev/null +++ b/service/datazone/api_op_ListRules.go @@ -0,0 +1,309 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package datazone + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/datazone/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists existing rules. In Amazon DataZone, a rule is a formal agreement that +// enforces specific requirements across user workflows (e.g., publishing assets to +// the catalog, requesting subscriptions, creating projects) within the Amazon +// DataZone data portal. These rules help maintain consistency, ensure compliance, +// and uphold governance standards in data management processes. For instance, a +// metadata enforcement rule can specify the required information for creating a +// subscription request or publishing a data asset to the catalog, ensuring +// alignment with organizational standards. +func (c *Client) ListRules(ctx context.Context, params *ListRulesInput, optFns ...func(*Options)) (*ListRulesOutput, error) { + if params == nil { + params = &ListRulesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListRules", params, optFns, c.addOperationListRulesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListRulesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListRulesInput struct { + + // The ID of the domain in which the rules are to be listed. + // + // This member is required. + DomainIdentifier *string + + // The target ID of the rule. + // + // This member is required. + TargetIdentifier *string + + // The target type of the rule. + // + // This member is required. + TargetType types.RuleTargetType + + // The action of the rule. + Action types.RuleAction + + // The asset types of the rule. + AssetTypes []string + + // The data product of the rule. + DataProduct *bool + + // Specifies whether to include cascading rules in the results. + IncludeCascaded *bool + + // The maximum number of rules to return in a single call to ListRules . When the + // number of rules 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 + // ListRules to list the next set of rules. + MaxResults *int32 + + // When the number of rules is greater than the default value for the MaxResults + // parameter, or if you explicitly specify a value for MaxResults that is less + // than the number of rules, the response includes a pagination token named + // NextToken . You can specify this NextToken value in a subsequent call to + // ListRules to list the next set of rules. + NextToken *string + + // The IDs of projects in which rules are to be listed. + ProjectIds []string + + // The type of the rule. + RuleType types.RuleType + + noSmithyDocumentSerde +} + +type ListRulesOutput struct { + + // The results of the ListRules action. + // + // This member is required. + Items []types.RuleSummary + + // When the number of rules is greater than the default value for the MaxResults + // parameter, or if you explicitly specify a value for MaxResults that is less + // than the number of rules, the response includes a pagination token named + // NextToken . You can specify this NextToken value in a subsequent call to + // ListRules to list the next set of rules. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListRulesMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListRules{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListRules{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListRules"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpListRulesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListRules(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +// ListRulesPaginatorOptions is the paginator options for ListRules +type ListRulesPaginatorOptions struct { + // The maximum number of rules to return in a single call to ListRules . When the + // number of rules 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 + // ListRules to list the next set of rules. + 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 +} + +// ListRulesPaginator is a paginator for ListRules +type ListRulesPaginator struct { + options ListRulesPaginatorOptions + client ListRulesAPIClient + params *ListRulesInput + nextToken *string + firstPage bool +} + +// NewListRulesPaginator returns a new ListRulesPaginator +func NewListRulesPaginator(client ListRulesAPIClient, params *ListRulesInput, optFns ...func(*ListRulesPaginatorOptions)) *ListRulesPaginator { + if params == nil { + params = &ListRulesInput{} + } + + options := ListRulesPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListRulesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListRulesPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListRules page. +func (p *ListRulesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListRulesOutput, 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 + + optFns = append([]func(*Options){ + addIsPaginatorUserAgent, + }, optFns...) + result, err := p.client.ListRules(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 +} + +// ListRulesAPIClient is a client that implements the ListRules operation. +type ListRulesAPIClient interface { + ListRules(context.Context, *ListRulesInput, ...func(*Options)) (*ListRulesOutput, error) +} + +var _ ListRulesAPIClient = (*Client)(nil) + +func newServiceMetadataMiddleware_opListRules(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListRules", + } +} diff --git a/service/datazone/api_op_RejectSubscriptionRequest.go b/service/datazone/api_op_RejectSubscriptionRequest.go index 54e22950be7..afd8cc127cb 100644 --- a/service/datazone/api_op_RejectSubscriptionRequest.go +++ b/service/datazone/api_op_RejectSubscriptionRequest.go @@ -98,6 +98,12 @@ type RejectSubscriptionRequestOutput struct { // The decision comment of the rejected subscription request. DecisionComment *string + // The ID of the existing subscription. + ExistingSubscriptionId *string + + // Metadata forms included in the subscription request. + MetadataForms []types.FormOutput + // The identifier of the subscription request reviewer. ReviewerId *string diff --git a/service/datazone/api_op_UpdateRule.go b/service/datazone/api_op_UpdateRule.go new file mode 100644 index 00000000000..d2c85377b37 --- /dev/null +++ b/service/datazone/api_op_UpdateRule.go @@ -0,0 +1,245 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package datazone + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/datazone/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Updates a rule. In Amazon DataZone, a rule is a formal agreement that enforces +// specific requirements across user workflows (e.g., publishing assets to the +// catalog, requesting subscriptions, creating projects) within the Amazon DataZone +// data portal. These rules help maintain consistency, ensure compliance, and +// uphold governance standards in data management processes. For instance, a +// metadata enforcement rule can specify the required information for creating a +// subscription request or publishing a data asset to the catalog, ensuring +// alignment with organizational standards. +func (c *Client) UpdateRule(ctx context.Context, params *UpdateRuleInput, optFns ...func(*Options)) (*UpdateRuleOutput, error) { + if params == nil { + params = &UpdateRuleInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateRule", params, optFns, c.addOperationUpdateRuleMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateRuleOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateRuleInput struct { + + // The ID of the domain in which a rule is to be updated. + // + // This member is required. + DomainIdentifier *string + + // The ID of the rule that is to be updated + // + // This member is required. + Identifier *string + + // The description of the rule. + Description *string + + // The detail of the rule. + Detail types.RuleDetail + + // Specifies whether to update this rule in the child domain units. + IncludeChildDomainUnits *bool + + // The name of the rule. + Name *string + + // The scrope of the rule. + Scope *types.RuleScope + + noSmithyDocumentSerde +} + +type UpdateRuleOutput struct { + + // The action of the rule. + // + // This member is required. + Action types.RuleAction + + // The timestamp at which the rule was created. + // + // This member is required. + CreatedAt *time.Time + + // The user who created the rule. + // + // This member is required. + CreatedBy *string + + // The detail of the rule. + // + // This member is required. + Detail types.RuleDetail + + // The ID of the rule. + // + // This member is required. + Identifier *string + + // The timestamp at which the rule was last updated. + // + // This member is required. + LastUpdatedBy *string + + // The name of the rule. + // + // This member is required. + Name *string + + // The revision of the rule. + // + // This member is required. + Revision *string + + // The type of the rule. + // + // This member is required. + RuleType types.RuleType + + // The scope of the rule. + // + // This member is required. + Scope *types.RuleScope + + // The target of the rule. + // + // This member is required. + Target types.RuleTarget + + // The timestamp at which the rule was last updated. + // + // This member is required. + UpdatedAt *time.Time + + // The description of the rule. + Description *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateRuleMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateRule{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateRule{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateRule"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpUpdateRuleValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateRule(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateRule(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "UpdateRule", + } +} diff --git a/service/datazone/api_op_UpdateSubscriptionRequest.go b/service/datazone/api_op_UpdateSubscriptionRequest.go index 35c6ff18249..e414f79bd5b 100644 --- a/service/datazone/api_op_UpdateSubscriptionRequest.go +++ b/service/datazone/api_op_UpdateSubscriptionRequest.go @@ -100,6 +100,12 @@ type UpdateSubscriptionRequestOutput struct { // The decision comment of the UpdateSubscriptionRequest action. DecisionComment *string + // The ID of the existing subscription. + ExistingSubscriptionId *string + + // Metadata forms included in the subscription request. + MetadataForms []types.FormOutput + // The identifier of the Amazon DataZone user who reviews the subscription request. ReviewerId *string diff --git a/service/datazone/deserializers.go b/service/datazone/deserializers.go index b6e6ef93d69..dfc213eb02d 100644 --- a/service/datazone/deserializers.go +++ b/service/datazone/deserializers.go @@ -421,6 +421,15 @@ func awsRestjson1_deserializeOpDocumentAcceptSubscriptionRequestOutput(v **Accep sv.DomainId = ptr.String(jtv) } + case "existingSubscriptionId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SubscriptionId to be of type string, got %T instead", value) + } + sv.ExistingSubscriptionId = ptr.String(jtv) + } + case "id": if value != nil { jtv, ok := value.(string) @@ -430,6 +439,11 @@ func awsRestjson1_deserializeOpDocumentAcceptSubscriptionRequestOutput(v **Accep sv.Id = ptr.String(jtv) } + case "metadataForms": + if err := awsRestjson1_deserializeDocumentMetadataForms(&sv.MetadataForms, value); err != nil { + return err + } + case "requestReason": if value != nil { jtv, ok := value.(string) @@ -6106,6 +6120,268 @@ func awsRestjson1_deserializeOpErrorCreateProjectMembership(response *smithyhttp } } +type awsRestjson1_deserializeOpCreateRule struct { +} + +func (*awsRestjson1_deserializeOpCreateRule) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateRule) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorCreateRule(response, &metadata) + } + output := &CreateRuleOutput{} + 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_deserializeOpDocumentCreateRuleOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return 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("UnauthorizedException", errorCode): + return awsRestjson1_deserializeErrorUnauthorizedException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentCreateRuleOutput(v **CreateRuleOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateRuleOutput + if *v == nil { + sv = &CreateRuleOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "action": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuleAction to be of type string, got %T instead", value) + } + sv.Action = types.RuleAction(jtv) + } + + 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 CreatedAt to be a JSON Number, got %T instead", value) + + } + } + + case "createdBy": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CreatedBy to be of type string, got %T instead", value) + } + sv.CreatedBy = 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 "detail": + if err := awsRestjson1_deserializeDocumentRuleDetail(&sv.Detail, value); err != nil { + return err + } + + case "identifier": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuleId to be of type string, got %T instead", value) + } + sv.Identifier = ptr.String(jtv) + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuleName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "ruleType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuleType to be of type string, got %T instead", value) + } + sv.RuleType = types.RuleType(jtv) + } + + case "scope": + if err := awsRestjson1_deserializeDocumentRuleScope(&sv.Scope, value); err != nil { + return err + } + + case "target": + if err := awsRestjson1_deserializeDocumentRuleTarget(&sv.Target, value); err != nil { + return err + } + + case "targetType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuleTargetType to be of type string, got %T instead", value) + } + sv.TargetType = types.RuleTargetType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + type awsRestjson1_deserializeOpCreateSubscriptionGrant struct { } @@ -6575,6 +6851,15 @@ func awsRestjson1_deserializeOpDocumentCreateSubscriptionRequestOutput(v **Creat sv.DomainId = ptr.String(jtv) } + case "existingSubscriptionId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SubscriptionId to be of type string, got %T instead", value) + } + sv.ExistingSubscriptionId = ptr.String(jtv) + } + case "id": if value != nil { jtv, ok := value.(string) @@ -6584,6 +6869,11 @@ func awsRestjson1_deserializeOpDocumentCreateSubscriptionRequestOutput(v **Creat sv.Id = ptr.String(jtv) } + case "metadataForms": + if err := awsRestjson1_deserializeDocumentMetadataForms(&sv.MetadataForms, value); err != nil { + return err + } + case "requestReason": if value != nil { jtv, ok := value.(string) @@ -9278,6 +9568,112 @@ func awsRestjson1_deserializeOpErrorDeleteProjectMembership(response *smithyhttp } } +type awsRestjson1_deserializeOpDeleteRule struct { +} + +func (*awsRestjson1_deserializeOpDeleteRule) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteRule) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorDeleteRule(response, &metadata) + } + output := &DeleteRuleOutput{} + out.Result = output + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeleteRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return 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("UnauthorizedException", errorCode): + return awsRestjson1_deserializeErrorUnauthorizedException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsRestjson1_deserializeOpDeleteSubscriptionGrant struct { } @@ -16099,14 +16495,14 @@ func awsRestjson1_deserializeOpDocumentGetProjectOutput(v **GetProjectOutput, va return nil } -type awsRestjson1_deserializeOpGetSubscription struct { +type awsRestjson1_deserializeOpGetRule struct { } -func (*awsRestjson1_deserializeOpGetSubscription) ID() string { +func (*awsRestjson1_deserializeOpGetRule) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetSubscription) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -16124,9 +16520,9 @@ func (m *awsRestjson1_deserializeOpGetSubscription) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetSubscription(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetRule(response, &metadata) } - output := &GetSubscriptionOutput{} + output := &GetRuleOutput{} out.Result = output var buff [1024]byte @@ -16147,7 +16543,7 @@ func (m *awsRestjson1_deserializeOpGetSubscription) HandleDeserialize(ctx contex return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetSubscriptionOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetRuleOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16161,7 +16557,7 @@ func (m *awsRestjson1_deserializeOpGetSubscription) HandleDeserialize(ctx contex return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetSubscription(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -16230,7 +16626,7 @@ func awsRestjson1_deserializeOpErrorGetSubscription(response *smithyhttp.Respons } } -func awsRestjson1_deserializeOpDocumentGetSubscriptionOutput(v **GetSubscriptionOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetRuleOutput(v **GetRuleOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16243,15 +16639,24 @@ func awsRestjson1_deserializeOpDocumentGetSubscriptionOutput(v **GetSubscription return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetSubscriptionOutput + var sv *GetRuleOutput if *v == nil { - sv = &GetSubscriptionOutput{} + sv = &GetRuleOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "action": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuleAction to be of type string, got %T instead", value) + } + sv.Action = types.RuleAction(jtv) + } + case "createdAt": if value != nil { switch jtv := value.(type) { @@ -16277,59 +16682,82 @@ func awsRestjson1_deserializeOpDocumentGetSubscriptionOutput(v **GetSubscription sv.CreatedBy = ptr.String(jtv) } - case "domainId": + case "description": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DomainId to be of type string, got %T instead", value) + return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.DomainId = ptr.String(jtv) + sv.Description = ptr.String(jtv) } - case "id": + case "detail": + if err := awsRestjson1_deserializeDocumentRuleDetail(&sv.Detail, value); err != nil { + return err + } + + case "identifier": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SubscriptionId to be of type string, got %T instead", value) + return fmt.Errorf("expected RuleId to be of type string, got %T instead", value) } - sv.Id = ptr.String(jtv) + sv.Identifier = ptr.String(jtv) } - case "retainPermissions": + case "lastUpdatedBy": 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 UpdatedBy to be of type string, got %T instead", value) } - sv.RetainPermissions = ptr.Bool(jtv) + sv.LastUpdatedBy = ptr.String(jtv) } - case "status": + case "name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SubscriptionStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected RuleName to be of type string, got %T instead", value) } - sv.Status = types.SubscriptionStatus(jtv) + sv.Name = ptr.String(jtv) } - case "subscribedListing": - if err := awsRestjson1_deserializeDocumentSubscribedListing(&sv.SubscribedListing, value); err != nil { + case "revision": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Revision to be of type string, got %T instead", value) + } + sv.Revision = ptr.String(jtv) + } + + case "ruleType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuleType to be of type string, got %T instead", value) + } + sv.RuleType = types.RuleType(jtv) + } + + case "scope": + if err := awsRestjson1_deserializeDocumentRuleScope(&sv.Scope, value); err != nil { return err } - case "subscribedPrincipal": - if err := awsRestjson1_deserializeDocumentSubscribedPrincipal(&sv.SubscribedPrincipal, value); err != nil { + case "target": + if err := awsRestjson1_deserializeDocumentRuleTarget(&sv.Target, value); err != nil { return err } - case "subscriptionRequestId": + case "targetType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SubscriptionRequestId to be of type string, got %T instead", value) + return fmt.Errorf("expected RuleTargetType to be of type string, got %T instead", value) } - sv.SubscriptionRequestId = ptr.String(jtv) + sv.TargetType = types.RuleTargetType(jtv) } case "updatedAt": @@ -16348,15 +16776,6 @@ func awsRestjson1_deserializeOpDocumentGetSubscriptionOutput(v **GetSubscription } } - case "updatedBy": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected UpdatedBy to be of type string, got %T instead", value) - } - sv.UpdatedBy = ptr.String(jtv) - } - default: _, _ = key, value @@ -16366,14 +16785,14 @@ func awsRestjson1_deserializeOpDocumentGetSubscriptionOutput(v **GetSubscription return nil } -type awsRestjson1_deserializeOpGetSubscriptionGrant struct { +type awsRestjson1_deserializeOpGetSubscription struct { } -func (*awsRestjson1_deserializeOpGetSubscriptionGrant) ID() string { +func (*awsRestjson1_deserializeOpGetSubscription) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetSubscriptionGrant) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetSubscription) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -16391,9 +16810,9 @@ func (m *awsRestjson1_deserializeOpGetSubscriptionGrant) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetSubscriptionGrant(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetSubscription(response, &metadata) } - output := &GetSubscriptionGrantOutput{} + output := &GetSubscriptionOutput{} out.Result = output var buff [1024]byte @@ -16414,7 +16833,7 @@ func (m *awsRestjson1_deserializeOpGetSubscriptionGrant) HandleDeserialize(ctx c return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetSubscriptionGrantOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetSubscriptionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16428,7 +16847,7 @@ func (m *awsRestjson1_deserializeOpGetSubscriptionGrant) HandleDeserialize(ctx c return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetSubscriptionGrant(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetSubscription(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -16497,7 +16916,7 @@ func awsRestjson1_deserializeOpErrorGetSubscriptionGrant(response *smithyhttp.Re } } -func awsRestjson1_deserializeOpDocumentGetSubscriptionGrantOutput(v **GetSubscriptionGrantOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetSubscriptionOutput(v **GetSubscriptionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16510,20 +16929,15 @@ func awsRestjson1_deserializeOpDocumentGetSubscriptionGrantOutput(v **GetSubscri return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetSubscriptionGrantOutput + var sv *GetSubscriptionOutput if *v == nil { - sv = &GetSubscriptionGrantOutput{} + sv = &GetSubscriptionOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "assets": - if err := awsRestjson1_deserializeDocumentSubscribedAssets(&sv.Assets, value); err != nil { - return err - } - case "createdAt": if value != nil { switch jtv := value.(type) { @@ -16558,45 +16972,50 @@ func awsRestjson1_deserializeOpDocumentGetSubscriptionGrantOutput(v **GetSubscri sv.DomainId = ptr.String(jtv) } - case "grantedEntity": - if err := awsRestjson1_deserializeDocumentGrantedEntity(&sv.GrantedEntity, value); err != nil { - return err - } - case "id": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SubscriptionGrantId to be of type string, got %T instead", value) + return fmt.Errorf("expected SubscriptionId to be of type string, got %T instead", value) } sv.Id = ptr.String(jtv) } - case "status": + case "retainPermissions": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected SubscriptionGrantOverallStatus 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.SubscriptionGrantOverallStatus(jtv) + sv.RetainPermissions = ptr.Bool(jtv) } - case "subscriptionId": + case "status": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SubscriptionId to be of type string, got %T instead", value) + return fmt.Errorf("expected SubscriptionStatus to be of type string, got %T instead", value) } - sv.SubscriptionId = ptr.String(jtv) + sv.Status = types.SubscriptionStatus(jtv) } - case "subscriptionTargetId": + case "subscribedListing": + if err := awsRestjson1_deserializeDocumentSubscribedListing(&sv.SubscribedListing, value); err != nil { + return err + } + + case "subscribedPrincipal": + if err := awsRestjson1_deserializeDocumentSubscribedPrincipal(&sv.SubscribedPrincipal, value); err != nil { + return err + } + + case "subscriptionRequestId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SubscriptionTargetId to be of type string, got %T instead", value) + return fmt.Errorf("expected SubscriptionRequestId to be of type string, got %T instead", value) } - sv.SubscriptionTargetId = ptr.String(jtv) + sv.SubscriptionRequestId = ptr.String(jtv) } case "updatedAt": @@ -16633,14 +17052,14 @@ func awsRestjson1_deserializeOpDocumentGetSubscriptionGrantOutput(v **GetSubscri return nil } -type awsRestjson1_deserializeOpGetSubscriptionRequestDetails struct { +type awsRestjson1_deserializeOpGetSubscriptionGrant struct { } -func (*awsRestjson1_deserializeOpGetSubscriptionRequestDetails) ID() string { +func (*awsRestjson1_deserializeOpGetSubscriptionGrant) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetSubscriptionRequestDetails) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetSubscriptionGrant) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -16658,9 +17077,9 @@ func (m *awsRestjson1_deserializeOpGetSubscriptionRequestDetails) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetSubscriptionRequestDetails(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetSubscriptionGrant(response, &metadata) } - output := &GetSubscriptionRequestDetailsOutput{} + output := &GetSubscriptionGrantOutput{} out.Result = output var buff [1024]byte @@ -16681,7 +17100,7 @@ func (m *awsRestjson1_deserializeOpGetSubscriptionRequestDetails) HandleDeserial return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetSubscriptionRequestDetailsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetSubscriptionGrantOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16695,7 +17114,7 @@ func (m *awsRestjson1_deserializeOpGetSubscriptionRequestDetails) HandleDeserial return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetSubscriptionRequestDetails(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetSubscriptionGrant(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -16764,7 +17183,7 @@ func awsRestjson1_deserializeOpErrorGetSubscriptionRequestDetails(response *smit } } -func awsRestjson1_deserializeOpDocumentGetSubscriptionRequestDetailsOutput(v **GetSubscriptionRequestDetailsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetSubscriptionGrantOutput(v **GetSubscriptionGrantOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16777,9 +17196,276 @@ func awsRestjson1_deserializeOpDocumentGetSubscriptionRequestDetailsOutput(v **G return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetSubscriptionRequestDetailsOutput + var sv *GetSubscriptionGrantOutput if *v == nil { - sv = &GetSubscriptionRequestDetailsOutput{} + sv = &GetSubscriptionGrantOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "assets": + if err := awsRestjson1_deserializeDocumentSubscribedAssets(&sv.Assets, 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 CreatedAt to be a JSON Number, got %T instead", value) + + } + } + + case "createdBy": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CreatedBy to be of type string, got %T instead", value) + } + sv.CreatedBy = ptr.String(jtv) + } + + case "domainId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DomainId to be of type string, got %T instead", value) + } + sv.DomainId = ptr.String(jtv) + } + + case "grantedEntity": + if err := awsRestjson1_deserializeDocumentGrantedEntity(&sv.GrantedEntity, value); err != nil { + return err + } + + case "id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SubscriptionGrantId to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } + + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SubscriptionGrantOverallStatus to be of type string, got %T instead", value) + } + sv.Status = types.SubscriptionGrantOverallStatus(jtv) + } + + case "subscriptionId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SubscriptionId to be of type string, got %T instead", value) + } + sv.SubscriptionId = ptr.String(jtv) + } + + case "subscriptionTargetId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SubscriptionTargetId to be of type string, got %T instead", value) + } + sv.SubscriptionTargetId = ptr.String(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 UpdatedAt to be a JSON Number, got %T instead", value) + + } + } + + case "updatedBy": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UpdatedBy to be of type string, got %T instead", value) + } + sv.UpdatedBy = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetSubscriptionRequestDetails struct { +} + +func (*awsRestjson1_deserializeOpGetSubscriptionRequestDetails) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetSubscriptionRequestDetails) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorGetSubscriptionRequestDetails(response, &metadata) + } + output := &GetSubscriptionRequestDetailsOutput{} + 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_deserializeOpDocumentGetSubscriptionRequestDetailsOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetSubscriptionRequestDetails(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return 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("UnauthorizedException", errorCode): + return awsRestjson1_deserializeErrorUnauthorizedException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetSubscriptionRequestDetailsOutput(v **GetSubscriptionRequestDetailsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GetSubscriptionRequestDetailsOutput + if *v == nil { + sv = &GetSubscriptionRequestDetailsOutput{} } else { sv = *v } @@ -16829,6 +17515,15 @@ func awsRestjson1_deserializeOpDocumentGetSubscriptionRequestDetailsOutput(v **G sv.DomainId = ptr.String(jtv) } + case "existingSubscriptionId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SubscriptionId to be of type string, got %T instead", value) + } + sv.ExistingSubscriptionId = ptr.String(jtv) + } + case "id": if value != nil { jtv, ok := value.(string) @@ -16838,6 +17533,11 @@ func awsRestjson1_deserializeOpDocumentGetSubscriptionRequestDetailsOutput(v **G sv.Id = ptr.String(jtv) } + case "metadataForms": + if err := awsRestjson1_deserializeDocumentMetadataForms(&sv.MetadataForms, value); err != nil { + return err + } + case "requestReason": if value != nil { jtv, ok := value.(string) @@ -21137,6 +21837,182 @@ func awsRestjson1_deserializeOpDocumentListProjectsOutput(v **ListProjectsOutput return nil } +type awsRestjson1_deserializeOpListRules struct { +} + +func (*awsRestjson1_deserializeOpListRules) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListRules) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorListRules(response, &metadata) + } + output := &ListRulesOutput{} + 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_deserializeOpDocumentListRulesOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListRules(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return 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("UnauthorizedException", errorCode): + return awsRestjson1_deserializeErrorUnauthorizedException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListRulesOutput(v **ListRulesOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListRulesOutput + if *v == nil { + sv = &ListRulesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "items": + if err := awsRestjson1_deserializeDocumentRuleSummaries(&sv.Items, 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_deserializeOpListSubscriptionGrants struct { } @@ -23126,6 +24002,15 @@ func awsRestjson1_deserializeOpDocumentRejectSubscriptionRequestOutput(v **Rejec sv.DomainId = ptr.String(jtv) } + case "existingSubscriptionId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SubscriptionId to be of type string, got %T instead", value) + } + sv.ExistingSubscriptionId = ptr.String(jtv) + } + case "id": if value != nil { jtv, ok := value.(string) @@ -23135,6 +24020,11 @@ func awsRestjson1_deserializeOpDocumentRejectSubscriptionRequestOutput(v **Rejec sv.Id = ptr.String(jtv) } + case "metadataForms": + if err := awsRestjson1_deserializeDocumentMetadataForms(&sv.MetadataForms, value); err != nil { + return err + } + case "requestReason": if value != nil { jtv, ok := value.(string) @@ -28181,14 +29071,14 @@ func awsRestjson1_deserializeOpDocumentUpdateProjectOutput(v **UpdateProjectOutp return nil } -type awsRestjson1_deserializeOpUpdateSubscriptionGrantStatus struct { +type awsRestjson1_deserializeOpUpdateRule struct { } -func (*awsRestjson1_deserializeOpUpdateSubscriptionGrantStatus) ID() string { +func (*awsRestjson1_deserializeOpUpdateRule) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateSubscriptionGrantStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpUpdateRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -28206,9 +29096,9 @@ func (m *awsRestjson1_deserializeOpUpdateSubscriptionGrantStatus) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateSubscriptionGrantStatus(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorUpdateRule(response, &metadata) } - output := &UpdateSubscriptionGrantStatusOutput{} + output := &UpdateRuleOutput{} out.Result = output var buff [1024]byte @@ -28229,7 +29119,7 @@ func (m *awsRestjson1_deserializeOpUpdateSubscriptionGrantStatus) HandleDeserial return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateSubscriptionGrantStatusOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentUpdateRuleOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -28243,7 +29133,7 @@ func (m *awsRestjson1_deserializeOpUpdateSubscriptionGrantStatus) HandleDeserial return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateSubscriptionGrantStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorUpdateRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -28296,6 +29186,9 @@ func awsRestjson1_deserializeOpErrorUpdateSubscriptionGrantStatus(response *smit 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) @@ -28315,7 +29208,7 @@ func awsRestjson1_deserializeOpErrorUpdateSubscriptionGrantStatus(response *smit } } -func awsRestjson1_deserializeOpDocumentUpdateSubscriptionGrantStatusOutput(v **UpdateSubscriptionGrantStatusOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentUpdateRuleOutput(v **UpdateRuleOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28328,18 +29221,22 @@ func awsRestjson1_deserializeOpDocumentUpdateSubscriptionGrantStatusOutput(v **U return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateSubscriptionGrantStatusOutput + var sv *UpdateRuleOutput if *v == nil { - sv = &UpdateSubscriptionGrantStatusOutput{} + sv = &UpdateRuleOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "assets": - if err := awsRestjson1_deserializeDocumentSubscribedAssets(&sv.Assets, value); err != nil { - return err + case "action": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuleAction to be of type string, got %T instead", value) + } + sv.Action = types.RuleAction(jtv) } case "createdAt": @@ -28367,54 +29264,73 @@ func awsRestjson1_deserializeOpDocumentUpdateSubscriptionGrantStatusOutput(v **U sv.CreatedBy = ptr.String(jtv) } - case "domainId": + case "description": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DomainId to be of type string, got %T instead", value) + return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.DomainId = ptr.String(jtv) + sv.Description = ptr.String(jtv) } - case "grantedEntity": - if err := awsRestjson1_deserializeDocumentGrantedEntity(&sv.GrantedEntity, value); err != nil { + case "detail": + if err := awsRestjson1_deserializeDocumentRuleDetail(&sv.Detail, value); err != nil { return err } - case "id": + case "identifier": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SubscriptionGrantId to be of type string, got %T instead", value) + return fmt.Errorf("expected RuleId to be of type string, got %T instead", value) } - sv.Id = ptr.String(jtv) + sv.Identifier = ptr.String(jtv) } - case "status": + case "lastUpdatedBy": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SubscriptionGrantOverallStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected UpdatedBy to be of type string, got %T instead", value) } - sv.Status = types.SubscriptionGrantOverallStatus(jtv) + sv.LastUpdatedBy = ptr.String(jtv) } - case "subscriptionId": + case "name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SubscriptionId to be of type string, got %T instead", value) + return fmt.Errorf("expected RuleName to be of type string, got %T instead", value) } - sv.SubscriptionId = ptr.String(jtv) + sv.Name = ptr.String(jtv) } - case "subscriptionTargetId": + case "revision": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SubscriptionTargetId to be of type string, got %T instead", value) + return fmt.Errorf("expected Revision to be of type string, got %T instead", value) } - sv.SubscriptionTargetId = ptr.String(jtv) + sv.Revision = ptr.String(jtv) + } + + case "ruleType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuleType to be of type string, got %T instead", value) + } + sv.RuleType = types.RuleType(jtv) + } + + case "scope": + if err := awsRestjson1_deserializeDocumentRuleScope(&sv.Scope, value); err != nil { + return err + } + + case "target": + if err := awsRestjson1_deserializeDocumentRuleTarget(&sv.Target, value); err != nil { + return err } case "updatedAt": @@ -28433,15 +29349,6 @@ func awsRestjson1_deserializeOpDocumentUpdateSubscriptionGrantStatusOutput(v **U } } - case "updatedBy": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected UpdatedBy to be of type string, got %T instead", value) - } - sv.UpdatedBy = ptr.String(jtv) - } - default: _, _ = key, value @@ -28451,14 +29358,14 @@ func awsRestjson1_deserializeOpDocumentUpdateSubscriptionGrantStatusOutput(v **U return nil } -type awsRestjson1_deserializeOpUpdateSubscriptionRequest struct { +type awsRestjson1_deserializeOpUpdateSubscriptionGrantStatus struct { } -func (*awsRestjson1_deserializeOpUpdateSubscriptionRequest) ID() string { +func (*awsRestjson1_deserializeOpUpdateSubscriptionGrantStatus) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateSubscriptionRequest) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpUpdateSubscriptionGrantStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -28476,9 +29383,9 @@ func (m *awsRestjson1_deserializeOpUpdateSubscriptionRequest) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateSubscriptionRequest(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorUpdateSubscriptionGrantStatus(response, &metadata) } - output := &UpdateSubscriptionRequestOutput{} + output := &UpdateSubscriptionGrantStatusOutput{} out.Result = output var buff [1024]byte @@ -28499,7 +29406,7 @@ func (m *awsRestjson1_deserializeOpUpdateSubscriptionRequest) HandleDeserialize( return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateSubscriptionRequestOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentUpdateSubscriptionGrantStatusOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -28513,7 +29420,277 @@ func (m *awsRestjson1_deserializeOpUpdateSubscriptionRequest) HandleDeserialize( return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateSubscriptionRequest(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorUpdateSubscriptionGrantStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return 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("UnauthorizedException", errorCode): + return awsRestjson1_deserializeErrorUnauthorizedException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateSubscriptionGrantStatusOutput(v **UpdateSubscriptionGrantStatusOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateSubscriptionGrantStatusOutput + if *v == nil { + sv = &UpdateSubscriptionGrantStatusOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "assets": + if err := awsRestjson1_deserializeDocumentSubscribedAssets(&sv.Assets, 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 CreatedAt to be a JSON Number, got %T instead", value) + + } + } + + case "createdBy": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CreatedBy to be of type string, got %T instead", value) + } + sv.CreatedBy = ptr.String(jtv) + } + + case "domainId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DomainId to be of type string, got %T instead", value) + } + sv.DomainId = ptr.String(jtv) + } + + case "grantedEntity": + if err := awsRestjson1_deserializeDocumentGrantedEntity(&sv.GrantedEntity, value); err != nil { + return err + } + + case "id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SubscriptionGrantId to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } + + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SubscriptionGrantOverallStatus to be of type string, got %T instead", value) + } + sv.Status = types.SubscriptionGrantOverallStatus(jtv) + } + + case "subscriptionId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SubscriptionId to be of type string, got %T instead", value) + } + sv.SubscriptionId = ptr.String(jtv) + } + + case "subscriptionTargetId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SubscriptionTargetId to be of type string, got %T instead", value) + } + sv.SubscriptionTargetId = ptr.String(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 UpdatedAt to be a JSON Number, got %T instead", value) + + } + } + + case "updatedBy": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UpdatedBy to be of type string, got %T instead", value) + } + sv.UpdatedBy = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateSubscriptionRequest struct { +} + +func (*awsRestjson1_deserializeOpUpdateSubscriptionRequest) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateSubscriptionRequest) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorUpdateSubscriptionRequest(response, &metadata) + } + output := &UpdateSubscriptionRequestOutput{} + 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_deserializeOpDocumentUpdateSubscriptionRequestOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateSubscriptionRequest(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -28650,6 +29827,15 @@ func awsRestjson1_deserializeOpDocumentUpdateSubscriptionRequestOutput(v **Updat sv.DomainId = ptr.String(jtv) } + case "existingSubscriptionId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SubscriptionId to be of type string, got %T instead", value) + } + sv.ExistingSubscriptionId = ptr.String(jtv) + } + case "id": if value != nil { jtv, ok := value.(string) @@ -28659,6 +29845,11 @@ func awsRestjson1_deserializeOpDocumentUpdateSubscriptionRequestOutput(v **Updat sv.Id = ptr.String(jtv) } + case "metadataForms": + if err := awsRestjson1_deserializeDocumentMetadataForms(&sv.MetadataForms, value); err != nil { + return err + } + case "requestReason": if value != nil { jtv, ok := value.(string) @@ -30922,6 +32113,51 @@ func awsRestjson1_deserializeDocumentAssetTypeItem(v **types.AssetTypeItem, valu return nil } +func awsRestjson1_deserializeDocumentAssetTypesForRule(v **types.AssetTypesForRule, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AssetTypesForRule + if *v == nil { + sv = &types.AssetTypesForRule{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "selectionMode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuleScopeSelectionMode to be of type string, got %T instead", value) + } + sv.SelectionMode = types.RuleScopeSelectionMode(jtv) + } + + case "specificAssetTypes": + if err := awsRestjson1_deserializeDocumentRuleAssetTypeList(&sv.SpecificAssetTypes, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentAuthorizedPrincipalIdentifiers(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -33733,6 +34969,55 @@ func awsRestjson1_deserializeDocumentDomainUnitSummary(v **types.DomainUnitSumma return nil } +func awsRestjson1_deserializeDocumentDomainUnitTarget(v **types.DomainUnitTarget, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.DomainUnitTarget + if *v == nil { + sv = &types.DomainUnitTarget{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "domainUnitId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DomainUnitId to be of type string, got %T instead", value) + } + sv.DomainUnitId = ptr.String(jtv) + } + + case "includeChildDomainUnits": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.IncludeChildDomainUnits = ptr.Bool(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentDomainUnitUserProperties(v **types.DomainUnitUserProperties, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -37245,6 +38530,217 @@ loop: return nil } +func awsRestjson1_deserializeDocumentMetadataFormEnforcementDetail(v **types.MetadataFormEnforcementDetail, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.MetadataFormEnforcementDetail + if *v == nil { + sv = &types.MetadataFormEnforcementDetail{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "requiredMetadataForms": + if err := awsRestjson1_deserializeDocumentRequiredMetadataFormList(&sv.RequiredMetadataForms, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentMetadataFormReference(v **types.MetadataFormReference, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.MetadataFormReference + if *v == nil { + sv = &types.MetadataFormReference{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "typeIdentifier": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FormTypeIdentifier to be of type string, got %T instead", value) + } + sv.TypeIdentifier = ptr.String(jtv) + } + + case "typeRevision": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Revision to be of type string, got %T instead", value) + } + sv.TypeRevision = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentMetadataForms(v *[]types.FormOutput, 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.FormOutput + if *v == nil { + cv = []types.FormOutput{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.FormOutput + destAddr := &col + if err := awsRestjson1_deserializeDocumentFormOutput(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentMetadataFormsSummary(v *[]types.MetadataFormSummary, 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.MetadataFormSummary + if *v == nil { + cv = []types.MetadataFormSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.MetadataFormSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentMetadataFormSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentMetadataFormSummary(v **types.MetadataFormSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.MetadataFormSummary + if *v == nil { + sv = &types.MetadataFormSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "formName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FormName to be of type string, got %T instead", value) + } + sv.FormName = ptr.String(jtv) + } + + case "typeName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FormTypeName to be of type string, got %T instead", value) + } + sv.TypeName = ptr.String(jtv) + } + + case "typeRevision": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Revision to be of type string, got %T instead", value) + } + sv.TypeRevision = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentMetadataGenerationRunItem(v **types.MetadataGenerationRunItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -38666,6 +40162,51 @@ func awsRestjson1_deserializeDocumentProjectPolicyGrantPrincipal(v **types.Proje return nil } +func awsRestjson1_deserializeDocumentProjectsForRule(v **types.ProjectsForRule, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.ProjectsForRule + if *v == nil { + sv = &types.ProjectsForRule{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "selectionMode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuleScopeSelectionMode to be of type string, got %T instead", value) + } + sv.SelectionMode = types.RuleScopeSelectionMode(jtv) + } + + case "specificProjects": + if err := awsRestjson1_deserializeDocumentRuleProjectIdentifierList(&sv.SpecificProjects, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentProjectSummaries(v *[]types.ProjectSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -39414,6 +40955,40 @@ func awsRestjson1_deserializeDocumentRelationalFilterConfigurations(v *[]types.R return nil } +func awsRestjson1_deserializeDocumentRequiredMetadataFormList(v *[]types.MetadataFormReference, 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.MetadataFormReference + if *v == nil { + cv = []types.MetadataFormReference{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.MetadataFormReference + destAddr := &col + if err := awsRestjson1_deserializeDocumentMetadataFormReference(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -39836,6 +41411,362 @@ func awsRestjson1_deserializeDocumentRowFilterList(v *[]types.RowFilter, value i return nil } +func awsRestjson1_deserializeDocumentRuleAssetTypeList(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 AssetTypeIdentifier to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentRuleDetail(v *types.RuleDetail, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var uv types.RuleDetail +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "metadataFormEnforcementDetail": + var mv types.MetadataFormEnforcementDetail + destAddr := &mv + if err := awsRestjson1_deserializeDocumentMetadataFormEnforcementDetail(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.RuleDetailMemberMetadataFormEnforcementDetail{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + +func awsRestjson1_deserializeDocumentRuleProjectIdentifierList(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 ProjectId to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentRuleScope(v **types.RuleScope, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.RuleScope + if *v == nil { + sv = &types.RuleScope{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "assetType": + if err := awsRestjson1_deserializeDocumentAssetTypesForRule(&sv.AssetType, value); err != nil { + return err + } + + case "dataProduct": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.DataProduct = ptr.Bool(jtv) + } + + case "project": + if err := awsRestjson1_deserializeDocumentProjectsForRule(&sv.Project, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentRuleSummaries(v *[]types.RuleSummary, 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.RuleSummary + if *v == nil { + cv = []types.RuleSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.RuleSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentRuleSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentRuleSummary(v **types.RuleSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.RuleSummary + if *v == nil { + sv = &types.RuleSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "action": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuleAction to be of type string, got %T instead", value) + } + sv.Action = types.RuleAction(jtv) + } + + case "identifier": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuleId to be of type string, got %T instead", value) + } + sv.Identifier = ptr.String(jtv) + } + + case "lastUpdatedBy": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UpdatedBy to be of type string, got %T instead", value) + } + sv.LastUpdatedBy = ptr.String(jtv) + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuleName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "revision": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Revision to be of type string, got %T instead", value) + } + sv.Revision = ptr.String(jtv) + } + + case "ruleType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuleType to be of type string, got %T instead", value) + } + sv.RuleType = types.RuleType(jtv) + } + + case "scope": + if err := awsRestjson1_deserializeDocumentRuleScope(&sv.Scope, value); err != nil { + return err + } + + case "target": + if err := awsRestjson1_deserializeDocumentRuleTarget(&sv.Target, value); err != nil { + return err + } + + case "targetType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuleTargetType to be of type string, got %T instead", value) + } + sv.TargetType = types.RuleTargetType(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 UpdatedAt to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentRuleTarget(v *types.RuleTarget, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var uv types.RuleTarget +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "domainUnitTarget": + var mv types.DomainUnitTarget + destAddr := &mv + if err := awsRestjson1_deserializeDocumentDomainUnitTarget(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.RuleTargetMemberDomainUnitTarget{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + func awsRestjson1_deserializeDocumentRunStatisticsForAssets(v **types.RunStatisticsForAssets, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -41488,6 +43419,15 @@ func awsRestjson1_deserializeDocumentSubscriptionRequestSummary(v **types.Subscr sv.DomainId = ptr.String(jtv) } + case "existingSubscriptionId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SubscriptionId to be of type string, got %T instead", value) + } + sv.ExistingSubscriptionId = ptr.String(jtv) + } + case "id": if value != nil { jtv, ok := value.(string) @@ -41497,6 +43437,11 @@ func awsRestjson1_deserializeDocumentSubscriptionRequestSummary(v **types.Subscr sv.Id = ptr.String(jtv) } + case "metadataFormsSummary": + if err := awsRestjson1_deserializeDocumentMetadataFormsSummary(&sv.MetadataFormsSummary, value); err != nil { + return err + } + case "requestReason": if value != nil { jtv, ok := value.(string) diff --git a/service/datazone/generated.json b/service/datazone/generated.json index 5cf281680f7..1e27f19ea2f 100644 --- a/service/datazone/generated.json +++ b/service/datazone/generated.json @@ -34,6 +34,7 @@ "api_op_CreateListingChangeSet.go", "api_op_CreateProject.go", "api_op_CreateProjectMembership.go", + "api_op_CreateRule.go", "api_op_CreateSubscriptionGrant.go", "api_op_CreateSubscriptionRequest.go", "api_op_CreateSubscriptionTarget.go", @@ -55,6 +56,7 @@ "api_op_DeleteListing.go", "api_op_DeleteProject.go", "api_op_DeleteProjectMembership.go", + "api_op_DeleteRule.go", "api_op_DeleteSubscriptionGrant.go", "api_op_DeleteSubscriptionRequest.go", "api_op_DeleteSubscriptionTarget.go", @@ -83,6 +85,7 @@ "api_op_GetListing.go", "api_op_GetMetadataGenerationRun.go", "api_op_GetProject.go", + "api_op_GetRule.go", "api_op_GetSubscription.go", "api_op_GetSubscriptionGrant.go", "api_op_GetSubscriptionRequestDetails.go", @@ -109,6 +112,7 @@ "api_op_ListPolicyGrants.go", "api_op_ListProjectMemberships.go", "api_op_ListProjects.go", + "api_op_ListRules.go", "api_op_ListSubscriptionGrants.go", "api_op_ListSubscriptionRequests.go", "api_op_ListSubscriptionTargets.go", @@ -143,6 +147,7 @@ "api_op_UpdateGlossaryTerm.go", "api_op_UpdateGroupProfile.go", "api_op_UpdateProject.go", + "api_op_UpdateRule.go", "api_op_UpdateSubscriptionGrantStatus.go", "api_op_UpdateSubscriptionRequest.go", "api_op_UpdateSubscriptionTarget.go", diff --git a/service/datazone/go.mod b/service/datazone/go.mod index 499bba75920..99d5f617bca 100644 --- a/service/datazone/go.mod +++ b/service/datazone/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/datazone go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/datazone/go.sum b/service/datazone/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/datazone/go.sum +++ b/service/datazone/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/datazone/go_module_metadata.go b/service/datazone/go_module_metadata.go index 0a51c1c0f6c..93a704066fa 100644 --- a/service/datazone/go_module_metadata.go +++ b/service/datazone/go_module_metadata.go @@ -3,4 +3,4 @@ package datazone // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.3" +const goModuleVersion = "1.24.0" diff --git a/service/datazone/serializers.go b/service/datazone/serializers.go index a06017f6848..46a3c3cc447 100644 --- a/service/datazone/serializers.go +++ b/service/datazone/serializers.go @@ -3076,6 +3076,136 @@ func awsRestjson1_serializeOpDocumentCreateProjectMembershipInput(v *CreateProje return nil } +type awsRestjson1_serializeOpCreateRule struct { +} + +func (*awsRestjson1_serializeOpCreateRule) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateRule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*CreateRuleInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/v2/domains/{domainIdentifier}/rules") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsCreateRuleInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateRuleInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateRuleInput(v *CreateRuleInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.DomainIdentifier == nil || len(*v.DomainIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member domainIdentifier must not be empty")} + } + if v.DomainIdentifier != nil { + if err := encoder.SetURI("domainIdentifier").String(*v.DomainIdentifier); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateRuleInput(v *CreateRuleInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.Action) > 0 { + ok := object.Key("action") + ok.String(string(v.Action)) + } + + if v.ClientToken != nil { + ok := object.Key("clientToken") + ok.String(*v.ClientToken) + } + + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + if v.Detail != nil { + ok := object.Key("detail") + if err := awsRestjson1_serializeDocumentRuleDetail(v.Detail, ok); err != nil { + return err + } + } + + if v.Name != nil { + ok := object.Key("name") + ok.String(*v.Name) + } + + if v.Scope != nil { + ok := object.Key("scope") + if err := awsRestjson1_serializeDocumentRuleScope(v.Scope, ok); err != nil { + return err + } + } + + if v.Target != nil { + ok := object.Key("target") + if err := awsRestjson1_serializeDocumentRuleTarget(v.Target, ok); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpCreateSubscriptionGrant struct { } @@ -3285,6 +3415,13 @@ func awsRestjson1_serializeOpDocumentCreateSubscriptionRequestInput(v *CreateSub ok.String(*v.ClientToken) } + if v.MetadataForms != nil { + ok := object.Key("metadataForms") + if err := awsRestjson1_serializeDocumentMetadataFormInputs(v.MetadataForms, ok); err != nil { + return err + } + } + if v.RequestReason != nil { ok := object.Key("requestReason") ok.String(*v.RequestReason) @@ -4969,6 +5106,86 @@ func awsRestjson1_serializeOpDocumentDeleteProjectMembershipInput(v *DeleteProje return nil } +type awsRestjson1_serializeOpDeleteRule struct { +} + +func (*awsRestjson1_serializeOpDeleteRule) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteRule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DeleteRuleInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/v2/domains/{domainIdentifier}/rules/{identifier}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteRuleInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteRuleInput(v *DeleteRuleInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.DomainIdentifier == nil || len(*v.DomainIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member domainIdentifier must not be empty")} + } + if v.DomainIdentifier != nil { + if err := encoder.SetURI("domainIdentifier").String(*v.DomainIdentifier); err != nil { + return err + } + } + + if v.Identifier == nil || len(*v.Identifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member identifier must not be empty")} + } + if v.Identifier != nil { + if err := encoder.SetURI("identifier").String(*v.Identifier); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpDeleteSubscriptionGrant struct { } @@ -7268,14 +7485,14 @@ func awsRestjson1_serializeOpHttpBindingsGetProjectInput(v *GetProjectInput, enc return nil } -type awsRestjson1_serializeOpGetSubscription struct { +type awsRestjson1_serializeOpGetRule struct { } -func (*awsRestjson1_serializeOpGetSubscription) ID() string { +func (*awsRestjson1_serializeOpGetRule) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetSubscription) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetRule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -7287,13 +7504,13 @@ func (m *awsRestjson1_serializeOpGetSubscription) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetSubscriptionInput) + input, ok := in.Parameters.(*GetRuleInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/v2/domains/{domainIdentifier}/subscriptions/{identifier}") + opPath, opQuery := httpbinding.SplitURI("/v2/domains/{domainIdentifier}/rules/{identifier}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -7309,7 +7526,7 @@ func (m *awsRestjson1_serializeOpGetSubscription) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetSubscriptionInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetRuleInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -7322,7 +7539,7 @@ func (m *awsRestjson1_serializeOpGetSubscription) HandleSerialize(ctx context.Co span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetSubscriptionInput(v *GetSubscriptionInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetRuleInput(v *GetRuleInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -7345,17 +7562,21 @@ func awsRestjson1_serializeOpHttpBindingsGetSubscriptionInput(v *GetSubscription } } + if v.Revision != nil { + encoder.SetQuery("revision").String(*v.Revision) + } + return nil } -type awsRestjson1_serializeOpGetSubscriptionGrant struct { +type awsRestjson1_serializeOpGetSubscription struct { } -func (*awsRestjson1_serializeOpGetSubscriptionGrant) ID() string { +func (*awsRestjson1_serializeOpGetSubscription) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetSubscriptionGrant) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetSubscription) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -7367,13 +7588,13 @@ func (m *awsRestjson1_serializeOpGetSubscriptionGrant) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetSubscriptionGrantInput) + input, ok := in.Parameters.(*GetSubscriptionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/v2/domains/{domainIdentifier}/subscription-grants/{identifier}") + opPath, opQuery := httpbinding.SplitURI("/v2/domains/{domainIdentifier}/subscriptions/{identifier}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -7389,7 +7610,7 @@ func (m *awsRestjson1_serializeOpGetSubscriptionGrant) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetSubscriptionGrantInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetSubscriptionInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -7402,7 +7623,7 @@ func (m *awsRestjson1_serializeOpGetSubscriptionGrant) HandleSerialize(ctx conte span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetSubscriptionGrantInput(v *GetSubscriptionGrantInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetSubscriptionInput(v *GetSubscriptionInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -7428,14 +7649,14 @@ func awsRestjson1_serializeOpHttpBindingsGetSubscriptionGrantInput(v *GetSubscri return nil } -type awsRestjson1_serializeOpGetSubscriptionRequestDetails struct { +type awsRestjson1_serializeOpGetSubscriptionGrant struct { } -func (*awsRestjson1_serializeOpGetSubscriptionRequestDetails) ID() string { +func (*awsRestjson1_serializeOpGetSubscriptionGrant) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetSubscriptionRequestDetails) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetSubscriptionGrant) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -7447,13 +7668,13 @@ func (m *awsRestjson1_serializeOpGetSubscriptionRequestDetails) HandleSerialize( return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetSubscriptionRequestDetailsInput) + input, ok := in.Parameters.(*GetSubscriptionGrantInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/v2/domains/{domainIdentifier}/subscription-requests/{identifier}") + opPath, opQuery := httpbinding.SplitURI("/v2/domains/{domainIdentifier}/subscription-grants/{identifier}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -7469,7 +7690,7 @@ func (m *awsRestjson1_serializeOpGetSubscriptionRequestDetails) HandleSerialize( return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetSubscriptionRequestDetailsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetSubscriptionGrantInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -7482,7 +7703,7 @@ func (m *awsRestjson1_serializeOpGetSubscriptionRequestDetails) HandleSerialize( span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetSubscriptionRequestDetailsInput(v *GetSubscriptionRequestDetailsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetSubscriptionGrantInput(v *GetSubscriptionGrantInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -7508,14 +7729,14 @@ func awsRestjson1_serializeOpHttpBindingsGetSubscriptionRequestDetailsInput(v *G return nil } -type awsRestjson1_serializeOpGetSubscriptionTarget struct { +type awsRestjson1_serializeOpGetSubscriptionRequestDetails struct { } -func (*awsRestjson1_serializeOpGetSubscriptionTarget) ID() string { +func (*awsRestjson1_serializeOpGetSubscriptionRequestDetails) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetSubscriptionTarget) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetSubscriptionRequestDetails) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -7527,13 +7748,13 @@ func (m *awsRestjson1_serializeOpGetSubscriptionTarget) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetSubscriptionTargetInput) + input, ok := in.Parameters.(*GetSubscriptionRequestDetailsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets/{identifier}") + opPath, opQuery := httpbinding.SplitURI("/v2/domains/{domainIdentifier}/subscription-requests/{identifier}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -7549,7 +7770,7 @@ func (m *awsRestjson1_serializeOpGetSubscriptionTarget) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetSubscriptionTargetInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetSubscriptionRequestDetailsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -7562,7 +7783,7 @@ func (m *awsRestjson1_serializeOpGetSubscriptionTarget) HandleSerialize(ctx cont span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetSubscriptionTargetInput(v *GetSubscriptionTargetInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetSubscriptionRequestDetailsInput(v *GetSubscriptionRequestDetailsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -7576,15 +7797,6 @@ func awsRestjson1_serializeOpHttpBindingsGetSubscriptionTargetInput(v *GetSubscr } } - if v.EnvironmentIdentifier == nil || len(*v.EnvironmentIdentifier) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member environmentIdentifier must not be empty")} - } - if v.EnvironmentIdentifier != nil { - if err := encoder.SetURI("environmentIdentifier").String(*v.EnvironmentIdentifier); err != nil { - return err - } - } - if v.Identifier == nil || len(*v.Identifier) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member identifier must not be empty")} } @@ -7597,7 +7809,96 @@ func awsRestjson1_serializeOpHttpBindingsGetSubscriptionTargetInput(v *GetSubscr return nil } -type awsRestjson1_serializeOpGetTimeSeriesDataPoint struct { +type awsRestjson1_serializeOpGetSubscriptionTarget struct { +} + +func (*awsRestjson1_serializeOpGetSubscriptionTarget) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetSubscriptionTarget) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*GetSubscriptionTargetInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets/{identifier}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetSubscriptionTargetInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetSubscriptionTargetInput(v *GetSubscriptionTargetInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.DomainIdentifier == nil || len(*v.DomainIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member domainIdentifier must not be empty")} + } + if v.DomainIdentifier != nil { + if err := encoder.SetURI("domainIdentifier").String(*v.DomainIdentifier); err != nil { + return err + } + } + + if v.EnvironmentIdentifier == nil || len(*v.EnvironmentIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member environmentIdentifier must not be empty")} + } + if v.EnvironmentIdentifier != nil { + if err := encoder.SetURI("environmentIdentifier").String(*v.EnvironmentIdentifier); err != nil { + return err + } + } + + if v.Identifier == nil || len(*v.Identifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member identifier must not be empty")} + } + if v.Identifier != nil { + if err := encoder.SetURI("identifier").String(*v.Identifier); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetTimeSeriesDataPoint struct { } func (*awsRestjson1_serializeOpGetTimeSeriesDataPoint) ID() string { @@ -9632,6 +9933,131 @@ func awsRestjson1_serializeOpHttpBindingsListProjectsInput(v *ListProjectsInput, return nil } +type awsRestjson1_serializeOpListRules struct { +} + +func (*awsRestjson1_serializeOpListRules) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListRules) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*ListRulesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/v2/domains/{domainIdentifier}/list-rules/{targetType}/{targetIdentifier}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListRulesInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListRulesInput(v *ListRulesInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if len(v.Action) > 0 { + encoder.SetQuery("ruleAction").String(string(v.Action)) + } + + if v.AssetTypes != nil { + for i := range v.AssetTypes { + encoder.AddQuery("assetTypes").String(v.AssetTypes[i]) + } + } + + if v.DataProduct != nil { + encoder.SetQuery("dataProduct").Boolean(*v.DataProduct) + } + + if v.DomainIdentifier == nil || len(*v.DomainIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member domainIdentifier must not be empty")} + } + if v.DomainIdentifier != nil { + if err := encoder.SetURI("domainIdentifier").String(*v.DomainIdentifier); err != nil { + return err + } + } + + if v.IncludeCascaded != nil { + encoder.SetQuery("includeCascaded").Boolean(*v.IncludeCascaded) + } + + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + if v.ProjectIds != nil { + for i := range v.ProjectIds { + encoder.AddQuery("projectIds").String(v.ProjectIds[i]) + } + } + + if len(v.RuleType) > 0 { + encoder.SetQuery("ruleType").String(string(v.RuleType)) + } + + if v.TargetIdentifier == nil || len(*v.TargetIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member targetIdentifier must not be empty")} + } + if v.TargetIdentifier != nil { + if err := encoder.SetURI("targetIdentifier").String(*v.TargetIdentifier); err != nil { + return err + } + } + + if len(v.TargetType) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member targetType must not be empty")} + } + if len(v.TargetType) > 0 { + if err := encoder.SetURI("targetType").String(string(v.TargetType)); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpListSubscriptionGrants struct { } @@ -13472,6 +13898,133 @@ func awsRestjson1_serializeOpDocumentUpdateProjectInput(v *UpdateProjectInput, v return nil } +type awsRestjson1_serializeOpUpdateRule struct { +} + +func (*awsRestjson1_serializeOpUpdateRule) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateRule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*UpdateRuleInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/v2/domains/{domainIdentifier}/rules/{identifier}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PATCH" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateRuleInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateRuleInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateRuleInput(v *UpdateRuleInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.DomainIdentifier == nil || len(*v.DomainIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member domainIdentifier must not be empty")} + } + if v.DomainIdentifier != nil { + if err := encoder.SetURI("domainIdentifier").String(*v.DomainIdentifier); err != nil { + return err + } + } + + if v.Identifier == nil || len(*v.Identifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member identifier must not be empty")} + } + if v.Identifier != nil { + if err := encoder.SetURI("identifier").String(*v.Identifier); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateRuleInput(v *UpdateRuleInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + if v.Detail != nil { + ok := object.Key("detail") + if err := awsRestjson1_serializeDocumentRuleDetail(v.Detail, ok); err != nil { + return err + } + } + + if v.IncludeChildDomainUnits != nil { + ok := object.Key("includeChildDomainUnits") + ok.Boolean(*v.IncludeChildDomainUnits) + } + + if v.Name != nil { + ok := object.Key("name") + ok.String(*v.Name) + } + + if v.Scope != nil { + ok := object.Key("scope") + if err := awsRestjson1_serializeDocumentRuleScope(v.Scope, ok); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpUpdateSubscriptionGrantStatus struct { } @@ -14156,6 +14709,25 @@ func awsRestjson1_serializeDocumentAssetTargetNames(v []types.AssetTargetNameMap return nil } +func awsRestjson1_serializeDocumentAssetTypesForRule(v *types.AssetTypesForRule, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.SelectionMode) > 0 { + ok := object.Key("selectionMode") + ok.String(string(v.SelectionMode)) + } + + if v.SpecificAssetTypes != nil { + ok := object.Key("specificAssetTypes") + if err := awsRestjson1_serializeDocumentRuleAssetTypeList(v.SpecificAssetTypes, ok); err != nil { + return err + } + } + + return nil +} + func awsRestjson1_serializeDocumentAuthorizedPrincipalIdentifiers(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -14413,6 +14985,23 @@ func awsRestjson1_serializeDocumentDomainUnitPolicyGrantPrincipal(v *types.Domai return nil } +func awsRestjson1_serializeDocumentDomainUnitTarget(v *types.DomainUnitTarget, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DomainUnitId != nil { + ok := object.Key("domainUnitId") + ok.String(*v.DomainUnitId) + } + + if v.IncludeChildDomainUnits != nil { + ok := object.Key("includeChildDomainUnits") + ok.Boolean(*v.IncludeChildDomainUnits) + } + + return nil +} + func awsRestjson1_serializeDocumentEnabledRegionList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -14927,6 +15516,50 @@ func awsRestjson1_serializeDocumentMember(v types.Member, value smithyjson.Value return nil } +func awsRestjson1_serializeDocumentMetadataFormEnforcementDetail(v *types.MetadataFormEnforcementDetail, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.RequiredMetadataForms != nil { + ok := object.Key("requiredMetadataForms") + if err := awsRestjson1_serializeDocumentRequiredMetadataFormList(v.RequiredMetadataForms, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentMetadataFormInputs(v []types.FormInput, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentFormInput(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentMetadataFormReference(v *types.MetadataFormReference, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.TypeIdentifier != nil { + ok := object.Key("typeIdentifier") + ok.String(*v.TypeIdentifier) + } + + if v.TypeRevision != nil { + ok := object.Key("typeRevision") + ok.String(*v.TypeRevision) + } + + return nil +} + func awsRestjson1_serializeDocumentMetadataGenerationRunTarget(v *types.MetadataGenerationRunTarget, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -15271,6 +15904,25 @@ func awsRestjson1_serializeDocumentProjectPolicyGrantPrincipal(v *types.ProjectP return nil } +func awsRestjson1_serializeDocumentProjectsForRule(v *types.ProjectsForRule, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.SelectionMode) > 0 { + ok := object.Key("selectionMode") + ok.String(string(v.SelectionMode)) + } + + if v.SpecificProjects != nil { + ok := object.Key("specificProjects") + if err := awsRestjson1_serializeDocumentRuleProjectIdentifierList(v.SpecificProjects, ok); err != nil { + return err + } + } + + return nil +} + func awsRestjson1_serializeDocumentProvisioningConfiguration(v types.ProvisioningConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -15536,6 +16188,19 @@ func awsRestjson1_serializeDocumentRelationalFilterConfigurations(v []types.Rela return nil } +func awsRestjson1_serializeDocumentRequiredMetadataFormList(v []types.MetadataFormReference, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentMetadataFormReference(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsRestjson1_serializeDocumentRowFilter(v types.RowFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -15685,6 +16350,90 @@ func awsRestjson1_serializeDocumentRowFilterList(v []types.RowFilter, value smit return nil } +func awsRestjson1_serializeDocumentRuleAssetTypeList(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_serializeDocumentRuleDetail(v types.RuleDetail, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.RuleDetailMemberMetadataFormEnforcementDetail: + av := object.Key("metadataFormEnforcementDetail") + if err := awsRestjson1_serializeDocumentMetadataFormEnforcementDetail(&uv.Value, av); err != nil { + return err + } + + default: + return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) + + } + return nil +} + +func awsRestjson1_serializeDocumentRuleProjectIdentifierList(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_serializeDocumentRuleScope(v *types.RuleScope, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AssetType != nil { + ok := object.Key("assetType") + if err := awsRestjson1_serializeDocumentAssetTypesForRule(v.AssetType, ok); err != nil { + return err + } + } + + if v.DataProduct != nil { + ok := object.Key("dataProduct") + ok.Boolean(*v.DataProduct) + } + + if v.Project != nil { + ok := object.Key("project") + if err := awsRestjson1_serializeDocumentProjectsForRule(v.Project, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentRuleTarget(v types.RuleTarget, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.RuleTargetMemberDomainUnitTarget: + av := object.Key("domainUnitTarget") + if err := awsRestjson1_serializeDocumentDomainUnitTarget(&uv.Value, av); err != nil { + return err + } + + default: + return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) + + } + return nil +} + func awsRestjson1_serializeDocumentS3LocationList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() diff --git a/service/datazone/snapshot/api_op_CreateRule.go.snap b/service/datazone/snapshot/api_op_CreateRule.go.snap new file mode 100644 index 00000000000..f8313fb9b39 --- /dev/null +++ b/service/datazone/snapshot/api_op_CreateRule.go.snap @@ -0,0 +1,42 @@ +CreateRule + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + OperationIdempotencyTokenAutoFill + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/datazone/snapshot/api_op_DeleteRule.go.snap b/service/datazone/snapshot/api_op_DeleteRule.go.snap new file mode 100644 index 00000000000..f1b43d068da --- /dev/null +++ b/service/datazone/snapshot/api_op_DeleteRule.go.snap @@ -0,0 +1,41 @@ +DeleteRule + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/datazone/snapshot/api_op_GetRule.go.snap b/service/datazone/snapshot/api_op_GetRule.go.snap new file mode 100644 index 00000000000..d9d32ce7bb9 --- /dev/null +++ b/service/datazone/snapshot/api_op_GetRule.go.snap @@ -0,0 +1,41 @@ +GetRule + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/datazone/snapshot/api_op_ListRules.go.snap b/service/datazone/snapshot/api_op_ListRules.go.snap new file mode 100644 index 00000000000..f618e340aa4 --- /dev/null +++ b/service/datazone/snapshot/api_op_ListRules.go.snap @@ -0,0 +1,41 @@ +ListRules + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/datazone/snapshot/api_op_UpdateRule.go.snap b/service/datazone/snapshot/api_op_UpdateRule.go.snap new file mode 100644 index 00000000000..902b6583364 --- /dev/null +++ b/service/datazone/snapshot/api_op_UpdateRule.go.snap @@ -0,0 +1,41 @@ +UpdateRule + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/datazone/snapshot_test.go b/service/datazone/snapshot_test.go index f5ea0939139..48408627ae7 100644 --- a/service/datazone/snapshot_test.go +++ b/service/datazone/snapshot_test.go @@ -374,6 +374,18 @@ func TestCheckSnapshot_CreateProjectMembership(t *testing.T) { } } +func TestCheckSnapshot_CreateRule(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateRule(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "CreateRule") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_CreateSubscriptionGrant(t *testing.T) { svc := New(Options{}) _, err := svc.CreateSubscriptionGrant(context.Background(), nil, func(o *Options) { @@ -626,6 +638,18 @@ func TestCheckSnapshot_DeleteProjectMembership(t *testing.T) { } } +func TestCheckSnapshot_DeleteRule(t *testing.T) { + svc := New(Options{}) + _, err := svc.DeleteRule(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "DeleteRule") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_DeleteSubscriptionGrant(t *testing.T) { svc := New(Options{}) _, err := svc.DeleteSubscriptionGrant(context.Background(), nil, func(o *Options) { @@ -962,6 +986,18 @@ func TestCheckSnapshot_GetProject(t *testing.T) { } } +func TestCheckSnapshot_GetRule(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetRule(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "GetRule") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_GetSubscription(t *testing.T) { svc := New(Options{}) _, err := svc.GetSubscription(context.Background(), nil, func(o *Options) { @@ -1274,6 +1310,18 @@ func TestCheckSnapshot_ListProjects(t *testing.T) { } } +func TestCheckSnapshot_ListRules(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListRules(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "ListRules") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_ListSubscriptionGrants(t *testing.T) { svc := New(Options{}) _, err := svc.ListSubscriptionGrants(context.Background(), nil, func(o *Options) { @@ -1682,6 +1730,18 @@ func TestCheckSnapshot_UpdateProject(t *testing.T) { } } +func TestCheckSnapshot_UpdateRule(t *testing.T) { + svc := New(Options{}) + _, err := svc.UpdateRule(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "UpdateRule") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_UpdateSubscriptionGrantStatus(t *testing.T) { svc := New(Options{}) _, err := svc.UpdateSubscriptionGrantStatus(context.Background(), nil, func(o *Options) { @@ -2041,6 +2101,18 @@ func TestUpdateSnapshot_CreateProjectMembership(t *testing.T) { } } +func TestUpdateSnapshot_CreateRule(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateRule(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "CreateRule") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_CreateSubscriptionGrant(t *testing.T) { svc := New(Options{}) _, err := svc.CreateSubscriptionGrant(context.Background(), nil, func(o *Options) { @@ -2293,6 +2365,18 @@ func TestUpdateSnapshot_DeleteProjectMembership(t *testing.T) { } } +func TestUpdateSnapshot_DeleteRule(t *testing.T) { + svc := New(Options{}) + _, err := svc.DeleteRule(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "DeleteRule") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_DeleteSubscriptionGrant(t *testing.T) { svc := New(Options{}) _, err := svc.DeleteSubscriptionGrant(context.Background(), nil, func(o *Options) { @@ -2629,6 +2713,18 @@ func TestUpdateSnapshot_GetProject(t *testing.T) { } } +func TestUpdateSnapshot_GetRule(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetRule(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "GetRule") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_GetSubscription(t *testing.T) { svc := New(Options{}) _, err := svc.GetSubscription(context.Background(), nil, func(o *Options) { @@ -2941,6 +3037,18 @@ func TestUpdateSnapshot_ListProjects(t *testing.T) { } } +func TestUpdateSnapshot_ListRules(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListRules(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "ListRules") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_ListSubscriptionGrants(t *testing.T) { svc := New(Options{}) _, err := svc.ListSubscriptionGrants(context.Background(), nil, func(o *Options) { @@ -3349,6 +3457,18 @@ func TestUpdateSnapshot_UpdateProject(t *testing.T) { } } +func TestUpdateSnapshot_UpdateRule(t *testing.T) { + svc := New(Options{}) + _, err := svc.UpdateRule(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "UpdateRule") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_UpdateSubscriptionGrantStatus(t *testing.T) { svc := New(Options{}) _, err := svc.UpdateSubscriptionGrantStatus(context.Background(), nil, func(o *Options) { diff --git a/service/datazone/types/enums.go b/service/datazone/types/enums.go index e83acb314ae..f9450d9fca4 100644 --- a/service/datazone/types/enums.go +++ b/service/datazone/types/enums.go @@ -851,6 +851,76 @@ func (RejectRuleBehavior) Values() []RejectRuleBehavior { } } +type RuleAction string + +// Enum values for RuleAction +const ( + RuleActionCreateSubscriptionRequest RuleAction = "CREATE_SUBSCRIPTION_REQUEST" +) + +// Values returns all known values for RuleAction. 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 (RuleAction) Values() []RuleAction { + return []RuleAction{ + "CREATE_SUBSCRIPTION_REQUEST", + } +} + +type RuleScopeSelectionMode string + +// Enum values for RuleScopeSelectionMode +const ( + RuleScopeSelectionModeAll RuleScopeSelectionMode = "ALL" + RuleScopeSelectionModeSpecific RuleScopeSelectionMode = "SPECIFIC" +) + +// Values returns all known values for RuleScopeSelectionMode. 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 (RuleScopeSelectionMode) Values() []RuleScopeSelectionMode { + return []RuleScopeSelectionMode{ + "ALL", + "SPECIFIC", + } +} + +type RuleTargetType string + +// Enum values for RuleTargetType +const ( + RuleTargetTypeDomainUnit RuleTargetType = "DOMAIN_UNIT" +) + +// Values returns all known values for RuleTargetType. 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 (RuleTargetType) Values() []RuleTargetType { + return []RuleTargetType{ + "DOMAIN_UNIT", + } +} + +type RuleType string + +// Enum values for RuleType +const ( + RuleTypeMetadataFormEnforcement RuleType = "METADATA_FORM_ENFORCEMENT" +) + +// Values returns all known values for RuleType. 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 (RuleType) Values() []RuleType { + return []RuleType{ + "METADATA_FORM_ENFORCEMENT", + } +} + type SearchOutputAdditionalAttribute string // Enum values for SearchOutputAdditionalAttribute diff --git a/service/datazone/types/types.go b/service/datazone/types/types.go index f745e92d321..ca4e7630e57 100644 --- a/service/datazone/types/types.go +++ b/service/datazone/types/types.go @@ -482,6 +482,20 @@ type AssetTypeItem struct { noSmithyDocumentSerde } +// The asset type for the rule details. +type AssetTypesForRule struct { + + // The selection mode for the rule. + // + // This member is required. + SelectionMode RuleScopeSelectionMode + + // The specific asset types that are included in the rule. + SpecificAssetTypes []string + + noSmithyDocumentSerde +} + // The parameters of the console link specified as part of the environment action. type AwsConsoleLinkParameters struct { @@ -1239,6 +1253,20 @@ type DomainUnitSummary struct { noSmithyDocumentSerde } +// The target for the domain unit. +type DomainUnitTarget struct { + + // The ID of the domain unit. + // + // This member is required. + DomainUnitId *string + + // Specifies whether to apply a rule to the child domain units. + IncludeChildDomainUnits *bool + + noSmithyDocumentSerde +} + // The properties of the domain unit user. type DomainUnitUserProperties struct { @@ -2362,6 +2390,50 @@ type MemberDetailsMemberUser struct { func (*MemberDetailsMemberUser) isMemberDetails() {} +// The enforcement details of a metadata form. +type MetadataFormEnforcementDetail struct { + + // The required metadata forms. + RequiredMetadataForms []MetadataFormReference + + noSmithyDocumentSerde +} + +// The reference of a metadata form. +type MetadataFormReference struct { + + // The type ID of the metadata form reference. + // + // This member is required. + TypeIdentifier *string + + // The type revision of the metadata form reference. + // + // This member is required. + TypeRevision *string + + noSmithyDocumentSerde +} + +// The summary of the metadata form. +type MetadataFormSummary struct { + + // The type name of the metadata form. + // + // This member is required. + TypeName *string + + // The type revision of the metadata form. + // + // This member is required. + TypeRevision *string + + // The form name of the metadata form. + FormName *string + + noSmithyDocumentSerde +} + // The metadata generation run. type MetadataGenerationRunItem struct { @@ -2932,6 +3004,20 @@ type ProjectPolicyGrantPrincipal struct { noSmithyDocumentSerde } +// Specifies projects in which the rule is created. +type ProjectsForRule struct { + + // The selection mode of the rule. + // + // This member is required. + SelectionMode RuleScopeSelectionMode + + // The specific projects in which the rule is created. + SpecificProjects []string + + noSmithyDocumentSerde +} + // The details of a Amazon DataZone project. type ProjectSummary struct { @@ -3410,6 +3496,93 @@ type RowFilterExpressionMemberNotLike struct { func (*RowFilterExpressionMemberNotLike) isRowFilterExpression() {} +// The details of a rule. +// +// The following types satisfy this interface: +// +// RuleDetailMemberMetadataFormEnforcementDetail +type RuleDetail interface { + isRuleDetail() +} + +// The enforcement detail of the metadata form. +type RuleDetailMemberMetadataFormEnforcementDetail struct { + Value MetadataFormEnforcementDetail + + noSmithyDocumentSerde +} + +func (*RuleDetailMemberMetadataFormEnforcementDetail) isRuleDetail() {} + +// The scope of a rule. +type RuleScope struct { + + // The asset type included in the rule scope. + AssetType *AssetTypesForRule + + // The data product included in the rule scope. + DataProduct *bool + + // The project included in the rule scope. + Project *ProjectsForRule + + noSmithyDocumentSerde +} + +// The summary of the rule. +type RuleSummary struct { + + // The action of the rule. + Action RuleAction + + // The ID of the rule. + Identifier *string + + // The timestamp at which the rule was last updated. + LastUpdatedBy *string + + // The name of the rule. + Name *string + + // The revision of the rule. + Revision *string + + // The type of the rule. + RuleType RuleType + + // The scope of the rule. + Scope *RuleScope + + // The target of the rule. + Target RuleTarget + + // The target type of the rule. + TargetType RuleTargetType + + // The timestamp at which the rule was last updated. + UpdatedAt *time.Time + + noSmithyDocumentSerde +} + +// The target of the rule. +// +// The following types satisfy this interface: +// +// RuleTargetMemberDomainUnitTarget +type RuleTarget interface { + isRuleTarget() +} + +// The ID of the domain unit. +type RuleTargetMemberDomainUnitTarget struct { + Value DomainUnitTarget + + noSmithyDocumentSerde +} + +func (*RuleTargetMemberDomainUnitTarget) isRuleTarget() {} + // The asset statistics from the data source run. type RunStatisticsForAssets struct { @@ -3996,6 +4169,12 @@ type SubscriptionRequestSummary struct { // The decision comment of the subscription request. DecisionComment *string + // The ID of the existing subscription. + ExistingSubscriptionId *string + + // The summary of the metadata forms. + MetadataFormsSummary []MetadataFormSummary + // The identifier of the subscription request reviewer. ReviewerId *string @@ -4402,6 +4581,8 @@ func (*UnknownUnionMember) isProvisioningProperties() {} func (*UnknownUnionMember) isRedshiftStorage() {} func (*UnknownUnionMember) isRowFilter() {} func (*UnknownUnionMember) isRowFilterExpression() {} +func (*UnknownUnionMember) isRuleDetail() {} +func (*UnknownUnionMember) isRuleTarget() {} func (*UnknownUnionMember) isSearchInventoryResultItem() {} func (*UnknownUnionMember) isSearchResultItem() {} func (*UnknownUnionMember) isSearchTypesResultItem() {} diff --git a/service/datazone/types/types_exported_test.go b/service/datazone/types/types_exported_test.go index d14ce15180c..7ee2963555d 100644 --- a/service/datazone/types/types_exported_test.go +++ b/service/datazone/types/types_exported_test.go @@ -587,6 +587,42 @@ var _ *types.NotInExpression var _ *types.InExpression var _ *types.EqualToExpression +func ExampleRuleDetail_outputUsage() { + var union types.RuleDetail + // type switches can be used to check the union value + switch v := union.(type) { + case *types.RuleDetailMemberMetadataFormEnforcementDetail: + _ = v.Value // Value is types.MetadataFormEnforcementDetail + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.MetadataFormEnforcementDetail + +func ExampleRuleTarget_outputUsage() { + var union types.RuleTarget + // type switches can be used to check the union value + switch v := union.(type) { + case *types.RuleTargetMemberDomainUnitTarget: + _ = v.Value // Value is types.DomainUnitTarget + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.DomainUnitTarget + func ExampleSearchInventoryResultItem_outputUsage() { var union types.SearchInventoryResultItem // type switches can be used to check the union value diff --git a/service/datazone/validators.go b/service/datazone/validators.go index a4c00a92036..144f5a9ff19 100644 --- a/service/datazone/validators.go +++ b/service/datazone/validators.go @@ -530,6 +530,26 @@ func (m *validateOpCreateProjectMembership) HandleInitialize(ctx context.Context return next.HandleInitialize(ctx, in) } +type validateOpCreateRule struct { +} + +func (*validateOpCreateRule) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateRule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateRuleInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateRuleInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateSubscriptionGrant struct { } @@ -950,6 +970,26 @@ func (m *validateOpDeleteProjectMembership) HandleInitialize(ctx context.Context return next.HandleInitialize(ctx, in) } +type validateOpDeleteRule struct { +} + +func (*validateOpDeleteRule) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteRule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteRuleInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteRuleInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteSubscriptionGrant struct { } @@ -1510,6 +1550,26 @@ func (m *validateOpGetProject) HandleInitialize(ctx context.Context, in middlewa return next.HandleInitialize(ctx, in) } +type validateOpGetRule struct { +} + +func (*validateOpGetRule) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetRule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetRuleInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetRuleInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetSubscriptionGrant struct { } @@ -2010,6 +2070,26 @@ func (m *validateOpListProjects) HandleInitialize(ctx context.Context, in middle return next.HandleInitialize(ctx, in) } +type validateOpListRules struct { +} + +func (*validateOpListRules) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListRules) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListRulesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListRulesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListSubscriptionGrants struct { } @@ -2690,6 +2770,26 @@ func (m *validateOpUpdateProject) HandleInitialize(ctx context.Context, in middl return next.HandleInitialize(ctx, in) } +type validateOpUpdateRule struct { +} + +func (*validateOpUpdateRule) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateRule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateRuleInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateRuleInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpUpdateSubscriptionGrantStatus struct { } @@ -2874,6 +2974,10 @@ func addOpCreateProjectMembershipValidationMiddleware(stack *middleware.Stack) e return stack.Initialize.Add(&validateOpCreateProjectMembership{}, middleware.After) } +func addOpCreateRuleValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateRule{}, middleware.After) +} + func addOpCreateSubscriptionGrantValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateSubscriptionGrant{}, middleware.After) } @@ -2958,6 +3062,10 @@ func addOpDeleteProjectMembershipValidationMiddleware(stack *middleware.Stack) e return stack.Initialize.Add(&validateOpDeleteProjectMembership{}, middleware.After) } +func addOpDeleteRuleValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteRule{}, middleware.After) +} + func addOpDeleteSubscriptionGrantValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteSubscriptionGrant{}, middleware.After) } @@ -3070,6 +3178,10 @@ func addOpGetProjectValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetProject{}, middleware.After) } +func addOpGetRuleValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetRule{}, middleware.After) +} + func addOpGetSubscriptionGrantValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetSubscriptionGrant{}, middleware.After) } @@ -3170,6 +3282,10 @@ func addOpListProjectsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListProjects{}, middleware.After) } +func addOpListRulesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListRules{}, middleware.After) +} + func addOpListSubscriptionGrantsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListSubscriptionGrants{}, middleware.After) } @@ -3306,6 +3422,10 @@ func addOpUpdateProjectValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateProject{}, middleware.After) } +func addOpUpdateRuleValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateRule{}, middleware.After) +} + func addOpUpdateSubscriptionGrantStatusValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateSubscriptionGrantStatus{}, middleware.After) } @@ -3443,6 +3563,21 @@ func validateAssetTargetNames(v []types.AssetTargetNameMap) error { } } +func validateAssetTypesForRule(v *types.AssetTypesForRule) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AssetTypesForRule"} + if len(v.SelectionMode) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("SelectionMode")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateDataProductItem(v *types.DataProductItem) error { if v == nil { return nil @@ -3532,6 +3667,21 @@ func validateDomainUnitPolicyGrantPrincipal(v *types.DomainUnitPolicyGrantPrinci } } +func validateDomainUnitTarget(v *types.DomainUnitTarget) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DomainUnitTarget"} + if v.DomainUnitId == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainUnitId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateEqualToExpression(v *types.EqualToExpression) error { if v == nil { return nil @@ -3911,6 +4061,58 @@ func validateListingRevisionInput(v *types.ListingRevisionInput) error { } } +func validateMetadataFormEnforcementDetail(v *types.MetadataFormEnforcementDetail) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "MetadataFormEnforcementDetail"} + if v.RequiredMetadataForms != nil { + if err := validateRequiredMetadataFormList(v.RequiredMetadataForms); err != nil { + invalidParams.AddNested("RequiredMetadataForms", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateMetadataFormInputs(v []types.FormInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "MetadataFormInputs"} + for i := range v { + if err := validateFormInput(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateMetadataFormReference(v *types.MetadataFormReference) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "MetadataFormReference"} + if v.TypeIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("TypeIdentifier")) + } + if v.TypeRevision == nil { + invalidParams.Add(smithy.NewErrParamRequired("TypeRevision")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateMetadataGenerationRunTarget(v *types.MetadataGenerationRunTarget) error { if v == nil { return nil @@ -4100,6 +4302,21 @@ func validateProjectPolicyGrantPrincipal(v *types.ProjectPolicyGrantPrincipal) e } } +func validateProjectsForRule(v *types.ProjectsForRule) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ProjectsForRule"} + if len(v.SelectionMode) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("SelectionMode")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateRedshiftClusterStorage(v *types.RedshiftClusterStorage) error { if v == nil { return nil @@ -4271,6 +4488,23 @@ func validateRelationalFilterConfigurations(v []types.RelationalFilterConfigurat } } +func validateRequiredMetadataFormList(v []types.MetadataFormReference) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "RequiredMetadataFormList"} + for i := range v { + if err := validateMetadataFormReference(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateRowFilter(v types.RowFilter) error { if v == nil { return nil @@ -4410,6 +4644,66 @@ func validateRowFilterList(v []types.RowFilter) error { } } +func validateRuleDetail(v types.RuleDetail) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "RuleDetail"} + switch uv := v.(type) { + case *types.RuleDetailMemberMetadataFormEnforcementDetail: + if err := validateMetadataFormEnforcementDetail(&uv.Value); err != nil { + invalidParams.AddNested("[metadataFormEnforcementDetail]", err.(smithy.InvalidParamsError)) + } + + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateRuleScope(v *types.RuleScope) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "RuleScope"} + if v.AssetType != nil { + if err := validateAssetTypesForRule(v.AssetType); err != nil { + invalidParams.AddNested("AssetType", err.(smithy.InvalidParamsError)) + } + } + if v.Project != nil { + if err := validateProjectsForRule(v.Project); err != nil { + invalidParams.AddNested("Project", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateRuleTarget(v types.RuleTarget) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "RuleTarget"} + switch uv := v.(type) { + case *types.RuleTargetMemberDomainUnitTarget: + if err := validateDomainUnitTarget(&uv.Value); err != nil { + invalidParams.AddNested("[domainUnitTarget]", err.(smithy.InvalidParamsError)) + } + + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateSearchInItem(v *types.SearchInItem) error { if v == nil { return nil @@ -5198,6 +5492,48 @@ func validateOpCreateProjectMembershipInput(v *CreateProjectMembershipInput) err } } +func validateOpCreateRuleInput(v *CreateRuleInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateRuleInput"} + if v.DomainIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainIdentifier")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.Target == nil { + invalidParams.Add(smithy.NewErrParamRequired("Target")) + } else if v.Target != nil { + if err := validateRuleTarget(v.Target); err != nil { + invalidParams.AddNested("Target", err.(smithy.InvalidParamsError)) + } + } + if len(v.Action) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Action")) + } + if v.Scope == nil { + invalidParams.Add(smithy.NewErrParamRequired("Scope")) + } else if v.Scope != nil { + if err := validateRuleScope(v.Scope); err != nil { + invalidParams.AddNested("Scope", err.(smithy.InvalidParamsError)) + } + } + if v.Detail == nil { + invalidParams.Add(smithy.NewErrParamRequired("Detail")) + } else if v.Detail != nil { + if err := validateRuleDetail(v.Detail); err != nil { + invalidParams.AddNested("Detail", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateSubscriptionGrantInput(v *CreateSubscriptionGrantInput) error { if v == nil { return nil @@ -5252,6 +5588,11 @@ func validateOpCreateSubscriptionRequestInput(v *CreateSubscriptionRequestInput) if v.RequestReason == nil { invalidParams.Add(smithy.NewErrParamRequired("RequestReason")) } + if v.MetadataForms != nil { + if err := validateMetadataFormInputs(v.MetadataForms); err != nil { + invalidParams.AddNested("MetadataForms", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -5629,6 +5970,24 @@ func validateOpDeleteProjectMembershipInput(v *DeleteProjectMembershipInput) err } } +func validateOpDeleteRuleInput(v *DeleteRuleInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteRuleInput"} + if v.DomainIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainIdentifier")) + } + if v.Identifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("Identifier")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteSubscriptionGrantInput(v *DeleteSubscriptionGrantInput) error { if v == nil { return nil @@ -6145,6 +6504,24 @@ func validateOpGetProjectInput(v *GetProjectInput) error { } } +func validateOpGetRuleInput(v *GetRuleInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetRuleInput"} + if v.DomainIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainIdentifier")) + } + if v.Identifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("Identifier")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetSubscriptionGrantInput(v *GetSubscriptionGrantInput) error { if v == nil { return nil @@ -6601,6 +6978,27 @@ func validateOpListProjectsInput(v *ListProjectsInput) error { } } +func validateOpListRulesInput(v *ListRulesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListRulesInput"} + if v.DomainIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainIdentifier")) + } + if len(v.TargetType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("TargetType")) + } + if v.TargetIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("TargetIdentifier")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListSubscriptionGrantsInput(v *ListSubscriptionGrantsInput) error { if v == nil { return nil @@ -7324,6 +7722,34 @@ func validateOpUpdateProjectInput(v *UpdateProjectInput) error { } } +func validateOpUpdateRuleInput(v *UpdateRuleInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateRuleInput"} + if v.DomainIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainIdentifier")) + } + if v.Identifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("Identifier")) + } + if v.Scope != nil { + if err := validateRuleScope(v.Scope); err != nil { + invalidParams.AddNested("Scope", err.(smithy.InvalidParamsError)) + } + } + if v.Detail != nil { + if err := validateRuleDetail(v.Detail); err != nil { + invalidParams.AddNested("Detail", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpUpdateSubscriptionGrantStatusInput(v *UpdateSubscriptionGrantStatusInput) error { if v == nil { return nil diff --git a/service/dax/CHANGELOG.md b/service/dax/CHANGELOG.md index 1e1fca86705..a7ca9294e75 100644 --- a/service/dax/CHANGELOG.md +++ b/service/dax/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.23.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/dax/go.mod b/service/dax/go.mod index 4c69d0ccd74..a31f8f882c6 100644 --- a/service/dax/go.mod +++ b/service/dax/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/dax go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/dax/go.sum b/service/dax/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/dax/go.sum +++ b/service/dax/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/dax/go_module_metadata.go b/service/dax/go_module_metadata.go index bee3eca51bd..27cfdd587fc 100644 --- a/service/dax/go_module_metadata.go +++ b/service/dax/go_module_metadata.go @@ -3,4 +3,4 @@ package dax // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.5" +const goModuleVersion = "1.23.6" diff --git a/service/deadline/CHANGELOG.md b/service/deadline/CHANGELOG.md index 5fb56aa6616..6417730d17c 100644 --- a/service/deadline/CHANGELOG.md +++ b/service/deadline/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.7.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.7.0 (2024-11-14) * **Feature**: Adds support for select GPU accelerated instance types when creating new service-managed fleets. diff --git a/service/deadline/go.mod b/service/deadline/go.mod index 3a090f5b2a8..58b7c90d469 100644 --- a/service/deadline/go.mod +++ b/service/deadline/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/deadline go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/deadline/go.sum b/service/deadline/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/deadline/go.sum +++ b/service/deadline/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/deadline/go_module_metadata.go b/service/deadline/go_module_metadata.go index 8901e7f342a..b5bcda8277b 100644 --- a/service/deadline/go_module_metadata.go +++ b/service/deadline/go_module_metadata.go @@ -3,4 +3,4 @@ package deadline // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.7.0" +const goModuleVersion = "1.7.1" diff --git a/service/detective/CHANGELOG.md b/service/detective/CHANGELOG.md index fcfc87668d9..a370a078ad0 100644 --- a/service/detective/CHANGELOG.md +++ b/service/detective/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.31.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.31.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/detective/go.mod b/service/detective/go.mod index 04a5b7612a3..e1386f7c669 100644 --- a/service/detective/go.mod +++ b/service/detective/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/detective go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/detective/go.sum b/service/detective/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/detective/go.sum +++ b/service/detective/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/detective/go_module_metadata.go b/service/detective/go_module_metadata.go index c20d97aed70..a203f899963 100644 --- a/service/detective/go_module_metadata.go +++ b/service/detective/go_module_metadata.go @@ -3,4 +3,4 @@ package detective // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.31.5" +const goModuleVersion = "1.31.6" diff --git a/service/devicefarm/CHANGELOG.md b/service/devicefarm/CHANGELOG.md index c57daea37bb..bbcbd4540e3 100644 --- a/service/devicefarm/CHANGELOG.md +++ b/service/devicefarm/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.28.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/devicefarm/go.mod b/service/devicefarm/go.mod index 05e35acc7bf..3a398cdc0c5 100644 --- a/service/devicefarm/go.mod +++ b/service/devicefarm/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/devicefarm go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/devicefarm/go.sum b/service/devicefarm/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/devicefarm/go.sum +++ b/service/devicefarm/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/devicefarm/go_module_metadata.go b/service/devicefarm/go_module_metadata.go index a421f7ae4a0..d9a92e32330 100644 --- a/service/devicefarm/go_module_metadata.go +++ b/service/devicefarm/go_module_metadata.go @@ -3,4 +3,4 @@ package devicefarm // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.5" +const goModuleVersion = "1.28.6" diff --git a/service/devopsguru/CHANGELOG.md b/service/devopsguru/CHANGELOG.md index 184b0c4e8a0..c25bf3fa587 100644 --- a/service/devopsguru/CHANGELOG.md +++ b/service/devopsguru/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.34.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.34.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/devopsguru/go.mod b/service/devopsguru/go.mod index b2fc010d14f..9e621758bcc 100644 --- a/service/devopsguru/go.mod +++ b/service/devopsguru/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/devopsguru go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/devopsguru/go.sum b/service/devopsguru/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/devopsguru/go.sum +++ b/service/devopsguru/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/devopsguru/go_module_metadata.go b/service/devopsguru/go_module_metadata.go index f233a4f91d9..3fb971421c9 100644 --- a/service/devopsguru/go_module_metadata.go +++ b/service/devopsguru/go_module_metadata.go @@ -3,4 +3,4 @@ package devopsguru // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.34.5" +const goModuleVersion = "1.34.6" diff --git a/service/directconnect/CHANGELOG.md b/service/directconnect/CHANGELOG.md index a39ccdd61c1..27f6562c1a9 100644 --- a/service/directconnect/CHANGELOG.md +++ b/service/directconnect/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.29.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.29.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/directconnect/go.mod b/service/directconnect/go.mod index b302bf1cf31..33ccac4f6f1 100644 --- a/service/directconnect/go.mod +++ b/service/directconnect/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/directconnect go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/directconnect/go.sum b/service/directconnect/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/directconnect/go.sum +++ b/service/directconnect/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/directconnect/go_module_metadata.go b/service/directconnect/go_module_metadata.go index 97b3b8d0281..ee98c64db11 100644 --- a/service/directconnect/go_module_metadata.go +++ b/service/directconnect/go_module_metadata.go @@ -3,4 +3,4 @@ package directconnect // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.29.5" +const goModuleVersion = "1.29.6" diff --git a/service/directoryservice/CHANGELOG.md b/service/directoryservice/CHANGELOG.md index 7cef3d2a155..6b94699fd5f 100644 --- a/service/directoryservice/CHANGELOG.md +++ b/service/directoryservice/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.30.7 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.30.6 (2024-11-08) * No change notes available for this release. diff --git a/service/directoryservice/go.mod b/service/directoryservice/go.mod index 3a457c4009b..87d5da41f90 100644 --- a/service/directoryservice/go.mod +++ b/service/directoryservice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/directoryservice go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/directoryservice/go.sum b/service/directoryservice/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/directoryservice/go.sum +++ b/service/directoryservice/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/directoryservice/go_module_metadata.go b/service/directoryservice/go_module_metadata.go index 4bf48f8d81b..6d025f8a0fc 100644 --- a/service/directoryservice/go_module_metadata.go +++ b/service/directoryservice/go_module_metadata.go @@ -3,4 +3,4 @@ package directoryservice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.30.6" +const goModuleVersion = "1.30.7" diff --git a/service/directoryservicedata/CHANGELOG.md b/service/directoryservicedata/CHANGELOG.md index 77ff6ba8cf9..f281077aca9 100644 --- a/service/directoryservicedata/CHANGELOG.md +++ b/service/directoryservicedata/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.2.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.2.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/directoryservicedata/go.mod b/service/directoryservicedata/go.mod index c51fa896315..a595c573a68 100644 --- a/service/directoryservicedata/go.mod +++ b/service/directoryservicedata/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/directoryservicedata go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/directoryservicedata/go.sum b/service/directoryservicedata/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/directoryservicedata/go.sum +++ b/service/directoryservicedata/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/directoryservicedata/go_module_metadata.go b/service/directoryservicedata/go_module_metadata.go index 1ca45343ade..f058c07f59a 100644 --- a/service/directoryservicedata/go_module_metadata.go +++ b/service/directoryservicedata/go_module_metadata.go @@ -3,4 +3,4 @@ package directoryservicedata // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.2.5" +const goModuleVersion = "1.2.6" diff --git a/service/dlm/CHANGELOG.md b/service/dlm/CHANGELOG.md index 09c29cd8b20..58cf04fd88e 100644 --- a/service/dlm/CHANGELOG.md +++ b/service/dlm/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.28.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/dlm/go.mod b/service/dlm/go.mod index 959a4e8e52a..8e1c091e68f 100644 --- a/service/dlm/go.mod +++ b/service/dlm/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/dlm go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/dlm/go.sum b/service/dlm/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/dlm/go.sum +++ b/service/dlm/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/dlm/go_module_metadata.go b/service/dlm/go_module_metadata.go index 6b0365d2e1f..53a1e043e47 100644 --- a/service/dlm/go_module_metadata.go +++ b/service/dlm/go_module_metadata.go @@ -3,4 +3,4 @@ package dlm // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.5" +const goModuleVersion = "1.28.6" diff --git a/service/docdb/CHANGELOG.md b/service/docdb/CHANGELOG.md index 52f74e54c7c..79cfe0e30d2 100644 --- a/service/docdb/CHANGELOG.md +++ b/service/docdb/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.39.5 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.39.4 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/docdb/go.mod b/service/docdb/go.mod index 265916863e5..ddc9f178c2c 100644 --- a/service/docdb/go.mod +++ b/service/docdb/go.mod @@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/service/docdb go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/docdb/go.sum b/service/docdb/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/docdb/go.sum +++ b/service/docdb/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/docdb/go_module_metadata.go b/service/docdb/go_module_metadata.go index 3400ffa57c9..ac3f4ecdb0f 100644 --- a/service/docdb/go_module_metadata.go +++ b/service/docdb/go_module_metadata.go @@ -3,4 +3,4 @@ package docdb // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.39.4" +const goModuleVersion = "1.39.5" diff --git a/service/docdbelastic/CHANGELOG.md b/service/docdbelastic/CHANGELOG.md index b48e2000375..3cde8551f44 100644 --- a/service/docdbelastic/CHANGELOG.md +++ b/service/docdbelastic/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.14.3 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.14.2 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/docdbelastic/go.mod b/service/docdbelastic/go.mod index bb7780f98a9..0f35be56032 100644 --- a/service/docdbelastic/go.mod +++ b/service/docdbelastic/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/docdbelastic go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/docdbelastic/go.sum b/service/docdbelastic/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/docdbelastic/go.sum +++ b/service/docdbelastic/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/docdbelastic/go_module_metadata.go b/service/docdbelastic/go_module_metadata.go index 0f1595308ff..54b42a5b12a 100644 --- a/service/docdbelastic/go_module_metadata.go +++ b/service/docdbelastic/go_module_metadata.go @@ -3,4 +3,4 @@ package docdbelastic // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.14.2" +const goModuleVersion = "1.14.3" diff --git a/service/drs/CHANGELOG.md b/service/drs/CHANGELOG.md index 7db1885ad64..cc113cd8123 100644 --- a/service/drs/CHANGELOG.md +++ b/service/drs/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.30.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.30.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/drs/go.mod b/service/drs/go.mod index bce6be8550f..bb2f3c4708a 100644 --- a/service/drs/go.mod +++ b/service/drs/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/drs go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/drs/go.sum b/service/drs/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/drs/go.sum +++ b/service/drs/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/drs/go_module_metadata.go b/service/drs/go_module_metadata.go index e63ed02ff25..37c838932be 100644 --- a/service/drs/go_module_metadata.go +++ b/service/drs/go_module_metadata.go @@ -3,4 +3,4 @@ package drs // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.30.5" +const goModuleVersion = "1.30.6" diff --git a/service/dynamodb/CHANGELOG.md b/service/dynamodb/CHANGELOG.md index 5edb0521ed5..92dc04b1e0e 100644 --- a/service/dynamodb/CHANGELOG.md +++ b/service/dynamodb/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.37.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.37.0 (2024-11-13) * **Feature**: This release includes supports the new WarmThroughput feature for DynamoDB. You can now provide an optional WarmThroughput attribute for CreateTable or UpdateTable APIs to pre-warm your table or global secondary index. You can also use DescribeTable to see the latest WarmThroughput value. diff --git a/service/dynamodb/go.mod b/service/dynamodb/go.mod index d04dea20775..0be85567b25 100644 --- a/service/dynamodb/go.mod +++ b/service/dynamodb/go.mod @@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/service/dynamodb go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 - github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.4 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 + github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.5 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/dynamodb/go.sum b/service/dynamodb/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/dynamodb/go.sum +++ b/service/dynamodb/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/dynamodb/go_module_metadata.go b/service/dynamodb/go_module_metadata.go index e4df2652ba2..f1f9cca036f 100644 --- a/service/dynamodb/go_module_metadata.go +++ b/service/dynamodb/go_module_metadata.go @@ -3,4 +3,4 @@ package dynamodb // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.37.0" +const goModuleVersion = "1.37.1" diff --git a/service/dynamodbstreams/CHANGELOG.md b/service/dynamodbstreams/CHANGELOG.md index 0ec63d137c2..2ee6998d714 100644 --- a/service/dynamodbstreams/CHANGELOG.md +++ b/service/dynamodbstreams/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.24.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/dynamodbstreams/go.mod b/service/dynamodbstreams/go.mod index 4997f94ab3a..694ce6758ce 100644 --- a/service/dynamodbstreams/go.mod +++ b/service/dynamodbstreams/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/dynamodbstreams go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/dynamodbstreams/go.sum b/service/dynamodbstreams/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/dynamodbstreams/go.sum +++ b/service/dynamodbstreams/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/dynamodbstreams/go_module_metadata.go b/service/dynamodbstreams/go_module_metadata.go index af60e39be6b..a25b07ec0d2 100644 --- a/service/dynamodbstreams/go_module_metadata.go +++ b/service/dynamodbstreams/go_module_metadata.go @@ -3,4 +3,4 @@ package dynamodbstreams // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.5" +const goModuleVersion = "1.24.6" diff --git a/service/ebs/CHANGELOG.md b/service/ebs/CHANGELOG.md index 5d293d587e0..ad110afd0a4 100644 --- a/service/ebs/CHANGELOG.md +++ b/service/ebs/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/ebs/go.mod b/service/ebs/go.mod index e856e61eef6..18b99deea23 100644 --- a/service/ebs/go.mod +++ b/service/ebs/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ebs go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ebs/go.sum b/service/ebs/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/ebs/go.sum +++ b/service/ebs/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/ebs/go_module_metadata.go b/service/ebs/go_module_metadata.go index d7812c2d78f..1ff99fb508d 100644 --- a/service/ebs/go_module_metadata.go +++ b/service/ebs/go_module_metadata.go @@ -3,4 +3,4 @@ package ebs // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.5" +const goModuleVersion = "1.27.6" diff --git a/service/ec2/CHANGELOG.md b/service/ec2/CHANGELOG.md index dae193a7172..2b9722c8f0f 100644 --- a/service/ec2/CHANGELOG.md +++ b/service/ec2/CHANGELOG.md @@ -1,3 +1,17 @@ +# v1.192.0 (2024-11-20) + +* **Feature**: With this release, customers can express their desire to launch instances only in an ODCR or ODCR group rather than OnDemand capacity. Customers can express their baseline instances' CPU-performance in attribute-based Instance Requirements configuration by referencing an instance family. + +# v1.191.0 (2024-11-19) + +* **Feature**: This release adds VPC Block Public Access (VPC BPA), a new declarative control which blocks resources in VPCs and subnets that you own in a Region from reaching or being reached from the internet through internet gateways and egress-only internet gateways. + +# v1.190.0 (2024-11-18) + +* **Feature**: Adding request and response elements for managed resources. +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.189.0 (2024-11-15.2) * **Feature**: Remove non-functional enum variants for FleetCapacityReservationUsageStrategy diff --git a/service/ec2/api_op_CreateLaunchTemplate.go b/service/ec2/api_op_CreateLaunchTemplate.go index bf0a68e621b..08646ccf700 100644 --- a/service/ec2/api_op_CreateLaunchTemplate.go +++ b/service/ec2/api_op_CreateLaunchTemplate.go @@ -65,6 +65,9 @@ type CreateLaunchTemplateInput struct { // UnauthorizedOperation . DryRun *bool + // Reserved for internal use. + Operator *types.OperatorRequest + // The tags to apply to the launch template on creation. To tag the launch // template, the resource type must be launch-template . // diff --git a/service/ec2/api_op_CreateNetworkInterface.go b/service/ec2/api_op_CreateNetworkInterface.go index 3d5327ce381..4cedfa456f7 100644 --- a/service/ec2/api_op_CreateNetworkInterface.go +++ b/service/ec2/api_op_CreateNetworkInterface.go @@ -133,6 +133,9 @@ type CreateNetworkInterfaceInput struct { // count of IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses. Ipv6Prefixes []types.Ipv6PrefixSpecificationRequest + // Reserved for internal use. + Operator *types.OperatorRequest + // The primary private IPv4 address of the network interface. If you don't specify // an IPv4 address, Amazon EC2 selects one for you from the subnet's IPv4 CIDR // range. If you specify an IP address, you cannot indicate any IP addresses diff --git a/service/ec2/api_op_CreateVolume.go b/service/ec2/api_op_CreateVolume.go index 16f29bfd994..16b396c1351 100644 --- a/service/ec2/api_op_CreateVolume.go +++ b/service/ec2/api_op_CreateVolume.go @@ -132,6 +132,9 @@ type CreateVolumeInput struct { // [Amazon EBS Multi-Attach]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volumes-multi.html MultiAttachEnabled *bool + // Reserved for internal use. + Operator *types.OperatorRequest + // The Amazon Resource Name (ARN) of the Outpost on which to create the volume. // // If you intend to use a volume with an instance running on an outpost, then you @@ -231,6 +234,9 @@ type CreateVolumeOutput struct { // Indicates whether Amazon EBS Multi-Attach is enabled. MultiAttachEnabled *bool + // The entity that manages the volume. + Operator *types.OperatorResponse + // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string diff --git a/service/ec2/api_op_CreateVpcBlockPublicAccessExclusion.go b/service/ec2/api_op_CreateVpcBlockPublicAccessExclusion.go new file mode 100644 index 00000000000..fb0cdea7453 --- /dev/null +++ b/service/ec2/api_op_CreateVpcBlockPublicAccessExclusion.go @@ -0,0 +1,189 @@ +// 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/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Create a VPC Block Public Access (BPA) exclusion. A VPC BPA exclusion is a mode +// that can be applied to a single VPC or subnet that exempts it from the account’s +// BPA mode and will allow bidirectional or egress-only access. You can create BPA +// exclusions for VPCs and subnets even when BPA is not enabled on the account to +// ensure that there is no traffic disruption to the exclusions when VPC BPA is +// turned on. To learn more about VPC BPA, see [Block public access to VPCs and subnets]in the Amazon VPC User Guide. +// +// [Block public access to VPCs and subnets]: https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html +func (c *Client) CreateVpcBlockPublicAccessExclusion(ctx context.Context, params *CreateVpcBlockPublicAccessExclusionInput, optFns ...func(*Options)) (*CreateVpcBlockPublicAccessExclusionOutput, error) { + if params == nil { + params = &CreateVpcBlockPublicAccessExclusionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateVpcBlockPublicAccessExclusion", params, optFns, c.addOperationCreateVpcBlockPublicAccessExclusionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateVpcBlockPublicAccessExclusionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateVpcBlockPublicAccessExclusionInput struct { + + // The exclusion mode for internet gateway traffic. + // + // - bidirectional-access-allowed : Allow all internet traffic to and from the + // excluded VPCs and subnets. + // + // - egress-access-allowed : Allow outbound internet traffic from the excluded + // VPCs and subnets. Block inbound internet traffic to the excluded VPCs and + // subnets. Only applies when VPC Block Public Access is set to Bidirectional. + // + // This member is required. + InternetGatewayExclusionMode types.InternetGatewayExclusionMode + + // 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 + + // A subnet ID. + SubnetId *string + + // tag - 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 + + // A VPC ID. + VpcId *string + + noSmithyDocumentSerde +} + +type CreateVpcBlockPublicAccessExclusionOutput struct { + + // Details about an exclusion. + VpcBlockPublicAccessExclusion *types.VpcBlockPublicAccessExclusion + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateVpcBlockPublicAccessExclusionMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVpcBlockPublicAccessExclusion{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateVpcBlockPublicAccessExclusion{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateVpcBlockPublicAccessExclusion"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpCreateVpcBlockPublicAccessExclusionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateVpcBlockPublicAccessExclusion(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateVpcBlockPublicAccessExclusion(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateVpcBlockPublicAccessExclusion", + } +} diff --git a/service/ec2/api_op_DeleteVpcBlockPublicAccessExclusion.go b/service/ec2/api_op_DeleteVpcBlockPublicAccessExclusion.go new file mode 100644 index 00000000000..a77060e37e2 --- /dev/null +++ b/service/ec2/api_op_DeleteVpcBlockPublicAccessExclusion.go @@ -0,0 +1,170 @@ +// 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/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Delete a VPC Block Public Access (BPA) exclusion. A VPC BPA exclusion is a mode +// that can be applied to a single VPC or subnet that exempts it from the account’s +// BPA mode and will allow bidirectional or egress-only access. You can create BPA +// exclusions for VPCs and subnets even when BPA is not enabled on the account to +// ensure that there is no traffic disruption to the exclusions when VPC BPA is +// turned on. To learn more about VPC BPA, see [Block public access to VPCs and subnets]in the Amazon VPC User Guide. +// +// [Block public access to VPCs and subnets]: https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html +func (c *Client) DeleteVpcBlockPublicAccessExclusion(ctx context.Context, params *DeleteVpcBlockPublicAccessExclusionInput, optFns ...func(*Options)) (*DeleteVpcBlockPublicAccessExclusionOutput, error) { + if params == nil { + params = &DeleteVpcBlockPublicAccessExclusionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteVpcBlockPublicAccessExclusion", params, optFns, c.addOperationDeleteVpcBlockPublicAccessExclusionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteVpcBlockPublicAccessExclusionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteVpcBlockPublicAccessExclusionInput struct { + + // The ID of the exclusion. + // + // This member is required. + ExclusionId *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 DeleteVpcBlockPublicAccessExclusionOutput struct { + + // Details about an exclusion. + VpcBlockPublicAccessExclusion *types.VpcBlockPublicAccessExclusion + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteVpcBlockPublicAccessExclusionMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVpcBlockPublicAccessExclusion{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteVpcBlockPublicAccessExclusion{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteVpcBlockPublicAccessExclusion"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpDeleteVpcBlockPublicAccessExclusionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteVpcBlockPublicAccessExclusion(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteVpcBlockPublicAccessExclusion(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteVpcBlockPublicAccessExclusion", + } +} diff --git a/service/ec2/api_op_DescribeClassicLinkInstances.go b/service/ec2/api_op_DescribeClassicLinkInstances.go index 617b77e562f..6e3660e68b7 100644 --- a/service/ec2/api_op_DescribeClassicLinkInstances.go +++ b/service/ec2/api_op_DescribeClassicLinkInstances.go @@ -46,7 +46,7 @@ type DescribeClassicLinkInstancesInput struct { // // - instance-id - The ID of the instance. // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - tag - 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. diff --git a/service/ec2/api_op_DescribeDhcpOptions.go b/service/ec2/api_op_DescribeDhcpOptions.go index e6a015d02c7..ffaa347b703 100644 --- a/service/ec2/api_op_DescribeDhcpOptions.go +++ b/service/ec2/api_op_DescribeDhcpOptions.go @@ -56,7 +56,7 @@ type DescribeDhcpOptionsInput struct { // - owner-id - The ID of the Amazon Web Services account that owns the DHCP // options set. // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - tag - 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. diff --git a/service/ec2/api_op_DescribeEgressOnlyInternetGateways.go b/service/ec2/api_op_DescribeEgressOnlyInternetGateways.go index 56862bea076..6bebccc427f 100644 --- a/service/ec2/api_op_DescribeEgressOnlyInternetGateways.go +++ b/service/ec2/api_op_DescribeEgressOnlyInternetGateways.go @@ -43,7 +43,7 @@ type DescribeEgressOnlyInternetGatewaysInput struct { // The filters. // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - tag - 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. diff --git a/service/ec2/api_op_DescribeInternetGateways.go b/service/ec2/api_op_DescribeInternetGateways.go index cd73b9d1f99..c25ee0c762f 100644 --- a/service/ec2/api_op_DescribeInternetGateways.go +++ b/service/ec2/api_op_DescribeInternetGateways.go @@ -55,7 +55,7 @@ type DescribeInternetGatewaysInput struct { // - owner-id - The ID of the Amazon Web Services account that owns the internet // gateway. // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - tag - 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. diff --git a/service/ec2/api_op_DescribeNatGateways.go b/service/ec2/api_op_DescribeNatGateways.go index a6038197922..6f82c0cdfd0 100644 --- a/service/ec2/api_op_DescribeNatGateways.go +++ b/service/ec2/api_op_DescribeNatGateways.go @@ -51,7 +51,7 @@ type DescribeNatGatewaysInput struct { // // - subnet-id - The ID of the subnet in which the NAT gateway resides. // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - tag - 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. diff --git a/service/ec2/api_op_DescribeNetworkAcls.go b/service/ec2/api_op_DescribeNetworkAcls.go index 4aca50a3bed..77167aeecd1 100644 --- a/service/ec2/api_op_DescribeNetworkAcls.go +++ b/service/ec2/api_op_DescribeNetworkAcls.go @@ -80,7 +80,7 @@ type DescribeNetworkAclsInput struct { // - owner-id - The ID of the Amazon Web Services account that owns the network // ACL. // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - tag - 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. diff --git a/service/ec2/api_op_DescribeRouteTables.go b/service/ec2/api_op_DescribeRouteTables.go index 7812118321c..cbee884f931 100644 --- a/service/ec2/api_op_DescribeRouteTables.go +++ b/service/ec2/api_op_DescribeRouteTables.go @@ -101,7 +101,7 @@ type DescribeRouteTablesInput struct { // - route.vpc-peering-connection-id - The ID of a VPC peering connection // specified in a route in the table. // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - tag - 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. diff --git a/service/ec2/api_op_DescribeSubnets.go b/service/ec2/api_op_DescribeSubnets.go index 585441edc6c..fc21b32ae4c 100644 --- a/service/ec2/api_op_DescribeSubnets.go +++ b/service/ec2/api_op_DescribeSubnets.go @@ -116,7 +116,7 @@ type DescribeSubnetsInput struct { // // - subnet-id - The ID of the subnet. // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - tag - 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. diff --git a/service/ec2/api_op_DescribeVpcBlockPublicAccessExclusions.go b/service/ec2/api_op_DescribeVpcBlockPublicAccessExclusions.go new file mode 100644 index 00000000000..ff5e76b9915 --- /dev/null +++ b/service/ec2/api_op_DescribeVpcBlockPublicAccessExclusions.go @@ -0,0 +1,204 @@ +// 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/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Describe VPC Block Public Access (BPA) exclusions. A VPC BPA exclusion is a +// mode that can be applied to a single VPC or subnet that exempts it from the +// account’s BPA mode and will allow bidirectional or egress-only access. You can +// create BPA exclusions for VPCs and subnets even when BPA is not enabled on the +// account to ensure that there is no traffic disruption to the exclusions when VPC +// BPA is turned on. To learn more about VPC BPA, see [Block public access to VPCs and subnets]in the Amazon VPC User Guide. +// +// [Block public access to VPCs and subnets]: https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html +func (c *Client) DescribeVpcBlockPublicAccessExclusions(ctx context.Context, params *DescribeVpcBlockPublicAccessExclusionsInput, optFns ...func(*Options)) (*DescribeVpcBlockPublicAccessExclusionsOutput, error) { + if params == nil { + params = &DescribeVpcBlockPublicAccessExclusionsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeVpcBlockPublicAccessExclusions", params, optFns, c.addOperationDescribeVpcBlockPublicAccessExclusionsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeVpcBlockPublicAccessExclusionsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeVpcBlockPublicAccessExclusionsInput 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 + + // IDs of exclusions. + ExclusionIds []string + + // Filters for the request: + // + // - resource-arn - The Amazon Resource Name (ARN) of a exclusion. + // + // - internet-gateway-exclusion-mode - The mode of a VPC BPA exclusion. Possible + // values: bidirectional-access-allowed | egress-access-allowed . + // + // - state - The state of VPC BPA. Possible values: create-in-progress | + // create-complete | update-in-progress | update-complete | delete-in-progress | + // deleted-complete | disable-in-progress | disable-complete + // + // - tag - 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. + // + // - tag-key - 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. + // + // - tag-value : The value of a tag assigned to the resource. Use this filter to + // find all resources assigned a tag with a specific value, regardless of the tag + // key. + Filters []types.Filter + + // The maximum number of items to return for this request. To get the next page of + // items, make another request with the token returned in the output. For more + // information, see [Pagination]. + // + // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination + MaxResults *int32 + + // The token returned from a previous paginated request. Pagination continues from + // the end of the items returned by the previous request. + NextToken *string + + noSmithyDocumentSerde +} + +type DescribeVpcBlockPublicAccessExclusionsOutput struct { + + // The token to include in another request to get the next page of items. This + // value is null when there are no more items to return. + NextToken *string + + // Details related to the exclusions. + VpcBlockPublicAccessExclusions []types.VpcBlockPublicAccessExclusion + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeVpcBlockPublicAccessExclusionsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcBlockPublicAccessExclusions{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVpcBlockPublicAccessExclusions{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVpcBlockPublicAccessExclusions"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVpcBlockPublicAccessExclusions(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeVpcBlockPublicAccessExclusions(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DescribeVpcBlockPublicAccessExclusions", + } +} diff --git a/service/ec2/api_op_DescribeVpcBlockPublicAccessOptions.go b/service/ec2/api_op_DescribeVpcBlockPublicAccessOptions.go new file mode 100644 index 00000000000..520824c4f23 --- /dev/null +++ b/service/ec2/api_op_DescribeVpcBlockPublicAccessOptions.go @@ -0,0 +1,161 @@ +// 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/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Describe VPC Block Public Access (BPA) options. VPC Block public Access (BPA) +// enables you to block resources in VPCs and subnets that you own in a Region from +// reaching or being reached from the internet through internet gateways and +// egress-only internet gateways. To learn more about VPC BPA, see [Block public access to VPCs and subnets]in the Amazon +// VPC User Guide. +// +// [Block public access to VPCs and subnets]: https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html +func (c *Client) DescribeVpcBlockPublicAccessOptions(ctx context.Context, params *DescribeVpcBlockPublicAccessOptionsInput, optFns ...func(*Options)) (*DescribeVpcBlockPublicAccessOptionsOutput, error) { + if params == nil { + params = &DescribeVpcBlockPublicAccessOptionsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeVpcBlockPublicAccessOptions", params, optFns, c.addOperationDescribeVpcBlockPublicAccessOptionsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeVpcBlockPublicAccessOptionsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeVpcBlockPublicAccessOptionsInput 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 + + noSmithyDocumentSerde +} + +type DescribeVpcBlockPublicAccessOptionsOutput struct { + + // Details related to the options. + VpcBlockPublicAccessOptions *types.VpcBlockPublicAccessOptions + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeVpcBlockPublicAccessOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcBlockPublicAccessOptions{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVpcBlockPublicAccessOptions{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVpcBlockPublicAccessOptions"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVpcBlockPublicAccessOptions(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeVpcBlockPublicAccessOptions(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DescribeVpcBlockPublicAccessOptions", + } +} diff --git a/service/ec2/api_op_DescribeVpcClassicLink.go b/service/ec2/api_op_DescribeVpcClassicLink.go index fcbf3eac487..68f82bcd469 100644 --- a/service/ec2/api_op_DescribeVpcClassicLink.go +++ b/service/ec2/api_op_DescribeVpcClassicLink.go @@ -42,7 +42,7 @@ type DescribeVpcClassicLinkInput struct { // - is-classic-link-enabled - Whether the VPC is enabled for ClassicLink ( true // | false ). // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - tag - 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. diff --git a/service/ec2/api_op_DescribeVpcPeeringConnections.go b/service/ec2/api_op_DescribeVpcPeeringConnections.go index e8920eab548..d1cf7549e68 100644 --- a/service/ec2/api_op_DescribeVpcPeeringConnections.go +++ b/service/ec2/api_op_DescribeVpcPeeringConnections.go @@ -68,7 +68,7 @@ type DescribeVpcPeeringConnectionsInput struct { // - status-message - A message that provides more information about the status // of the VPC peering connection, if applicable. // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - tag - 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. diff --git a/service/ec2/api_op_DescribeVpcs.go b/service/ec2/api_op_DescribeVpcs.go index 6cba0d690c7..504e90edff1 100644 --- a/service/ec2/api_op_DescribeVpcs.go +++ b/service/ec2/api_op_DescribeVpcs.go @@ -77,7 +77,7 @@ type DescribeVpcsInput struct { // // - state - The state of the VPC ( pending | available ). // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - tag - 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. diff --git a/service/ec2/api_op_ModifyInstanceCapacityReservationAttributes.go b/service/ec2/api_op_ModifyInstanceCapacityReservationAttributes.go index 0ad3f51bb1d..03b0dd7a131 100644 --- a/service/ec2/api_op_ModifyInstanceCapacityReservationAttributes.go +++ b/service/ec2/api_op_ModifyInstanceCapacityReservationAttributes.go @@ -13,8 +13,8 @@ import ( // Modifies the Capacity Reservation settings for a stopped instance. Use this // action to configure an instance to target a specific Capacity Reservation, run -// in any open Capacity Reservation with matching attributes, or run On-Demand -// Instance capacity. +// in any open Capacity Reservation with matching attributes, run in On-Demand +// Instance capacity, or only run in a Capacity Reservation. func (c *Client) ModifyInstanceCapacityReservationAttributes(ctx context.Context, params *ModifyInstanceCapacityReservationAttributesInput, optFns ...func(*Options)) (*ModifyInstanceCapacityReservationAttributesOutput, error) { if params == nil { params = &ModifyInstanceCapacityReservationAttributesInput{} diff --git a/service/ec2/api_op_ModifyVpcBlockPublicAccessExclusion.go b/service/ec2/api_op_ModifyVpcBlockPublicAccessExclusion.go new file mode 100644 index 00000000000..80fa7fee945 --- /dev/null +++ b/service/ec2/api_op_ModifyVpcBlockPublicAccessExclusion.go @@ -0,0 +1,180 @@ +// 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/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Modify VPC Block Public Access (BPA) exclusions. A VPC BPA exclusion is a mode +// that can be applied to a single VPC or subnet that exempts it from the account’s +// BPA mode and will allow bidirectional or egress-only access. You can create BPA +// exclusions for VPCs and subnets even when BPA is not enabled on the account to +// ensure that there is no traffic disruption to the exclusions when VPC BPA is +// turned on. +func (c *Client) ModifyVpcBlockPublicAccessExclusion(ctx context.Context, params *ModifyVpcBlockPublicAccessExclusionInput, optFns ...func(*Options)) (*ModifyVpcBlockPublicAccessExclusionOutput, error) { + if params == nil { + params = &ModifyVpcBlockPublicAccessExclusionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ModifyVpcBlockPublicAccessExclusion", params, optFns, c.addOperationModifyVpcBlockPublicAccessExclusionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ModifyVpcBlockPublicAccessExclusionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ModifyVpcBlockPublicAccessExclusionInput struct { + + // The ID of an exclusion. + // + // This member is required. + ExclusionId *string + + // The exclusion mode for internet gateway traffic. + // + // - bidirectional-access-allowed : Allow all internet traffic to and from the + // excluded VPCs and subnets. + // + // - egress-access-allowed : Allow outbound internet traffic from the excluded + // VPCs and subnets. Block inbound internet traffic to the excluded VPCs and + // subnets. Only applies when VPC Block Public Access is set to Bidirectional. + // + // This member is required. + InternetGatewayExclusionMode types.InternetGatewayExclusionMode + + // 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 ModifyVpcBlockPublicAccessExclusionOutput struct { + + // Details related to the exclusion. + VpcBlockPublicAccessExclusion *types.VpcBlockPublicAccessExclusion + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationModifyVpcBlockPublicAccessExclusionMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpcBlockPublicAccessExclusion{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVpcBlockPublicAccessExclusion{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVpcBlockPublicAccessExclusion"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpModifyVpcBlockPublicAccessExclusionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVpcBlockPublicAccessExclusion(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opModifyVpcBlockPublicAccessExclusion(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ModifyVpcBlockPublicAccessExclusion", + } +} diff --git a/service/ec2/api_op_ModifyVpcBlockPublicAccessOptions.go b/service/ec2/api_op_ModifyVpcBlockPublicAccessOptions.go new file mode 100644 index 00000000000..d7a9ab4e711 --- /dev/null +++ b/service/ec2/api_op_ModifyVpcBlockPublicAccessOptions.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/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Modify VPC Block Public Access (BPA) options. VPC Block public Access (BPA) +// enables you to block resources in VPCs and subnets that you own in a Region from +// reaching or being reached from the internet through internet gateways and +// egress-only internet gateways. To learn more about VPC BPA, see [Block public access to VPCs and subnets]in the Amazon +// VPC User Guide. +// +// [Block public access to VPCs and subnets]: https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html +func (c *Client) ModifyVpcBlockPublicAccessOptions(ctx context.Context, params *ModifyVpcBlockPublicAccessOptionsInput, optFns ...func(*Options)) (*ModifyVpcBlockPublicAccessOptionsOutput, error) { + if params == nil { + params = &ModifyVpcBlockPublicAccessOptionsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ModifyVpcBlockPublicAccessOptions", params, optFns, c.addOperationModifyVpcBlockPublicAccessOptionsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ModifyVpcBlockPublicAccessOptionsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ModifyVpcBlockPublicAccessOptionsInput struct { + + // The mode of VPC BPA. + // + // - bidirectional-access-allowed : VPC BPA is not enabled and traffic is allowed + // to and from internet gateways and egress-only internet gateways in this Region. + // + // - bidirectional-access-blocked : Block all traffic to and from internet + // gateways and egress-only internet gateways in this Region (except for excluded + // VPCs and subnets). + // + // - ingress-access-blocked : Block all internet traffic to the VPCs in this + // Region (except for VPCs or subnets which are excluded). Only traffic to and from + // NAT gateways and egress-only internet gateways is allowed because these gateways + // only allow outbound connections to be established. + // + // This member is required. + InternetGatewayBlockMode types.InternetGatewayBlockMode + + // 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 ModifyVpcBlockPublicAccessOptionsOutput struct { + + // Details related to the VPC Block Public Access (BPA) options. + VpcBlockPublicAccessOptions *types.VpcBlockPublicAccessOptions + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationModifyVpcBlockPublicAccessOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpcBlockPublicAccessOptions{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVpcBlockPublicAccessOptions{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVpcBlockPublicAccessOptions"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpModifyVpcBlockPublicAccessOptionsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVpcBlockPublicAccessOptions(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opModifyVpcBlockPublicAccessOptions(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ModifyVpcBlockPublicAccessOptions", + } +} diff --git a/service/ec2/api_op_RunInstances.go b/service/ec2/api_op_RunInstances.go index 91ce7cab451..2d32bf2037a 100644 --- a/service/ec2/api_op_RunInstances.go +++ b/service/ec2/api_op_RunInstances.go @@ -118,7 +118,7 @@ type RunInstancesInput struct { // Information about the Capacity Reservation targeting option. If you do not // specify this parameter, the instance's Capacity Reservation preference defaults // to open , which enables it to run in any open Capacity Reservation that has - // matching attributes (instance type, platform, Availability Zone). + // matching attributes (instance type, platform, Availability Zone, and tenancy). CapacityReservationSpecification *types.CapacityReservationSpecification // Unique, case-sensitive identifier you provide to ensure the idempotency of the @@ -309,6 +309,9 @@ type RunInstancesInput struct { // The network interfaces to associate with the instance. NetworkInterfaces []types.InstanceNetworkInterfaceSpecification + // Reserved for internal use. + Operator *types.OperatorRequest + // The placement for the instance. Placement *types.Placement diff --git a/service/ec2/deserializers.go b/service/ec2/deserializers.go index 7d24ae7b260..c284b408b07 100644 --- a/service/ec2/deserializers.go +++ b/service/ec2/deserializers.go @@ -12721,6 +12721,101 @@ func awsEc2query_deserializeOpErrorCreateVpc(response *smithyhttp.Response, meta } } +type awsEc2query_deserializeOpCreateVpcBlockPublicAccessExclusion struct { +} + +func (*awsEc2query_deserializeOpCreateVpcBlockPublicAccessExclusion) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpCreateVpcBlockPublicAccessExclusion) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorCreateVpcBlockPublicAccessExclusion(response, &metadata) + } + output := &CreateVpcBlockPublicAccessExclusionOutput{} + 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_deserializeOpDocumentCreateVpcBlockPublicAccessExclusionOutput(&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_deserializeOpErrorCreateVpcBlockPublicAccessExclusion(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.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_deserializeOpCreateVpcEndpoint struct { } @@ -19455,6 +19550,101 @@ func awsEc2query_deserializeOpErrorDeleteVpc(response *smithyhttp.Response, meta } } +type awsEc2query_deserializeOpDeleteVpcBlockPublicAccessExclusion struct { +} + +func (*awsEc2query_deserializeOpDeleteVpcBlockPublicAccessExclusion) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpDeleteVpcBlockPublicAccessExclusion) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorDeleteVpcBlockPublicAccessExclusion(response, &metadata) + } + output := &DeleteVpcBlockPublicAccessExclusionOutput{} + 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_deserializeOpDocumentDeleteVpcBlockPublicAccessExclusionOutput(&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_deserializeOpErrorDeleteVpcBlockPublicAccessExclusion(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.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_deserializeOpDeleteVpcEndpointConnectionNotifications struct { } @@ -34373,14 +34563,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcAttribute(response *smithyhttp.Res } } -type awsEc2query_deserializeOpDescribeVpcClassicLink struct { +type awsEc2query_deserializeOpDescribeVpcBlockPublicAccessExclusions struct { } -func (*awsEc2query_deserializeOpDescribeVpcClassicLink) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcBlockPublicAccessExclusions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcClassicLink) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVpcBlockPublicAccessExclusions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34398,9 +34588,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_deserializeOpErrorDescribeVpcBlockPublicAccessExclusions(response, &metadata) } - output := &DescribeVpcClassicLinkOutput{} + output := &DescribeVpcBlockPublicAccessExclusionsOutput{} out.Result = output var buff [1024]byte @@ -34421,7 +34611,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcClassicLink) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcClassicLinkOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcBlockPublicAccessExclusionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34435,7 +34625,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcClassicLink) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcClassicLink(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVpcBlockPublicAccessExclusions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34468,14 +34658,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcClassicLink(response *smithyhttp.R } } -type awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport struct { +type awsEc2query_deserializeOpDescribeVpcBlockPublicAccessOptions struct { } -func (*awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcBlockPublicAccessOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVpcBlockPublicAccessOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34493,9 +34683,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcClassicLinkDnsSupport(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcBlockPublicAccessOptions(response, &metadata) } - output := &DescribeVpcClassicLinkDnsSupportOutput{} + output := &DescribeVpcBlockPublicAccessOptionsOutput{} out.Result = output var buff [1024]byte @@ -34516,7 +34706,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) HandleDeseri } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcClassicLinkDnsSupportOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcBlockPublicAccessOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34530,7 +34720,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) HandleDeseri return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcClassicLinkDnsSupport(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVpcBlockPublicAccessOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34563,14 +34753,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcClassicLinkDnsSupport(response *sm } } -type awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications struct { +type awsEc2query_deserializeOpDescribeVpcClassicLink struct { } -func (*awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcClassicLink) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) 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) @@ -34588,9 +34778,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) Ha } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointConnectionNotifications(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcClassicLink(response, &metadata) } - output := &DescribeVpcEndpointConnectionNotificationsOutput{} + output := &DescribeVpcClassicLinkOutput{} out.Result = output var buff [1024]byte @@ -34611,7 +34801,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) Ha } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointConnectionNotificationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcClassicLinkOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34625,7 +34815,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) Ha return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcEndpointConnectionNotifications(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)} @@ -34658,14 +34848,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcEndpointConnectionNotifications(re } } -type awsEc2query_deserializeOpDescribeVpcEndpointConnections struct { +type awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport struct { } -func (*awsEc2query_deserializeOpDescribeVpcEndpointConnections) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnections) 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) @@ -34683,9 +34873,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnections) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointConnections(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcClassicLinkDnsSupport(response, &metadata) } - output := &DescribeVpcEndpointConnectionsOutput{} + output := &DescribeVpcClassicLinkDnsSupportOutput{} out.Result = output var buff [1024]byte @@ -34706,7 +34896,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnections) HandleDeserial } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointConnectionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcClassicLinkDnsSupportOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34720,7 +34910,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnections) HandleDeserial return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcEndpointConnections(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)} @@ -34753,14 +34943,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcEndpointConnections(response *smit } } -type awsEc2query_deserializeOpDescribeVpcEndpoints struct { +type awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications struct { } -func (*awsEc2query_deserializeOpDescribeVpcEndpoints) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcEndpoints) 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) @@ -34778,9 +34968,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_deserializeOpErrorDescribeVpcEndpointConnectionNotifications(response, &metadata) } - output := &DescribeVpcEndpointsOutput{} + output := &DescribeVpcEndpointConnectionNotificationsOutput{} out.Result = output var buff [1024]byte @@ -34801,7 +34991,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpoints) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointConnectionNotificationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34815,7 +35005,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpoints) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcEndpoints(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)} @@ -34848,14 +35038,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcEndpoints(response *smithyhttp.Res } } -type awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations struct { +type awsEc2query_deserializeOpDescribeVpcEndpointConnections struct { } -func (*awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcEndpointConnections) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) 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) @@ -34873,9 +35063,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) Hand } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointServiceConfigurations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointConnections(response, &metadata) } - output := &DescribeVpcEndpointServiceConfigurationsOutput{} + output := &DescribeVpcEndpointConnectionsOutput{} out.Result = output var buff [1024]byte @@ -34896,7 +35086,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) Hand } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointServiceConfigurationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointConnectionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34910,7 +35100,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) Hand return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcEndpointServiceConfigurations(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)} @@ -34943,14 +35133,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcEndpointServiceConfigurations(resp } } -type awsEc2query_deserializeOpDescribeVpcEndpointServicePermissions struct { +type awsEc2query_deserializeOpDescribeVpcEndpoints struct { } -func (*awsEc2query_deserializeOpDescribeVpcEndpointServicePermissions) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcEndpoints) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcEndpointServicePermissions) 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) @@ -34968,9 +35158,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointServicePermissions) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointServicePermissions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpoints(response, &metadata) } - output := &DescribeVpcEndpointServicePermissionsOutput{} + output := &DescribeVpcEndpointsOutput{} out.Result = output var buff [1024]byte @@ -34991,7 +35181,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointServicePermissions) HandleD } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointServicePermissionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35005,7 +35195,197 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointServicePermissions) HandleD return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcEndpointServicePermissions(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)} + } + 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_deserializeOpDescribeVpcEndpointServiceConfigurations struct { +} + +func (*awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) ID() string { + return "OperationDeserializer" +} + +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) + if err != nil { + return out, metadata, err + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorDescribeVpcEndpointServiceConfigurations(response, &metadata) + } + output := &DescribeVpcEndpointServiceConfigurationsOutput{} + 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_deserializeOpDocumentDescribeVpcEndpointServiceConfigurationsOutput(&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_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)} + } + 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_deserializeOpDescribeVpcEndpointServicePermissions struct { +} + +func (*awsEc2query_deserializeOpDescribeVpcEndpointServicePermissions) ID() string { + return "OperationDeserializer" +} + +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) + if err != nil { + return out, metadata, err + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorDescribeVpcEndpointServicePermissions(response, &metadata) + } + output := &DescribeVpcEndpointServicePermissionsOutput{} + 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_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_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)} @@ -51652,14 +52032,14 @@ func awsEc2query_deserializeOpErrorModifyVpcAttribute(response *smithyhttp.Respo } } -type awsEc2query_deserializeOpModifyVpcEndpoint struct { +type awsEc2query_deserializeOpModifyVpcBlockPublicAccessExclusion struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpoint) ID() string { +func (*awsEc2query_deserializeOpModifyVpcBlockPublicAccessExclusion) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcBlockPublicAccessExclusion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -51677,9 +52057,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_deserializeOpErrorModifyVpcBlockPublicAccessExclusion(response, &metadata) } - output := &ModifyVpcEndpointOutput{} + output := &ModifyVpcBlockPublicAccessExclusionOutput{} out.Result = output var buff [1024]byte @@ -51700,7 +52080,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx conte } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcBlockPublicAccessExclusionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -51714,7 +52094,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx conte return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcBlockPublicAccessExclusion(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -51747,14 +52127,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpoint(response *smithyhttp.Respon } } -type awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification struct { +type awsEc2query_deserializeOpModifyVpcBlockPublicAccessOptions struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) ID() string { +func (*awsEc2query_deserializeOpModifyVpcBlockPublicAccessOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcBlockPublicAccessOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -51772,9 +52152,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcBlockPublicAccessOptions(response, &metadata) } - output := &ModifyVpcEndpointConnectionNotificationOutput{} + output := &ModifyVpcBlockPublicAccessOptionsOutput{} out.Result = output var buff [1024]byte @@ -51795,7 +52175,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) Handl } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointConnectionNotificationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcBlockPublicAccessOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -51809,7 +52189,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) Handl return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcBlockPublicAccessOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -51842,14 +52222,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(respo } } -type awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration struct { +type awsEc2query_deserializeOpModifyVpcEndpoint struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpoint) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -51867,9 +52247,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpoint(response, &metadata) } - output := &ModifyVpcEndpointServiceConfigurationOutput{} + output := &ModifyVpcEndpointOutput{} out.Result = output var buff [1024]byte @@ -51890,7 +52270,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleD } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServiceConfigurationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -51904,7 +52284,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleD return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(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)} @@ -51937,14 +52317,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(respons } } -type awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility struct { +type awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility) 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) @@ -51962,9 +52342,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility) H } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServicePayerResponsibility(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response, &metadata) } - output := &ModifyVpcEndpointServicePayerResponsibilityOutput{} + output := &ModifyVpcEndpointConnectionNotificationOutput{} out.Result = output var buff [1024]byte @@ -51985,7 +52365,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility) H } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServicePayerResponsibilityOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointConnectionNotificationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -51999,7 +52379,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility) H return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePayerResponsibility(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)} @@ -52032,14 +52412,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePayerResponsibility(r } } -type awsEc2query_deserializeOpModifyVpcEndpointServicePermissions struct { +type awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) 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) @@ -52057,9 +52437,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(response, &metadata) } - output := &ModifyVpcEndpointServicePermissionsOutput{} + output := &ModifyVpcEndpointServiceConfigurationOutput{} out.Result = output var buff [1024]byte @@ -52080,7 +52460,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDes } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServicePermissionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServiceConfigurationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -52094,7 +52474,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDes return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(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)} @@ -52127,14 +52507,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response } } -type awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions struct { +type awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility struct { } -func (*awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -52152,9 +52532,9 @@ func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServicePayerResponsibility(response, &metadata) } - output := &ModifyVpcPeeringConnectionOptionsOutput{} + output := &ModifyVpcEndpointServicePayerResponsibilityOutput{} out.Result = output var buff [1024]byte @@ -52175,7 +52555,7 @@ func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcPeeringConnectionOptionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServicePayerResponsibilityOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -52189,7 +52569,7 @@ func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePayerResponsibility(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -52222,109 +52602,14 @@ func awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response *s } } -type awsEc2query_deserializeOpModifyVpcTenancy struct { -} - -func (*awsEc2query_deserializeOpModifyVpcTenancy) ID() string { - return "OperationDeserializer" -} - -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) - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - 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_deserializeOpErrorModifyVpcTenancy(response, &metadata) - } - output := &ModifyVpcTenancyOutput{} - 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_deserializeOpDocumentModifyVpcTenancyOutput(&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_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)} - } - 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_deserializeOpModifyVpnConnection struct { +type awsEc2query_deserializeOpModifyVpcEndpointServicePermissions struct { } -func (*awsEc2query_deserializeOpModifyVpnConnection) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpnConnection) 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) @@ -52342,9 +52627,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_deserializeOpErrorModifyVpcEndpointServicePermissions(response, &metadata) } - output := &ModifyVpnConnectionOutput{} + output := &ModifyVpcEndpointServicePermissionsOutput{} out.Result = output var buff [1024]byte @@ -52365,7 +52650,7 @@ func (m *awsEc2query_deserializeOpModifyVpnConnection) HandleDeserialize(ctx con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpnConnectionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServicePermissionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -52379,7 +52664,7 @@ func (m *awsEc2query_deserializeOpModifyVpnConnection) HandleDeserialize(ctx con return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpnConnection(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)} @@ -52412,14 +52697,14 @@ func awsEc2query_deserializeOpErrorModifyVpnConnection(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpModifyVpnConnectionOptions struct { +type awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions struct { } -func (*awsEc2query_deserializeOpModifyVpnConnectionOptions) ID() string { +func (*awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpnConnectionOptions) 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) @@ -52437,9 +52722,9 @@ func (m *awsEc2query_deserializeOpModifyVpnConnectionOptions) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response, &metadata) } - output := &ModifyVpnConnectionOptionsOutput{} + output := &ModifyVpcPeeringConnectionOptionsOutput{} out.Result = output var buff [1024]byte @@ -52460,7 +52745,7 @@ func (m *awsEc2query_deserializeOpModifyVpnConnectionOptions) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpnConnectionOptionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcPeeringConnectionOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -52474,7 +52759,7 @@ func (m *awsEc2query_deserializeOpModifyVpnConnectionOptions) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(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)} @@ -52507,14 +52792,14 @@ func awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(response *smithyht } } -type awsEc2query_deserializeOpModifyVpnTunnelCertificate struct { +type awsEc2query_deserializeOpModifyVpcTenancy struct { } -func (*awsEc2query_deserializeOpModifyVpnTunnelCertificate) ID() string { +func (*awsEc2query_deserializeOpModifyVpcTenancy) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) 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) @@ -52532,9 +52817,9 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpnTunnelCertificate(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcTenancy(response, &metadata) } - output := &ModifyVpnTunnelCertificateOutput{} + output := &ModifyVpcTenancyOutput{} out.Result = output var buff [1024]byte @@ -52555,7 +52840,7 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpnTunnelCertificateOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcTenancyOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -52569,7 +52854,7 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpnTunnelCertificate(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)} @@ -52602,14 +52887,14 @@ func awsEc2query_deserializeOpErrorModifyVpnTunnelCertificate(response *smithyht } } -type awsEc2query_deserializeOpModifyVpnTunnelOptions struct { +type awsEc2query_deserializeOpModifyVpnConnection struct { } -func (*awsEc2query_deserializeOpModifyVpnTunnelOptions) ID() string { +func (*awsEc2query_deserializeOpModifyVpnConnection) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpnTunnelOptions) 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) @@ -52627,9 +52912,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_deserializeOpErrorModifyVpnConnection(response, &metadata) } - output := &ModifyVpnTunnelOptionsOutput{} + output := &ModifyVpnConnectionOutput{} out.Result = output var buff [1024]byte @@ -52650,7 +52935,7 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelOptions) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpnTunnelOptionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpnConnectionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -52664,7 +52949,7 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelOptions) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(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)} @@ -52697,14 +52982,14 @@ func awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(response *smithyhttp.R } } -type awsEc2query_deserializeOpMonitorInstances struct { +type awsEc2query_deserializeOpModifyVpnConnectionOptions struct { } -func (*awsEc2query_deserializeOpMonitorInstances) ID() string { +func (*awsEc2query_deserializeOpModifyVpnConnectionOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpMonitorInstances) 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) @@ -52722,9 +53007,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_deserializeOpErrorModifyVpnConnectionOptions(response, &metadata) } - output := &MonitorInstancesOutput{} + output := &ModifyVpnConnectionOptionsOutput{} out.Result = output var buff [1024]byte @@ -52745,7 +53030,7 @@ func (m *awsEc2query_deserializeOpMonitorInstances) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentMonitorInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpnConnectionOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -52759,7 +53044,7 @@ func (m *awsEc2query_deserializeOpMonitorInstances) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorMonitorInstances(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)} @@ -52792,14 +53077,14 @@ func awsEc2query_deserializeOpErrorMonitorInstances(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpMoveAddressToVpc struct { +type awsEc2query_deserializeOpModifyVpnTunnelCertificate struct { } -func (*awsEc2query_deserializeOpMoveAddressToVpc) ID() string { +func (*awsEc2query_deserializeOpModifyVpnTunnelCertificate) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpMoveAddressToVpc) 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) @@ -52817,9 +53102,9 @@ 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_deserializeOpErrorModifyVpnTunnelCertificate(response, &metadata) } - output := &MoveAddressToVpcOutput{} + output := &ModifyVpnTunnelCertificateOutput{} out.Result = output var buff [1024]byte @@ -52840,7 +53125,7 @@ func (m *awsEc2query_deserializeOpMoveAddressToVpc) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentMoveAddressToVpcOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpnTunnelCertificateOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -52854,7 +53139,7 @@ func (m *awsEc2query_deserializeOpMoveAddressToVpc) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorMoveAddressToVpc(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -52887,14 +53172,14 @@ func awsEc2query_deserializeOpErrorMoveAddressToVpc(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpMoveByoipCidrToIpam struct { +type awsEc2query_deserializeOpModifyVpnTunnelOptions struct { } -func (*awsEc2query_deserializeOpMoveByoipCidrToIpam) ID() string { +func (*awsEc2query_deserializeOpModifyVpnTunnelOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpMoveByoipCidrToIpam) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -52912,9 +53197,9 @@ func (m *awsEc2query_deserializeOpMoveByoipCidrToIpam) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorMoveByoipCidrToIpam(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(response, &metadata) } - output := &MoveByoipCidrToIpamOutput{} + output := &ModifyVpnTunnelOptionsOutput{} out.Result = output var buff [1024]byte @@ -52935,7 +53220,7 @@ func (m *awsEc2query_deserializeOpMoveByoipCidrToIpam) HandleDeserialize(ctx con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentMoveByoipCidrToIpamOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpnTunnelOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -52949,7 +53234,7 @@ func (m *awsEc2query_deserializeOpMoveByoipCidrToIpam) HandleDeserialize(ctx con return out, metadata, err } -func awsEc2query_deserializeOpErrorMoveByoipCidrToIpam(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)} @@ -52982,14 +53267,14 @@ func awsEc2query_deserializeOpErrorMoveByoipCidrToIpam(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpMoveCapacityReservationInstances struct { +type awsEc2query_deserializeOpMonitorInstances struct { } -func (*awsEc2query_deserializeOpMoveCapacityReservationInstances) ID() string { +func (*awsEc2query_deserializeOpMonitorInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpMoveCapacityReservationInstances) 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) @@ -53007,9 +53292,9 @@ func (m *awsEc2query_deserializeOpMoveCapacityReservationInstances) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorMoveCapacityReservationInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorMonitorInstances(response, &metadata) } - output := &MoveCapacityReservationInstancesOutput{} + output := &MonitorInstancesOutput{} out.Result = output var buff [1024]byte @@ -53030,7 +53315,7 @@ func (m *awsEc2query_deserializeOpMoveCapacityReservationInstances) HandleDeseri } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentMoveCapacityReservationInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentMonitorInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -53044,7 +53329,7 @@ func (m *awsEc2query_deserializeOpMoveCapacityReservationInstances) HandleDeseri return out, metadata, err } -func awsEc2query_deserializeOpErrorMoveCapacityReservationInstances(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)} @@ -53077,14 +53362,14 @@ func awsEc2query_deserializeOpErrorMoveCapacityReservationInstances(response *sm } } -type awsEc2query_deserializeOpProvisionByoipCidr struct { +type awsEc2query_deserializeOpMoveAddressToVpc struct { } -func (*awsEc2query_deserializeOpProvisionByoipCidr) ID() string { +func (*awsEc2query_deserializeOpMoveAddressToVpc) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpProvisionByoipCidr) 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) @@ -53102,9 +53387,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_deserializeOpErrorMoveAddressToVpc(response, &metadata) } - output := &ProvisionByoipCidrOutput{} + output := &MoveAddressToVpcOutput{} out.Result = output var buff [1024]byte @@ -53125,7 +53410,7 @@ func (m *awsEc2query_deserializeOpProvisionByoipCidr) HandleDeserialize(ctx cont } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentProvisionByoipCidrOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentMoveAddressToVpcOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -53139,7 +53424,7 @@ func (m *awsEc2query_deserializeOpProvisionByoipCidr) HandleDeserialize(ctx cont return out, metadata, err } -func awsEc2query_deserializeOpErrorProvisionByoipCidr(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)} @@ -53172,14 +53457,14 @@ func awsEc2query_deserializeOpErrorProvisionByoipCidr(response *smithyhttp.Respo } } -type awsEc2query_deserializeOpProvisionIpamByoasn struct { +type awsEc2query_deserializeOpMoveByoipCidrToIpam struct { } -func (*awsEc2query_deserializeOpProvisionIpamByoasn) ID() string { +func (*awsEc2query_deserializeOpMoveByoipCidrToIpam) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpProvisionIpamByoasn) 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) @@ -53197,9 +53482,9 @@ func (m *awsEc2query_deserializeOpProvisionIpamByoasn) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorProvisionIpamByoasn(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorMoveByoipCidrToIpam(response, &metadata) } - output := &ProvisionIpamByoasnOutput{} + output := &MoveByoipCidrToIpamOutput{} out.Result = output var buff [1024]byte @@ -53220,7 +53505,7 @@ func (m *awsEc2query_deserializeOpProvisionIpamByoasn) HandleDeserialize(ctx con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentProvisionIpamByoasnOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentMoveByoipCidrToIpamOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -53234,7 +53519,7 @@ func (m *awsEc2query_deserializeOpProvisionIpamByoasn) HandleDeserialize(ctx con return out, metadata, err } -func awsEc2query_deserializeOpErrorProvisionIpamByoasn(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)} @@ -53267,14 +53552,14 @@ func awsEc2query_deserializeOpErrorProvisionIpamByoasn(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpProvisionIpamPoolCidr struct { +type awsEc2query_deserializeOpMoveCapacityReservationInstances struct { } -func (*awsEc2query_deserializeOpProvisionIpamPoolCidr) ID() string { +func (*awsEc2query_deserializeOpMoveCapacityReservationInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpProvisionIpamPoolCidr) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpMoveCapacityReservationInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -53292,9 +53577,9 @@ func (m *awsEc2query_deserializeOpProvisionIpamPoolCidr) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorProvisionIpamPoolCidr(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorMoveCapacityReservationInstances(response, &metadata) } - output := &ProvisionIpamPoolCidrOutput{} + output := &MoveCapacityReservationInstancesOutput{} out.Result = output var buff [1024]byte @@ -53315,7 +53600,7 @@ func (m *awsEc2query_deserializeOpProvisionIpamPoolCidr) HandleDeserialize(ctx c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentProvisionIpamPoolCidrOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentMoveCapacityReservationInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -53329,7 +53614,7 @@ func (m *awsEc2query_deserializeOpProvisionIpamPoolCidr) HandleDeserialize(ctx c return out, metadata, err } -func awsEc2query_deserializeOpErrorProvisionIpamPoolCidr(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorMoveCapacityReservationInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -53362,14 +53647,14 @@ func awsEc2query_deserializeOpErrorProvisionIpamPoolCidr(response *smithyhttp.Re } } -type awsEc2query_deserializeOpProvisionPublicIpv4PoolCidr struct { +type awsEc2query_deserializeOpProvisionByoipCidr struct { } -func (*awsEc2query_deserializeOpProvisionPublicIpv4PoolCidr) ID() string { +func (*awsEc2query_deserializeOpProvisionByoipCidr) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpProvisionPublicIpv4PoolCidr) 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) @@ -53387,9 +53672,9 @@ func (m *awsEc2query_deserializeOpProvisionPublicIpv4PoolCidr) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorProvisionPublicIpv4PoolCidr(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorProvisionByoipCidr(response, &metadata) } - output := &ProvisionPublicIpv4PoolCidrOutput{} + output := &ProvisionByoipCidrOutput{} out.Result = output var buff [1024]byte @@ -53410,7 +53695,7 @@ func (m *awsEc2query_deserializeOpProvisionPublicIpv4PoolCidr) HandleDeserialize } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentProvisionPublicIpv4PoolCidrOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentProvisionByoipCidrOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -53424,7 +53709,7 @@ func (m *awsEc2query_deserializeOpProvisionPublicIpv4PoolCidr) HandleDeserialize return out, metadata, err } -func awsEc2query_deserializeOpErrorProvisionPublicIpv4PoolCidr(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)} @@ -53457,14 +53742,14 @@ func awsEc2query_deserializeOpErrorProvisionPublicIpv4PoolCidr(response *smithyh } } -type awsEc2query_deserializeOpPurchaseCapacityBlock struct { +type awsEc2query_deserializeOpProvisionIpamByoasn struct { } -func (*awsEc2query_deserializeOpPurchaseCapacityBlock) ID() string { +func (*awsEc2query_deserializeOpProvisionIpamByoasn) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpPurchaseCapacityBlock) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpProvisionIpamByoasn) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -53482,9 +53767,9 @@ func (m *awsEc2query_deserializeOpPurchaseCapacityBlock) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorPurchaseCapacityBlock(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorProvisionIpamByoasn(response, &metadata) } - output := &PurchaseCapacityBlockOutput{} + output := &ProvisionIpamByoasnOutput{} out.Result = output var buff [1024]byte @@ -53505,7 +53790,7 @@ func (m *awsEc2query_deserializeOpPurchaseCapacityBlock) HandleDeserialize(ctx c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentPurchaseCapacityBlockOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentProvisionIpamByoasnOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -53519,7 +53804,7 @@ func (m *awsEc2query_deserializeOpPurchaseCapacityBlock) HandleDeserialize(ctx c return out, metadata, err } -func awsEc2query_deserializeOpErrorPurchaseCapacityBlock(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorProvisionIpamByoasn(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -53552,14 +53837,14 @@ func awsEc2query_deserializeOpErrorPurchaseCapacityBlock(response *smithyhttp.Re } } -type awsEc2query_deserializeOpPurchaseHostReservation struct { +type awsEc2query_deserializeOpProvisionIpamPoolCidr struct { } -func (*awsEc2query_deserializeOpPurchaseHostReservation) ID() string { +func (*awsEc2query_deserializeOpProvisionIpamPoolCidr) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpPurchaseHostReservation) 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) @@ -53577,9 +53862,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_deserializeOpErrorProvisionIpamPoolCidr(response, &metadata) } - output := &PurchaseHostReservationOutput{} + output := &ProvisionIpamPoolCidrOutput{} out.Result = output var buff [1024]byte @@ -53600,7 +53885,7 @@ func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentPurchaseHostReservationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentProvisionIpamPoolCidrOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -53614,7 +53899,7 @@ func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorPurchaseHostReservation(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)} @@ -53647,14 +53932,14 @@ func awsEc2query_deserializeOpErrorPurchaseHostReservation(response *smithyhttp. } } -type awsEc2query_deserializeOpPurchaseReservedInstancesOffering struct { +type awsEc2query_deserializeOpProvisionPublicIpv4PoolCidr struct { } -func (*awsEc2query_deserializeOpPurchaseReservedInstancesOffering) ID() string { +func (*awsEc2query_deserializeOpProvisionPublicIpv4PoolCidr) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) 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) @@ -53672,9 +53957,9 @@ func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorProvisionPublicIpv4PoolCidr(response, &metadata) } - output := &PurchaseReservedInstancesOfferingOutput{} + output := &ProvisionPublicIpv4PoolCidrOutput{} out.Result = output var buff [1024]byte @@ -53695,7 +53980,7 @@ func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentPurchaseReservedInstancesOfferingOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentProvisionPublicIpv4PoolCidrOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -53709,7 +53994,7 @@ func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(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)} @@ -53742,14 +54027,14 @@ func awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response *s } } -type awsEc2query_deserializeOpPurchaseScheduledInstances struct { +type awsEc2query_deserializeOpPurchaseCapacityBlock struct { } -func (*awsEc2query_deserializeOpPurchaseScheduledInstances) ID() string { +func (*awsEc2query_deserializeOpPurchaseCapacityBlock) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpPurchaseCapacityBlock) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -53767,9 +54052,9 @@ func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorPurchaseCapacityBlock(response, &metadata) } - output := &PurchaseScheduledInstancesOutput{} + output := &PurchaseCapacityBlockOutput{} out.Result = output var buff [1024]byte @@ -53790,7 +54075,7 @@ func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentPurchaseScheduledInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentPurchaseCapacityBlockOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -53804,7 +54089,7 @@ func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorPurchaseCapacityBlock(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -53837,14 +54122,14 @@ func awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response *smithyht } } -type awsEc2query_deserializeOpRebootInstances struct { +type awsEc2query_deserializeOpPurchaseHostReservation struct { } -func (*awsEc2query_deserializeOpRebootInstances) ID() string { +func (*awsEc2query_deserializeOpPurchaseHostReservation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRebootInstances) 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) @@ -53862,21 +54147,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_deserializeOpErrorPurchaseHostReservation(response, &metadata) } - output := &RebootInstancesOutput{} + output := &PurchaseHostReservationOutput{} 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_deserializeOpDocumentPurchaseHostReservationOutput(&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_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)} @@ -53909,14 +54217,14 @@ func awsEc2query_deserializeOpErrorRebootInstances(response *smithyhttp.Response } } -type awsEc2query_deserializeOpRegisterImage struct { +type awsEc2query_deserializeOpPurchaseReservedInstancesOffering struct { } -func (*awsEc2query_deserializeOpRegisterImage) ID() string { +func (*awsEc2query_deserializeOpPurchaseReservedInstancesOffering) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRegisterImage) 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) @@ -53934,9 +54242,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_deserializeOpErrorPurchaseReservedInstancesOffering(response, &metadata) } - output := &RegisterImageOutput{} + output := &PurchaseReservedInstancesOfferingOutput{} out.Result = output var buff [1024]byte @@ -53957,7 +54265,7 @@ func (m *awsEc2query_deserializeOpRegisterImage) HandleDeserialize(ctx context.C } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRegisterImageOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentPurchaseReservedInstancesOfferingOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -53971,7 +54279,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_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)} @@ -54004,14 +54312,14 @@ func awsEc2query_deserializeOpErrorRegisterImage(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes struct { +type awsEc2query_deserializeOpPurchaseScheduledInstances struct { } -func (*awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) ID() string { +func (*awsEc2query_deserializeOpPurchaseScheduledInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) 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) @@ -54029,9 +54337,9 @@ func (m *awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) H } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response, &metadata) } - output := &RegisterInstanceEventNotificationAttributesOutput{} + output := &PurchaseScheduledInstancesOutput{} out.Result = output var buff [1024]byte @@ -54052,7 +54360,7 @@ func (m *awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) H } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRegisterInstanceEventNotificationAttributesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentPurchaseScheduledInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -54066,7 +54374,7 @@ func (m *awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) H return out, metadata, err } -func awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(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)} @@ -54099,14 +54407,14 @@ func awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(r } } -type awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers struct { +type awsEc2query_deserializeOpRebootInstances struct { } -func (*awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) ID() string { +func (*awsEc2query_deserializeOpRebootInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) 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) @@ -54124,44 +54432,21 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) H } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRebootInstances(response, &metadata) } - output := &RegisterTransitGatewayMulticastGroupMembersOutput{} + 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_deserializeOpDocumentRegisterTransitGatewayMulticastGroupMembersOutput(&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_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(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)} @@ -54194,14 +54479,14 @@ func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(r } } -type awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources struct { +type awsEc2query_deserializeOpRegisterImage struct { } -func (*awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) ID() string { +func (*awsEc2query_deserializeOpRegisterImage) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) 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) @@ -54219,9 +54504,9 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) H } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRegisterImage(response, &metadata) } - output := &RegisterTransitGatewayMulticastGroupSourcesOutput{} + output := &RegisterImageOutput{} out.Result = output var buff [1024]byte @@ -54242,7 +54527,7 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) H } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRegisterTransitGatewayMulticastGroupSourcesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRegisterImageOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -54256,7 +54541,7 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) H return out, metadata, err } -func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(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)} @@ -54289,14 +54574,14 @@ func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(r } } -type awsEc2query_deserializeOpRejectCapacityReservationBillingOwnership struct { +type awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes struct { } -func (*awsEc2query_deserializeOpRejectCapacityReservationBillingOwnership) ID() string { +func (*awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectCapacityReservationBillingOwnership) 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) @@ -54314,9 +54599,9 @@ func (m *awsEc2query_deserializeOpRejectCapacityReservationBillingOwnership) Han } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectCapacityReservationBillingOwnership(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(response, &metadata) } - output := &RejectCapacityReservationBillingOwnershipOutput{} + output := &RegisterInstanceEventNotificationAttributesOutput{} out.Result = output var buff [1024]byte @@ -54337,7 +54622,7 @@ func (m *awsEc2query_deserializeOpRejectCapacityReservationBillingOwnership) Han } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectCapacityReservationBillingOwnershipOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRegisterInstanceEventNotificationAttributesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -54351,7 +54636,7 @@ func (m *awsEc2query_deserializeOpRejectCapacityReservationBillingOwnership) Han return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectCapacityReservationBillingOwnership(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)} @@ -54384,14 +54669,14 @@ func awsEc2query_deserializeOpErrorRejectCapacityReservationBillingOwnership(res } } -type awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations struct { +type awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers struct { } -func (*awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations) ID() string { +func (*awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations) 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) @@ -54409,9 +54694,9 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociation } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(response, &metadata) } - output := &RejectTransitGatewayMulticastDomainAssociationsOutput{} + output := &RegisterTransitGatewayMulticastGroupMembersOutput{} out.Result = output var buff [1024]byte @@ -54432,7 +54717,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociation } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectTransitGatewayMulticastDomainAssociationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRegisterTransitGatewayMulticastGroupMembersOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -54446,7 +54731,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociation return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociations(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)} @@ -54479,14 +54764,14 @@ func awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociatio } } -type awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment struct { +type awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources struct { } -func (*awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) ID() string { +func (*awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) 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) @@ -54504,9 +54789,9 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(response, &metadata) } - output := &RejectTransitGatewayPeeringAttachmentOutput{} + output := &RegisterTransitGatewayMulticastGroupSourcesOutput{} out.Result = output var buff [1024]byte @@ -54527,7 +54812,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) HandleD } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectTransitGatewayPeeringAttachmentOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRegisterTransitGatewayMulticastGroupSourcesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -54541,7 +54826,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) HandleD return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(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)} @@ -54574,14 +54859,14 @@ func awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(respons } } -type awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment struct { +type awsEc2query_deserializeOpRejectCapacityReservationBillingOwnership struct { } -func (*awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) ID() string { +func (*awsEc2query_deserializeOpRejectCapacityReservationBillingOwnership) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRejectCapacityReservationBillingOwnership) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -54599,9 +54884,9 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectCapacityReservationBillingOwnership(response, &metadata) } - output := &RejectTransitGatewayVpcAttachmentOutput{} + output := &RejectCapacityReservationBillingOwnershipOutput{} out.Result = output var buff [1024]byte @@ -54622,7 +54907,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectTransitGatewayVpcAttachmentOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRejectCapacityReservationBillingOwnershipOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -54636,7 +54921,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRejectCapacityReservationBillingOwnership(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -54669,14 +54954,14 @@ func awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(response *s } } -type awsEc2query_deserializeOpRejectVpcEndpointConnections struct { +type awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations struct { } -func (*awsEc2query_deserializeOpRejectVpcEndpointConnections) ID() string { +func (*awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectVpcEndpointConnections) 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) @@ -54694,9 +54979,9 @@ func (m *awsEc2query_deserializeOpRejectVpcEndpointConnections) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociations(response, &metadata) } - output := &RejectVpcEndpointConnectionsOutput{} + output := &RejectTransitGatewayMulticastDomainAssociationsOutput{} out.Result = output var buff [1024]byte @@ -54717,7 +55002,7 @@ func (m *awsEc2query_deserializeOpRejectVpcEndpointConnections) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectVpcEndpointConnectionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRejectTransitGatewayMulticastDomainAssociationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -54731,7 +55016,7 @@ func (m *awsEc2query_deserializeOpRejectVpcEndpointConnections) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(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)} @@ -54764,14 +55049,14 @@ func awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(response *smithy } } -type awsEc2query_deserializeOpRejectVpcPeeringConnection struct { +type awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment struct { } -func (*awsEc2query_deserializeOpRejectVpcPeeringConnection) ID() string { +func (*awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) 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) @@ -54789,9 +55074,9 @@ func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(response, &metadata) } - output := &RejectVpcPeeringConnectionOutput{} + output := &RejectTransitGatewayPeeringAttachmentOutput{} out.Result = output var buff [1024]byte @@ -54812,7 +55097,7 @@ func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectVpcPeeringConnectionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRejectTransitGatewayPeeringAttachmentOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -54826,7 +55111,7 @@ func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(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)} @@ -54859,86 +55144,14 @@ func awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(response *smithyht } } -type awsEc2query_deserializeOpReleaseAddress struct { -} - -func (*awsEc2query_deserializeOpReleaseAddress) ID() string { - return "OperationDeserializer" -} - -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) - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - 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_deserializeOpErrorReleaseAddress(response, &metadata) - } - output := &ReleaseAddressOutput{} - 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_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)} - } - 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_deserializeOpReleaseHosts struct { +type awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment struct { } -func (*awsEc2query_deserializeOpReleaseHosts) ID() string { +func (*awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReleaseHosts) 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) @@ -54956,9 +55169,9 @@ 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_deserializeOpErrorRejectTransitGatewayVpcAttachment(response, &metadata) } - output := &ReleaseHostsOutput{} + output := &RejectTransitGatewayVpcAttachmentOutput{} out.Result = output var buff [1024]byte @@ -54979,7 +55192,7 @@ func (m *awsEc2query_deserializeOpReleaseHosts) HandleDeserialize(ctx context.Co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReleaseHostsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRejectTransitGatewayVpcAttachmentOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -54993,7 +55206,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_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)} @@ -55026,14 +55239,14 @@ func awsEc2query_deserializeOpErrorReleaseHosts(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpReleaseIpamPoolAllocation struct { +type awsEc2query_deserializeOpRejectVpcEndpointConnections struct { } -func (*awsEc2query_deserializeOpReleaseIpamPoolAllocation) ID() string { +func (*awsEc2query_deserializeOpRejectVpcEndpointConnections) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReleaseIpamPoolAllocation) 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) @@ -55051,9 +55264,9 @@ func (m *awsEc2query_deserializeOpReleaseIpamPoolAllocation) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReleaseIpamPoolAllocation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(response, &metadata) } - output := &ReleaseIpamPoolAllocationOutput{} + output := &RejectVpcEndpointConnectionsOutput{} out.Result = output var buff [1024]byte @@ -55074,7 +55287,7 @@ func (m *awsEc2query_deserializeOpReleaseIpamPoolAllocation) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReleaseIpamPoolAllocationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRejectVpcEndpointConnectionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -55088,7 +55301,7 @@ func (m *awsEc2query_deserializeOpReleaseIpamPoolAllocation) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorReleaseIpamPoolAllocation(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)} @@ -55121,14 +55334,14 @@ func awsEc2query_deserializeOpErrorReleaseIpamPoolAllocation(response *smithyhtt } } -type awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation struct { +type awsEc2query_deserializeOpRejectVpcPeeringConnection struct { } -func (*awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) ID() string { +func (*awsEc2query_deserializeOpRejectVpcPeeringConnection) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) 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) @@ -55146,9 +55359,9 @@ func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) HandleDe } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(response, &metadata) } - output := &ReplaceIamInstanceProfileAssociationOutput{} + output := &RejectVpcPeeringConnectionOutput{} out.Result = output var buff [1024]byte @@ -55169,7 +55382,7 @@ func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) HandleDe } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReplaceIamInstanceProfileAssociationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRejectVpcPeeringConnectionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -55183,7 +55396,7 @@ func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) HandleDe return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(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)} @@ -55216,14 +55429,14 @@ func awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(response } } -type awsEc2query_deserializeOpReplaceNetworkAclAssociation struct { +type awsEc2query_deserializeOpReleaseAddress struct { } -func (*awsEc2query_deserializeOpReplaceNetworkAclAssociation) ID() string { +func (*awsEc2query_deserializeOpReleaseAddress) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceNetworkAclAssociation) 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) @@ -55241,44 +55454,21 @@ func (m *awsEc2query_deserializeOpReplaceNetworkAclAssociation) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReleaseAddress(response, &metadata) } - output := &ReplaceNetworkAclAssociationOutput{} + 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_deserializeOpDocumentReplaceNetworkAclAssociationOutput(&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_deserializeOpErrorReplaceNetworkAclAssociation(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)} @@ -55311,14 +55501,14 @@ func awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(response *smithy } } -type awsEc2query_deserializeOpReplaceNetworkAclEntry struct { +type awsEc2query_deserializeOpReleaseHosts struct { } -func (*awsEc2query_deserializeOpReplaceNetworkAclEntry) ID() string { +func (*awsEc2query_deserializeOpReleaseHosts) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceNetworkAclEntry) 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) @@ -55336,93 +55526,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_deserializeOpErrorReleaseHosts(response, &metadata) } - output := &ReplaceNetworkAclEntryOutput{} + output := &ReleaseHostsOutput{} 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_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)} + 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_deserializeOpReplaceRoute struct { -} - -func (*awsEc2query_deserializeOpReplaceRoute) ID() string { - return "OperationDeserializer" -} -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) + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentReleaseHostsOutput(&output, decoder) if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - 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_deserializeOpErrorReplaceRoute(response, &metadata) - } - output := &ReplaceRouteOutput{} - 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_deserializeOpErrorReplaceRoute(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)} @@ -55455,14 +55596,14 @@ func awsEc2query_deserializeOpErrorReplaceRoute(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpReplaceRouteTableAssociation struct { +type awsEc2query_deserializeOpReleaseIpamPoolAllocation struct { } -func (*awsEc2query_deserializeOpReplaceRouteTableAssociation) ID() string { +func (*awsEc2query_deserializeOpReleaseIpamPoolAllocation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) 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) @@ -55480,9 +55621,9 @@ func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReleaseIpamPoolAllocation(response, &metadata) } - output := &ReplaceRouteTableAssociationOutput{} + output := &ReleaseIpamPoolAllocationOutput{} out.Result = output var buff [1024]byte @@ -55503,7 +55644,7 @@ func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReplaceRouteTableAssociationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentReleaseIpamPoolAllocationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -55517,7 +55658,7 @@ func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(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)} @@ -55550,14 +55691,14 @@ func awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(response *smithy } } -type awsEc2query_deserializeOpReplaceTransitGatewayRoute struct { +type awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation struct { } -func (*awsEc2query_deserializeOpReplaceTransitGatewayRoute) ID() string { +func (*awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) 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) @@ -55575,9 +55716,9 @@ func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(response, &metadata) } - output := &ReplaceTransitGatewayRouteOutput{} + output := &ReplaceIamInstanceProfileAssociationOutput{} out.Result = output var buff [1024]byte @@ -55598,7 +55739,7 @@ func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReplaceTransitGatewayRouteOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentReplaceIamInstanceProfileAssociationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -55612,7 +55753,7 @@ func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(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)} @@ -55645,14 +55786,14 @@ func awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(response *smithyht } } -type awsEc2query_deserializeOpReplaceVpnTunnel struct { +type awsEc2query_deserializeOpReplaceNetworkAclAssociation struct { } -func (*awsEc2query_deserializeOpReplaceVpnTunnel) ID() string { +func (*awsEc2query_deserializeOpReplaceNetworkAclAssociation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceVpnTunnel) 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) @@ -55670,9 +55811,9 @@ func (m *awsEc2query_deserializeOpReplaceVpnTunnel) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceVpnTunnel(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(response, &metadata) } - output := &ReplaceVpnTunnelOutput{} + output := &ReplaceNetworkAclAssociationOutput{} out.Result = output var buff [1024]byte @@ -55693,7 +55834,7 @@ func (m *awsEc2query_deserializeOpReplaceVpnTunnel) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReplaceVpnTunnelOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentReplaceNetworkAclAssociationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -55707,7 +55848,7 @@ func (m *awsEc2query_deserializeOpReplaceVpnTunnel) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceVpnTunnel(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)} @@ -55740,14 +55881,14 @@ func awsEc2query_deserializeOpErrorReplaceVpnTunnel(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpReportInstanceStatus struct { +type awsEc2query_deserializeOpReplaceNetworkAclEntry struct { } -func (*awsEc2query_deserializeOpReportInstanceStatus) ID() string { +func (*awsEc2query_deserializeOpReplaceNetworkAclEntry) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReportInstanceStatus) 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) @@ -55765,9 +55906,9 @@ 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_deserializeOpErrorReplaceNetworkAclEntry(response, &metadata) } - output := &ReportInstanceStatusOutput{} + output := &ReplaceNetworkAclEntryOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -55779,7 +55920,7 @@ func (m *awsEc2query_deserializeOpReportInstanceStatus) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorReportInstanceStatus(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)} @@ -55812,14 +55953,14 @@ func awsEc2query_deserializeOpErrorReportInstanceStatus(response *smithyhttp.Res } } -type awsEc2query_deserializeOpRequestSpotFleet struct { +type awsEc2query_deserializeOpReplaceRoute struct { } -func (*awsEc2query_deserializeOpRequestSpotFleet) ID() string { +func (*awsEc2query_deserializeOpReplaceRoute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRequestSpotFleet) 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) @@ -55837,44 +55978,21 @@ 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_deserializeOpErrorReplaceRoute(response, &metadata) } - output := &RequestSpotFleetOutput{} + output := &ReplaceRouteOutput{} 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_deserializeOpDocumentRequestSpotFleetOutput(&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_deserializeOpErrorRequestSpotFleet(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)} @@ -55907,14 +56025,14 @@ func awsEc2query_deserializeOpErrorRequestSpotFleet(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpRequestSpotInstances struct { +type awsEc2query_deserializeOpReplaceRouteTableAssociation struct { } -func (*awsEc2query_deserializeOpRequestSpotInstances) ID() string { +func (*awsEc2query_deserializeOpReplaceRouteTableAssociation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRequestSpotInstances) 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) @@ -55932,9 +56050,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_deserializeOpErrorReplaceRouteTableAssociation(response, &metadata) } - output := &RequestSpotInstancesOutput{} + output := &ReplaceRouteTableAssociationOutput{} out.Result = output var buff [1024]byte @@ -55955,7 +56073,7 @@ func (m *awsEc2query_deserializeOpRequestSpotInstances) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRequestSpotInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentReplaceRouteTableAssociationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -55969,7 +56087,7 @@ func (m *awsEc2query_deserializeOpRequestSpotInstances) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorRequestSpotInstances(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)} @@ -56002,14 +56120,14 @@ func awsEc2query_deserializeOpErrorRequestSpotInstances(response *smithyhttp.Res } } -type awsEc2query_deserializeOpResetAddressAttribute struct { +type awsEc2query_deserializeOpReplaceTransitGatewayRoute struct { } -func (*awsEc2query_deserializeOpResetAddressAttribute) ID() string { +func (*awsEc2query_deserializeOpReplaceTransitGatewayRoute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetAddressAttribute) 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) @@ -56027,9 +56145,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_deserializeOpErrorReplaceTransitGatewayRoute(response, &metadata) } - output := &ResetAddressAttributeOutput{} + output := &ReplaceTransitGatewayRouteOutput{} out.Result = output var buff [1024]byte @@ -56050,7 +56168,7 @@ func (m *awsEc2query_deserializeOpResetAddressAttribute) HandleDeserialize(ctx c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentResetAddressAttributeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentReplaceTransitGatewayRouteOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -56064,7 +56182,7 @@ func (m *awsEc2query_deserializeOpResetAddressAttribute) HandleDeserialize(ctx c return out, metadata, err } -func awsEc2query_deserializeOpErrorResetAddressAttribute(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)} @@ -56097,14 +56215,14 @@ func awsEc2query_deserializeOpErrorResetAddressAttribute(response *smithyhttp.Re } } -type awsEc2query_deserializeOpResetEbsDefaultKmsKeyId struct { +type awsEc2query_deserializeOpReplaceVpnTunnel struct { } -func (*awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) ID() string { +func (*awsEc2query_deserializeOpReplaceVpnTunnel) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceVpnTunnel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -56122,9 +56240,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_deserializeOpErrorReplaceVpnTunnel(response, &metadata) } - output := &ResetEbsDefaultKmsKeyIdOutput{} + output := &ReplaceVpnTunnelOutput{} out.Result = output var buff [1024]byte @@ -56145,7 +56263,7 @@ func (m *awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentResetEbsDefaultKmsKeyIdOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentReplaceVpnTunnelOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -56159,7 +56277,7 @@ func (m *awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceVpnTunnel(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -56192,14 +56310,14 @@ func awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(response *smithyhttp. } } -type awsEc2query_deserializeOpResetFpgaImageAttribute struct { +type awsEc2query_deserializeOpReportInstanceStatus struct { } -func (*awsEc2query_deserializeOpResetFpgaImageAttribute) ID() string { +func (*awsEc2query_deserializeOpReportInstanceStatus) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetFpgaImageAttribute) 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) @@ -56217,44 +56335,21 @@ func (m *awsEc2query_deserializeOpResetFpgaImageAttribute) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetFpgaImageAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReportInstanceStatus(response, &metadata) } - output := &ResetFpgaImageAttributeOutput{} + 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_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(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorResetFpgaImageAttribute(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)} @@ -56287,14 +56382,14 @@ func awsEc2query_deserializeOpErrorResetFpgaImageAttribute(response *smithyhttp. } } -type awsEc2query_deserializeOpResetImageAttribute struct { +type awsEc2query_deserializeOpRequestSpotFleet struct { } -func (*awsEc2query_deserializeOpResetImageAttribute) ID() string { +func (*awsEc2query_deserializeOpRequestSpotFleet) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetImageAttribute) 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) @@ -56312,93 +56407,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_deserializeOpErrorRequestSpotFleet(response, &metadata) } - output := &ResetImageAttributeOutput{} + output := &RequestSpotFleetOutput{} 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_deserializeOpDocumentRequestSpotFleetOutput(&output, decoder) if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - 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_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)} @@ -56431,14 +56477,14 @@ func awsEc2query_deserializeOpErrorResetInstanceAttribute(response *smithyhttp.R } } -type awsEc2query_deserializeOpResetNetworkInterfaceAttribute struct { +type awsEc2query_deserializeOpRequestSpotInstances struct { } -func (*awsEc2query_deserializeOpResetNetworkInterfaceAttribute) ID() string { +func (*awsEc2query_deserializeOpRequestSpotInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetNetworkInterfaceAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -56456,93 +56502,44 @@ func (m *awsEc2query_deserializeOpResetNetworkInterfaceAttribute) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetNetworkInterfaceAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRequestSpotInstances(response, &metadata) } - output := &ResetNetworkInterfaceAttributeOutput{} + output := &RequestSpotInstancesOutput{} 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_deserializeOpDocumentRequestSpotInstancesOutput(&output, decoder) if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - 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_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)} @@ -56575,14 +56572,14 @@ func awsEc2query_deserializeOpErrorResetSnapshotAttribute(response *smithyhttp.R } } -type awsEc2query_deserializeOpRestoreAddressToClassic struct { +type awsEc2query_deserializeOpResetAddressAttribute struct { } -func (*awsEc2query_deserializeOpRestoreAddressToClassic) ID() string { +func (*awsEc2query_deserializeOpResetAddressAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRestoreAddressToClassic) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -56600,9 +56597,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_deserializeOpErrorResetAddressAttribute(response, &metadata) } - output := &RestoreAddressToClassicOutput{} + output := &ResetAddressAttributeOutput{} out.Result = output var buff [1024]byte @@ -56623,7 +56620,7 @@ func (m *awsEc2query_deserializeOpRestoreAddressToClassic) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRestoreAddressToClassicOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentResetAddressAttributeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -56637,7 +56634,7 @@ func (m *awsEc2query_deserializeOpRestoreAddressToClassic) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorRestoreAddressToClassic(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -56670,14 +56667,14 @@ func awsEc2query_deserializeOpErrorRestoreAddressToClassic(response *smithyhttp. } } -type awsEc2query_deserializeOpRestoreImageFromRecycleBin struct { +type awsEc2query_deserializeOpResetEbsDefaultKmsKeyId struct { } -func (*awsEc2query_deserializeOpRestoreImageFromRecycleBin) ID() string { +func (*awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRestoreImageFromRecycleBin) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -56695,9 +56692,9 @@ func (m *awsEc2query_deserializeOpRestoreImageFromRecycleBin) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRestoreImageFromRecycleBin(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(response, &metadata) } - output := &RestoreImageFromRecycleBinOutput{} + output := &ResetEbsDefaultKmsKeyIdOutput{} out.Result = output var buff [1024]byte @@ -56718,7 +56715,7 @@ func (m *awsEc2query_deserializeOpRestoreImageFromRecycleBin) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRestoreImageFromRecycleBinOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentResetEbsDefaultKmsKeyIdOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -56732,7 +56729,7 @@ func (m *awsEc2query_deserializeOpRestoreImageFromRecycleBin) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorRestoreImageFromRecycleBin(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -56765,14 +56762,14 @@ func awsEc2query_deserializeOpErrorRestoreImageFromRecycleBin(response *smithyht } } -type awsEc2query_deserializeOpRestoreManagedPrefixListVersion struct { +type awsEc2query_deserializeOpResetFpgaImageAttribute struct { } -func (*awsEc2query_deserializeOpRestoreManagedPrefixListVersion) ID() string { +func (*awsEc2query_deserializeOpResetFpgaImageAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRestoreManagedPrefixListVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -56790,9 +56787,9 @@ func (m *awsEc2query_deserializeOpRestoreManagedPrefixListVersion) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetFpgaImageAttribute(response, &metadata) } - output := &RestoreManagedPrefixListVersionOutput{} + output := &ResetFpgaImageAttributeOutput{} out.Result = output var buff [1024]byte @@ -56813,7 +56810,7 @@ func (m *awsEc2query_deserializeOpRestoreManagedPrefixListVersion) HandleDeseria } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRestoreManagedPrefixListVersionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentResetFpgaImageAttributeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -56827,7 +56824,7 @@ func (m *awsEc2query_deserializeOpRestoreManagedPrefixListVersion) HandleDeseria return out, metadata, err } -func awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -56860,14 +56857,14 @@ func awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(response *smi } } -type awsEc2query_deserializeOpRestoreSnapshotFromRecycleBin struct { +type awsEc2query_deserializeOpResetImageAttribute struct { } -func (*awsEc2query_deserializeOpRestoreSnapshotFromRecycleBin) ID() string { +func (*awsEc2query_deserializeOpResetImageAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRestoreSnapshotFromRecycleBin) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -56885,44 +56882,21 @@ func (m *awsEc2query_deserializeOpRestoreSnapshotFromRecycleBin) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRestoreSnapshotFromRecycleBin(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetImageAttribute(response, &metadata) } - output := &RestoreSnapshotFromRecycleBinOutput{} + output := &ResetImageAttributeOutput{} 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_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(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorRestoreSnapshotFromRecycleBin(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -56955,14 +56929,14 @@ func awsEc2query_deserializeOpErrorRestoreSnapshotFromRecycleBin(response *smith } } -type awsEc2query_deserializeOpRestoreSnapshotTier struct { +type awsEc2query_deserializeOpResetInstanceAttribute struct { } -func (*awsEc2query_deserializeOpRestoreSnapshotTier) ID() string { +func (*awsEc2query_deserializeOpResetInstanceAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRestoreSnapshotTier) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -56980,44 +56954,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_deserializeOpErrorResetInstanceAttribute(response, &metadata) } - output := &RestoreSnapshotTierOutput{} + output := &ResetInstanceAttributeOutput{} 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_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)} @@ -57050,14 +57001,14 @@ func awsEc2query_deserializeOpErrorRestoreSnapshotTier(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpRevokeClientVpnIngress struct { +type awsEc2query_deserializeOpResetNetworkInterfaceAttribute struct { } -func (*awsEc2query_deserializeOpRevokeClientVpnIngress) ID() string { +func (*awsEc2query_deserializeOpResetNetworkInterfaceAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRevokeClientVpnIngress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -57075,44 +57026,21 @@ func (m *awsEc2query_deserializeOpRevokeClientVpnIngress) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRevokeClientVpnIngress(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetNetworkInterfaceAttribute(response, &metadata) } - output := &RevokeClientVpnIngressOutput{} + output := &ResetNetworkInterfaceAttributeOutput{} 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_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(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorRevokeClientVpnIngress(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -57145,14 +57073,14 @@ func awsEc2query_deserializeOpErrorRevokeClientVpnIngress(response *smithyhttp.R } } -type awsEc2query_deserializeOpRevokeSecurityGroupEgress struct { +type awsEc2query_deserializeOpResetSnapshotAttribute struct { } -func (*awsEc2query_deserializeOpRevokeSecurityGroupEgress) ID() string { +func (*awsEc2query_deserializeOpResetSnapshotAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRevokeSecurityGroupEgress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -57170,44 +57098,21 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupEgress) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetSnapshotAttribute(response, &metadata) } - output := &RevokeSecurityGroupEgressOutput{} + output := &ResetSnapshotAttributeOutput{} 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_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(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -57240,14 +57145,14 @@ func awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(response *smithyhtt } } -type awsEc2query_deserializeOpRevokeSecurityGroupIngress struct { +type awsEc2query_deserializeOpRestoreAddressToClassic struct { } -func (*awsEc2query_deserializeOpRevokeSecurityGroupIngress) ID() string { +func (*awsEc2query_deserializeOpRestoreAddressToClassic) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -57265,9 +57170,9 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRestoreAddressToClassic(response, &metadata) } - output := &RevokeSecurityGroupIngressOutput{} + output := &RestoreAddressToClassicOutput{} out.Result = output var buff [1024]byte @@ -57288,7 +57193,7 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRevokeSecurityGroupIngressOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRestoreAddressToClassicOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -57302,7 +57207,7 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -57335,14 +57240,14 @@ func awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(response *smithyht } } -type awsEc2query_deserializeOpRunInstances struct { +type awsEc2query_deserializeOpRestoreImageFromRecycleBin struct { } -func (*awsEc2query_deserializeOpRunInstances) ID() string { +func (*awsEc2query_deserializeOpRestoreImageFromRecycleBin) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRunInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRestoreImageFromRecycleBin) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -57360,9 +57265,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_deserializeOpErrorRestoreImageFromRecycleBin(response, &metadata) } - output := &RunInstancesOutput{} + output := &RestoreImageFromRecycleBinOutput{} out.Result = output var buff [1024]byte @@ -57383,7 +57288,7 @@ func (m *awsEc2query_deserializeOpRunInstances) HandleDeserialize(ctx context.Co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRunInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRestoreImageFromRecycleBinOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -57397,7 +57302,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_deserializeOpErrorRestoreImageFromRecycleBin(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -57430,14 +57335,14 @@ func awsEc2query_deserializeOpErrorRunInstances(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpRunScheduledInstances struct { +type awsEc2query_deserializeOpRestoreManagedPrefixListVersion struct { } -func (*awsEc2query_deserializeOpRunScheduledInstances) ID() string { +func (*awsEc2query_deserializeOpRestoreManagedPrefixListVersion) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRunScheduledInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -57455,9 +57360,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_deserializeOpErrorRestoreManagedPrefixListVersion(response, &metadata) } - output := &RunScheduledInstancesOutput{} + output := &RestoreManagedPrefixListVersionOutput{} out.Result = output var buff [1024]byte @@ -57478,7 +57383,7 @@ func (m *awsEc2query_deserializeOpRunScheduledInstances) HandleDeserialize(ctx c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRunScheduledInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRestoreManagedPrefixListVersionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -57492,7 +57397,7 @@ func (m *awsEc2query_deserializeOpRunScheduledInstances) HandleDeserialize(ctx c return out, metadata, err } -func awsEc2query_deserializeOpErrorRunScheduledInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -57525,14 +57430,14 @@ func awsEc2query_deserializeOpErrorRunScheduledInstances(response *smithyhttp.Re } } -type awsEc2query_deserializeOpSearchLocalGatewayRoutes struct { +type awsEc2query_deserializeOpRestoreSnapshotFromRecycleBin struct { } -func (*awsEc2query_deserializeOpSearchLocalGatewayRoutes) ID() string { +func (*awsEc2query_deserializeOpRestoreSnapshotFromRecycleBin) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpSearchLocalGatewayRoutes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -57550,9 +57455,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_deserializeOpErrorRestoreSnapshotFromRecycleBin(response, &metadata) } - output := &SearchLocalGatewayRoutesOutput{} + output := &RestoreSnapshotFromRecycleBinOutput{} out.Result = output var buff [1024]byte @@ -57573,7 +57478,7 @@ func (m *awsEc2query_deserializeOpSearchLocalGatewayRoutes) HandleDeserialize(ct } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentSearchLocalGatewayRoutesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRestoreSnapshotFromRecycleBinOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -57587,7 +57492,7 @@ func (m *awsEc2query_deserializeOpSearchLocalGatewayRoutes) HandleDeserialize(ct return out, metadata, err } -func awsEc2query_deserializeOpErrorSearchLocalGatewayRoutes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -57620,14 +57525,14 @@ func awsEc2query_deserializeOpErrorSearchLocalGatewayRoutes(response *smithyhttp } } -type awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups struct { +type awsEc2query_deserializeOpRestoreSnapshotTier struct { } -func (*awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) ID() string { +func (*awsEc2query_deserializeOpRestoreSnapshotTier) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -57645,9 +57550,9 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorSearchTransitGatewayMulticastGroups(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRestoreSnapshotTier(response, &metadata) } - output := &SearchTransitGatewayMulticastGroupsOutput{} + output := &RestoreSnapshotTierOutput{} out.Result = output var buff [1024]byte @@ -57668,7 +57573,7 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) HandleDes } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentSearchTransitGatewayMulticastGroupsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRestoreSnapshotTierOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -57682,7 +57587,7 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) HandleDes return out, metadata, err } -func awsEc2query_deserializeOpErrorSearchTransitGatewayMulticastGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -57715,14 +57620,14 @@ func awsEc2query_deserializeOpErrorSearchTransitGatewayMulticastGroups(response } } -type awsEc2query_deserializeOpSearchTransitGatewayRoutes struct { +type awsEc2query_deserializeOpRevokeClientVpnIngress struct { } -func (*awsEc2query_deserializeOpSearchTransitGatewayRoutes) ID() string { +func (*awsEc2query_deserializeOpRevokeClientVpnIngress) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -57740,9 +57645,9 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorSearchTransitGatewayRoutes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRevokeClientVpnIngress(response, &metadata) } - output := &SearchTransitGatewayRoutesOutput{} + output := &RevokeClientVpnIngressOutput{} out.Result = output var buff [1024]byte @@ -57763,7 +57668,7 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentSearchTransitGatewayRoutesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRevokeClientVpnIngressOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -57777,79 +57682,7 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) HandleDeserialize( 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 - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - 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 { +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)} @@ -57882,14 +57715,14 @@ func awsEc2query_deserializeOpErrorSendDiagnosticInterrupt(response *smithyhttp. } } -type awsEc2query_deserializeOpStartInstances struct { +type awsEc2query_deserializeOpRevokeSecurityGroupEgress struct { } -func (*awsEc2query_deserializeOpStartInstances) ID() string { +func (*awsEc2query_deserializeOpRevokeSecurityGroupEgress) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpStartInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -57907,9 +57740,9 @@ 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_deserializeOpErrorRevokeSecurityGroupEgress(response, &metadata) } - output := &StartInstancesOutput{} + output := &RevokeSecurityGroupEgressOutput{} out.Result = output var buff [1024]byte @@ -57930,7 +57763,7 @@ func (m *awsEc2query_deserializeOpStartInstances) HandleDeserialize(ctx context. } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentStartInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRevokeSecurityGroupEgressOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -57944,7 +57777,7 @@ func (m *awsEc2query_deserializeOpStartInstances) HandleDeserialize(ctx context. return out, metadata, err } -func awsEc2query_deserializeOpErrorStartInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -57977,14 +57810,14 @@ func awsEc2query_deserializeOpErrorStartInstances(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpStartNetworkInsightsAccessScopeAnalysis struct { +type awsEc2query_deserializeOpRevokeSecurityGroupIngress struct { } -func (*awsEc2query_deserializeOpStartNetworkInsightsAccessScopeAnalysis) ID() string { +func (*awsEc2query_deserializeOpRevokeSecurityGroupIngress) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpStartNetworkInsightsAccessScopeAnalysis) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -58002,9 +57835,9 @@ func (m *awsEc2query_deserializeOpStartNetworkInsightsAccessScopeAnalysis) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorStartNetworkInsightsAccessScopeAnalysis(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(response, &metadata) } - output := &StartNetworkInsightsAccessScopeAnalysisOutput{} + output := &RevokeSecurityGroupIngressOutput{} out.Result = output var buff [1024]byte @@ -58025,7 +57858,7 @@ func (m *awsEc2query_deserializeOpStartNetworkInsightsAccessScopeAnalysis) Handl } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentStartNetworkInsightsAccessScopeAnalysisOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRevokeSecurityGroupIngressOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -58039,7 +57872,7 @@ func (m *awsEc2query_deserializeOpStartNetworkInsightsAccessScopeAnalysis) Handl return out, metadata, err } -func awsEc2query_deserializeOpErrorStartNetworkInsightsAccessScopeAnalysis(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -58072,14 +57905,14 @@ func awsEc2query_deserializeOpErrorStartNetworkInsightsAccessScopeAnalysis(respo } } -type awsEc2query_deserializeOpStartNetworkInsightsAnalysis struct { +type awsEc2query_deserializeOpRunInstances struct { } -func (*awsEc2query_deserializeOpStartNetworkInsightsAnalysis) ID() string { +func (*awsEc2query_deserializeOpRunInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -58097,9 +57930,9 @@ func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorStartNetworkInsightsAnalysis(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRunInstances(response, &metadata) } - output := &StartNetworkInsightsAnalysisOutput{} + output := &RunInstancesOutput{} out.Result = output var buff [1024]byte @@ -58120,7 +57953,7 @@ func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentStartNetworkInsightsAnalysisOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRunInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -58134,7 +57967,7 @@ func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorStartNetworkInsightsAnalysis(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -58167,14 +58000,14 @@ func awsEc2query_deserializeOpErrorStartNetworkInsightsAnalysis(response *smithy } } -type awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification struct { +type awsEc2query_deserializeOpRunScheduledInstances struct { } -func (*awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) ID() string { +func (*awsEc2query_deserializeOpRunScheduledInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -58192,9 +58025,9 @@ func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorStartVpcEndpointServicePrivateDnsVerification(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRunScheduledInstances(response, &metadata) } - output := &StartVpcEndpointServicePrivateDnsVerificationOutput{} + output := &RunScheduledInstancesOutput{} out.Result = output var buff [1024]byte @@ -58215,7 +58048,7 @@ func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentStartVpcEndpointServicePrivateDnsVerificationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRunScheduledInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -58229,7 +58062,7 @@ func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) return out, metadata, err } -func awsEc2query_deserializeOpErrorStartVpcEndpointServicePrivateDnsVerification(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -58262,14 +58095,14 @@ func awsEc2query_deserializeOpErrorStartVpcEndpointServicePrivateDnsVerification } } -type awsEc2query_deserializeOpStopInstances struct { +type awsEc2query_deserializeOpSearchLocalGatewayRoutes struct { } -func (*awsEc2query_deserializeOpStopInstances) ID() string { +func (*awsEc2query_deserializeOpSearchLocalGatewayRoutes) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpStopInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -58287,9 +58120,9 @@ func (m *awsEc2query_deserializeOpStopInstances) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorStopInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorSearchLocalGatewayRoutes(response, &metadata) } - output := &StopInstancesOutput{} + output := &SearchLocalGatewayRoutesOutput{} out.Result = output var buff [1024]byte @@ -58310,7 +58143,7 @@ func (m *awsEc2query_deserializeOpStopInstances) HandleDeserialize(ctx context.C } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentStopInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentSearchLocalGatewayRoutesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -58324,7 +58157,744 @@ func (m *awsEc2query_deserializeOpStopInstances) HandleDeserialize(ctx context.C return out, metadata, err } -func awsEc2query_deserializeOpErrorStopInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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)} @@ -64177,6 +64747,48 @@ func awsEc2query_deserializeDocumentBaselineEbsBandwidthMbps(v **types.BaselineE return nil } +func awsEc2query_deserializeDocumentBaselinePerformanceFactors(v **types.BaselinePerformanceFactors, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.BaselinePerformanceFactors + if *v == nil { + sv = &types.BaselinePerformanceFactors{} + } 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("cpu", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentCpuPerformanceFactor(&sv.Cpu, 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_deserializeDocumentBlockDeviceMapping(v **types.BlockDeviceMapping, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -64326,6 +64938,55 @@ func awsEc2query_deserializeDocumentBlockDeviceMappingListUnwrapped(v *[]types.B *v = sv return nil } +func awsEc2query_deserializeDocumentBlockPublicAccessStates(v **types.BlockPublicAccessStates, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.BlockPublicAccessStates + if *v == nil { + sv = &types.BlockPublicAccessStates{} + } 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("internetGatewayBlockMode", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InternetGatewayBlockMode = types.BlockPublicAccessMode(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_deserializeDocumentBootModeTypeList(v *[]types.BootModeType, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -70977,6 +71638,48 @@ func awsEc2query_deserializeDocumentCpuOptions(v **types.CpuOptions, decoder smi return nil } +func awsEc2query_deserializeDocumentCpuPerformanceFactor(v **types.CpuPerformanceFactor, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CpuPerformanceFactor + if *v == nil { + sv = &types.CpuPerformanceFactor{} + } 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("referenceSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentPerformanceFactorReferenceSet(&sv.References, 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_deserializeDocumentCreateFleetError(v **types.CreateFleetError, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -75490,6 +76193,12 @@ func awsEc2query_deserializeDocumentEbsInstanceBlockDevice(v **types.EbsInstance sv.DeleteOnTermination = ptr.Bool(xtv) } + case strings.EqualFold("operator", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("status", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -86937,6 +87646,12 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx return err } + case strings.EqualFold("operator", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("outpostArn", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -88890,6 +89605,12 @@ func awsEc2query_deserializeDocumentInstanceImageMetadata(v **types.InstanceImag sv.LaunchTime = ptr.Time(t) } + case strings.EqualFold("operator", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("instanceOwnerId", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -89943,6 +90664,12 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterface(v **types.InstanceN sv.NetworkInterfaceId = ptr.String(xtv) } + case strings.EqualFold("operator", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("ownerId", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -90967,6 +91694,12 @@ func awsEc2query_deserializeDocumentInstanceRequirements(v **types.InstanceRequi return err } + case strings.EqualFold("baselinePerformanceFactors", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentBaselinePerformanceFactors(&sv.BaselinePerformanceFactors, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("burstablePerformance", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -91469,6 +92202,12 @@ func awsEc2query_deserializeDocumentInstanceStatus(v **types.InstanceStatus, dec return err } + case strings.EqualFold("operator", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("outpostArn", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -100236,6 +100975,12 @@ func awsEc2query_deserializeDocumentLaunchTemplate(v **types.LaunchTemplate, dec sv.LaunchTemplateName = ptr.String(xtv) } + case strings.EqualFold("operator", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, 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 { @@ -102877,6 +103622,12 @@ func awsEc2query_deserializeDocumentLaunchTemplateVersion(v **types.LaunchTempla sv.LaunchTemplateName = ptr.String(xtv) } + case strings.EqualFold("operator", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("versionDescription", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -109064,6 +109815,12 @@ func awsEc2query_deserializeDocumentNetworkInterface(v **types.NetworkInterface, sv.NetworkInterfaceId = ptr.String(xtv) } + case strings.EqualFold("operator", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("outpostArn", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -111116,6 +111873,71 @@ func awsEc2query_deserializeDocumentOnDemandOptions(v **types.OnDemandOptions, d return nil } +func awsEc2query_deserializeDocumentOperatorResponse(v **types.OperatorResponse, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.OperatorResponse + if *v == nil { + sv = &types.OperatorResponse{} + } 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("managed", 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.Managed = ptr.Bool(xtv) + } + + case strings.EqualFold("principal", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Principal = 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_deserializeDocumentPacketHeaderStatement(v **types.PacketHeaderStatement, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -111880,6 +112702,123 @@ func awsEc2query_deserializeDocumentPeeringTgwInfo(v **types.PeeringTgwInfo, dec return nil } +func awsEc2query_deserializeDocumentPerformanceFactorReference(v **types.PerformanceFactorReference, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.PerformanceFactorReference + if *v == nil { + sv = &types.PerformanceFactorReference{} + } 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("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) + } + + 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_deserializeDocumentPerformanceFactorReferenceSet(v *[]types.PerformanceFactorReference, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.PerformanceFactorReference + if *v == nil { + sv = make([]types.PerformanceFactorReference, 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.PerformanceFactorReference + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentPerformanceFactorReference(&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_deserializeDocumentPerformanceFactorReferenceSetUnwrapped(v *[]types.PerformanceFactorReference, decoder smithyxml.NodeDecoder) error { + var sv []types.PerformanceFactorReference + if *v == nil { + sv = make([]types.PerformanceFactorReference, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.PerformanceFactorReference + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentPerformanceFactorReference(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} func awsEc2query_deserializeDocumentPhase1DHGroupNumbersList(v *[]types.Phase1DHGroupNumbersListValue, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -119097,6 +120036,12 @@ func awsEc2query_deserializeDocumentResponseLaunchTemplateData(v **types.Respons return err } + case strings.EqualFold("operator", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("placement", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsEc2query_deserializeDocumentLaunchTemplatePlacement(&sv.Placement, nodeDecoder); err != nil { @@ -127839,6 +128784,12 @@ func awsEc2query_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N sv.AvailableIpAddressCount = ptr.Int32(int32(i64)) } + case strings.EqualFold("blockPublicAccessStates", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentBlockPublicAccessStates(&sv.BlockPublicAccessStates, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("cidrBlock", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -141248,6 +142199,12 @@ func awsEc2query_deserializeDocumentVolume(v **types.Volume, decoder smithyxml.N sv.MultiAttachEnabled = ptr.Bool(xtv) } + case strings.EqualFold("operator", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("outpostArn", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -142867,6 +143824,12 @@ func awsEc2query_deserializeDocumentVpc(v **types.Vpc, decoder smithyxml.NodeDec originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { + case strings.EqualFold("blockPublicAccessStates", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentBlockPublicAccessStates(&sv.BlockPublicAccessStates, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("cidrBlock", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -143123,6 +144086,350 @@ func awsEc2query_deserializeDocumentVpcAttachmentListUnwrapped(v *[]types.VpcAtt *v = sv return nil } +func awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusion(v **types.VpcBlockPublicAccessExclusion, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.VpcBlockPublicAccessExclusion + if *v == nil { + sv = &types.VpcBlockPublicAccessExclusion{} + } 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("creationTimestamp", 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.CreationTimestamp = ptr.Time(t) + } + + case strings.EqualFold("deletionTimestamp", 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.DeletionTimestamp = ptr.Time(t) + } + + case strings.EqualFold("exclusionId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ExclusionId = ptr.String(xtv) + } + + case strings.EqualFold("internetGatewayExclusionMode", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InternetGatewayExclusionMode = types.InternetGatewayExclusionMode(xtv) + } + + case strings.EqualFold("lastUpdateTimestamp", 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.LastUpdateTimestamp = ptr.Time(t) + } + + case strings.EqualFold("reason", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Reason = ptr.String(xtv) + } + + case strings.EqualFold("resourceArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ResourceArn = 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.VpcBlockPublicAccessExclusionState(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_deserializeDocumentVpcBlockPublicAccessExclusionList(v *[]types.VpcBlockPublicAccessExclusion, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.VpcBlockPublicAccessExclusion + if *v == nil { + sv = make([]types.VpcBlockPublicAccessExclusion, 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.VpcBlockPublicAccessExclusion + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusion(&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_deserializeDocumentVpcBlockPublicAccessExclusionListUnwrapped(v *[]types.VpcBlockPublicAccessExclusion, decoder smithyxml.NodeDecoder) error { + var sv []types.VpcBlockPublicAccessExclusion + if *v == nil { + sv = make([]types.VpcBlockPublicAccessExclusion, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.VpcBlockPublicAccessExclusion + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusion(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentVpcBlockPublicAccessOptions(v **types.VpcBlockPublicAccessOptions, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.VpcBlockPublicAccessOptions + if *v == nil { + sv = &types.VpcBlockPublicAccessOptions{} + } 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("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("awsRegion", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.AwsRegion = ptr.String(xtv) + } + + case strings.EqualFold("internetGatewayBlockMode", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InternetGatewayBlockMode = types.InternetGatewayBlockMode(xtv) + } + + case strings.EqualFold("lastUpdateTimestamp", 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.LastUpdateTimestamp = ptr.Time(t) + } + + case strings.EqualFold("reason", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Reason = 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.VpcBlockPublicAccessState(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_deserializeDocumentVpcCidrBlockAssociation(v **types.VpcCidrBlockAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -152431,6 +153738,12 @@ func awsEc2query_deserializeOpDocumentCreateVolumeOutput(v **CreateVolumeOutput, sv.MultiAttachEnabled = ptr.Bool(xtv) } + case strings.EqualFold("operator", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("outpostArn", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -152563,6 +153876,48 @@ func awsEc2query_deserializeOpDocumentCreateVolumeOutput(v **CreateVolumeOutput, return nil } +func awsEc2query_deserializeOpDocumentCreateVpcBlockPublicAccessExclusionOutput(v **CreateVpcBlockPublicAccessExclusionOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *CreateVpcBlockPublicAccessExclusionOutput + if *v == nil { + sv = &CreateVpcBlockPublicAccessExclusionOutput{} + } 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("vpcBlockPublicAccessExclusion", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusion(&sv.VpcBlockPublicAccessExclusion, 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_deserializeOpDocumentCreateVpcEndpointConnectionNotificationOutput(v **CreateVpcEndpointConnectionNotificationOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -155224,6 +156579,48 @@ func awsEc2query_deserializeOpDocumentDeleteVerifiedAccessTrustProviderOutput(v return nil } +func awsEc2query_deserializeOpDocumentDeleteVpcBlockPublicAccessExclusionOutput(v **DeleteVpcBlockPublicAccessExclusionOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DeleteVpcBlockPublicAccessExclusionOutput + if *v == nil { + sv = &DeleteVpcBlockPublicAccessExclusionOutput{} + } 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("vpcBlockPublicAccessExclusion", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusion(&sv.VpcBlockPublicAccessExclusion, 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_deserializeOpDocumentDeleteVpcEndpointConnectionNotificationsOutput(v **DeleteVpcEndpointConnectionNotificationsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -162012,9 +163409,119 @@ func awsEc2query_deserializeOpDocumentDescribeSpotInstanceRequestsOutput(v **Des sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("spotInstanceRequestSet", t.Name.Local): + case strings.EqualFold("spotInstanceRequestSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentSpotInstanceRequestList(&sv.SpotInstanceRequests, 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_deserializeOpDocumentDescribeSpotPriceHistoryOutput(v **DescribeSpotPriceHistoryOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeSpotPriceHistoryOutput + if *v == nil { + sv = &DescribeSpotPriceHistoryOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + case strings.EqualFold("spotPriceHistorySet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentSpotPriceHistoryList(&sv.SpotPriceHistory, 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_deserializeOpDocumentDescribeStaleSecurityGroupsOutput(v **DescribeStaleSecurityGroupsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeStaleSecurityGroupsOutput + if *v == nil { + sv = &DescribeStaleSecurityGroupsOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + case strings.EqualFold("staleSecurityGroupSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSpotInstanceRequestList(&sv.SpotInstanceRequests, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentStaleSecurityGroupSet(&sv.StaleSecurityGroupSet, nodeDecoder); err != nil { return err } @@ -162032,13 +163539,13 @@ func awsEc2query_deserializeOpDocumentDescribeSpotInstanceRequestsOutput(v **Des return nil } -func awsEc2query_deserializeOpDocumentDescribeSpotPriceHistoryOutput(v **DescribeSpotPriceHistoryOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeStoreImageTasksOutput(v **DescribeStoreImageTasksOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeSpotPriceHistoryOutput + var sv *DescribeStoreImageTasksOutput if *v == nil { - sv = &DescribeSpotPriceHistoryOutput{} + sv = &DescribeStoreImageTasksOutput{} } else { sv = *v } @@ -162067,9 +163574,9 @@ func awsEc2query_deserializeOpDocumentDescribeSpotPriceHistoryOutput(v **Describ sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("spotPriceHistorySet", t.Name.Local): + case strings.EqualFold("storeImageTaskResultSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSpotPriceHistoryList(&sv.SpotPriceHistory, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentStoreImageTaskResultSet(&sv.StoreImageTaskResults, nodeDecoder); err != nil { return err } @@ -162087,13 +163594,13 @@ func awsEc2query_deserializeOpDocumentDescribeSpotPriceHistoryOutput(v **Describ return nil } -func awsEc2query_deserializeOpDocumentDescribeStaleSecurityGroupsOutput(v **DescribeStaleSecurityGroupsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeSubnetsOutput(v **DescribeSubnetsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeStaleSecurityGroupsOutput + var sv *DescribeSubnetsOutput if *v == nil { - sv = &DescribeStaleSecurityGroupsOutput{} + sv = &DescribeSubnetsOutput{} } else { sv = *v } @@ -162122,9 +163629,9 @@ func awsEc2query_deserializeOpDocumentDescribeStaleSecurityGroupsOutput(v **Desc sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("staleSecurityGroupSet", t.Name.Local): + case strings.EqualFold("subnetSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentStaleSecurityGroupSet(&sv.StaleSecurityGroupSet, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentSubnetList(&sv.Subnets, nodeDecoder); err != nil { return err } @@ -162142,13 +163649,13 @@ func awsEc2query_deserializeOpDocumentDescribeStaleSecurityGroupsOutput(v **Desc return nil } -func awsEc2query_deserializeOpDocumentDescribeStoreImageTasksOutput(v **DescribeStoreImageTasksOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTagsOutput(v **DescribeTagsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeStoreImageTasksOutput + var sv *DescribeTagsOutput if *v == nil { - sv = &DescribeStoreImageTasksOutput{} + sv = &DescribeTagsOutput{} } else { sv = *v } @@ -162177,9 +163684,9 @@ func awsEc2query_deserializeOpDocumentDescribeStoreImageTasksOutput(v **Describe sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("storeImageTaskResultSet", t.Name.Local): + case strings.EqualFold("tagSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentStoreImageTaskResultSet(&sv.StoreImageTaskResults, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTagDescriptionList(&sv.Tags, nodeDecoder); err != nil { return err } @@ -162197,13 +163704,13 @@ func awsEc2query_deserializeOpDocumentDescribeStoreImageTasksOutput(v **Describe return nil } -func awsEc2query_deserializeOpDocumentDescribeSubnetsOutput(v **DescribeSubnetsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFilterRulesOutput(v **DescribeTrafficMirrorFilterRulesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeSubnetsOutput + var sv *DescribeTrafficMirrorFilterRulesOutput if *v == nil { - sv = &DescribeSubnetsOutput{} + sv = &DescribeTrafficMirrorFilterRulesOutput{} } else { sv = *v } @@ -162232,9 +163739,9 @@ func awsEc2query_deserializeOpDocumentDescribeSubnetsOutput(v **DescribeSubnetsO sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("subnetSet", t.Name.Local): + case strings.EqualFold("trafficMirrorFilterRuleSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSubnetList(&sv.Subnets, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTrafficMirrorFilterRuleSet(&sv.TrafficMirrorFilterRules, nodeDecoder); err != nil { return err } @@ -162252,13 +163759,13 @@ func awsEc2query_deserializeOpDocumentDescribeSubnetsOutput(v **DescribeSubnetsO return nil } -func awsEc2query_deserializeOpDocumentDescribeTagsOutput(v **DescribeTagsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFiltersOutput(v **DescribeTrafficMirrorFiltersOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTagsOutput + var sv *DescribeTrafficMirrorFiltersOutput if *v == nil { - sv = &DescribeTagsOutput{} + sv = &DescribeTrafficMirrorFiltersOutput{} } else { sv = *v } @@ -162287,9 +163794,9 @@ func awsEc2query_deserializeOpDocumentDescribeTagsOutput(v **DescribeTagsOutput, sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("tagSet", t.Name.Local): + case strings.EqualFold("trafficMirrorFilterSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagDescriptionList(&sv.Tags, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTrafficMirrorFilterSet(&sv.TrafficMirrorFilters, nodeDecoder); err != nil { return err } @@ -162307,13 +163814,13 @@ func awsEc2query_deserializeOpDocumentDescribeTagsOutput(v **DescribeTagsOutput, return nil } -func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFilterRulesOutput(v **DescribeTrafficMirrorFilterRulesOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorSessionsOutput(v **DescribeTrafficMirrorSessionsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTrafficMirrorFilterRulesOutput + var sv *DescribeTrafficMirrorSessionsOutput if *v == nil { - sv = &DescribeTrafficMirrorFilterRulesOutput{} + sv = &DescribeTrafficMirrorSessionsOutput{} } else { sv = *v } @@ -162342,9 +163849,9 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFilterRulesOutput(v * sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("trafficMirrorFilterRuleSet", t.Name.Local): + case strings.EqualFold("trafficMirrorSessionSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTrafficMirrorFilterRuleSet(&sv.TrafficMirrorFilterRules, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTrafficMirrorSessionSet(&sv.TrafficMirrorSessions, nodeDecoder); err != nil { return err } @@ -162362,13 +163869,13 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFilterRulesOutput(v * return nil } -func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFiltersOutput(v **DescribeTrafficMirrorFiltersOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorTargetsOutput(v **DescribeTrafficMirrorTargetsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTrafficMirrorFiltersOutput + var sv *DescribeTrafficMirrorTargetsOutput if *v == nil { - sv = &DescribeTrafficMirrorFiltersOutput{} + sv = &DescribeTrafficMirrorTargetsOutput{} } else { sv = *v } @@ -162397,9 +163904,9 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFiltersOutput(v **Des sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("trafficMirrorFilterSet", t.Name.Local): + case strings.EqualFold("trafficMirrorTargetSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTrafficMirrorFilterSet(&sv.TrafficMirrorFilters, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTrafficMirrorTargetSet(&sv.TrafficMirrorTargets, nodeDecoder); err != nil { return err } @@ -162417,13 +163924,13 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFiltersOutput(v **Des return nil } -func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorSessionsOutput(v **DescribeTrafficMirrorSessionsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayAttachmentsOutput(v **DescribeTransitGatewayAttachmentsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTrafficMirrorSessionsOutput + var sv *DescribeTransitGatewayAttachmentsOutput if *v == nil { - sv = &DescribeTrafficMirrorSessionsOutput{} + sv = &DescribeTransitGatewayAttachmentsOutput{} } else { sv = *v } @@ -162452,9 +163959,9 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorSessionsOutput(v **De sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("trafficMirrorSessionSet", t.Name.Local): + case strings.EqualFold("transitGatewayAttachments", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTrafficMirrorSessionSet(&sv.TrafficMirrorSessions, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayAttachmentList(&sv.TransitGatewayAttachments, nodeDecoder); err != nil { return err } @@ -162472,13 +163979,13 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorSessionsOutput(v **De return nil } -func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorTargetsOutput(v **DescribeTrafficMirrorTargetsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectPeersOutput(v **DescribeTransitGatewayConnectPeersOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTrafficMirrorTargetsOutput + var sv *DescribeTransitGatewayConnectPeersOutput if *v == nil { - sv = &DescribeTrafficMirrorTargetsOutput{} + sv = &DescribeTransitGatewayConnectPeersOutput{} } else { sv = *v } @@ -162507,9 +164014,9 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorTargetsOutput(v **Des sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("trafficMirrorTargetSet", t.Name.Local): + case strings.EqualFold("transitGatewayConnectPeerSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTrafficMirrorTargetSet(&sv.TrafficMirrorTargets, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayConnectPeerList(&sv.TransitGatewayConnectPeers, nodeDecoder); err != nil { return err } @@ -162527,13 +164034,13 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorTargetsOutput(v **Des return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayAttachmentsOutput(v **DescribeTransitGatewayAttachmentsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectsOutput(v **DescribeTransitGatewayConnectsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayAttachmentsOutput + var sv *DescribeTransitGatewayConnectsOutput if *v == nil { - sv = &DescribeTransitGatewayAttachmentsOutput{} + sv = &DescribeTransitGatewayConnectsOutput{} } else { sv = *v } @@ -162562,9 +164069,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayAttachmentsOutput(v sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayAttachments", t.Name.Local): + case strings.EqualFold("transitGatewayConnectSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayAttachmentList(&sv.TransitGatewayAttachments, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayConnectList(&sv.TransitGatewayConnects, nodeDecoder); err != nil { return err } @@ -162582,13 +164089,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayAttachmentsOutput(v return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectPeersOutput(v **DescribeTransitGatewayConnectPeersOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayMulticastDomainsOutput(v **DescribeTransitGatewayMulticastDomainsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayConnectPeersOutput + var sv *DescribeTransitGatewayMulticastDomainsOutput if *v == nil { - sv = &DescribeTransitGatewayConnectPeersOutput{} + sv = &DescribeTransitGatewayMulticastDomainsOutput{} } else { sv = *v } @@ -162617,9 +164124,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectPeersOutput(v sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayConnectPeerSet", t.Name.Local): + case strings.EqualFold("transitGatewayMulticastDomains", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayConnectPeerList(&sv.TransitGatewayConnectPeers, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayMulticastDomainList(&sv.TransitGatewayMulticastDomains, nodeDecoder); err != nil { return err } @@ -162637,13 +164144,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectPeersOutput(v return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectsOutput(v **DescribeTransitGatewayConnectsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPeeringAttachmentsOutput(v **DescribeTransitGatewayPeeringAttachmentsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayConnectsOutput + var sv *DescribeTransitGatewayPeeringAttachmentsOutput if *v == nil { - sv = &DescribeTransitGatewayConnectsOutput{} + sv = &DescribeTransitGatewayPeeringAttachmentsOutput{} } else { sv = *v } @@ -162672,9 +164179,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectsOutput(v **D sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayConnectSet", t.Name.Local): + case strings.EqualFold("transitGatewayPeeringAttachments", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayConnectList(&sv.TransitGatewayConnects, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayPeeringAttachmentList(&sv.TransitGatewayPeeringAttachments, nodeDecoder); err != nil { return err } @@ -162692,13 +164199,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectsOutput(v **D return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayMulticastDomainsOutput(v **DescribeTransitGatewayMulticastDomainsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPolicyTablesOutput(v **DescribeTransitGatewayPolicyTablesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayMulticastDomainsOutput + var sv *DescribeTransitGatewayPolicyTablesOutput if *v == nil { - sv = &DescribeTransitGatewayMulticastDomainsOutput{} + sv = &DescribeTransitGatewayPolicyTablesOutput{} } else { sv = *v } @@ -162727,9 +164234,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayMulticastDomainsOutp sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayMulticastDomains", t.Name.Local): + case strings.EqualFold("transitGatewayPolicyTables", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayMulticastDomainList(&sv.TransitGatewayMulticastDomains, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayPolicyTableList(&sv.TransitGatewayPolicyTables, nodeDecoder); err != nil { return err } @@ -162747,13 +164254,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayMulticastDomainsOutp return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPeeringAttachmentsOutput(v **DescribeTransitGatewayPeeringAttachmentsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTableAnnouncementsOutput(v **DescribeTransitGatewayRouteTableAnnouncementsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayPeeringAttachmentsOutput + var sv *DescribeTransitGatewayRouteTableAnnouncementsOutput if *v == nil { - sv = &DescribeTransitGatewayPeeringAttachmentsOutput{} + sv = &DescribeTransitGatewayRouteTableAnnouncementsOutput{} } else { sv = *v } @@ -162782,9 +164289,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPeeringAttachmentsOu sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayPeeringAttachments", t.Name.Local): + case strings.EqualFold("transitGatewayRouteTableAnnouncements", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayPeeringAttachmentList(&sv.TransitGatewayPeeringAttachments, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayRouteTableAnnouncementList(&sv.TransitGatewayRouteTableAnnouncements, nodeDecoder); err != nil { return err } @@ -162802,13 +164309,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPeeringAttachmentsOu return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPolicyTablesOutput(v **DescribeTransitGatewayPolicyTablesOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTablesOutput(v **DescribeTransitGatewayRouteTablesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayPolicyTablesOutput + var sv *DescribeTransitGatewayRouteTablesOutput if *v == nil { - sv = &DescribeTransitGatewayPolicyTablesOutput{} + sv = &DescribeTransitGatewayRouteTablesOutput{} } else { sv = *v } @@ -162837,9 +164344,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPolicyTablesOutput(v sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayPolicyTables", t.Name.Local): + case strings.EqualFold("transitGatewayRouteTables", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayPolicyTableList(&sv.TransitGatewayPolicyTables, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayRouteTableList(&sv.TransitGatewayRouteTables, nodeDecoder); err != nil { return err } @@ -162857,13 +164364,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPolicyTablesOutput(v return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTableAnnouncementsOutput(v **DescribeTransitGatewayRouteTableAnnouncementsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewaysOutput(v **DescribeTransitGatewaysOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayRouteTableAnnouncementsOutput + var sv *DescribeTransitGatewaysOutput if *v == nil { - sv = &DescribeTransitGatewayRouteTableAnnouncementsOutput{} + sv = &DescribeTransitGatewaysOutput{} } else { sv = *v } @@ -162892,9 +164399,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTableAnnounceme sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayRouteTableAnnouncements", t.Name.Local): + case strings.EqualFold("transitGatewaySet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayRouteTableAnnouncementList(&sv.TransitGatewayRouteTableAnnouncements, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayList(&sv.TransitGateways, nodeDecoder); err != nil { return err } @@ -162912,13 +164419,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTableAnnounceme return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTablesOutput(v **DescribeTransitGatewayRouteTablesOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayVpcAttachmentsOutput(v **DescribeTransitGatewayVpcAttachmentsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayRouteTablesOutput + var sv *DescribeTransitGatewayVpcAttachmentsOutput if *v == nil { - sv = &DescribeTransitGatewayRouteTablesOutput{} + sv = &DescribeTransitGatewayVpcAttachmentsOutput{} } else { sv = *v } @@ -162947,9 +164454,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTablesOutput(v sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayRouteTables", t.Name.Local): + case strings.EqualFold("transitGatewayVpcAttachments", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayRouteTableList(&sv.TransitGatewayRouteTables, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayVpcAttachmentList(&sv.TransitGatewayVpcAttachments, nodeDecoder); err != nil { return err } @@ -162967,13 +164474,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTablesOutput(v return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewaysOutput(v **DescribeTransitGatewaysOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTrunkInterfaceAssociationsOutput(v **DescribeTrunkInterfaceAssociationsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewaysOutput + var sv *DescribeTrunkInterfaceAssociationsOutput if *v == nil { - sv = &DescribeTransitGatewaysOutput{} + sv = &DescribeTrunkInterfaceAssociationsOutput{} } else { sv = *v } @@ -162989,6 +164496,12 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewaysOutput(v **Describe originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { + case strings.EqualFold("interfaceAssociationSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTrunkInterfaceAssociationList(&sv.InterfaceAssociations, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("nextToken", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -163002,9 +164515,58 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewaysOutput(v **Describe sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewaySet", 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_deserializeOpDocumentDescribeVerifiedAccessEndpointsOutput(v **DescribeVerifiedAccessEndpointsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeVerifiedAccessEndpointsOutput + if *v == nil { + sv = &DescribeVerifiedAccessEndpointsOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + case strings.EqualFold("verifiedAccessEndpointSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayList(&sv.TransitGateways, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVerifiedAccessEndpointList(&sv.VerifiedAccessEndpoints, nodeDecoder); err != nil { return err } @@ -163022,13 +164584,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewaysOutput(v **Describe return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayVpcAttachmentsOutput(v **DescribeTransitGatewayVpcAttachmentsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessGroupsOutput(v **DescribeVerifiedAccessGroupsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayVpcAttachmentsOutput + var sv *DescribeVerifiedAccessGroupsOutput if *v == nil { - sv = &DescribeTransitGatewayVpcAttachmentsOutput{} + sv = &DescribeVerifiedAccessGroupsOutput{} } else { sv = *v } @@ -163057,9 +164619,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayVpcAttachmentsOutput sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayVpcAttachments", t.Name.Local): + case strings.EqualFold("verifiedAccessGroupSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayVpcAttachmentList(&sv.TransitGatewayVpcAttachments, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVerifiedAccessGroupList(&sv.VerifiedAccessGroups, nodeDecoder); err != nil { return err } @@ -163077,13 +164639,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayVpcAttachmentsOutput return nil } -func awsEc2query_deserializeOpDocumentDescribeTrunkInterfaceAssociationsOutput(v **DescribeTrunkInterfaceAssociationsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstanceLoggingConfigurationsOutput(v **DescribeVerifiedAccessInstanceLoggingConfigurationsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTrunkInterfaceAssociationsOutput + var sv *DescribeVerifiedAccessInstanceLoggingConfigurationsOutput if *v == nil { - sv = &DescribeTrunkInterfaceAssociationsOutput{} + sv = &DescribeVerifiedAccessInstanceLoggingConfigurationsOutput{} } else { sv = *v } @@ -163099,9 +164661,9 @@ func awsEc2query_deserializeOpDocumentDescribeTrunkInterfaceAssociationsOutput(v originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("interfaceAssociationSet", t.Name.Local): + case strings.EqualFold("loggingConfigurationSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTrunkInterfaceAssociationList(&sv.InterfaceAssociations, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVerifiedAccessInstanceLoggingConfigurationList(&sv.LoggingConfigurations, nodeDecoder); err != nil { return err } @@ -163132,13 +164694,13 @@ func awsEc2query_deserializeOpDocumentDescribeTrunkInterfaceAssociationsOutput(v return nil } -func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessEndpointsOutput(v **DescribeVerifiedAccessEndpointsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstancesOutput(v **DescribeVerifiedAccessInstancesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVerifiedAccessEndpointsOutput + var sv *DescribeVerifiedAccessInstancesOutput if *v == nil { - sv = &DescribeVerifiedAccessEndpointsOutput{} + sv = &DescribeVerifiedAccessInstancesOutput{} } else { sv = *v } @@ -163167,9 +164729,9 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessEndpointsOutput(v ** sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("verifiedAccessEndpointSet", t.Name.Local): + case strings.EqualFold("verifiedAccessInstanceSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVerifiedAccessEndpointList(&sv.VerifiedAccessEndpoints, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVerifiedAccessInstanceList(&sv.VerifiedAccessInstances, nodeDecoder); err != nil { return err } @@ -163187,13 +164749,13 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessEndpointsOutput(v ** return nil } -func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessGroupsOutput(v **DescribeVerifiedAccessGroupsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessTrustProvidersOutput(v **DescribeVerifiedAccessTrustProvidersOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVerifiedAccessGroupsOutput + var sv *DescribeVerifiedAccessTrustProvidersOutput if *v == nil { - sv = &DescribeVerifiedAccessGroupsOutput{} + sv = &DescribeVerifiedAccessTrustProvidersOutput{} } else { sv = *v } @@ -163222,9 +164784,9 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessGroupsOutput(v **Des sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("verifiedAccessGroupSet", t.Name.Local): + case strings.EqualFold("verifiedAccessTrustProviderSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVerifiedAccessGroupList(&sv.VerifiedAccessGroups, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVerifiedAccessTrustProviderList(&sv.VerifiedAccessTrustProviders, nodeDecoder); err != nil { return err } @@ -163242,13 +164804,13 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessGroupsOutput(v **Des return nil } -func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstanceLoggingConfigurationsOutput(v **DescribeVerifiedAccessInstanceLoggingConfigurationsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVolumeAttributeOutput(v **DescribeVolumeAttributeOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVerifiedAccessInstanceLoggingConfigurationsOutput + var sv *DescribeVolumeAttributeOutput if *v == nil { - sv = &DescribeVerifiedAccessInstanceLoggingConfigurationsOutput{} + sv = &DescribeVolumeAttributeOutput{} } else { sv = *v } @@ -163264,13 +164826,19 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstanceLoggingConfi originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("loggingConfigurationSet", t.Name.Local): + case strings.EqualFold("autoEnableIO", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVerifiedAccessInstanceLoggingConfigurationList(&sv.LoggingConfigurations, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.AutoEnableIO, nodeDecoder); err != nil { return err } - case strings.EqualFold("nextToken", t.Name.Local): + 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("volumeId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -163280,7 +164848,7 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstanceLoggingConfi } { xtv := string(val) - sv.NextToken = ptr.String(xtv) + sv.VolumeId = ptr.String(xtv) } default: @@ -163297,13 +164865,13 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstanceLoggingConfi return nil } -func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstancesOutput(v **DescribeVerifiedAccessInstancesOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVolumesModificationsOutput(v **DescribeVolumesModificationsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVerifiedAccessInstancesOutput + var sv *DescribeVolumesModificationsOutput if *v == nil { - sv = &DescribeVerifiedAccessInstancesOutput{} + sv = &DescribeVolumesModificationsOutput{} } else { sv = *v } @@ -163332,9 +164900,9 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstancesOutput(v ** sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("verifiedAccessInstanceSet", t.Name.Local): + case strings.EqualFold("volumeModificationSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVerifiedAccessInstanceList(&sv.VerifiedAccessInstances, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVolumeModificationList(&sv.VolumesModifications, nodeDecoder); err != nil { return err } @@ -163352,13 +164920,13 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstancesOutput(v ** return nil } -func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessTrustProvidersOutput(v **DescribeVerifiedAccessTrustProvidersOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVolumesOutput(v **DescribeVolumesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVerifiedAccessTrustProvidersOutput + var sv *DescribeVolumesOutput if *v == nil { - sv = &DescribeVerifiedAccessTrustProvidersOutput{} + sv = &DescribeVolumesOutput{} } else { sv = *v } @@ -163387,9 +164955,9 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessTrustProvidersOutput sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("verifiedAccessTrustProviderSet", t.Name.Local): + case strings.EqualFold("volumeSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVerifiedAccessTrustProviderList(&sv.VerifiedAccessTrustProviders, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVolumeList(&sv.Volumes, nodeDecoder); err != nil { return err } @@ -163407,13 +164975,13 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessTrustProvidersOutput return nil } -func awsEc2query_deserializeOpDocumentDescribeVolumeAttributeOutput(v **DescribeVolumeAttributeOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVolumeStatusOutput(v **DescribeVolumeStatusOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVolumeAttributeOutput + var sv *DescribeVolumeStatusOutput if *v == nil { - sv = &DescribeVolumeAttributeOutput{} + sv = &DescribeVolumeStatusOutput{} } else { sv = *v } @@ -163429,19 +164997,7 @@ func awsEc2query_deserializeOpDocumentDescribeVolumeAttributeOutput(v **Describe originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("autoEnableIO", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.AutoEnableIO, 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("volumeId", t.Name.Local): + case strings.EqualFold("nextToken", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -163451,7 +165007,13 @@ func awsEc2query_deserializeOpDocumentDescribeVolumeAttributeOutput(v **Describe } { xtv := string(val) - sv.VolumeId = ptr.String(xtv) + sv.NextToken = ptr.String(xtv) + } + + case strings.EqualFold("volumeStatusSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentVolumeStatusList(&sv.VolumeStatuses, nodeDecoder); err != nil { + return err } default: @@ -163468,13 +165030,13 @@ func awsEc2query_deserializeOpDocumentDescribeVolumeAttributeOutput(v **Describe return nil } -func awsEc2query_deserializeOpDocumentDescribeVolumesModificationsOutput(v **DescribeVolumesModificationsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVpcAttributeOutput(v **DescribeVpcAttributeOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVolumesModificationsOutput + var sv *DescribeVpcAttributeOutput if *v == nil { - sv = &DescribeVolumesModificationsOutput{} + sv = &DescribeVpcAttributeOutput{} } else { sv = *v } @@ -163490,62 +165052,25 @@ func awsEc2query_deserializeOpDocumentDescribeVolumesModificationsOutput(v **Des originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("nextToken", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("enableDnsHostnames", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EnableDnsHostnames, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.NextToken = ptr.String(xtv) - } - case strings.EqualFold("volumeModificationSet", t.Name.Local): + case strings.EqualFold("enableDnsSupport", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolumeModificationList(&sv.VolumesModifications, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EnableDnsSupport, nodeDecoder); err != nil { return err } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { + case strings.EqualFold("enableNetworkAddressUsageMetrics", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EnableNetworkAddressUsageMetrics, nodeDecoder); err != nil { return err } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeOpDocumentDescribeVolumesOutput(v **DescribeVolumesOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DescribeVolumesOutput - if *v == nil { - sv = &DescribeVolumesOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("nextToken", t.Name.Local): + case strings.EqualFold("vpcId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -163555,13 +165080,7 @@ func awsEc2query_deserializeOpDocumentDescribeVolumesOutput(v **DescribeVolumesO } { xtv := string(val) - sv.NextToken = ptr.String(xtv) - } - - case strings.EqualFold("volumeSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolumeList(&sv.Volumes, nodeDecoder); err != nil { - return err + sv.VpcId = ptr.String(xtv) } default: @@ -163578,13 +165097,13 @@ func awsEc2query_deserializeOpDocumentDescribeVolumesOutput(v **DescribeVolumesO return nil } -func awsEc2query_deserializeOpDocumentDescribeVolumeStatusOutput(v **DescribeVolumeStatusOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVpcBlockPublicAccessExclusionsOutput(v **DescribeVpcBlockPublicAccessExclusionsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVolumeStatusOutput + var sv *DescribeVpcBlockPublicAccessExclusionsOutput if *v == nil { - sv = &DescribeVolumeStatusOutput{} + sv = &DescribeVpcBlockPublicAccessExclusionsOutput{} } else { sv = *v } @@ -163613,9 +165132,9 @@ func awsEc2query_deserializeOpDocumentDescribeVolumeStatusOutput(v **DescribeVol sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("volumeStatusSet", t.Name.Local): + case strings.EqualFold("vpcBlockPublicAccessExclusionSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolumeStatusList(&sv.VolumeStatuses, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusionList(&sv.VpcBlockPublicAccessExclusions, nodeDecoder); err != nil { return err } @@ -163633,13 +165152,13 @@ func awsEc2query_deserializeOpDocumentDescribeVolumeStatusOutput(v **DescribeVol return nil } -func awsEc2query_deserializeOpDocumentDescribeVpcAttributeOutput(v **DescribeVpcAttributeOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVpcBlockPublicAccessOptionsOutput(v **DescribeVpcBlockPublicAccessOptionsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVpcAttributeOutput + var sv *DescribeVpcBlockPublicAccessOptionsOutput if *v == nil { - sv = &DescribeVpcAttributeOutput{} + sv = &DescribeVpcBlockPublicAccessOptionsOutput{} } else { sv = *v } @@ -163655,37 +165174,12 @@ func awsEc2query_deserializeOpDocumentDescribeVpcAttributeOutput(v **DescribeVpc originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("enableDnsHostnames", t.Name.Local): + case strings.EqualFold("vpcBlockPublicAccessOptions", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EnableDnsHostnames, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVpcBlockPublicAccessOptions(&sv.VpcBlockPublicAccessOptions, nodeDecoder); err != nil { return err } - case strings.EqualFold("enableDnsSupport", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EnableDnsSupport, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("enableNetworkAddressUsageMetrics", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EnableNetworkAddressUsageMetrics, 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: // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() @@ -173380,6 +174874,90 @@ func awsEc2query_deserializeOpDocumentModifyVolumeOutput(v **ModifyVolumeOutput, return nil } +func awsEc2query_deserializeOpDocumentModifyVpcBlockPublicAccessExclusionOutput(v **ModifyVpcBlockPublicAccessExclusionOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ModifyVpcBlockPublicAccessExclusionOutput + if *v == nil { + sv = &ModifyVpcBlockPublicAccessExclusionOutput{} + } 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("vpcBlockPublicAccessExclusion", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusion(&sv.VpcBlockPublicAccessExclusion, 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_deserializeOpDocumentModifyVpcBlockPublicAccessOptionsOutput(v **ModifyVpcBlockPublicAccessOptionsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ModifyVpcBlockPublicAccessOptionsOutput + if *v == nil { + sv = &ModifyVpcBlockPublicAccessOptionsOutput{} + } 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("vpcBlockPublicAccessOptions", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentVpcBlockPublicAccessOptions(&sv.VpcBlockPublicAccessOptions, 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_deserializeOpDocumentModifyVpcEndpointConnectionNotificationOutput(v **ModifyVpcEndpointConnectionNotificationOutput, 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 7631a3dd7ef..e21f02f5ecb 100644 --- a/service/ec2/generated.json +++ b/service/ec2/generated.json @@ -146,6 +146,7 @@ "api_op_CreateVerifiedAccessTrustProvider.go", "api_op_CreateVolume.go", "api_op_CreateVpc.go", + "api_op_CreateVpcBlockPublicAccessExclusion.go", "api_op_CreateVpcEndpoint.go", "api_op_CreateVpcEndpointConnectionNotification.go", "api_op_CreateVpcEndpointServiceConfiguration.go", @@ -221,6 +222,7 @@ "api_op_DeleteVerifiedAccessTrustProvider.go", "api_op_DeleteVolume.go", "api_op_DeleteVpc.go", + "api_op_DeleteVpcBlockPublicAccessExclusion.go", "api_op_DeleteVpcEndpointConnectionNotifications.go", "api_op_DeleteVpcEndpointServiceConfigurations.go", "api_op_DeleteVpcEndpoints.go", @@ -379,6 +381,8 @@ "api_op_DescribeVolumes.go", "api_op_DescribeVolumesModifications.go", "api_op_DescribeVpcAttribute.go", + "api_op_DescribeVpcBlockPublicAccessExclusions.go", + "api_op_DescribeVpcBlockPublicAccessOptions.go", "api_op_DescribeVpcClassicLink.go", "api_op_DescribeVpcClassicLinkDnsSupport.go", "api_op_DescribeVpcEndpointConnectionNotifications.go", @@ -565,6 +569,8 @@ "api_op_ModifyVolume.go", "api_op_ModifyVolumeAttribute.go", "api_op_ModifyVpcAttribute.go", + "api_op_ModifyVpcBlockPublicAccessExclusion.go", + "api_op_ModifyVpcBlockPublicAccessOptions.go", "api_op_ModifyVpcEndpoint.go", "api_op_ModifyVpcEndpointConnectionNotification.go", "api_op_ModifyVpcEndpointServiceConfiguration.go", diff --git a/service/ec2/go.mod b/service/ec2/go.mod index 186cd30400f..413c23502bf 100644 --- a/service/ec2/go.mod +++ b/service/ec2/go.mod @@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/service/ec2 go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ec2/go.sum b/service/ec2/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/ec2/go.sum +++ b/service/ec2/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/ec2/go_module_metadata.go b/service/ec2/go_module_metadata.go index 443248fe24d..b74ca9bc99f 100644 --- a/service/ec2/go_module_metadata.go +++ b/service/ec2/go_module_metadata.go @@ -3,4 +3,4 @@ package ec2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.189.0" +const goModuleVersion = "1.192.0" diff --git a/service/ec2/serializers.go b/service/ec2/serializers.go index 7d889125e17..9c3c4502d2e 100644 --- a/service/ec2/serializers.go +++ b/service/ec2/serializers.go @@ -9468,6 +9468,76 @@ func (m *awsEc2query_serializeOpCreateVpc) HandleSerialize(ctx context.Context, return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpCreateVpcBlockPublicAccessExclusion struct { +} + +func (*awsEc2query_serializeOpCreateVpcBlockPublicAccessExclusion) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpCreateVpcBlockPublicAccessExclusion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*CreateVpcBlockPublicAccessExclusionInput) + _ = 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("CreateVpcBlockPublicAccessExclusion") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentCreateVpcBlockPublicAccessExclusionInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpCreateVpcEndpoint struct { } @@ -14718,6 +14788,76 @@ func (m *awsEc2query_serializeOpDeleteVpc) HandleSerialize(ctx context.Context, return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpDeleteVpcBlockPublicAccessExclusion struct { +} + +func (*awsEc2query_serializeOpDeleteVpcBlockPublicAccessExclusion) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpDeleteVpcBlockPublicAccessExclusion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DeleteVpcBlockPublicAccessExclusionInput) + _ = 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("DeleteVpcBlockPublicAccessExclusion") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentDeleteVpcBlockPublicAccessExclusionInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpDeleteVpcEndpointConnectionNotifications struct { } @@ -25778,84 +25918,14 @@ func (m *awsEc2query_serializeOpDescribeVpcAttribute) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVpcClassicLink struct { -} - -func (*awsEc2query_serializeOpDescribeVpcClassicLink) ID() string { - return "OperationSerializer" -} - -func (m *awsEc2query_serializeOpDescribeVpcClassicLink) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - _, span := tracing.StartSpan(ctx, "OperationSerializer") - endTimer := startMetricTimer(ctx, "client.call.serialization_duration") - defer endTimer() - defer span.End() - 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.(*DescribeVpcClassicLinkInput) - _ = 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("DescribeVpcClassicLink") - body.Key("Version").String("2016-11-15") - - if err := awsEc2query_serializeOpDocumentDescribeVpcClassicLinkInput(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 - - endTimer() - span.End() - return next.HandleSerialize(ctx, in) -} - -type awsEc2query_serializeOpDescribeVpcClassicLinkDnsSupport struct { +type awsEc2query_serializeOpDescribeVpcBlockPublicAccessExclusions struct { } -func (*awsEc2query_serializeOpDescribeVpcClassicLinkDnsSupport) ID() string { +func (*awsEc2query_serializeOpDescribeVpcBlockPublicAccessExclusions) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVpcClassicLinkDnsSupport) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeVpcBlockPublicAccessExclusions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -25867,7 +25937,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.(*DescribeVpcBlockPublicAccessExclusionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -25892,10 +25962,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("DescribeVpcBlockPublicAccessExclusions") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeVpcClassicLinkDnsSupportInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeVpcBlockPublicAccessExclusionsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -25918,14 +25988,14 @@ func (m *awsEc2query_serializeOpDescribeVpcClassicLinkDnsSupport) HandleSerializ return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVpcEndpointConnectionNotifications struct { +type awsEc2query_serializeOpDescribeVpcBlockPublicAccessOptions struct { } -func (*awsEc2query_serializeOpDescribeVpcEndpointConnectionNotifications) ID() string { +func (*awsEc2query_serializeOpDescribeVpcBlockPublicAccessOptions) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVpcEndpointConnectionNotifications) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeVpcBlockPublicAccessOptions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -25937,7 +26007,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.(*DescribeVpcBlockPublicAccessOptionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -25962,10 +26032,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("DescribeVpcBlockPublicAccessOptions") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeVpcEndpointConnectionNotificationsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeVpcBlockPublicAccessOptionsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -25988,14 +26058,14 @@ func (m *awsEc2query_serializeOpDescribeVpcEndpointConnectionNotifications) Hand return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVpcEndpointConnections struct { +type awsEc2query_serializeOpDescribeVpcClassicLink struct { } -func (*awsEc2query_serializeOpDescribeVpcEndpointConnections) ID() string { +func (*awsEc2query_serializeOpDescribeVpcClassicLink) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVpcEndpointConnections) 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, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -26007,7 +26077,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.(*DescribeVpcClassicLinkInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -26032,10 +26102,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("DescribeVpcClassicLink") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeVpcEndpointConnectionsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeVpcClassicLinkInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -26058,14 +26128,14 @@ func (m *awsEc2query_serializeOpDescribeVpcEndpointConnections) HandleSerialize( return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVpcEndpoints struct { +type awsEc2query_serializeOpDescribeVpcClassicLinkDnsSupport struct { } -func (*awsEc2query_serializeOpDescribeVpcEndpoints) ID() string { +func (*awsEc2query_serializeOpDescribeVpcClassicLinkDnsSupport) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVpcEndpoints) 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, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -26077,7 +26147,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.(*DescribeVpcClassicLinkDnsSupportInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -26102,10 +26172,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("DescribeVpcClassicLinkDnsSupport") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeVpcEndpointsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeVpcClassicLinkDnsSupportInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -26128,14 +26198,14 @@ func (m *awsEc2query_serializeOpDescribeVpcEndpoints) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVpcEndpointServiceConfigurations struct { +type awsEc2query_serializeOpDescribeVpcEndpointConnectionNotifications struct { } -func (*awsEc2query_serializeOpDescribeVpcEndpointServiceConfigurations) ID() string { +func (*awsEc2query_serializeOpDescribeVpcEndpointConnectionNotifications) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVpcEndpointServiceConfigurations) 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, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -26147,7 +26217,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.(*DescribeVpcEndpointConnectionNotificationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -26172,10 +26242,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("DescribeVpcEndpointConnectionNotifications") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeVpcEndpointServiceConfigurationsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeVpcEndpointConnectionNotificationsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -26198,14 +26268,14 @@ func (m *awsEc2query_serializeOpDescribeVpcEndpointServiceConfigurations) Handle return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVpcEndpointServicePermissions struct { +type awsEc2query_serializeOpDescribeVpcEndpointConnections struct { } -func (*awsEc2query_serializeOpDescribeVpcEndpointServicePermissions) ID() string { +func (*awsEc2query_serializeOpDescribeVpcEndpointConnections) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVpcEndpointServicePermissions) 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, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -26217,7 +26287,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.(*DescribeVpcEndpointConnectionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -26242,10 +26312,220 @@ 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("DescribeVpcEndpointConnections") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeVpcEndpointServicePermissionsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeVpcEndpointConnectionsInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpDescribeVpcEndpoints struct { +} + +func (*awsEc2query_serializeOpDescribeVpcEndpoints) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpDescribeVpcEndpoints) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DescribeVpcEndpointsInput) + _ = 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("DescribeVpcEndpoints") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentDescribeVpcEndpointsInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpDescribeVpcEndpointServiceConfigurations struct { +} + +func (*awsEc2query_serializeOpDescribeVpcEndpointServiceConfigurations) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpDescribeVpcEndpointServiceConfigurations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DescribeVpcEndpointServiceConfigurationsInput) + _ = 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("DescribeVpcEndpointServiceConfigurations") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentDescribeVpcEndpointServiceConfigurationsInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpDescribeVpcEndpointServicePermissions struct { +} + +func (*awsEc2query_serializeOpDescribeVpcEndpointServicePermissions) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpDescribeVpcEndpointServicePermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DescribeVpcEndpointServicePermissionsInput) + _ = 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("DescribeVpcEndpointServicePermissions") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentDescribeVpcEndpointServicePermissionsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -38798,14 +39078,14 @@ func (m *awsEc2query_serializeOpModifyVpcAttribute) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyVpcEndpoint struct { +type awsEc2query_serializeOpModifyVpcBlockPublicAccessExclusion struct { } -func (*awsEc2query_serializeOpModifyVpcEndpoint) ID() string { +func (*awsEc2query_serializeOpModifyVpcBlockPublicAccessExclusion) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyVpcEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyVpcBlockPublicAccessExclusion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -38817,7 +39097,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.(*ModifyVpcBlockPublicAccessExclusionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -38842,10 +39122,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("ModifyVpcBlockPublicAccessExclusion") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyVpcEndpointInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyVpcBlockPublicAccessExclusionInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -38868,14 +39148,14 @@ func (m *awsEc2query_serializeOpModifyVpcEndpoint) HandleSerialize(ctx context.C return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyVpcEndpointConnectionNotification struct { +type awsEc2query_serializeOpModifyVpcBlockPublicAccessOptions struct { } -func (*awsEc2query_serializeOpModifyVpcEndpointConnectionNotification) ID() string { +func (*awsEc2query_serializeOpModifyVpcBlockPublicAccessOptions) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyVpcEndpointConnectionNotification) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyVpcBlockPublicAccessOptions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -38887,7 +39167,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.(*ModifyVpcBlockPublicAccessOptionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -38912,10 +39192,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("ModifyVpcBlockPublicAccessOptions") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyVpcEndpointConnectionNotificationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyVpcBlockPublicAccessOptionsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -38938,14 +39218,14 @@ func (m *awsEc2query_serializeOpModifyVpcEndpointConnectionNotification) HandleS return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyVpcEndpointServiceConfiguration struct { +type awsEc2query_serializeOpModifyVpcEndpoint struct { } -func (*awsEc2query_serializeOpModifyVpcEndpointServiceConfiguration) ID() string { +func (*awsEc2query_serializeOpModifyVpcEndpoint) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyVpcEndpointServiceConfiguration) 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, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -38957,7 +39237,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.(*ModifyVpcEndpointInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -38982,10 +39262,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("ModifyVpcEndpoint") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyVpcEndpointServiceConfigurationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyVpcEndpointInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -39008,14 +39288,14 @@ func (m *awsEc2query_serializeOpModifyVpcEndpointServiceConfiguration) HandleSer return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyVpcEndpointServicePayerResponsibility struct { +type awsEc2query_serializeOpModifyVpcEndpointConnectionNotification struct { } -func (*awsEc2query_serializeOpModifyVpcEndpointServicePayerResponsibility) ID() string { +func (*awsEc2query_serializeOpModifyVpcEndpointConnectionNotification) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyVpcEndpointServicePayerResponsibility) 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, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -39027,7 +39307,7 @@ func (m *awsEc2query_serializeOpModifyVpcEndpointServicePayerResponsibility) Han return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyVpcEndpointServicePayerResponsibilityInput) + input, ok := in.Parameters.(*ModifyVpcEndpointConnectionNotificationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -39052,10 +39332,10 @@ func (m *awsEc2query_serializeOpModifyVpcEndpointServicePayerResponsibility) Han bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyVpcEndpointServicePayerResponsibility") + body.Key("Action").String("ModifyVpcEndpointConnectionNotification") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyVpcEndpointServicePayerResponsibilityInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyVpcEndpointConnectionNotificationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -39078,14 +39358,14 @@ func (m *awsEc2query_serializeOpModifyVpcEndpointServicePayerResponsibility) Han return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyVpcEndpointServicePermissions struct { +type awsEc2query_serializeOpModifyVpcEndpointServiceConfiguration struct { } -func (*awsEc2query_serializeOpModifyVpcEndpointServicePermissions) ID() string { +func (*awsEc2query_serializeOpModifyVpcEndpointServiceConfiguration) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyVpcEndpointServicePermissions) 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, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -39097,7 +39377,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.(*ModifyVpcEndpointServiceConfigurationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -39122,10 +39402,150 @@ 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("ModifyVpcEndpointServiceConfiguration") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyVpcEndpointServicePermissionsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyVpcEndpointServiceConfigurationInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpModifyVpcEndpointServicePayerResponsibility struct { +} + +func (*awsEc2query_serializeOpModifyVpcEndpointServicePayerResponsibility) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpModifyVpcEndpointServicePayerResponsibility) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*ModifyVpcEndpointServicePayerResponsibilityInput) + _ = 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("ModifyVpcEndpointServicePayerResponsibility") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentModifyVpcEndpointServicePayerResponsibilityInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpModifyVpcEndpointServicePermissions struct { +} + +func (*awsEc2query_serializeOpModifyVpcEndpointServicePermissions) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpModifyVpcEndpointServicePermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*ModifyVpcEndpointServicePermissionsInput) + _ = 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("ModifyVpcEndpointServicePermissions") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentModifyVpcEndpointServicePermissionsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -45050,6 +45470,34 @@ func awsEc2query_serializeDocumentBaselineEbsBandwidthMbpsRequest(v *types.Basel return nil } +func awsEc2query_serializeDocumentBaselinePerformanceFactors(v *types.BaselinePerformanceFactors, value query.Value) error { + object := value.Object() + _ = object + + if v.Cpu != nil { + objectKey := object.Key("Cpu") + if err := awsEc2query_serializeDocumentCpuPerformanceFactor(v.Cpu, objectKey); err != nil { + return err + } + } + + return nil +} + +func awsEc2query_serializeDocumentBaselinePerformanceFactorsRequest(v *types.BaselinePerformanceFactorsRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.Cpu != nil { + objectKey := object.Key("Cpu") + if err := awsEc2query_serializeDocumentCpuPerformanceFactorRequest(v.Cpu, objectKey); err != nil { + return err + } + } + + return nil +} + func awsEc2query_serializeDocumentBillingProductList(v []string, value query.Value) error { if len(v) == 0 { return nil @@ -45592,6 +46040,34 @@ func awsEc2query_serializeDocumentCpuOptionsRequest(v *types.CpuOptionsRequest, return nil } +func awsEc2query_serializeDocumentCpuPerformanceFactor(v *types.CpuPerformanceFactor, value query.Value) error { + object := value.Object() + _ = object + + if v.References != nil { + objectKey := object.FlatKey("ReferenceSet") + if err := awsEc2query_serializeDocumentPerformanceFactorReferenceSet(v.References, objectKey); err != nil { + return err + } + } + + return nil +} + +func awsEc2query_serializeDocumentCpuPerformanceFactorRequest(v *types.CpuPerformanceFactorRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.References != nil { + objectKey := object.FlatKey("Reference") + if err := awsEc2query_serializeDocumentPerformanceFactorReferenceSetRequest(v.References, objectKey); err != nil { + return err + } + } + + return nil +} + func awsEc2query_serializeDocumentCreateTransitGatewayConnectRequestOptions(v *types.CreateTransitGatewayConnectRequestOptions, value query.Value) error { object := value.Object() _ = object @@ -47770,6 +48246,13 @@ func awsEc2query_serializeDocumentInstanceRequirements(v *types.InstanceRequirem } } + if v.BaselinePerformanceFactors != nil { + objectKey := object.Key("BaselinePerformanceFactors") + if err := awsEc2query_serializeDocumentBaselinePerformanceFactors(v.BaselinePerformanceFactors, objectKey); err != nil { + return err + } + } + if len(v.BurstablePerformance) > 0 { objectKey := object.Key("BurstablePerformance") objectKey.String(string(v.BurstablePerformance)) @@ -47931,6 +48414,13 @@ func awsEc2query_serializeDocumentInstanceRequirementsRequest(v *types.InstanceR } } + if v.BaselinePerformanceFactors != nil { + objectKey := object.Key("BaselinePerformanceFactors") + if err := awsEc2query_serializeDocumentBaselinePerformanceFactorsRequest(v.BaselinePerformanceFactors, objectKey); err != nil { + return err + } + } + if len(v.BurstablePerformance) > 0 { objectKey := object.Key("BurstablePerformance") objectKey.String(string(v.BurstablePerformance)) @@ -50286,6 +50776,18 @@ func awsEc2query_serializeDocumentOnDemandOptionsRequest(v *types.OnDemandOption return nil } +func awsEc2query_serializeDocumentOperatorRequest(v *types.OperatorRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.Principal != nil { + objectKey := object.Key("Principal") + objectKey.String(*v.Principal) + } + + return nil +} + func awsEc2query_serializeDocumentOrganizationalUnitArnStringList(v []string, value query.Value) error { if len(v) == 0 { return nil @@ -50455,6 +50957,60 @@ func awsEc2query_serializeDocumentPeeringConnectionOptionsRequest(v *types.Peeri return nil } +func awsEc2query_serializeDocumentPerformanceFactorReference(v *types.PerformanceFactorReference, value query.Value) error { + object := value.Object() + _ = object + + if v.InstanceFamily != nil { + objectKey := object.Key("InstanceFamily") + objectKey.String(*v.InstanceFamily) + } + + return nil +} + +func awsEc2query_serializeDocumentPerformanceFactorReferenceRequest(v *types.PerformanceFactorReferenceRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.InstanceFamily != nil { + objectKey := object.Key("InstanceFamily") + objectKey.String(*v.InstanceFamily) + } + + return nil +} + +func awsEc2query_serializeDocumentPerformanceFactorReferenceSet(v []types.PerformanceFactorReference, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Item") + + for i := range v { + av := array.Value() + if err := awsEc2query_serializeDocumentPerformanceFactorReference(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsEc2query_serializeDocumentPerformanceFactorReferenceSetRequest(v []types.PerformanceFactorReferenceRequest, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Item") + + for i := range v { + av := array.Value() + if err := awsEc2query_serializeDocumentPerformanceFactorReferenceRequest(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsEc2query_serializeDocumentPhase1DHGroupNumbersRequestList(v []types.Phase1DHGroupNumbersRequestListValue, value query.Value) error { if len(v) == 0 { return nil @@ -51355,6 +51911,13 @@ func awsEc2query_serializeDocumentRequestLaunchTemplateData(v *types.RequestLaun } } + if v.Operator != nil { + objectKey := object.Key("Operator") + if err := awsEc2query_serializeDocumentOperatorRequest(v.Operator, objectKey); err != nil { + return err + } + } + if v.Placement != nil { objectKey := object.Key("Placement") if err := awsEc2query_serializeDocumentLaunchTemplatePlacementRequest(v.Placement, objectKey); err != nil { @@ -54112,6 +54675,19 @@ func awsEc2query_serializeDocumentVolumeIdStringList(v []string, value query.Val return nil } +func awsEc2query_serializeDocumentVpcBlockPublicAccessExclusionIdList(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_serializeDocumentVpcClassicLinkIdList(v []string, value query.Value) error { if len(v) == 0 { return nil @@ -57457,6 +58033,13 @@ func awsEc2query_serializeOpDocumentCreateLaunchTemplateInput(v *CreateLaunchTem objectKey.String(*v.LaunchTemplateName) } + if v.Operator != nil { + objectKey := object.Key("Operator") + if err := awsEc2query_serializeDocumentOperatorRequest(v.Operator, objectKey); err != nil { + return err + } + } + if v.TagSpecifications != nil { objectKey := object.FlatKey("TagSpecification") if err := awsEc2query_serializeDocumentTagSpecificationList(v.TagSpecifications, objectKey); err != nil { @@ -58029,6 +58612,13 @@ func awsEc2query_serializeOpDocumentCreateNetworkInterfaceInput(v *CreateNetwork } } + if v.Operator != nil { + objectKey := object.Key("Operator") + if err := awsEc2query_serializeDocumentOperatorRequest(v.Operator, objectKey); err != nil { + return err + } + } + if v.PrivateIpAddress != nil { objectKey := object.Key("PrivateIpAddress") objectKey.String(*v.PrivateIpAddress) @@ -59540,6 +60130,13 @@ func awsEc2query_serializeOpDocumentCreateVolumeInput(v *CreateVolumeInput, valu objectKey.Boolean(*v.MultiAttachEnabled) } + if v.Operator != nil { + objectKey := object.Key("Operator") + if err := awsEc2query_serializeDocumentOperatorRequest(v.Operator, objectKey); err != nil { + return err + } + } + if v.OutpostArn != nil { objectKey := object.Key("OutpostArn") objectKey.String(*v.OutpostArn) @@ -59575,6 +60172,40 @@ func awsEc2query_serializeOpDocumentCreateVolumeInput(v *CreateVolumeInput, valu return nil } +func awsEc2query_serializeOpDocumentCreateVpcBlockPublicAccessExclusionInput(v *CreateVpcBlockPublicAccessExclusionInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if len(v.InternetGatewayExclusionMode) > 0 { + objectKey := object.Key("InternetGatewayExclusionMode") + objectKey.String(string(v.InternetGatewayExclusionMode)) + } + + if v.SubnetId != nil { + objectKey := object.Key("SubnetId") + objectKey.String(*v.SubnetId) + } + + if v.TagSpecifications != nil { + objectKey := object.FlatKey("TagSpecification") + if err := awsEc2query_serializeDocumentTagSpecificationList(v.TagSpecifications, objectKey); err != nil { + return err + } + } + + if v.VpcId != nil { + objectKey := object.Key("VpcId") + objectKey.String(*v.VpcId) + } + + return nil +} + func awsEc2query_serializeOpDocumentCreateVpcEndpointConnectionNotificationInput(v *CreateVpcEndpointConnectionNotificationInput, value query.Value) error { object := value.Object() _ = object @@ -61249,6 +61880,23 @@ func awsEc2query_serializeOpDocumentDeleteVolumeInput(v *DeleteVolumeInput, valu return nil } +func awsEc2query_serializeOpDocumentDeleteVpcBlockPublicAccessExclusionInput(v *DeleteVpcBlockPublicAccessExclusionInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.ExclusionId != nil { + objectKey := object.Key("ExclusionId") + objectKey.String(*v.ExclusionId) + } + + return nil +} + func awsEc2query_serializeOpDocumentDeleteVpcEndpointConnectionNotificationsInput(v *DeleteVpcEndpointConnectionNotificationsInput, value query.Value) error { object := value.Object() _ = object @@ -66512,6 +67160,54 @@ func awsEc2query_serializeOpDocumentDescribeVpcAttributeInput(v *DescribeVpcAttr return nil } +func awsEc2query_serializeOpDocumentDescribeVpcBlockPublicAccessExclusionsInput(v *DescribeVpcBlockPublicAccessExclusionsInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.ExclusionIds != nil { + objectKey := object.FlatKey("ExclusionId") + if err := awsEc2query_serializeDocumentVpcBlockPublicAccessExclusionIdList(v.ExclusionIds, objectKey); err != nil { + return err + } + } + + 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.NextToken != nil { + objectKey := object.Key("NextToken") + objectKey.String(*v.NextToken) + } + + return nil +} + +func awsEc2query_serializeOpDocumentDescribeVpcBlockPublicAccessOptionsInput(v *DescribeVpcBlockPublicAccessOptionsInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + return nil +} + func awsEc2query_serializeOpDocumentDescribeVpcClassicLinkDnsSupportInput(v *DescribeVpcClassicLinkDnsSupportInput, value query.Value) error { object := value.Object() _ = object @@ -72089,6 +72785,45 @@ func awsEc2query_serializeOpDocumentModifyVpcAttributeInput(v *ModifyVpcAttribut return nil } +func awsEc2query_serializeOpDocumentModifyVpcBlockPublicAccessExclusionInput(v *ModifyVpcBlockPublicAccessExclusionInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.ExclusionId != nil { + objectKey := object.Key("ExclusionId") + objectKey.String(*v.ExclusionId) + } + + if len(v.InternetGatewayExclusionMode) > 0 { + objectKey := object.Key("InternetGatewayExclusionMode") + objectKey.String(string(v.InternetGatewayExclusionMode)) + } + + return nil +} + +func awsEc2query_serializeOpDocumentModifyVpcBlockPublicAccessOptionsInput(v *ModifyVpcBlockPublicAccessOptionsInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if len(v.InternetGatewayBlockMode) > 0 { + objectKey := object.Key("InternetGatewayBlockMode") + objectKey.String(string(v.InternetGatewayBlockMode)) + } + + return nil +} + func awsEc2query_serializeOpDocumentModifyVpcEndpointConnectionNotificationInput(v *ModifyVpcEndpointConnectionNotificationInput, value query.Value) error { object := value.Object() _ = object @@ -74310,6 +75045,13 @@ func awsEc2query_serializeOpDocumentRunInstancesInput(v *RunInstancesInput, valu } } + if v.Operator != nil { + objectKey := object.Key("Operator") + if err := awsEc2query_serializeDocumentOperatorRequest(v.Operator, objectKey); err != nil { + return err + } + } + if v.Placement != nil { objectKey := object.Key("Placement") if err := awsEc2query_serializeDocumentPlacement(v.Placement, objectKey); err != nil { diff --git a/service/ec2/snapshot/api_op_CreateVpcBlockPublicAccessExclusion.go.snap b/service/ec2/snapshot/api_op_CreateVpcBlockPublicAccessExclusion.go.snap new file mode 100644 index 00000000000..9b8184174e7 --- /dev/null +++ b/service/ec2/snapshot/api_op_CreateVpcBlockPublicAccessExclusion.go.snap @@ -0,0 +1,41 @@ +CreateVpcBlockPublicAccessExclusion + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/ec2/snapshot/api_op_DeleteVpcBlockPublicAccessExclusion.go.snap b/service/ec2/snapshot/api_op_DeleteVpcBlockPublicAccessExclusion.go.snap new file mode 100644 index 00000000000..7778e507e0c --- /dev/null +++ b/service/ec2/snapshot/api_op_DeleteVpcBlockPublicAccessExclusion.go.snap @@ -0,0 +1,41 @@ +DeleteVpcBlockPublicAccessExclusion + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/ec2/snapshot/api_op_DescribeVpcBlockPublicAccessExclusions.go.snap b/service/ec2/snapshot/api_op_DescribeVpcBlockPublicAccessExclusions.go.snap new file mode 100644 index 00000000000..fa14875cb2d --- /dev/null +++ b/service/ec2/snapshot/api_op_DescribeVpcBlockPublicAccessExclusions.go.snap @@ -0,0 +1,40 @@ +DescribeVpcBlockPublicAccessExclusions + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/ec2/snapshot/api_op_DescribeVpcBlockPublicAccessOptions.go.snap b/service/ec2/snapshot/api_op_DescribeVpcBlockPublicAccessOptions.go.snap new file mode 100644 index 00000000000..7b381e8af6b --- /dev/null +++ b/service/ec2/snapshot/api_op_DescribeVpcBlockPublicAccessOptions.go.snap @@ -0,0 +1,40 @@ +DescribeVpcBlockPublicAccessOptions + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/ec2/snapshot/api_op_ModifyVpcBlockPublicAccessExclusion.go.snap b/service/ec2/snapshot/api_op_ModifyVpcBlockPublicAccessExclusion.go.snap new file mode 100644 index 00000000000..0d51da69d47 --- /dev/null +++ b/service/ec2/snapshot/api_op_ModifyVpcBlockPublicAccessExclusion.go.snap @@ -0,0 +1,41 @@ +ModifyVpcBlockPublicAccessExclusion + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/ec2/snapshot/api_op_ModifyVpcBlockPublicAccessOptions.go.snap b/service/ec2/snapshot/api_op_ModifyVpcBlockPublicAccessOptions.go.snap new file mode 100644 index 00000000000..5b3cbd9850e --- /dev/null +++ b/service/ec2/snapshot/api_op_ModifyVpcBlockPublicAccessOptions.go.snap @@ -0,0 +1,41 @@ +ModifyVpcBlockPublicAccessOptions + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/ec2/snapshot_test.go b/service/ec2/snapshot_test.go index db30388b899..16402fc5b66 100644 --- a/service/ec2/snapshot_test.go +++ b/service/ec2/snapshot_test.go @@ -1682,6 +1682,18 @@ func TestCheckSnapshot_CreateVpc(t *testing.T) { } } +func TestCheckSnapshot_CreateVpcBlockPublicAccessExclusion(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateVpcBlockPublicAccessExclusion(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "CreateVpcBlockPublicAccessExclusion") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_CreateVpcEndpoint(t *testing.T) { svc := New(Options{}) _, err := svc.CreateVpcEndpoint(context.Background(), nil, func(o *Options) { @@ -2582,6 +2594,18 @@ func TestCheckSnapshot_DeleteVpc(t *testing.T) { } } +func TestCheckSnapshot_DeleteVpcBlockPublicAccessExclusion(t *testing.T) { + svc := New(Options{}) + _, err := svc.DeleteVpcBlockPublicAccessExclusion(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "DeleteVpcBlockPublicAccessExclusion") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_DeleteVpcEndpointConnectionNotifications(t *testing.T) { svc := New(Options{}) _, err := svc.DeleteVpcEndpointConnectionNotifications(context.Background(), nil, func(o *Options) { @@ -4478,6 +4502,30 @@ func TestCheckSnapshot_DescribeVpcAttribute(t *testing.T) { } } +func TestCheckSnapshot_DescribeVpcBlockPublicAccessExclusions(t *testing.T) { + svc := New(Options{}) + _, err := svc.DescribeVpcBlockPublicAccessExclusions(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "DescribeVpcBlockPublicAccessExclusions") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestCheckSnapshot_DescribeVpcBlockPublicAccessOptions(t *testing.T) { + svc := New(Options{}) + _, err := svc.DescribeVpcBlockPublicAccessOptions(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "DescribeVpcBlockPublicAccessOptions") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_DescribeVpcClassicLink(t *testing.T) { svc := New(Options{}) _, err := svc.DescribeVpcClassicLink(context.Background(), nil, func(o *Options) { @@ -6710,6 +6758,30 @@ func TestCheckSnapshot_ModifyVpcAttribute(t *testing.T) { } } +func TestCheckSnapshot_ModifyVpcBlockPublicAccessExclusion(t *testing.T) { + svc := New(Options{}) + _, err := svc.ModifyVpcBlockPublicAccessExclusion(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "ModifyVpcBlockPublicAccessExclusion") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestCheckSnapshot_ModifyVpcBlockPublicAccessOptions(t *testing.T) { + svc := New(Options{}) + _, err := svc.ModifyVpcBlockPublicAccessOptions(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "ModifyVpcBlockPublicAccessOptions") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_ModifyVpcEndpoint(t *testing.T) { svc := New(Options{}) _, err := svc.ModifyVpcEndpoint(context.Background(), nil, func(o *Options) { @@ -9325,6 +9397,18 @@ func TestUpdateSnapshot_CreateVpc(t *testing.T) { } } +func TestUpdateSnapshot_CreateVpcBlockPublicAccessExclusion(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateVpcBlockPublicAccessExclusion(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "CreateVpcBlockPublicAccessExclusion") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_CreateVpcEndpoint(t *testing.T) { svc := New(Options{}) _, err := svc.CreateVpcEndpoint(context.Background(), nil, func(o *Options) { @@ -10225,6 +10309,18 @@ func TestUpdateSnapshot_DeleteVpc(t *testing.T) { } } +func TestUpdateSnapshot_DeleteVpcBlockPublicAccessExclusion(t *testing.T) { + svc := New(Options{}) + _, err := svc.DeleteVpcBlockPublicAccessExclusion(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "DeleteVpcBlockPublicAccessExclusion") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_DeleteVpcEndpointConnectionNotifications(t *testing.T) { svc := New(Options{}) _, err := svc.DeleteVpcEndpointConnectionNotifications(context.Background(), nil, func(o *Options) { @@ -12121,6 +12217,30 @@ func TestUpdateSnapshot_DescribeVpcAttribute(t *testing.T) { } } +func TestUpdateSnapshot_DescribeVpcBlockPublicAccessExclusions(t *testing.T) { + svc := New(Options{}) + _, err := svc.DescribeVpcBlockPublicAccessExclusions(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "DescribeVpcBlockPublicAccessExclusions") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestUpdateSnapshot_DescribeVpcBlockPublicAccessOptions(t *testing.T) { + svc := New(Options{}) + _, err := svc.DescribeVpcBlockPublicAccessOptions(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "DescribeVpcBlockPublicAccessOptions") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_DescribeVpcClassicLink(t *testing.T) { svc := New(Options{}) _, err := svc.DescribeVpcClassicLink(context.Background(), nil, func(o *Options) { @@ -14353,6 +14473,30 @@ func TestUpdateSnapshot_ModifyVpcAttribute(t *testing.T) { } } +func TestUpdateSnapshot_ModifyVpcBlockPublicAccessExclusion(t *testing.T) { + svc := New(Options{}) + _, err := svc.ModifyVpcBlockPublicAccessExclusion(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "ModifyVpcBlockPublicAccessExclusion") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestUpdateSnapshot_ModifyVpcBlockPublicAccessOptions(t *testing.T) { + svc := New(Options{}) + _, err := svc.ModifyVpcBlockPublicAccessOptions(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "ModifyVpcBlockPublicAccessOptions") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_ModifyVpcEndpoint(t *testing.T) { svc := New(Options{}) _, err := svc.ModifyVpcEndpoint(context.Background(), nil, func(o *Options) { diff --git a/service/ec2/types/enums.go b/service/ec2/types/enums.go index 52abe006299..51930fa6a91 100644 --- a/service/ec2/types/enums.go +++ b/service/ec2/types/enums.go @@ -695,6 +695,27 @@ func (BgpStatus) Values() []BgpStatus { } } +type BlockPublicAccessMode string + +// Enum values for BlockPublicAccessMode +const ( + BlockPublicAccessModeOff BlockPublicAccessMode = "off" + BlockPublicAccessModeBlockBidirectional BlockPublicAccessMode = "block-bidirectional" + BlockPublicAccessModeBlockIngress BlockPublicAccessMode = "block-ingress" +) + +// Values returns all known values for BlockPublicAccessMode. 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 (BlockPublicAccessMode) Values() []BlockPublicAccessMode { + return []BlockPublicAccessMode{ + "off", + "block-bidirectional", + "block-ingress", + } +} + type BootModeType string // Enum values for BootModeType @@ -1002,8 +1023,9 @@ type CapacityReservationPreference string // Enum values for CapacityReservationPreference const ( - CapacityReservationPreferenceOpen CapacityReservationPreference = "open" - CapacityReservationPreferenceNone CapacityReservationPreference = "none" + CapacityReservationPreferenceCapacityReservationsOnly CapacityReservationPreference = "capacity-reservations-only" + CapacityReservationPreferenceOpen CapacityReservationPreference = "open" + CapacityReservationPreferenceNone CapacityReservationPreference = "none" ) // Values returns all known values for CapacityReservationPreference. Note that @@ -1013,6 +1035,7 @@ const ( // The ordering of this slice is not guaranteed to be stable across updates. func (CapacityReservationPreference) Values() []CapacityReservationPreference { return []CapacityReservationPreference{ + "capacity-reservations-only", "open", "none", } @@ -1384,6 +1407,7 @@ const ( CpuManufacturerIntel CpuManufacturer = "intel" CpuManufacturerAmd CpuManufacturer = "amd" CpuManufacturerAmazonWebServices CpuManufacturer = "amazon-web-services" + CpuManufacturerApple CpuManufacturer = "apple" ) // Values returns all known values for CpuManufacturer. Note that this can be @@ -1395,6 +1419,7 @@ func (CpuManufacturer) Values() []CpuManufacturer { "intel", "amd", "amazon-web-services", + "apple", } } @@ -4986,6 +5011,47 @@ func (InterfaceProtocolType) Values() []InterfaceProtocolType { } } +type InternetGatewayBlockMode string + +// Enum values for InternetGatewayBlockMode +const ( + InternetGatewayBlockModeOff InternetGatewayBlockMode = "off" + InternetGatewayBlockModeBlockBidirectional InternetGatewayBlockMode = "block-bidirectional" + InternetGatewayBlockModeBlockIngress InternetGatewayBlockMode = "block-ingress" +) + +// Values returns all known values for InternetGatewayBlockMode. 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 (InternetGatewayBlockMode) Values() []InternetGatewayBlockMode { + return []InternetGatewayBlockMode{ + "off", + "block-bidirectional", + "block-ingress", + } +} + +type InternetGatewayExclusionMode string + +// Enum values for InternetGatewayExclusionMode +const ( + InternetGatewayExclusionModeAllowBidirectional InternetGatewayExclusionMode = "allow-bidirectional" + InternetGatewayExclusionModeAllowEgress InternetGatewayExclusionMode = "allow-egress" +) + +// Values returns all known values for InternetGatewayExclusionMode. 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 (InternetGatewayExclusionMode) Values() []InternetGatewayExclusionMode { + return []InternetGatewayExclusionMode{ + "allow-bidirectional", + "allow-egress", + } +} + type IpAddressType string // Enum values for IpAddressType @@ -9246,6 +9312,63 @@ func (VpcAttributeName) Values() []VpcAttributeName { } } +type VpcBlockPublicAccessExclusionState string + +// Enum values for VpcBlockPublicAccessExclusionState +const ( + VpcBlockPublicAccessExclusionStateCreateInProgress VpcBlockPublicAccessExclusionState = "create-in-progress" + VpcBlockPublicAccessExclusionStateCreateComplete VpcBlockPublicAccessExclusionState = "create-complete" + VpcBlockPublicAccessExclusionStateCreateFailed VpcBlockPublicAccessExclusionState = "create-failed" + VpcBlockPublicAccessExclusionStateUpdateInProgress VpcBlockPublicAccessExclusionState = "update-in-progress" + VpcBlockPublicAccessExclusionStateUpdateComplete VpcBlockPublicAccessExclusionState = "update-complete" + VpcBlockPublicAccessExclusionStateUpdateFailed VpcBlockPublicAccessExclusionState = "update-failed" + VpcBlockPublicAccessExclusionStateDeleteInProgress VpcBlockPublicAccessExclusionState = "delete-in-progress" + VpcBlockPublicAccessExclusionStateDeleteComplete VpcBlockPublicAccessExclusionState = "delete-complete" + VpcBlockPublicAccessExclusionStateDisableInProgress VpcBlockPublicAccessExclusionState = "disable-in-progress" + VpcBlockPublicAccessExclusionStateDisableComplete VpcBlockPublicAccessExclusionState = "disable-complete" +) + +// Values returns all known values for VpcBlockPublicAccessExclusionState. 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 (VpcBlockPublicAccessExclusionState) Values() []VpcBlockPublicAccessExclusionState { + return []VpcBlockPublicAccessExclusionState{ + "create-in-progress", + "create-complete", + "create-failed", + "update-in-progress", + "update-complete", + "update-failed", + "delete-in-progress", + "delete-complete", + "disable-in-progress", + "disable-complete", + } +} + +type VpcBlockPublicAccessState string + +// Enum values for VpcBlockPublicAccessState +const ( + VpcBlockPublicAccessStateDefaultState VpcBlockPublicAccessState = "default-state" + VpcBlockPublicAccessStateUpdateInProgress VpcBlockPublicAccessState = "update-in-progress" + VpcBlockPublicAccessStateUpdateComplete VpcBlockPublicAccessState = "update-complete" +) + +// Values returns all known values for VpcBlockPublicAccessState. 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 (VpcBlockPublicAccessState) Values() []VpcBlockPublicAccessState { + return []VpcBlockPublicAccessState{ + "default-state", + "update-in-progress", + "update-complete", + } +} + type VpcCidrBlockStateCode string // Enum values for VpcCidrBlockStateCode diff --git a/service/ec2/types/types.go b/service/ec2/types/types.go index 57109edaafe..1976730985f 100644 --- a/service/ec2/types/types.go +++ b/service/ec2/types/types.go @@ -858,6 +858,42 @@ type BaselineEbsBandwidthMbpsRequest struct { noSmithyDocumentSerde } +// The baseline performance to consider, using an instance family as a baseline +// reference. The instance family establishes the lowest acceptable level of +// performance. Amazon EC2 uses this baseline to guide instance type selection, but +// there is no guarantee that the selected instance types will always exceed the +// baseline for every application. +// +// Currently, this parameter only supports CPU performance as a baseline +// performance factor. For example, specifying c6i would use the CPU performance +// of the c6i family as the baseline reference. +type BaselinePerformanceFactors struct { + + // The CPU performance to consider, using an instance family as the baseline + // reference. + Cpu *CpuPerformanceFactor + + noSmithyDocumentSerde +} + +// The baseline performance to consider, using an instance family as a baseline +// reference. The instance family establishes the lowest acceptable level of +// performance. Amazon EC2 uses this baseline to guide instance type selection, but +// there is no guarantee that the selected instance types will always exceed the +// baseline for every application. +// +// Currently, this parameter only supports CPU performance as a baseline +// performance factor. For example, specifying c6i would use the CPU performance +// of the c6i family as the baseline reference. +type BaselinePerformanceFactorsRequest struct { + + // The CPU performance to consider, using an instance family as the baseline + // reference. + Cpu *CpuPerformanceFactorRequest + + noSmithyDocumentSerde +} + type BlobAttributeValue struct { Value []byte @@ -897,6 +933,27 @@ type BlockDeviceMapping struct { noSmithyDocumentSerde } +// The state of VPC Block Public Access (BPA). +type BlockPublicAccessStates struct { + + // The mode of VPC BPA. + // + // - bidirectional-access-allowed : VPC BPA is not enabled and traffic is allowed + // to and from internet gateways and egress-only internet gateways in this Region. + // + // - bidirectional-access-blocked : Block all traffic to and from internet + // gateways and egress-only internet gateways in this Region (except for excluded + // VPCs and subnets). + // + // - ingress-access-blocked : Block all internet traffic to the VPCs in this + // Region (except for VPCs or subnets which are excluded). Only traffic to and from + // NAT gateways and egress-only internet gateways is allowed because these gateways + // only allow outbound connections to be established. + InternetGatewayBlockMode BlockPublicAccessMode + + noSmithyDocumentSerde +} + // Describes a bundle task. type BundleTask struct { @@ -1509,24 +1566,30 @@ type CapacityReservationOptionsRequest struct { noSmithyDocumentSerde } -// Describes an instance's Capacity Reservation targeting option. You can specify -// only one parameter at a time. If you specify CapacityReservationPreference and -// CapacityReservationTarget , the request fails. +// Describes an instance's Capacity Reservation targeting option. // // Use the CapacityReservationPreference parameter to configure the instance to -// run as an On-Demand Instance or to run in any open Capacity Reservation that -// has matching attributes (instance type, platform, Availability Zone). Use the -// CapacityReservationTarget parameter to explicitly target a specific Capacity -// Reservation or a Capacity Reservation group. +// run as an On-Demand Instance, to run in any open Capacity Reservation that has +// matching attributes, or to run only in a Capacity Reservation or Capacity +// Reservation group. Use the CapacityReservationTarget parameter to explicitly +// target a specific Capacity Reservation or a Capacity Reservation group. +// +// You can only specify CapacityReservationPreference and CapacityReservationTarget +// if the CapacityReservationPreference is capacity-reservations-only . type CapacityReservationSpecification struct { // Indicates the instance's Capacity Reservation preferences. Possible preferences // include: // + // - capacity-reservations-only - The instance will only run in a Capacity + // Reservation or Capacity Reservation group. If capacity isn't available, the + // instance will fail to launch. + // // - open - The instance can run in any open Capacity Reservation that has - // matching attributes (instance type, platform, Availability Zone). + // matching attributes (instance type, platform, Availability Zone, and tenancy). + // If capacity isn't available, the instance runs as an On-Demand Instance. // - // - none - The instance avoids running in a Capacity Reservation even if one is + // - none - The instance doesn't run in a Capacity Reservation even if one is // available. The instance runs as an On-Demand Instance. CapacityReservationPreference CapacityReservationPreference @@ -2423,6 +2486,36 @@ type CpuOptionsRequest struct { noSmithyDocumentSerde } +// The CPU performance to consider, using an instance family as the baseline +// reference. +type CpuPerformanceFactor struct { + + // Specify an instance family to use as the baseline reference for CPU + // performance. All instance types that match your specified attributes will be + // compared against the CPU performance of the referenced instance family, + // regardless of CPU manufacturer or architecture differences. + // + // Currently, only one instance family can be specified in the list. + References []PerformanceFactorReference + + noSmithyDocumentSerde +} + +// The CPU performance to consider, using an instance family as the baseline +// reference. +type CpuPerformanceFactorRequest struct { + + // Specify an instance family to use as the baseline reference for CPU + // performance. All instance types that match your specified attributes will be + // compared against the CPU performance of the referenced instance family, + // regardless of CPU manufacturer or architecture differences. + // + // Currently, only one instance family can be specified in the list. + References []PerformanceFactorReferenceRequest + + noSmithyDocumentSerde +} + // Describes the instances that could not be launched by the fleet. type CreateFleetError struct { @@ -3501,6 +3594,9 @@ type EbsInstanceBlockDevice struct { // Indicates whether the volume is deleted on instance termination. DeleteOnTermination *bool + // The entity that manages the EBS volume. + Operator *OperatorResponse + // The attachment state. Status AttachmentStatus @@ -6372,6 +6468,9 @@ type Instance struct { // The network interfaces for the instance. NetworkInterfaces []InstanceNetworkInterface + // The entity that manages the instance. + Operator *OperatorResponse + // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string @@ -6784,6 +6883,9 @@ type InstanceImageMetadata struct { // The time the instance was launched. LaunchTime *time.Time + // The entity that manages the instance. + Operator *OperatorResponse + // The ID of the Amazon Web Services account that owns the instance. OwnerId *string @@ -7063,6 +7165,9 @@ type InstanceNetworkInterface struct { // The ID of the network interface. NetworkInterfaceId *string + // The entity that manages the network interface. + Operator *OperatorResponse + // The ID of the Amazon Web Services account that created the network interface. OwnerId *string @@ -7450,6 +7555,17 @@ type InstanceRequirements struct { // [Amazon EBS–optimized instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html BaselineEbsBandwidthMbps *BaselineEbsBandwidthMbps + // The baseline performance to consider, using an instance family as a baseline + // reference. The instance family establishes the lowest acceptable level of + // performance. Amazon EC2 uses this baseline to guide instance type selection, but + // there is no guarantee that the selected instance types will always exceed the + // baseline for every application. Currently, this parameter only supports CPU + // performance as a baseline performance factor. For more information, see [Performance protection]in the + // Amazon EC2 User Guide. + // + // [Performance protection]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2fleet-abis-performance-protection + BaselinePerformanceFactors *BaselinePerformanceFactors + // Indicates whether burstable performance T instance types are included, // excluded, or required. For more information, see [Burstable performance instances]. // @@ -7806,6 +7922,17 @@ type InstanceRequirementsRequest struct { // [Amazon EBS–optimized instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html BaselineEbsBandwidthMbps *BaselineEbsBandwidthMbpsRequest + // The baseline performance to consider, using an instance family as a baseline + // reference. The instance family establishes the lowest acceptable level of + // performance. Amazon EC2 uses this baseline to guide instance type selection, but + // there is no guarantee that the selected instance types will always exceed the + // baseline for every application. Currently, this parameter only supports CPU + // performance as a baseline performance factor. For more information, see [Performance protection]in the + // Amazon EC2 User Guide. + // + // [Performance protection]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2fleet-abis-performance-protection + BaselinePerformanceFactors *BaselinePerformanceFactorsRequest + // Indicates whether burstable performance T instance types are included, // excluded, or required. For more information, see [Burstable performance instances]. // @@ -8124,6 +8251,9 @@ type InstanceStatus struct { // such as impaired reachability. InstanceStatus *InstanceStatusSummary + // The entity that manages the instance. + Operator *OperatorResponse + // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string @@ -9750,6 +9880,9 @@ type LaunchTemplate struct { // The name of the launch template. LaunchTemplateName *string + // The entity that manages the launch template. + Operator *OperatorResponse + // The tags for the launch template. Tags []Tag @@ -10892,6 +11025,9 @@ type LaunchTemplateVersion struct { // The name of the launch template. LaunchTemplateName *string + // The entity that manages the launch template. + Operator *OperatorResponse + // The description for the version. VersionDescription *string @@ -12321,6 +12457,9 @@ type NetworkInterface struct { // The ID of the network interface. NetworkInterfaceId *string + // The entity that manages the network interface. + Operator *OperatorResponse + // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string @@ -12757,6 +12896,29 @@ type OnDemandOptionsRequest struct { noSmithyDocumentSerde } +// The entity that manages the resource. +type OperatorRequest struct { + + // The entity that manages the resource. + Principal *string + + noSmithyDocumentSerde +} + +// Describes whether the resource is managed by an entity and, if so, describes +// the entity that manages it. +type OperatorResponse struct { + + // If true , the resource is managed by an entity. + Managed *bool + + // If managed is true , then the principal is returned. The principal is the entity + // that manages the resource. + Principal *string + + noSmithyDocumentSerde +} + // Describes a packet header statement. type PacketHeaderStatement struct { @@ -13019,6 +13181,102 @@ type PeeringTgwInfo struct { noSmithyDocumentSerde } +// Specify an instance family to use as the baseline reference for CPU +// performance. All instance types that match your specified attributes will be +// compared against the CPU performance of the referenced instance family, +// regardless of CPU manufacturer or architecture. +// +// Currently, only one instance family can be specified in the list. +type PerformanceFactorReference struct { + + // The instance family to use as a baseline reference. + // + // Ensure that you specify the correct value for the instance family. The instance + // family is everything before the period ( . ) in the instance type name. For + // example, in the instance type c6i.large , the instance family is c6i , not c6 . + // For more information, see [Amazon EC2 instance type naming conventions]in Amazon EC2 Instance Types. + // + // The following instance families are not supported for performance protection: + // + // - c1 + // + // - g3 | g3s + // + // - hpc7g + // + // - m1 | m2 + // + // - mac1 | mac2 | mac2-m1ultra | mac2-m2 | mac2-m2pro + // + // - p3dn | p4d | p5 + // + // - t1 + // + // - u-12tb1 | u-18tb1 | u-24tb1 | u-3tb1 | u-6tb1 | u-9tb1 | u7i-12tb | + // u7in-16tb | u7in-24tb | u7in-32tb + // + // If you enable performance protection by specifying a supported instance family, + // the returned instance types will exclude the above unsupported instance + // families. + // + // If you specify an unsupported instance family as a value for baseline + // performance, the API returns an empty response for and an exception for , , , + // and . + // + // [Amazon EC2 instance type naming conventions]: https://docs.aws.amazon.com/ec2/latest/instancetypes/instance-type-names.html + InstanceFamily *string + + noSmithyDocumentSerde +} + +// Specify an instance family to use as the baseline reference for CPU +// performance. All instance types that match your specified attributes will be +// compared against the CPU performance of the referenced instance family, +// regardless of CPU manufacturer or architecture. +// +// Currently, only one instance family can be specified in the list. +type PerformanceFactorReferenceRequest struct { + + // The instance family to use as a baseline reference. + // + // Ensure that you specify the correct value for the instance family. The instance + // family is everything before the period ( . ) in the instance type name. For + // example, in the instance type c6i.large , the instance family is c6i , not c6 . + // For more information, see [Amazon EC2 instance type naming conventions]in Amazon EC2 Instance Types. + // + // The following instance families are not supported for performance protection: + // + // - c1 + // + // - g3 | g3s + // + // - hpc7g + // + // - m1 | m2 + // + // - mac1 | mac2 | mac2-m1ultra | mac2-m2 | mac2-m2pro + // + // - p3dn | p4d | p5 + // + // - t1 + // + // - u-12tb1 | u-18tb1 | u-24tb1 | u-3tb1 | u-6tb1 | u-9tb1 | u7i-12tb | + // u7in-16tb | u7in-24tb | u7in-32tb + // + // If you enable performance protection by specifying a supported instance family, + // the returned instance types will exclude the above unsupported instance + // families. + // + // If you specify an unsupported instance family as a value for baseline + // performance, the API returns an empty response for and an exception for , , , + // and . + // + // [Amazon EC2 instance type naming conventions]: https://docs.aws.amazon.com/ec2/latest/instancetypes/instance-type-names.html + InstanceFamily *string + + noSmithyDocumentSerde +} + // The Diffie-Hellmann group number for phase 1 IKE negotiations. type Phase1DHGroupNumbersListValue struct { @@ -14065,6 +14323,9 @@ type RequestLaunchTemplateData struct { // The network interfaces for the instance. NetworkInterfaces []LaunchTemplateInstanceNetworkInterfaceSpecificationRequest + // The entity that manages the launch template. + Operator *OperatorRequest + // The placement for the instance. Placement *LaunchTemplatePlacementRequest @@ -14702,6 +14963,9 @@ type ResponseLaunchTemplateData struct { // The network interfaces. NetworkInterfaces []LaunchTemplateInstanceNetworkInterfaceSpecification + // The entity that manages the launch template. + Operator *OperatorResponse + // The placement of the instance. Placement *LaunchTemplatePlacement @@ -17192,6 +17456,9 @@ type Subnet struct { // for any stopped instances are considered unavailable. AvailableIpAddressCount *int32 + // The state of VPC Block Public Access (BPA). + BlockPublicAccessStates *BlockPublicAccessStates + // The IPv4 CIDR block assigned to the subnet. CidrBlock *string @@ -19625,6 +19892,9 @@ type Volume struct { // Indicates whether Amazon EBS Multi-Attach is enabled. MultiAttachEnabled *bool + // The entity that manages the volume. + Operator *OperatorResponse + // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string @@ -19867,6 +20137,9 @@ type VolumeStatusItem struct { // Describes a VPC. type Vpc struct { + // The state of VPC Block Public Access (BPA). + BlockPublicAccessStates *BlockPublicAccessStates + // The primary IPv4 CIDR block for the VPC. CidrBlock *string @@ -19912,6 +20185,97 @@ type VpcAttachment struct { noSmithyDocumentSerde } +// A VPC BPA exclusion is a mode that can be applied to a single VPC or subnet +// that exempts it from the account’s BPA mode and will allow bidirectional or +// egress-only access. You can create BPA exclusions for VPCs and subnets even when +// BPA is not enabled on the account to ensure that there is no traffic disruption +// to the exclusions when VPC BPA is turned on. To learn more about VPC BPA, see [Block public access to VPCs and subnets] +// in the Amazon VPC User Guide. +// +// [Block public access to VPCs and subnets]: https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html +type VpcBlockPublicAccessExclusion struct { + + // When the exclusion was created. + CreationTimestamp *time.Time + + // When the exclusion was deleted. + DeletionTimestamp *time.Time + + // The ID of the exclusion. + ExclusionId *string + + // The exclusion mode for internet gateway traffic. + // + // - bidirectional-access-allowed : Allow all internet traffic to and from the + // excluded VPCs and subnets. + // + // - egress-access-allowed : Allow outbound internet traffic from the excluded + // VPCs and subnets. Block inbound internet traffic to the excluded VPCs and + // subnets. Only applies when VPC Block Public Access is set to Bidirectional. + InternetGatewayExclusionMode InternetGatewayExclusionMode + + // When the exclusion was last updated. + LastUpdateTimestamp *time.Time + + // The reason for the current exclusion state. + Reason *string + + // The ARN of the exclusion. + ResourceArn *string + + // The state of the exclusion. + State VpcBlockPublicAccessExclusionState + + // tag - 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 +} + +// VPC Block public Access (BPA) enables you to block resources in VPCs and +// subnets that you own in a Region from reaching or being reached from the +// internet through internet gateways and egress-only internet gateways. To learn +// more about VPC BPA, see [Block public access to VPCs and subnets]in the Amazon VPC User Guide. +// +// [Block public access to VPCs and subnets]: https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html +type VpcBlockPublicAccessOptions struct { + + // An Amazon Web Services account ID. + AwsAccountId *string + + // An Amazon Web Services Region. + AwsRegion *string + + // The current mode of VPC BPA. + // + // - bidirectional-access-allowed : VPC BPA is not enabled and traffic is allowed + // to and from internet gateways and egress-only internet gateways in this Region. + // + // - bidirectional-access-blocked : Block all traffic to and from internet + // gateways and egress-only internet gateways in this Region (except for excluded + // VPCs and subnets). + // + // - ingress-access-blocked : Block all internet traffic to the VPCs in this + // Region (except for VPCs or subnets which are excluded). Only traffic to and from + // NAT gateways and egress-only internet gateways is allowed because these gateways + // only allow outbound connections to be established. + InternetGatewayBlockMode InternetGatewayBlockMode + + // The last time the VPC BPA mode was updated. + LastUpdateTimestamp *time.Time + + // The reason for the current state. + Reason *string + + // The current state of VPC BPA. + State VpcBlockPublicAccessState + + noSmithyDocumentSerde +} + // Describes an IPv4 CIDR block associated with a VPC. type VpcCidrBlockAssociation struct { diff --git a/service/ec2/validators.go b/service/ec2/validators.go index 30ca8697536..09bd28f284c 100644 --- a/service/ec2/validators.go +++ b/service/ec2/validators.go @@ -2370,6 +2370,26 @@ func (m *validateOpCreateVolume) HandleInitialize(ctx context.Context, in middle return next.HandleInitialize(ctx, in) } +type validateOpCreateVpcBlockPublicAccessExclusion struct { +} + +func (*validateOpCreateVpcBlockPublicAccessExclusion) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateVpcBlockPublicAccessExclusion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateVpcBlockPublicAccessExclusionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateVpcBlockPublicAccessExclusionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateVpcEndpointConnectionNotification struct { } @@ -3750,6 +3770,26 @@ func (m *validateOpDeleteVolume) HandleInitialize(ctx context.Context, in middle return next.HandleInitialize(ctx, in) } +type validateOpDeleteVpcBlockPublicAccessExclusion struct { +} + +func (*validateOpDeleteVpcBlockPublicAccessExclusion) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteVpcBlockPublicAccessExclusion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteVpcBlockPublicAccessExclusionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteVpcBlockPublicAccessExclusionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteVpcEndpointConnectionNotifications struct { } @@ -7450,6 +7490,46 @@ func (m *validateOpModifyVpcAttribute) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpModifyVpcBlockPublicAccessExclusion struct { +} + +func (*validateOpModifyVpcBlockPublicAccessExclusion) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpModifyVpcBlockPublicAccessExclusion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ModifyVpcBlockPublicAccessExclusionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpModifyVpcBlockPublicAccessExclusionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpModifyVpcBlockPublicAccessOptions struct { +} + +func (*validateOpModifyVpcBlockPublicAccessOptions) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpModifyVpcBlockPublicAccessOptions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ModifyVpcBlockPublicAccessOptionsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpModifyVpcBlockPublicAccessOptionsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpModifyVpcEndpointConnectionNotification struct { } @@ -9462,6 +9542,10 @@ func addOpCreateVolumeValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateVolume{}, middleware.After) } +func addOpCreateVpcBlockPublicAccessExclusionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateVpcBlockPublicAccessExclusion{}, middleware.After) +} + func addOpCreateVpcEndpointConnectionNotificationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateVpcEndpointConnectionNotification{}, middleware.After) } @@ -9738,6 +9822,10 @@ func addOpDeleteVolumeValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteVolume{}, middleware.After) } +func addOpDeleteVpcBlockPublicAccessExclusionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteVpcBlockPublicAccessExclusion{}, middleware.After) +} + func addOpDeleteVpcEndpointConnectionNotificationsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteVpcEndpointConnectionNotifications{}, middleware.After) } @@ -10478,6 +10566,14 @@ func addOpModifyVpcAttributeValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpModifyVpcAttribute{}, middleware.After) } +func addOpModifyVpcBlockPublicAccessExclusionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpModifyVpcBlockPublicAccessExclusion{}, middleware.After) +} + +func addOpModifyVpcBlockPublicAccessOptionsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpModifyVpcBlockPublicAccessOptions{}, middleware.After) +} + func addOpModifyVpcEndpointConnectionNotificationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpModifyVpcEndpointConnectionNotification{}, middleware.After) } @@ -13770,6 +13866,21 @@ func validateOpCreateVolumeInput(v *CreateVolumeInput) error { } } +func validateOpCreateVpcBlockPublicAccessExclusionInput(v *CreateVpcBlockPublicAccessExclusionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateVpcBlockPublicAccessExclusionInput"} + if len(v.InternetGatewayExclusionMode) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("InternetGatewayExclusionMode")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateVpcEndpointConnectionNotificationInput(v *CreateVpcEndpointConnectionNotificationInput) error { if v == nil { return nil @@ -14838,6 +14949,21 @@ func validateOpDeleteVolumeInput(v *DeleteVolumeInput) error { } } +func validateOpDeleteVpcBlockPublicAccessExclusionInput(v *DeleteVpcBlockPublicAccessExclusionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteVpcBlockPublicAccessExclusionInput"} + if v.ExclusionId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ExclusionId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteVpcEndpointConnectionNotificationsInput(v *DeleteVpcEndpointConnectionNotificationsInput) error { if v == nil { return nil @@ -17905,6 +18031,39 @@ func validateOpModifyVpcAttributeInput(v *ModifyVpcAttributeInput) error { } } +func validateOpModifyVpcBlockPublicAccessExclusionInput(v *ModifyVpcBlockPublicAccessExclusionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ModifyVpcBlockPublicAccessExclusionInput"} + if v.ExclusionId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ExclusionId")) + } + if len(v.InternetGatewayExclusionMode) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("InternetGatewayExclusionMode")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpModifyVpcBlockPublicAccessOptionsInput(v *ModifyVpcBlockPublicAccessOptionsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ModifyVpcBlockPublicAccessOptionsInput"} + if len(v.InternetGatewayBlockMode) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("InternetGatewayBlockMode")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpModifyVpcEndpointConnectionNotificationInput(v *ModifyVpcEndpointConnectionNotificationInput) error { if v == nil { return nil diff --git a/service/ec2instanceconnect/CHANGELOG.md b/service/ec2instanceconnect/CHANGELOG.md index fd929e9a26b..ebbac696aa7 100644 --- a/service/ec2instanceconnect/CHANGELOG.md +++ b/service/ec2instanceconnect/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/ec2instanceconnect/go.mod b/service/ec2instanceconnect/go.mod index 824c8d0eb97..3a2170744b2 100644 --- a/service/ec2instanceconnect/go.mod +++ b/service/ec2instanceconnect/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ec2instanceconnect go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ec2instanceconnect/go.sum b/service/ec2instanceconnect/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/ec2instanceconnect/go.sum +++ b/service/ec2instanceconnect/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/ec2instanceconnect/go_module_metadata.go b/service/ec2instanceconnect/go_module_metadata.go index dafdc92195f..8d1ad367c55 100644 --- a/service/ec2instanceconnect/go_module_metadata.go +++ b/service/ec2instanceconnect/go_module_metadata.go @@ -3,4 +3,4 @@ package ec2instanceconnect // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.5" +const goModuleVersion = "1.27.6" diff --git a/service/ecr/CHANGELOG.md b/service/ecr/CHANGELOG.md index 088cf4f06e9..b6b0bb8116f 100644 --- a/service/ecr/CHANGELOG.md +++ b/service/ecr/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.36.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.36.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/ecr/go.mod b/service/ecr/go.mod index 6571a1852be..b3a8cb77b10 100644 --- a/service/ecr/go.mod +++ b/service/ecr/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ecr go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ecr/go.sum b/service/ecr/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/ecr/go.sum +++ b/service/ecr/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/ecr/go_module_metadata.go b/service/ecr/go_module_metadata.go index 8911e4517cf..99311af732b 100644 --- a/service/ecr/go_module_metadata.go +++ b/service/ecr/go_module_metadata.go @@ -3,4 +3,4 @@ package ecr // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.36.5" +const goModuleVersion = "1.36.6" diff --git a/service/ecrpublic/CHANGELOG.md b/service/ecrpublic/CHANGELOG.md index f6a75c64b8c..d534dc98471 100644 --- a/service/ecrpublic/CHANGELOG.md +++ b/service/ecrpublic/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/ecrpublic/go.mod b/service/ecrpublic/go.mod index b48f19f020b..a4f0d4cd491 100644 --- a/service/ecrpublic/go.mod +++ b/service/ecrpublic/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ecrpublic go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ecrpublic/go.sum b/service/ecrpublic/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/ecrpublic/go.sum +++ b/service/ecrpublic/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/ecrpublic/go_module_metadata.go b/service/ecrpublic/go_module_metadata.go index bc78e27e1b1..d336f0be22f 100644 --- a/service/ecrpublic/go_module_metadata.go +++ b/service/ecrpublic/go_module_metadata.go @@ -3,4 +3,4 @@ package ecrpublic // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.5" +const goModuleVersion = "1.27.6" diff --git a/service/ecs/CHANGELOG.md b/service/ecs/CHANGELOG.md index d66b0db5580..9d96db9da9c 100644 --- a/service/ecs/CHANGELOG.md +++ b/service/ecs/CHANGELOG.md @@ -1,3 +1,17 @@ +# v1.52.0 (2024-11-20) + +* **Feature**: This release adds support for the Availability Zone rebalancing feature on Amazon ECS. + +# v1.51.0 (2024-11-19) + +* **Feature**: This release introduces support for configuring the version consistency feature for individual containers defined within a task definition. The configuration allows to specify whether ECS should resolve the container image tag specified in the container definition to an image digest. + +# v1.50.0 (2024-11-18) + +* **Feature**: This release adds support for adding VPC Lattice configurations in ECS CreateService/UpdateService APIs. The configuration allows for associating VPC Lattice target groups with ECS Services. +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.49.2 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/ecs/api_op_CreateCluster.go b/service/ecs/api_op_CreateCluster.go index 36774356637..f08f5df70a1 100644 --- a/service/ecs/api_op_CreateCluster.go +++ b/service/ecs/api_op_CreateCluster.go @@ -15,7 +15,7 @@ import ( // cluster when you launch your first container instance. However, you can create // your own cluster with a unique name. // -// When you call the CreateCluster API operation, Amazon ECS attempts to create the Amazon ECS +// When you call the [CreateCluster] API operation, Amazon ECS attempts to create the Amazon ECS // service-linked role for your account. This is so that it can manage required // resources in other Amazon Web Services services on your behalf. However, if the // user that makes the call doesn't have permissions to create the service-linked @@ -23,6 +23,7 @@ import ( // Container Service Developer Guide. // // [Using service-linked roles for Amazon ECS]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using-service-linked-roles.html +// [CreateCluster]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateCluster.html func (c *Client) CreateCluster(ctx context.Context, params *CreateClusterInput, optFns ...func(*Options)) (*CreateClusterOutput, error) { if params == nil { params = &CreateClusterInput{} diff --git a/service/ecs/api_op_CreateService.go b/service/ecs/api_op_CreateService.go index 09ea936a4b3..6a6e6b7fe3c 100644 --- a/service/ecs/api_op_CreateService.go +++ b/service/ecs/api_op_CreateService.go @@ -14,7 +14,7 @@ import ( // Runs and maintains your desired number of tasks from a specified task // definition. If the number of tasks running in a service drops below the // desiredCount , Amazon ECS runs another copy of the task in the specified -// cluster. To update an existing service, see the UpdateServiceaction. +// cluster. To update an existing service, use [UpdateService]. // // On March 21, 2024, a change was made to resolve the task definition revision // before authorization. When a task definition revision is not specified, @@ -139,6 +139,14 @@ type CreateServiceInput struct { // This member is required. ServiceName *string + // Indicates whether to use Availability Zone rebalancing for the service. + // + // For more information, see [Balancing an Amazon ECS service across Availability Zones] in the Amazon Elastic Container Service Developer + // Guide. + // + // [Balancing an Amazon ECS service across Availability Zones]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-rebalancing.html + AvailabilityZoneRebalancing types.AvailabilityZoneRebalancing + // The capacity provider strategy to use for the service. // // If a capacityProviderStrategy is specified, the launchType parameter must be @@ -159,7 +167,7 @@ type CreateServiceInput struct { Cluster *string // Optional deployment parameters that control how many tasks run during the - // deployment and the failure detection methods. + // deployment and the ordering of stopping and starting tasks. DeploymentConfiguration *types.DeploymentConfiguration // The deployment controller to use for the service. If no deployment controller @@ -189,23 +197,16 @@ type CreateServiceInput struct { EnableExecuteCommand bool // The period of time, in seconds, that the Amazon ECS service scheduler ignores - // unhealthy Elastic Load Balancing target health checks after a task has first - // started. This is only used when your service is configured to use a load - // balancer. If your service has a load balancer defined and you don't specify a - // health check grace period value, the default value of 0 is used. - // - // If you do not use an Elastic Load Balancing, we recommend that you use the - // startPeriod in the task definition health check parameters. For more - // information, see [Health check]. - // - // If your service's tasks take a while to start and respond to Elastic Load - // Balancing health checks, you can specify a health check grace period of up to - // 2,147,483,647 seconds (about 69 years). During that time, the Amazon ECS service - // scheduler ignores health check status. This grace period can prevent the service - // scheduler from marking tasks as unhealthy and stopping them before they have - // time to come up. - // - // [Health check]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_HealthCheck.html + // unhealthy Elastic Load Balancing, VPC Lattice, and container health checks after + // a task has first started. If you don't specify a health check grace period + // value, the default value of 0 is used. If you don't use any of the health + // checks, then healthCheckGracePeriodSeconds is unused. + // + // If your service's tasks take a while to start and respond to health checks, you + // can specify a health check grace period of up to 2,147,483,647 seconds (about 69 + // years). During that time, the Amazon ECS service scheduler ignores health check + // status. This grace period can prevent the service scheduler from marking tasks + // as unhealthy and stopping them before they have time to come up. HealthCheckGracePeriodSeconds *int32 // The infrastructure that you run your service on. For more information, see [Amazon ECS launch types] in @@ -436,6 +437,9 @@ type CreateServiceInput struct { // an Amazon EBS volume. VolumeConfigurations []types.ServiceVolumeConfiguration + // The VPC Lattice configuration for the service being created. + VpcLatticeConfigurations []types.VpcLatticeConfiguration + noSmithyDocumentSerde } diff --git a/service/ecs/api_op_DeleteCapacityProvider.go b/service/ecs/api_op_DeleteCapacityProvider.go index a8f509e8d49..a31ac785a9a 100644 --- a/service/ecs/api_op_DeleteCapacityProvider.go +++ b/service/ecs/api_op_DeleteCapacityProvider.go @@ -24,11 +24,12 @@ import ( // that any tasks using the Amazon EC2 instance capacity provided by the capacity // provider are transitioned to use the capacity from the remaining capacity // providers. Only capacity providers that aren't associated with a cluster can be -// deleted. To remove a capacity provider from a cluster, you can either use [PutCapacityProviderProviders]or +// deleted. To remove a capacity provider from a cluster, you can either use [PutClusterCapacityProviders]or // delete the cluster. // // [PutCapacityProviderProviders]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutCapacityProviderProviders.html // [UpdateService]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_UpdateService.html +// [PutClusterCapacityProviders]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html func (c *Client) DeleteCapacityProvider(ctx context.Context, params *DeleteCapacityProviderInput, optFns ...func(*Options)) (*DeleteCapacityProviderOutput, error) { if params == nil { params = &DeleteCapacityProviderInput{} diff --git a/service/ecs/api_op_RegisterTaskDefinition.go b/service/ecs/api_op_RegisterTaskDefinition.go index cdd7bf2554f..8cc12ab8203 100644 --- a/service/ecs/api_op_RegisterTaskDefinition.go +++ b/service/ecs/api_op_RegisterTaskDefinition.go @@ -141,11 +141,10 @@ type RegisterTaskDefinitionInput struct { // resources. If none is specified, then IPC resources within the containers of a // task are private and not shared with other containers in a task or on the // container instance. If no value is specified, then the IPC resource namespace - // sharing depends on the Docker daemon setting on the container instance. For more - // information, see [IPC settings]in the Docker run reference. + // sharing depends on the Docker daemon setting on the container instance. // // If the host IPC mode is used, be aware that there is a heightened risk of - // undesired IPC namespace expose. For more information, see [Docker security]. + // undesired IPC namespace expose. // // If you are setting namespaced kernel parameters using systemControls for the // containers in the task, the following will apply to your IPC resource namespace. @@ -161,8 +160,6 @@ type RegisterTaskDefinitionInput struct { // This parameter is not supported for Windows containers or tasks run on Fargate. // // [System Controls]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html - // [Docker security]: https://docs.docker.com/engine/security/security/ - // [IPC settings]: https://docs.docker.com/engine/reference/run/#ipc-settings---ipc IpcMode types.IpcMode // The amount of memory (in MiB) used by the task. It can be expressed as an @@ -229,17 +226,15 @@ type RegisterTaskDefinitionInput struct { // user (UID 0). It is considered best practice to use a non-root user. // // If the network mode is awsvpc , the task is allocated an elastic network - // interface, and you must specify a NetworkConfigurationvalue when you create a service or run a task + // interface, and you must specify a [NetworkConfiguration]value when you create a service or run a task // with the task definition. For more information, see [Task Networking]in the Amazon Elastic // Container Service Developer Guide. // // If the network mode is host , you cannot run multiple instantiations of the same // task on a single container instance when port mappings are used. // - // For more information, see [Network settings] in the Docker run reference. - // // [Task Networking]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html - // [Network settings]: https://docs.docker.com/engine/reference/run/#network-settings + // [NetworkConfiguration]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_NetworkConfiguration.html NetworkMode types.NetworkMode // The process namespace to use for the containers in the task. The valid values @@ -254,20 +249,16 @@ type RegisterTaskDefinitionInput struct { // If task is specified, all containers within the specified task share the same // process namespace. // - // If no value is specified, the default is a private namespace for each - // container. For more information, see [PID settings]in the Docker run reference. + // If no value is specified, the default is a private namespace for each container. // // If the host PID mode is used, there's a heightened risk of undesired process - // namespace exposure. For more information, see [Docker security]. + // namespace exposure. // // This parameter is not supported for Windows containers. // // This parameter is only supported for tasks that are hosted on Fargate if the // tasks are using platform version 1.4.0 or later (Linux). This isn't supported // for Windows containers on Fargate. - // - // [PID settings]: https://docs.docker.com/engine/reference/run/#pid-settings---pid - // [Docker security]: https://docs.docker.com/engine/security/security/ PidMode types.PidMode // An array of placement constraint objects to use for the task. You can specify a diff --git a/service/ecs/api_op_UpdateService.go b/service/ecs/api_op_UpdateService.go index 21afed88811..4d46e2a90a5 100644 --- a/service/ecs/api_op_UpdateService.go +++ b/service/ecs/api_op_UpdateService.go @@ -160,6 +160,14 @@ type UpdateServiceInput struct { // This member is required. Service *string + // Indicates whether to use Availability Zone rebalancing for the service. + // + // For more information, see [Balancing an Amazon ECS service across Availability Zones] in the Amazon Elastic Container Service Developer + // Guide. + // + // [Balancing an Amazon ECS service across Availability Zones]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-rebalancing.html + AvailabilityZoneRebalancing types.AvailabilityZoneRebalancing + // The capacity provider strategy to update the service to use. // // if the service uses the default capacity provider strategy for the cluster, the @@ -195,7 +203,7 @@ type UpdateServiceInput struct { Cluster *string // Optional deployment parameters that control how many tasks run during the - // deployment and the failure detection methods. + // deployment and the ordering of stopping and starting tasks. DeploymentConfiguration *types.DeploymentConfiguration // The number of instantiations of the task to place and keep running in your @@ -227,14 +235,16 @@ type UpdateServiceInput struct { ForceNewDeployment bool // The period of time, in seconds, that the Amazon ECS service scheduler ignores - // unhealthy Elastic Load Balancing target health checks after a task has first - // started. This is only valid if your service is configured to use a load - // balancer. If your service's tasks take a while to start and respond to Elastic - // Load Balancing health checks, you can specify a health check grace period of up - // to 2,147,483,647 seconds. During that time, the Amazon ECS service scheduler - // ignores the Elastic Load Balancing health check status. This grace period can - // prevent the ECS service scheduler from marking tasks as unhealthy and stopping - // them before they have time to come up. + // unhealthy Elastic Load Balancing, VPC Lattice, and container health checks after + // a task has first started. If you don't specify a health check grace period + // value, the default value of 0 is used. If you don't use any of the health + // checks, then healthCheckGracePeriodSeconds is unused. + // + // If your service's tasks take a while to start and respond to health checks, you + // can specify a health check grace period of up to 2,147,483,647 seconds (about 69 + // years). During that time, the Amazon ECS service scheduler ignores health check + // status. This grace period can prevent the service scheduler from marking tasks + // as unhealthy and stopping them before they have time to come up. HealthCheckGracePeriodSeconds *int32 // A list of Elastic Load Balancing load balancer objects. It contains the load @@ -345,6 +355,10 @@ type UpdateServiceInput struct { // [ServiceManagedEBSVolumeConfiguration]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ServiceManagedEBSVolumeConfiguration.html VolumeConfigurations []types.ServiceVolumeConfiguration + // An object representing the VPC Lattice configuration for the service being + // updated. + VpcLatticeConfigurations []types.VpcLatticeConfiguration + noSmithyDocumentSerde } diff --git a/service/ecs/deserializers.go b/service/ecs/deserializers.go index 1a2715c7f27..ef70d94b23b 100644 --- a/service/ecs/deserializers.go +++ b/service/ecs/deserializers.go @@ -9977,6 +9977,15 @@ func awsAwsjson11_deserializeDocumentContainerDefinition(v **types.ContainerDefi sv.User = ptr.String(jtv) } + case "versionConsistency": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VersionConsistency to be of type string, got %T instead", value) + } + sv.VersionConsistency = types.VersionConsistency(jtv) + } + case "volumesFrom": if err := awsAwsjson11_deserializeDocumentVolumeFromList(&sv.VolumesFrom, value); err != nil { return err @@ -10905,6 +10914,11 @@ func awsAwsjson11_deserializeDocumentDeployment(v **types.Deployment, value inte return err } + case "vpcLatticeConfigurations": + if err := awsAwsjson11_deserializeDocumentVpcLatticeConfigurations(&sv.VpcLatticeConfigurations, value); err != nil { + return err + } + default: _, _ = key, value @@ -15259,6 +15273,15 @@ func awsAwsjson11_deserializeDocumentService(v **types.Service, value interface{ for key, value := range shape { switch key { + case "availabilityZoneRebalancing": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AvailabilityZoneRebalancing to be of type string, got %T instead", value) + } + sv.AvailabilityZoneRebalancing = types.AvailabilityZoneRebalancing(jtv) + } + case "capacityProviderStrategy": if err := awsAwsjson11_deserializeDocumentCapacityProviderStrategy(&sv.CapacityProviderStrategy, value); err != nil { return err @@ -17026,6 +17049,11 @@ func awsAwsjson11_deserializeDocumentServiceRevision(v **types.ServiceRevision, return err } + case "vpcLatticeConfigurations": + if err := awsAwsjson11_deserializeDocumentVpcLatticeConfigurations(&sv.VpcLatticeConfigurations, value); err != nil { + return err + } + default: _, _ = key, value @@ -19617,6 +19645,98 @@ func awsAwsjson11_deserializeDocumentVolumeList(v *[]types.Volume, value interfa return nil } +func awsAwsjson11_deserializeDocumentVpcLatticeConfiguration(v **types.VpcLatticeConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.VpcLatticeConfiguration + if *v == nil { + sv = &types.VpcLatticeConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "portName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.PortName = 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) + } + + case "targetGroupArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.TargetGroupArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentVpcLatticeConfigurations(v *[]types.VpcLatticeConfiguration, 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.VpcLatticeConfiguration + if *v == nil { + cv = []types.VpcLatticeConfiguration{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.VpcLatticeConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentVpcLatticeConfiguration(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeOpDocumentCreateCapacityProviderOutput(v **CreateCapacityProviderOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/ecs/go.mod b/service/ecs/go.mod index e2c0c731ee5..c7efb0e4925 100644 --- a/service/ecs/go.mod +++ b/service/ecs/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ecs go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ecs/go.sum b/service/ecs/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/ecs/go.sum +++ b/service/ecs/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/ecs/go_module_metadata.go b/service/ecs/go_module_metadata.go index 7c671ced1a5..291d2f96e59 100644 --- a/service/ecs/go_module_metadata.go +++ b/service/ecs/go_module_metadata.go @@ -3,4 +3,4 @@ package ecs // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.49.2" +const goModuleVersion = "1.52.0" diff --git a/service/ecs/serializers.go b/service/ecs/serializers.go index 864f158fa49..3fd9edcc8d1 100644 --- a/service/ecs/serializers.go +++ b/service/ecs/serializers.go @@ -4143,6 +4143,11 @@ func awsAwsjson11_serializeDocumentContainerDefinition(v *types.ContainerDefinit ok.String(*v.User) } + if len(v.VersionConsistency) > 0 { + ok := object.Key("versionConsistency") + ok.String(string(v.VersionConsistency)) + } + if v.VolumesFrom != nil { ok := object.Key("volumesFrom") if err := awsAwsjson11_serializeDocumentVolumeFromList(v.VolumesFrom, ok); err != nil { @@ -6505,6 +6510,41 @@ func awsAwsjson11_serializeDocumentVolumeList(v []types.Volume, value smithyjson return nil } +func awsAwsjson11_serializeDocumentVpcLatticeConfiguration(v *types.VpcLatticeConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.PortName != nil { + ok := object.Key("portName") + ok.String(*v.PortName) + } + + if v.RoleArn != nil { + ok := object.Key("roleArn") + ok.String(*v.RoleArn) + } + + if v.TargetGroupArn != nil { + ok := object.Key("targetGroupArn") + ok.String(*v.TargetGroupArn) + } + + return nil +} + +func awsAwsjson11_serializeDocumentVpcLatticeConfigurations(v []types.VpcLatticeConfiguration, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsAwsjson11_serializeDocumentVpcLatticeConfiguration(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsAwsjson11_serializeOpDocumentCreateCapacityProviderInput(v *CreateCapacityProviderInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -6589,6 +6629,11 @@ func awsAwsjson11_serializeOpDocumentCreateServiceInput(v *CreateServiceInput, v object := value.Object() defer object.Close() + if len(v.AvailabilityZoneRebalancing) > 0 { + ok := object.Key("availabilityZoneRebalancing") + ok.String(string(v.AvailabilityZoneRebalancing)) + } + if v.CapacityProviderStrategy != nil { ok := object.Key("capacityProviderStrategy") if err := awsAwsjson11_serializeDocumentCapacityProviderStrategy(v.CapacityProviderStrategy, ok); err != nil { @@ -6731,6 +6776,13 @@ func awsAwsjson11_serializeOpDocumentCreateServiceInput(v *CreateServiceInput, v } } + if v.VpcLatticeConfigurations != nil { + ok := object.Key("vpcLatticeConfigurations") + if err := awsAwsjson11_serializeDocumentVpcLatticeConfigurations(v.VpcLatticeConfigurations, ok); err != nil { + return err + } + } + return nil } @@ -8353,6 +8405,11 @@ func awsAwsjson11_serializeOpDocumentUpdateServiceInput(v *UpdateServiceInput, v object := value.Object() defer object.Close() + if len(v.AvailabilityZoneRebalancing) > 0 { + ok := object.Key("availabilityZoneRebalancing") + ok.String(string(v.AvailabilityZoneRebalancing)) + } + if v.CapacityProviderStrategy != nil { ok := object.Key("capacityProviderStrategy") if err := awsAwsjson11_serializeDocumentCapacityProviderStrategy(v.CapacityProviderStrategy, ok); err != nil { @@ -8466,6 +8523,13 @@ func awsAwsjson11_serializeOpDocumentUpdateServiceInput(v *UpdateServiceInput, v } } + if v.VpcLatticeConfigurations != nil { + ok := object.Key("vpcLatticeConfigurations") + if err := awsAwsjson11_serializeDocumentVpcLatticeConfigurations(v.VpcLatticeConfigurations, ok); err != nil { + return err + } + } + return nil } diff --git a/service/ecs/types/enums.go b/service/ecs/types/enums.go index e1fdd3858a5..a842b7b728d 100644 --- a/service/ecs/types/enums.go +++ b/service/ecs/types/enums.go @@ -69,6 +69,25 @@ func (AssignPublicIp) Values() []AssignPublicIp { } } +type AvailabilityZoneRebalancing string + +// Enum values for AvailabilityZoneRebalancing +const ( + AvailabilityZoneRebalancingEnabled AvailabilityZoneRebalancing = "ENABLED" + AvailabilityZoneRebalancingDisabled AvailabilityZoneRebalancing = "DISABLED" +) + +// Values returns all known values for AvailabilityZoneRebalancing. 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 (AvailabilityZoneRebalancing) Values() []AvailabilityZoneRebalancing { + return []AvailabilityZoneRebalancing{ + "ENABLED", + "DISABLED", + } +} + type CapacityProviderField string // Enum values for CapacityProviderField @@ -1351,3 +1370,22 @@ func (UlimitName) Values() []UlimitName { "stack", } } + +type VersionConsistency string + +// Enum values for VersionConsistency +const ( + VersionConsistencyEnabled VersionConsistency = "enabled" + VersionConsistencyDisabled VersionConsistency = "disabled" +) + +// Values returns all known values for VersionConsistency. 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 (VersionConsistency) Values() []VersionConsistency { + return []VersionConsistency{ + "enabled", + "disabled", + } +} diff --git a/service/ecs/types/types.go b/service/ecs/types/types.go index c9c01aaa268..774b25fe300 100644 --- a/service/ecs/types/types.go +++ b/service/ecs/types/types.go @@ -1232,6 +1232,16 @@ type ContainerDefinition struct { // This parameter is not supported for Windows containers. User *string + // Specifies whether Amazon ECS will resolve the container image tag provided in + // the container definition to an image digest. By default, the value is enabled . + // If you set the value for a container as disabled , Amazon ECS will not resolve + // the provided container image tag to a digest and will use the original image URI + // specified in the container definition for deployment. For more information about + // container image resolution, see [Container image resolution]in the Amazon ECS Developer Guide. + // + // [Container image resolution]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html#deployment-container-image-stability + VersionConsistency VersionConsistency + // Data volumes to mount from another container. This parameter maps to VolumesFrom // in the docker container create command and the --volumes-from option to docker // run. @@ -1731,6 +1741,9 @@ type Deployment struct { // [ServiceManagedEBSVolumeConfiguration]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ServiceManagedEBSVolumeConfiguration.html VolumeConfigurations []ServiceVolumeConfiguration + // The VPC Lattice configuration for the service deployment. + VpcLatticeConfigurations []VpcLatticeConfiguration + noSmithyDocumentSerde } @@ -1804,8 +1817,8 @@ type DeploymentCircuitBreaker struct { noSmithyDocumentSerde } -// Optional deployment parameters that control how many tasks run during the -// deployment and the failure detection methods. +// Optional deployment parameters that control how many tasks run during a +// deployment and the ordering of stopping and starting tasks. type DeploymentConfiguration struct { // Information about the CloudWatch alarms. @@ -1916,10 +1929,7 @@ type DeploymentConfiguration struct { noSmithyDocumentSerde } -// The deployment controller to use for the service. For more information, see [Amazon ECS deployment types] in -// the Amazon Elastic Container Service Developer Guide. -// -// [Amazon ECS deployment types]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html +// The deployment controller to use for the service. type DeploymentController struct { // The deployment controller type to use. @@ -1932,14 +1942,26 @@ type DeploymentController struct { // is controlled by adjusting the minimum and maximum number of healthy tasks // allowed during a service deployment, as specified in the [DeploymentConfiguration]. // + // For more information about rolling deployments, see [Deploy Amazon ECS services by replacing tasks] in the Amazon Elastic + // Container Service Developer Guide. + // // CODE_DEPLOY The blue/green ( CODE_DEPLOY ) deployment type uses the blue/green // deployment model powered by CodeDeploy, which allows you to verify a new // deployment of a service before sending production traffic to it. // + // For more information about blue/green deployments, see [Validate the state of an Amazon ECS service before deployment] in the Amazon Elastic + // Container Service Developer Guide. + // // EXTERNAL The external ( EXTERNAL ) deployment type enables you to use any // third-party deployment controller for full control over the deployment process // for an Amazon ECS service. // + // For more information about external deployments, see [Deploy Amazon ECS services using a third-party controller] in the Amazon Elastic + // Container Service Developer Guide. + // + // [Validate the state of an Amazon ECS service before deployment]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-bluegreen.html + // [Deploy Amazon ECS services by replacing tasks]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html + // [Deploy Amazon ECS services using a third-party controller]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-external.html // [DeploymentConfiguration]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeploymentConfiguration.html // // This member is required. @@ -1951,8 +1973,8 @@ type DeploymentController struct { // The amount of ephemeral storage to allocate for the deployment. type DeploymentEphemeralStorage struct { - // Specify an Amazon Web Services Key Management Service key ID to encrypt the - // ephemeral storage for deployment. + // Specify an Key Management Service key ID to encrypt the ephemeral storage for + // deployment. KmsKeyId *string noSmithyDocumentSerde @@ -2749,7 +2771,8 @@ type LoadBalancer struct { // mapping. ContainerPort *int32 - // The name of the load balancer to associate with the service or task set. + // The name of the load balancer to associate with the Amazon ECS service or task + // set. // // If you are using an Application Load Balancer or a Network Load Balancer the // load balancer name parameter should be omitted. @@ -3072,7 +3095,8 @@ type ManagedScaling struct { MaximumScalingStepSize *int32 // The minimum number of Amazon EC2 instances that Amazon ECS will scale out at - // one time. If this parameter is omitted, the default value of 1 is used. + // one time. The scale in process is not affected by this parameter If this + // parameter is omitted, the default value of 1 is used. // // When additional capacity is required, Amazon ECS will scale up the minimum // scaling step size even if the actual demand is less than the minimum scaling @@ -3104,8 +3128,7 @@ type ManagedStorageConfiguration struct { // Specify the Key Management Service key ID for the Fargate ephemeral storage. FargateEphemeralStorageKmsKeyId *string - // Specify a Amazon Web Services Key Management Service key ID to encrypt the - // managed storage. + // Specify a Key Management Service key ID to encrypt the managed storage. KmsKeyId *string noSmithyDocumentSerde @@ -3306,14 +3329,13 @@ type PlatformDevice struct { noSmithyDocumentSerde } -// Port mappings expose your container's network ports to the outside world. this -// allows clients to access your application. It's also used for inter-container -// communication within the same task. +// Port mappings allow containers to access ports on the host container instance +// to send or receive traffic. Port mappings are specified as part of the container +// definition. // -// For task definitions (both the Fargate and EC2 launch type) that use the awsvpc -// network mode, only specify the containerPort . The hostPort is always ignored, -// and the container port is automatically mapped to a random high-numbered port on -// the host. +// If you use containers in a task with the awsvpc or host network mode, specify +// the exposed ports using containerPort . The hostPort can be left blank or it +// must be the same value as the containerPort . // // Most fields of this parameter ( containerPort , hostPort , protocol ) maps to // PortBindings in the docker container create command and the --publish option to @@ -3356,17 +3378,14 @@ type PortMapping struct { // The port number on the container that's bound to the user-specified or // automatically assigned host port. // - // For tasks that use the Fargate launch type or EC2 tasks that use the awsvpc - // network mode, you use containerPort to specify the exposed ports. - // - // For Windows containers on Fargate, you can't use port 3150 for the containerPort - // . This is because it's reserved. + // If you use containers in a task with the awsvpc or host network mode, specify + // the exposed ports using containerPort . // - // Suppose that you're using containers in a task with the EC2 launch type and you - // specify a container port and not a host port. Then, your container automatically - // receives a host port in the ephemeral port range. For more information, see - // hostPort . Port mappings that are automatically assigned in this way don't count - // toward the 100 reserved ports quota of a container instance. + // If you use containers in a task with the bridge network mode and you specify a + // container port and not a host port, your container automatically receives a host + // port in the ephemeral port range. For more information, see hostPort . Port + // mappings that are automatically assigned in this way do not count toward the 100 + // reserved ports limit of a container instance. ContainerPort *int32 // The port number range on the container that's bound to the dynamically mapped @@ -3462,16 +3481,11 @@ type PortMapping struct { // [DescribeContainerInstances]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeContainerInstances.html HostPort *int32 - // The name that's used for the port mapping. This parameter only applies to - // Service Connect. This parameter is the name that you use in the - // serviceConnectConfiguration of a service. The name can include up to 64 - // characters. The characters can include lowercase letters, numbers, underscores - // (_), and hyphens (-). The name can't start with a hyphen. - // - // For more information, see [Service Connect] in the Amazon Elastic Container Service Developer - // Guide. - // - // [Service Connect]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html + // The name that's used for the port mapping. This parameter is the name that you + // use in the serviceConnectConfiguration and the vpcLatticeConfigurations of a + // service. The name can include up to 64 characters. The characters can include + // lowercase letters, numbers, underscores (_), and hyphens (-). The name can't + // start with a hyphen. Name *string // The protocol used for the port mapping. Valid values are tcp and udp . The @@ -3672,13 +3686,9 @@ type RuntimePlatform struct { // You can run your Linux tasks on an ARM-based platform by setting the value to // ARM64 . This option is available for tasks that run on Linux Amazon EC2 instance // or Linux containers on Fargate. - // - // The default is X86_64 . CpuArchitecture CPUArchitecture // The operating system. - // - // The default is Linux . OperatingSystemFamily OSFamily noSmithyDocumentSerde @@ -3742,8 +3752,17 @@ type Secret struct { // Details on a service within a cluster. type Service struct { - // The capacity provider strategy the service uses. When using DescribeServices , - // this field is omitted if the service was created using a launch type. + // Indicates whether to use Availability Zone rebalancing for the service. + // + // For more information, see [Balancing an Amazon ECS service across Availability Zones] in the Amazon Elastic Container Service Developer + // Guide. + // + // [Balancing an Amazon ECS service across Availability Zones]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-rebalancing.html + AvailabilityZoneRebalancing AvailabilityZoneRebalancing + + // The capacity provider strategy the service uses. When using the + // DescribeServices API, this field is omitted if the service was created using a + // launch type. CapacityProviderStrategy []CapacityProviderStrategyItem // The Amazon Resource Name (ARN) of the cluster that hosts the service. @@ -3885,7 +3904,7 @@ type Service struct { Status *string // The metadata that you apply to the service to help you categorize and organize - // them. Each tag consists of a key and an optional value. You define both the key + // them. Each tag consists of a key and an optional value. You define bot the key // and value. // // The following basic restrictions apply to tags: @@ -4197,8 +4216,8 @@ type ServiceDeployment struct { // The circuit breaker configuration that determines a service deployment failed. DeploymentCircuitBreaker *ServiceDeploymentCircuitBreaker - // Optional deployment parameters that control how many tasks run during the - // deployment and the failure detection methods. + // Optional deployment parameters that control how many tasks run during a + // deployment and the ordering of stopping and starting tasks. DeploymentConfiguration *DeploymentConfiguration // The time the service deployment finished. The format is yyyy-MM-dd @@ -4621,6 +4640,9 @@ type ServiceRevision struct { // The volumes that are configured at deployment that the service revision uses. VolumeConfigurations []ServiceVolumeConfiguration + // The VPC Lattice configuration for the service revision. + VpcLatticeConfigurations []VpcLatticeConfiguration + noSmithyDocumentSerde } @@ -5144,11 +5166,10 @@ type TaskDefinition struct { // resources. If none is specified, then IPC resources within the containers of a // task are private and not shared with other containers in a task or on the // container instance. If no value is specified, then the IPC resource namespace - // sharing depends on the Docker daemon setting on the container instance. For more - // information, see [IPC settings]in the Docker run reference. + // sharing depends on the Docker daemon setting on the container instance. // // If the host IPC mode is used, be aware that there is a heightened risk of - // undesired IPC namespace expose. For more information, see [Docker security]. + // undesired IPC namespace expose. // // If you are setting namespaced kernel parameters using systemControls for the // containers in the task, the following will apply to your IPC resource namespace. @@ -5164,8 +5185,6 @@ type TaskDefinition struct { // This parameter is not supported for Windows containers or tasks run on Fargate. // // [System Controls]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html - // [Docker security]: https://docs.docker.com/engine/security/security/ - // [IPC settings]: https://docs.docker.com/engine/reference/run/#ipc-settings---ipc IpcMode IpcMode // The amount (in MiB) of memory used by the task. @@ -5229,17 +5248,15 @@ type TaskDefinition struct { // user (UID 0). It is considered best practice to use a non-root user. // // If the network mode is awsvpc , the task is allocated an elastic network - // interface, and you must specify a NetworkConfigurationvalue when you create a service or run a task + // interface, and you must specify a [NetworkConfiguration]value when you create a service or run a task // with the task definition. For more information, see [Task Networking]in the Amazon Elastic // Container Service Developer Guide. // // If the network mode is host , you cannot run multiple instantiations of the same // task on a single container instance when port mappings are used. // - // For more information, see [Network settings] in the Docker run reference. - // // [Task Networking]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html - // [Network settings]: https://docs.docker.com/engine/reference/run/#network-settings + // [NetworkConfiguration]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_NetworkConfiguration.html NetworkMode NetworkMode // The process namespace to use for the containers in the task. The valid values @@ -5254,20 +5271,16 @@ type TaskDefinition struct { // If task is specified, all containers within the specified task share the same // process namespace. // - // If no value is specified, the default is a private namespace for each - // container. For more information, see [PID settings]in the Docker run reference. + // If no value is specified, the default is a private namespace for each container. // // If the host PID mode is used, there's a heightened risk of undesired process - // namespace exposure. For more information, see [Docker security]. + // namespace exposure. // // This parameter is not supported for Windows containers. // // This parameter is only supported for tasks that are hosted on Fargate if the // tasks are using platform version 1.4.0 or later (Linux). This isn't supported // for Windows containers on Fargate. - // - // [PID settings]: https://docs.docker.com/engine/reference/run/#pid-settings---pid - // [Docker security]: https://docs.docker.com/engine/security/security/ PidMode PidMode // An array of placement constraint objects to use for tasks. @@ -5377,8 +5390,8 @@ type TaskDefinitionPlacementConstraint struct { // The amount of ephemeral storage to allocate for the task. type TaskEphemeralStorage struct { - // Specify an Amazon Web Services Key Management Service key ID to encrypt the - // ephemeral storage for the task. + // Specify an Key Management Service key ID to encrypt the ephemeral storage for + // the task. KmsKeyId *string // The total amount, in GiB, of the ephemeral storage to set for the task. The @@ -5952,4 +5965,31 @@ type VolumeFrom struct { noSmithyDocumentSerde } +// The VPC Lattice configuration for your service that holds the information for +// the target group(s) Amazon ECS tasks will be registered to. +type VpcLatticeConfiguration struct { + + // The name of the port mapping to register in the VPC Lattice target group. This + // is the name of the portMapping you defined in your task definition. + // + // This member is required. + PortName *string + + // The ARN of the IAM role to associate with this VPC Lattice configuration. This + // is the Amazon ECS
 infrastructure IAM role that is used to manage your VPC + // Lattice infrastructure. + // + // This member is required. + RoleArn *string + + // The full Amazon Resource Name (ARN) of the target group or groups associated + // with the VPC Lattice configuration that the Amazon ECS tasks will be registered + // to. + // + // This member is required. + TargetGroupArn *string + + noSmithyDocumentSerde +} + type noSmithyDocumentSerde = smithydocument.NoSerde diff --git a/service/ecs/validators.go b/service/ecs/validators.go index 88baf2b55de..9c0b406cb79 100644 --- a/service/ecs/validators.go +++ b/service/ecs/validators.go @@ -2419,6 +2419,44 @@ func validateVolumeList(v []types.Volume) error { } } +func validateVpcLatticeConfiguration(v *types.VpcLatticeConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "VpcLatticeConfiguration"} + if v.RoleArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("RoleArn")) + } + if v.TargetGroupArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("TargetGroupArn")) + } + if v.PortName == nil { + invalidParams.Add(smithy.NewErrParamRequired("PortName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateVpcLatticeConfigurations(v []types.VpcLatticeConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "VpcLatticeConfigurations"} + for i := range v { + if err := validateVpcLatticeConfiguration(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateCapacityProviderInput(v *CreateCapacityProviderInput) error { if v == nil { return nil @@ -2501,6 +2539,11 @@ func validateOpCreateServiceInput(v *CreateServiceInput) error { invalidParams.AddNested("VolumeConfigurations", err.(smithy.InvalidParamsError)) } } + if v.VpcLatticeConfigurations != nil { + if err := validateVpcLatticeConfigurations(v.VpcLatticeConfigurations); err != nil { + invalidParams.AddNested("VpcLatticeConfigurations", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -3311,6 +3354,11 @@ func validateOpUpdateServiceInput(v *UpdateServiceInput) error { invalidParams.AddNested("VolumeConfigurations", err.(smithy.InvalidParamsError)) } } + if v.VpcLatticeConfigurations != nil { + if err := validateVpcLatticeConfigurations(v.VpcLatticeConfigurations); err != nil { + invalidParams.AddNested("VpcLatticeConfigurations", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/efs/CHANGELOG.md b/service/efs/CHANGELOG.md index 27e7a7d8e6f..ebe9c937b76 100644 --- a/service/efs/CHANGELOG.md +++ b/service/efs/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.34.0 (2024-11-19) + +* **Feature**: Add support for the new parameters in EFS replication APIs + +# v1.33.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.33.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/efs/api_op_CreateFileSystem.go b/service/efs/api_op_CreateFileSystem.go index 14129e0486b..da16698d32b 100644 --- a/service/efs/api_op_CreateFileSystem.go +++ b/service/efs/api_op_CreateFileSystem.go @@ -44,16 +44,13 @@ import ( // operation, which among other things returns the file system state. // // This operation accepts an optional PerformanceMode parameter that you choose -// for your file system. We recommend generalPurpose performance mode for all file -// systems. File systems using the maxIO mode is a previous generation performance -// type that is designed for highly parallelized workloads that can tolerate higher -// latencies than the General Purpose mode. Max I/O mode is not supported for One -// Zone file systems or file systems that use Elastic throughput. +// for your file system. We recommend generalPurpose PerformanceMode for all file +// systems. The maxIO mode is a previous generation performance type that is +// designed for highly parallelized workloads that can tolerate higher latencies +// than the generalPurpose mode. MaxIO mode is not supported for One Zone file +// systems or file systems that use Elastic throughput. // -// Due to the higher per-operation latencies with Max I/O, we recommend using -// General Purpose performance mode for all file systems. -// -// The performance mode can't be changed after the file system has been created. +// The PerformanceMode can't be changed after the file system has been created. // For more information, see [Amazon EFS performance modes]. // // You can set the throughput mode for the file system using the ThroughputMode @@ -101,15 +98,15 @@ type CreateFileSystemInput struct { // This member is required. CreationToken *string - // Used to create a One Zone file system. It specifies the Amazon Web Services - // Availability Zone in which to create the file system. Use the format us-east-1a - // to specify the Availability Zone. For more information about One Zone file - // systems, see [Using EFS storage classes]in the Amazon EFS User Guide. + // For One Zone file systems, specify the Amazon Web Services Availability Zone in + // which to create the file system. Use the format us-east-1a to specify the + // Availability Zone. For more information about One Zone file systems, see [EFS file system types]in the + // Amazon EFS User Guide. // // One Zone file systems are not available in all Availability Zones in Amazon Web // Services Regions where Amazon EFS is available. // - // [Using EFS storage classes]: https://docs.aws.amazon.com/efs/latest/ug/storage-classes.html + // [EFS file system types]: https://docs.aws.amazon.com/efs/latest/ug/availability-durability.html#file-system-type AvailabilityZoneName *string // Specifies whether automatic backups are enabled on the file system that you are @@ -156,7 +153,7 @@ type CreateFileSystemInput struct { // Amazon EFS file systems. KmsKeyId *string - // The Performance mode of the file system. We recommend generalPurpose + // The performance mode of the file system. We recommend generalPurpose // performance mode for all file systems. File systems using the maxIO performance // mode can scale to higher levels of aggregate throughput and operations per // second with a tradeoff of slightly higher latencies for most file operations. @@ -236,7 +233,7 @@ type CreateFileSystemOutput struct { // This member is required. OwnerId *string - // The Performance mode of the file system. + // The performance mode of the file system. // // This member is required. PerformanceMode types.PerformanceMode diff --git a/service/efs/api_op_CreateReplicationConfiguration.go b/service/efs/api_op_CreateReplicationConfiguration.go index 8d6fde97978..71090b04f27 100644 --- a/service/efs/api_op_CreateReplicationConfiguration.go +++ b/service/efs/api_op_CreateReplicationConfiguration.go @@ -12,68 +12,31 @@ import ( "time" ) -// Creates a replication configuration that replicates an existing EFS file system -// to a new, read-only file system. For more information, see [Amazon EFS replication]in the Amazon EFS -// User Guide. The replication configuration specifies the following: +// Creates a replication configuration to either a new or existing EFS file system. +// For more information, see [Amazon EFS replication]in the Amazon EFS User Guide. The replication +// configuration specifies the following: // -// - Source file system – The EFS file system that you want replicated. The -// source file system cannot be a destination file system in an existing -// replication configuration. -// -// - Amazon Web Services Region – The Amazon Web Services Region in which the -// destination file system is created. Amazon EFS replication is available in all -// Amazon Web Services Regions in which EFS is available. The Region must be -// enabled. For more information, see [Managing Amazon Web Services Regions]in the Amazon Web Services General -// Reference Reference Guide. -// -// - Destination file system configuration – The configuration of the -// destination file system to which the source file system will be replicated. -// There can only be one destination file system in a replication configuration. -// -// Parameters for the replication configuration include: -// -// - File system ID – The ID of the destination file system for the replication. -// If no ID is provided, then EFS creates a new file system with the default -// settings. For existing file systems, the file system's replication overwrite -// protection must be disabled. For more information, see [Replicating to an existing file system]. -// -// - Availability Zone – If you want the destination file system to use One Zone -// storage, you must specify the Availability Zone to create the file system in. -// For more information, see [EFS file system types]in the Amazon EFS User Guide. +// - Source file system – The EFS file system that you want to replicate. // -// - Encryption – All destination file systems are created with encryption at -// rest enabled. You can specify the Key Management Service (KMS) key that is used -// to encrypt the destination file system. If you don't specify a KMS key, your -// service-managed KMS key for Amazon EFS is used. -// -// After the file system is created, you cannot change the KMS key. -// -// After the file system is created, you cannot change the KMS key. -// -// For new destination file systems, the following properties are set by default: -// -// - Performance mode - The destination file system's performance mode matches -// that of the source file system, unless the destination file system uses EFS One -// Zone storage. In that case, the General Purpose performance mode is used. The -// performance mode cannot be changed. +// - Destination file system – The destination file system to which the source +// file system is replicated. There can only be one destination file system in a +// replication configuration. // -// - Throughput mode - The destination file system's throughput mode matches -// that of the source file system. After the file system is created, you can modify -// the throughput mode. +// A file system can be part of only one replication configuration. // -// - Lifecycle management – Lifecycle management is not enabled on the -// destination file system. After the destination file system is created, you can -// enable lifecycle management. +// The destination parameters for the replication configuration depend on whether // -// - Automatic backups – Automatic daily backups are enabled on the destination -// file system. After the file system is created, you can change this setting. +// you are replicating to a new file system or to an existing file system, and if +// you are replicating across Amazon Web Services accounts. See DestinationToCreatefor more +// information. // -// For more information, see [Amazon EFS replication] in the Amazon EFS User Guide. +// This operation requires permissions for the +// elasticfilesystem:CreateReplicationConfiguration action. Additionally, other +// permissions are required depending on how you are replicating file systems. For +// more information, see [Required permissions for replication]in the Amazon EFS User Guide. // -// [Managing Amazon Web Services Regions]: https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-enable -// [Replicating to an existing file system]: https://docs.aws.amazon.com/efs/latest/ug/efs-replication#replicate-existing-destination +// [Required permissions for replication]: https://docs.aws.amazon.com/efs/latest/ug/efs-replication.html#efs-replication-permissions // [Amazon EFS replication]: https://docs.aws.amazon.com/efs/latest/ug/efs-replication.html -// [EFS file system types]: https://docs.aws.amazon.com/efs/latest/ug/storage-classes.html func (c *Client) CreateReplicationConfiguration(ctx context.Context, params *CreateReplicationConfigurationInput, optFns ...func(*Options)) (*CreateReplicationConfigurationOutput, error) { if params == nil { params = &CreateReplicationConfigurationInput{} @@ -142,6 +105,9 @@ type CreateReplicationConfigurationOutput struct { // This member is required. SourceFileSystemRegion *string + // ID of the Amazon Web Services account in which the source file system resides. + SourceFileSystemOwnerId *string + // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/efs/api_op_DeleteFileSystem.go b/service/efs/api_op_DeleteFileSystem.go index ed44a71811c..5d673cb5693 100644 --- a/service/efs/api_op_DeleteFileSystem.go +++ b/service/efs/api_op_DeleteFileSystem.go @@ -18,7 +18,7 @@ import ( // can delete an EFS file system. This step is performed for you when you use the // Amazon Web Services console to delete a file system. // -// You cannot delete a file system that is part of an EFS Replication +// You cannot delete a file system that is part of an EFS replication // configuration. You need to delete the replication configuration first. // // You can't delete a file system that is in use. That is, if the file system has diff --git a/service/efs/api_op_DeleteReplicationConfiguration.go b/service/efs/api_op_DeleteReplicationConfiguration.go index 14f308fc867..040daa6e10b 100644 --- a/service/efs/api_op_DeleteReplicationConfiguration.go +++ b/service/efs/api_op_DeleteReplicationConfiguration.go @@ -6,6 +6,7 @@ import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/efs/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) @@ -41,6 +42,23 @@ type DeleteReplicationConfigurationInput struct { // This member is required. SourceFileSystemId *string + // When replicating across Amazon Web Services accounts or across Amazon Web + // Services Regions, Amazon EFS deletes the replication configuration from both the + // source and destination account or Region ( ALL_CONFIGURATIONS ) by default. If + // there's a configuration or permissions issue that prevents Amazon EFS from + // deleting the replication configuration from both sides, you can use the + // LOCAL_CONFIGURATION_ONLY mode to delete the replication configuration from only + // the local side (the account or Region from which the delete is performed). + // + // Only use the LOCAL_CONFIGURATION_ONLY mode in the case that Amazon EFS is + // unable to delete the replication configuration in both the source and + // destination account or Region. Deleting the local configuration leaves the + // configuration in the other account or Region unrecoverable. + // + // Additionally, do not use this mode for same-account, same-region replication as + // doing so results in a BadRequest exception error. + DeletionMode types.DeletionMode + noSmithyDocumentSerde } diff --git a/service/efs/api_op_DescribeReplicationConfigurations.go b/service/efs/api_op_DescribeReplicationConfigurations.go index de05cb140d5..b7588737c47 100644 --- a/service/efs/api_op_DescribeReplicationConfigurations.go +++ b/service/efs/api_op_DescribeReplicationConfigurations.go @@ -32,7 +32,9 @@ func (c *Client) DescribeReplicationConfigurations(ctx context.Context, params * type DescribeReplicationConfigurationsInput struct { // You can retrieve the replication configuration for a specific file system by - // providing its file system ID. + // providing its file system ID. For cross-account,cross-region replication, an + // account can only describe the replication configuration for a file system in its + // own Region. FileSystemId *string // (Optional) To limit the number of objects returned in a response, you can diff --git a/service/efs/api_op_PutFileSystemPolicy.go b/service/efs/api_op_PutFileSystemPolicy.go index 15fb3690751..64c214a6721 100644 --- a/service/efs/api_op_PutFileSystemPolicy.go +++ b/service/efs/api_op_PutFileSystemPolicy.go @@ -16,14 +16,14 @@ import ( // be the default policy or an explicit policy set or updated using this API // operation. EFS file system policies have a 20,000 character limit. When an // explicit policy is set, it overrides the default policy. For more information -// about the default file system policy, see [Default EFS File System Policy]. +// about the default file system policy, see [Default EFS file system policy]. // // EFS file system policies have a 20,000 character limit. // // This operation requires permissions for the // elasticfilesystem:PutFileSystemPolicy action. // -// [Default EFS File System Policy]: https://docs.aws.amazon.com/efs/latest/ug/iam-access-control-nfs-efs.html#default-filesystempolicy +// [Default EFS file system policy]: https://docs.aws.amazon.com/efs/latest/ug/iam-access-control-nfs-efs.html#default-filesystempolicy func (c *Client) PutFileSystemPolicy(ctx context.Context, params *PutFileSystemPolicyInput, optFns ...func(*Options)) (*PutFileSystemPolicyOutput, error) { if params == nil { params = &PutFileSystemPolicyInput{} @@ -49,9 +49,9 @@ type PutFileSystemPolicyInput struct { // The FileSystemPolicy that you're creating. Accepts a JSON formatted policy // definition. EFS file system policies have a 20,000 character limit. To find out - // more about the elements that make up a file system policy, see [EFS Resource-based Policies]. + // more about the elements that make up a file system policy, see [Resource-based policies within Amazon EFS]. // - // [EFS Resource-based Policies]: https://docs.aws.amazon.com/efs/latest/ug/access-control-overview.html#access-control-manage-access-intro-resource-policies + // [Resource-based policies within Amazon EFS]: https://docs.aws.amazon.com/efs/latest/ug/security_iam_service-with-iam.html#security_iam_service-with-iam-resource-based-policies // // This member is required. Policy *string diff --git a/service/efs/api_op_PutLifecycleConfiguration.go b/service/efs/api_op_PutLifecycleConfiguration.go index 588e851dcd5..b87cc87fb6a 100644 --- a/service/efs/api_op_PutLifecycleConfiguration.go +++ b/service/efs/api_op_PutLifecycleConfiguration.go @@ -27,7 +27,7 @@ import ( // // The Archive storage class is available only for file systems that use the // -// Elastic Throughput mode and the General Purpose Performance mode. +// Elastic throughput mode and the General Purpose performance mode. // // - TransitionToPrimaryStorageClass – Whether to move files in the file system // back to primary storage (Standard storage class) after they are accessed in IA @@ -43,7 +43,7 @@ import ( // LifecycleConfiguration . In the request, specify the following: // // - The ID for the file system for which you are enabling, disabling, or -// modifying Lifecycle management. +// modifying lifecycle management. // // - A LifecyclePolicies array of LifecyclePolicy objects that define when to // move files to IA storage, to Archive storage, and back to primary storage. @@ -86,8 +86,8 @@ type PutLifecycleConfigurationInput struct { FileSystemId *string // An array of LifecyclePolicy objects that define the file system's - // LifecycleConfiguration object. A LifecycleConfiguration object informs EFS - // Lifecycle management of the following: + // LifecycleConfiguration object. A LifecycleConfiguration object informs + // lifecycle management of the following: // // - TransitionToIA – When to move files in the file system from primary storage // (Standard storage class) into the Infrequent Access (IA) storage. @@ -100,7 +100,7 @@ type PutLifecycleConfigurationInput struct { // later than TransitionToIA. // // The Archive storage class is available only for file systems that use the - // Elastic Throughput mode and the General Purpose Performance mode. + // Elastic throughput mode and the General Purpose performance mode. // // - TransitionToPrimaryStorageClass – Whether to move files in the file system // back to primary storage (Standard storage class) after they are accessed in IA diff --git a/service/efs/api_op_UpdateFileSystem.go b/service/efs/api_op_UpdateFileSystem.go index 82e14c3756b..21a3c2f4fc6 100644 --- a/service/efs/api_op_UpdateFileSystem.go +++ b/service/efs/api_op_UpdateFileSystem.go @@ -89,7 +89,7 @@ type UpdateFileSystemOutput struct { // This member is required. OwnerId *string - // The Performance mode of the file system. + // The performance mode of the file system. // // This member is required. PerformanceMode types.PerformanceMode diff --git a/service/efs/api_op_UpdateFileSystemProtection.go b/service/efs/api_op_UpdateFileSystemProtection.go index 718585bed44..f34b9a08299 100644 --- a/service/efs/api_op_UpdateFileSystemProtection.go +++ b/service/efs/api_op_UpdateFileSystemProtection.go @@ -52,7 +52,7 @@ type UpdateFileSystemProtectionInput struct { // modified only by EFS replication. // // If the replication configuration is deleted, the file system's replication - // overwrite protection is re-enabled, the file system becomes writeable. + // overwrite protection is re-enabled and the file system becomes writeable. ReplicationOverwriteProtection types.ReplicationOverwriteProtection noSmithyDocumentSerde diff --git a/service/efs/deserializers.go b/service/efs/deserializers.go index 7f97794d3c9..950cbd259f0 100644 --- a/service/efs/deserializers.go +++ b/service/efs/deserializers.go @@ -1114,6 +1114,15 @@ func awsRestjson1_deserializeOpDocumentCreateReplicationConfigurationOutput(v ** sv.SourceFileSystemId = ptr.String(jtv) } + case "SourceFileSystemOwnerId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) + } + sv.SourceFileSystemOwnerId = ptr.String(jtv) + } + case "SourceFileSystemRegion": if value != nil { jtv, ok := value.(string) @@ -7009,6 +7018,15 @@ func awsRestjson1_deserializeDocumentDestination(v **types.Destination, value in } } + 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 "Region": if value != nil { jtv, ok := value.(string) @@ -7018,6 +7036,15 @@ func awsRestjson1_deserializeDocumentDestination(v **types.Destination, value in sv.Region = 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 "Status": if value != nil { jtv, ok := value.(string) @@ -7027,6 +7054,15 @@ func awsRestjson1_deserializeDocumentDestination(v **types.Destination, value in sv.Status = types.ReplicationStatus(jtv) } + case "StatusMessage": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected StatusMessage to be of type string, got %T instead", value) + } + sv.StatusMessage = ptr.String(jtv) + } + default: _, _ = key, value @@ -8632,6 +8668,15 @@ func awsRestjson1_deserializeDocumentReplicationConfigurationDescription(v **typ sv.SourceFileSystemId = ptr.String(jtv) } + case "SourceFileSystemOwnerId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) + } + sv.SourceFileSystemOwnerId = ptr.String(jtv) + } + case "SourceFileSystemRegion": if value != nil { jtv, ok := value.(string) diff --git a/service/efs/go.mod b/service/efs/go.mod index 122297cc980..77c201fba86 100644 --- a/service/efs/go.mod +++ b/service/efs/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/efs go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/efs/go.sum b/service/efs/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/efs/go.sum +++ b/service/efs/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/efs/go_module_metadata.go b/service/efs/go_module_metadata.go index 724171767d6..10108213919 100644 --- a/service/efs/go_module_metadata.go +++ b/service/efs/go_module_metadata.go @@ -3,4 +3,4 @@ package efs // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.33.5" +const goModuleVersion = "1.34.0" diff --git a/service/efs/serializers.go b/service/efs/serializers.go index 716f4de45a7..14a22b57bff 100644 --- a/service/efs/serializers.go +++ b/service/efs/serializers.go @@ -892,6 +892,10 @@ func awsRestjson1_serializeOpHttpBindingsDeleteReplicationConfigurationInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } + if len(v.DeletionMode) > 0 { + encoder.SetQuery("deletionMode").String(string(v.DeletionMode)) + } + if v.SourceFileSystemId == nil || len(*v.SourceFileSystemId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member SourceFileSystemId must not be empty")} } @@ -2758,6 +2762,11 @@ func awsRestjson1_serializeDocumentDestinationToCreate(v *types.DestinationToCre ok.String(*v.Region) } + if v.RoleArn != nil { + ok := object.Key("RoleArn") + ok.String(*v.RoleArn) + } + return nil } diff --git a/service/efs/types/enums.go b/service/efs/types/enums.go index 03e8198b71f..6b1c769b0b8 100644 --- a/service/efs/types/enums.go +++ b/service/efs/types/enums.go @@ -2,6 +2,25 @@ package types +type DeletionMode string + +// Enum values for DeletionMode +const ( + DeletionModeAllConfigurations DeletionMode = "ALL_CONFIGURATIONS" + DeletionModeLocalConfigurationOnly DeletionMode = "LOCAL_CONFIGURATION_ONLY" +) + +// Values returns all known values for DeletionMode. 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 (DeletionMode) Values() []DeletionMode { + return []DeletionMode{ + "ALL_CONFIGURATIONS", + "LOCAL_CONFIGURATION_ONLY", + } +} + type LifeCycleState string // Enum values for LifeCycleState diff --git a/service/efs/types/types.go b/service/efs/types/types.go index 2c60c22c255..c670bf2ce8f 100644 --- a/service/efs/types/types.go +++ b/service/efs/types/types.go @@ -118,22 +118,10 @@ type Destination struct { // This member is required. Region *string - // Describes the status of the destination EFS file system. + // Describes the status of the replication configuration. For more information + // about replication status, see [Viewing replication details]in the Amazon EFS User Guide. // - // - The Paused state occurs as a result of opting out of the source or - // destination Region after the replication configuration was created. To resume - // replication for the file system, you need to again opt in to the Amazon Web - // Services Region. For more information, see [Managing Amazon Web Services Regions]in the Amazon Web Services General - // Reference Guide. - // - // - The Error state occurs when either the source or the destination file system - // (or both) is in a failed state and is unrecoverable. For more information, see [Monitoring replication status] - // in the Amazon EFS User Guide. You must delete the replication configuration, and - // then restore the most recent backup of the failed file system (either the source - // or the destination) to a new file system. - // - // [Managing Amazon Web Services Regions]: https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-enable - // [Monitoring replication status]: https://docs.aws.amazon.com/efs/latest/ug/awsbackup.html#restoring-backup-efsmonitoring-replication-status.html + // [Viewing replication details]: https://docs.aws.amazon.com/efs/latest/ug/awsbackup.html#restoring-backup-efsmonitoring-replication-status.html // // This member is required. Status ReplicationStatus @@ -145,20 +133,65 @@ type Destination struct { // replicated. LastReplicatedTimestamp *time.Time + // ID of the Amazon Web Services account in which the destination file system + // resides. + OwnerId *string + + // Amazon Resource Name (ARN) of the IAM role in the source account that allows + // Amazon EFS to perform replication on its behalf. This is optional for + // same-account replication and required for cross-account replication. + RoleArn *string + + // Message that provides details about the PAUSED or ERRROR state of the + // replication destination configuration. For more information about replication + // status messages, see [Viewing replication details]in the Amazon EFS User Guide. + // + // [Viewing replication details]: https://docs.aws.amazon.com/efs/latest/ug/awsbackup.html#restoring-backup-efsmonitoring-replication-status.html + StatusMessage *string + noSmithyDocumentSerde } // Describes the new or existing destination file system for the replication // configuration. +// +// - If you want to replicate to a new file system, do not specify the File +// System ID for the destination file system. Amazon EFS creates a new, empty file +// system. For One Zone storage, specify the Availability Zone to create the file +// system in. To use an Key Management Service key other than the default KMS key, +// then specify it. For more information, see [Configuring replication to new Amazon EFS file system]in the Amazon EFS User Guide. +// +// After the file system is created, you cannot change the KMS key or the +// +// performance mode. +// +// - If you want to replicate to an existing file system that's in the same +// account as the source file system, then you need to provide the ID or Amazon +// Resource Name (ARN) of the file system to which to replicate. The file system's +// replication overwrite protection must be disabled. For more information, see [Replicating to an existing file system] +// in the Amazon EFS User Guide. +// +// - If you are replicating the file system to a file system that's in a +// different account than the source file system (cross-account replication), you +// need to provide the ARN for the file system and the IAM role that allows Amazon +// EFS to perform replication on the destination account. The file system's +// replication overwrite protection must be disabled. For more information, see [Replicating across Amazon Web Services accounts] +// in the Amazon EFS User Guide. +// +// [Configuring replication to new Amazon EFS file system]: https://docs.aws.amazon.com/efs/latest/ug/create-replication.html +// +// [Replicating across Amazon Web Services accounts]: https://docs.aws.amazon.com/efs/latest/ug/cross-account-replication.html +// [Replicating to an existing file system]: https://docs.aws.amazon.com/efs/latest/ug/efs-replication#replicate-existing-destination type DestinationToCreate struct { // To create a file system that uses One Zone storage, specify the name of the // Availability Zone in which to create the destination file system. AvailabilityZoneName *string - // The ID of the file system to use for the destination. The file system's - // replication overwrite replication must be disabled. If you do not provide an ID, - // then EFS creates a new file system for the replication destination. + // The ID or ARN of the file system to use for the destination. For cross-account + // replication, this must be an ARN. The file system's replication overwrite + // replication must be disabled. If no ID or ARN is specified, then a new file + // system is created. FileSystemId *string // Specify the Key Management Service (KMS) key that you want to use to encrypt @@ -169,7 +202,7 @@ type DestinationToCreate struct { // - Key ID - The unique identifier of the key, for example // 1234abcd-12ab-34cd-56ef-1234567890ab . // - // - ARN - The Amazon Resource Name (ARN) for the key, for example + // - ARN - The ARN for the key, for example // arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab . // // - Key alias - A previously created display name for a key, for example @@ -180,9 +213,19 @@ type DestinationToCreate struct { KmsKeyId *string // To create a file system that uses Regional storage, specify the Amazon Web - // Services Region in which to create the destination file system. + // Services Region in which to create the destination file system. The Region must + // be enabled for the Amazon Web Services account that owns the source file system. + // For more information, see [Managing Amazon Web Services Regions]in the Amazon Web Services General Reference + // Reference Guide. + // + // [Managing Amazon Web Services Regions]: https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-enable Region *string + // Amazon Resource Name (ARN) of the IAM role in the source account that allows + // Amazon EFS to perform replication on its behalf. This is optional for + // same-account replication and required for cross-account replication. + RoleArn *string + noSmithyDocumentSerde } @@ -221,7 +264,7 @@ type FileSystemDescription struct { // This member is required. OwnerId *string - // The Performance mode of the file system. + // The performance mode of the file system. // // This member is required. PerformanceMode PerformanceMode @@ -348,7 +391,7 @@ type FileSystemSize struct { noSmithyDocumentSerde } -// Describes a policy used by Lifecycle management that specifies when to +// Describes a policy used by lifecycle management that specifies when to // transition files into and out of storage classes. For more information, see [Managing file system storage]. // // When using the put-lifecycle-configuration CLI command or the @@ -362,7 +405,7 @@ type FileSystemSize struct { type LifecyclePolicy struct { // The number of days after files were last accessed in primary storage (the - // Standard storage class) files at which to move them to Archive storage. Metadata + // Standard storage class) at which to move them to Archive storage. Metadata // operations such as listing the contents of a directory don't count as file // access events. TransitionToArchive TransitionToArchiveRules @@ -489,6 +532,9 @@ type ReplicationConfigurationDescription struct { // This member is required. SourceFileSystemRegion *string + // ID of the Amazon Web Services account in which the source file system resides. + SourceFileSystemOwnerId *string + noSmithyDocumentSerde } @@ -511,7 +557,7 @@ type ResourceIdPreference struct { // provides access to. The access point exposes the specified file system path as // the root directory of your file system to applications using the access point. // NFS clients using the access point can only access data in the access point's -// RootDirectory and it's subdirectories. +// RootDirectory and its subdirectories. type RootDirectory struct { // (Optional) Specifies the POSIX IDs and permissions to apply to the access diff --git a/service/eks/CHANGELOG.md b/service/eks/CHANGELOG.md index 967c226c0b6..84110bc4297 100644 --- a/service/eks/CHANGELOG.md +++ b/service/eks/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.52.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.52.0 (2024-11-08) * **Feature**: Adds new error code `Ec2InstanceTypeDoesNotExist` for Amazon EKS managed node groups diff --git a/service/eks/go.mod b/service/eks/go.mod index a4391d80ef2..c428e57b268 100644 --- a/service/eks/go.mod +++ b/service/eks/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/eks go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/eks/go.sum b/service/eks/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/eks/go.sum +++ b/service/eks/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/eks/go_module_metadata.go b/service/eks/go_module_metadata.go index 9bdf2f59af9..f00209ff5cb 100644 --- a/service/eks/go_module_metadata.go +++ b/service/eks/go_module_metadata.go @@ -3,4 +3,4 @@ package eks // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.52.0" +const goModuleVersion = "1.52.1" diff --git a/service/eksauth/CHANGELOG.md b/service/eksauth/CHANGELOG.md index c09556f1d54..4e9c3e3b786 100644 --- a/service/eksauth/CHANGELOG.md +++ b/service/eksauth/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.7.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.7.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/eksauth/go.mod b/service/eksauth/go.mod index f48e801fe18..738e1a8c866 100644 --- a/service/eksauth/go.mod +++ b/service/eksauth/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/eksauth go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/eksauth/go.sum b/service/eksauth/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/eksauth/go.sum +++ b/service/eksauth/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/eksauth/go_module_metadata.go b/service/eksauth/go_module_metadata.go index 99474804a83..0723a87a690 100644 --- a/service/eksauth/go_module_metadata.go +++ b/service/eksauth/go_module_metadata.go @@ -3,4 +3,4 @@ package eksauth // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.7.5" +const goModuleVersion = "1.7.6" diff --git a/service/elasticache/CHANGELOG.md b/service/elasticache/CHANGELOG.md index 85d501edab1..03fa36bd583 100644 --- a/service/elasticache/CHANGELOG.md +++ b/service/elasticache/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.43.3 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.43.2 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/elasticache/go.mod b/service/elasticache/go.mod index 0912ac026b0..35d39fa9bba 100644 --- a/service/elasticache/go.mod +++ b/service/elasticache/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/elasticache go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elasticache/go.sum b/service/elasticache/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/elasticache/go.sum +++ b/service/elasticache/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/elasticache/go_module_metadata.go b/service/elasticache/go_module_metadata.go index 0fdbe29412d..9eeda63e196 100644 --- a/service/elasticache/go_module_metadata.go +++ b/service/elasticache/go_module_metadata.go @@ -3,4 +3,4 @@ package elasticache // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.43.2" +const goModuleVersion = "1.43.3" diff --git a/service/elasticbeanstalk/CHANGELOG.md b/service/elasticbeanstalk/CHANGELOG.md index 92a90cdf4f2..addcda5a0f8 100644 --- a/service/elasticbeanstalk/CHANGELOG.md +++ b/service/elasticbeanstalk/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.28.5 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.4 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/elasticbeanstalk/go.mod b/service/elasticbeanstalk/go.mod index 71d8ae8a701..372abbc51c3 100644 --- a/service/elasticbeanstalk/go.mod +++ b/service/elasticbeanstalk/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/elasticbeanstalk go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elasticbeanstalk/go.sum b/service/elasticbeanstalk/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/elasticbeanstalk/go.sum +++ b/service/elasticbeanstalk/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/elasticbeanstalk/go_module_metadata.go b/service/elasticbeanstalk/go_module_metadata.go index 8b328530ff6..a706740044c 100644 --- a/service/elasticbeanstalk/go_module_metadata.go +++ b/service/elasticbeanstalk/go_module_metadata.go @@ -3,4 +3,4 @@ package elasticbeanstalk // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.4" +const goModuleVersion = "1.28.5" diff --git a/service/elasticinference/CHANGELOG.md b/service/elasticinference/CHANGELOG.md index 54999297b68..4c1a2e8ac94 100644 --- a/service/elasticinference/CHANGELOG.md +++ b/service/elasticinference/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.23.7 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.6 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/elasticinference/go.mod b/service/elasticinference/go.mod index c98f807a946..6f1bb73f2e1 100644 --- a/service/elasticinference/go.mod +++ b/service/elasticinference/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/elasticinference go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/elasticinference/go.sum b/service/elasticinference/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/elasticinference/go.sum +++ b/service/elasticinference/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/elasticinference/go_module_metadata.go b/service/elasticinference/go_module_metadata.go index 2f4a807344c..136ebdd4612 100644 --- a/service/elasticinference/go_module_metadata.go +++ b/service/elasticinference/go_module_metadata.go @@ -3,4 +3,4 @@ package elasticinference // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.6" +const goModuleVersion = "1.23.7" diff --git a/service/elasticloadbalancing/CHANGELOG.md b/service/elasticloadbalancing/CHANGELOG.md index 9e0e8f7695f..f0c1f0b2048 100644 --- a/service/elasticloadbalancing/CHANGELOG.md +++ b/service/elasticloadbalancing/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.28.5 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.4 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/elasticloadbalancing/go.mod b/service/elasticloadbalancing/go.mod index 43744294aeb..1caf5185e7e 100644 --- a/service/elasticloadbalancing/go.mod +++ b/service/elasticloadbalancing/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elasticloadbalancing/go.sum b/service/elasticloadbalancing/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/elasticloadbalancing/go.sum +++ b/service/elasticloadbalancing/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/elasticloadbalancing/go_module_metadata.go b/service/elasticloadbalancing/go_module_metadata.go index d99ed1a6533..bddc74dc115 100644 --- a/service/elasticloadbalancing/go_module_metadata.go +++ b/service/elasticloadbalancing/go_module_metadata.go @@ -3,4 +3,4 @@ package elasticloadbalancing // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.4" +const goModuleVersion = "1.28.5" diff --git a/service/elasticloadbalancingv2/CHANGELOG.md b/service/elasticloadbalancingv2/CHANGELOG.md index 7b08a0b2406..6851b496c8a 100644 --- a/service/elasticloadbalancingv2/CHANGELOG.md +++ b/service/elasticloadbalancingv2/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.42.0 (2024-11-20) + +* **Feature**: This release adds support for configuring Load balancer Capacity Unit reservations + +# v1.41.2 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.41.1 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/elasticloadbalancingv2/api_op_DescribeCapacityReservation.go b/service/elasticloadbalancingv2/api_op_DescribeCapacityReservation.go new file mode 100644 index 00000000000..8b250014817 --- /dev/null +++ b/service/elasticloadbalancingv2/api_op_DescribeCapacityReservation.go @@ -0,0 +1,167 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package elasticloadbalancingv2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Describes the capacity reservation status for the specified load balancer. +func (c *Client) DescribeCapacityReservation(ctx context.Context, params *DescribeCapacityReservationInput, optFns ...func(*Options)) (*DescribeCapacityReservationOutput, error) { + if params == nil { + params = &DescribeCapacityReservationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeCapacityReservation", params, optFns, c.addOperationDescribeCapacityReservationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeCapacityReservationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeCapacityReservationInput struct { + + // The Amazon Resource Name (ARN) of the load balancer. + // + // This member is required. + LoadBalancerArn *string + + noSmithyDocumentSerde +} + +type DescribeCapacityReservationOutput struct { + + // The state of the capacity reservation. + CapacityReservationState []types.ZonalCapacityReservationState + + // The amount of daily capacity decreases remaining. + DecreaseRequestsRemaining *int32 + + // The last time the capacity reservation was modified. + LastModifiedTime *time.Time + + // The requested minimum capacity reservation for the load balancer + MinimumLoadBalancerCapacity *types.MinimumLoadBalancerCapacity + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeCapacityReservationMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsquery_serializeOpDescribeCapacityReservation{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDescribeCapacityReservation{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeCapacityReservation"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpDescribeCapacityReservationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeCapacityReservation(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeCapacityReservation(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DescribeCapacityReservation", + } +} diff --git a/service/elasticloadbalancingv2/api_op_ModifyCapacityReservation.go b/service/elasticloadbalancingv2/api_op_ModifyCapacityReservation.go new file mode 100644 index 00000000000..1d828c4bbf3 --- /dev/null +++ b/service/elasticloadbalancingv2/api_op_ModifyCapacityReservation.go @@ -0,0 +1,176 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package elasticloadbalancingv2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Modifies the capacity reservation of the specified load balancer. +// +// When modifying capacity reservation, you must include at least one +// MinimumLoadBalancerCapacity or ResetCapacityReservation . +func (c *Client) ModifyCapacityReservation(ctx context.Context, params *ModifyCapacityReservationInput, optFns ...func(*Options)) (*ModifyCapacityReservationOutput, error) { + if params == nil { + params = &ModifyCapacityReservationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ModifyCapacityReservation", params, optFns, c.addOperationModifyCapacityReservationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ModifyCapacityReservationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ModifyCapacityReservationInput struct { + + // The Amazon Resource Name (ARN) of the load balancer. + // + // This member is required. + LoadBalancerArn *string + + // The minimum load balancer capacity reserved. + MinimumLoadBalancerCapacity *types.MinimumLoadBalancerCapacity + + // Resets the capacity reservation. + ResetCapacityReservation *bool + + noSmithyDocumentSerde +} + +type ModifyCapacityReservationOutput struct { + + // The state of the capacity reservation. + CapacityReservationState []types.ZonalCapacityReservationState + + // The amount of daily capacity decreases remaining. + DecreaseRequestsRemaining *int32 + + // The last time the capacity reservation was modified. + LastModifiedTime *time.Time + + // The requested minimum capacity reservation for the load balancer + MinimumLoadBalancerCapacity *types.MinimumLoadBalancerCapacity + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationModifyCapacityReservationMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsquery_serializeOpModifyCapacityReservation{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsquery_deserializeOpModifyCapacityReservation{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyCapacityReservation"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpModifyCapacityReservationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyCapacityReservation(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opModifyCapacityReservation(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ModifyCapacityReservation", + } +} diff --git a/service/elasticloadbalancingv2/deserializers.go b/service/elasticloadbalancingv2/deserializers.go index 558955f6ec0..dc5898d84a9 100644 --- a/service/elasticloadbalancingv2/deserializers.go +++ b/service/elasticloadbalancingv2/deserializers.go @@ -2037,6 +2037,118 @@ func awsAwsquery_deserializeOpErrorDescribeAccountLimits(response *smithyhttp.Re } } +type awsAwsquery_deserializeOpDescribeCapacityReservation struct { +} + +func (*awsAwsquery_deserializeOpDescribeCapacityReservation) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsquery_deserializeOpDescribeCapacityReservation) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsquery_deserializeOpErrorDescribeCapacityReservation(response, &metadata) + } + output := &DescribeCapacityReservationOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("DescribeCapacityReservationResult") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeOpDocumentDescribeCapacityReservationOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsquery_deserializeOpErrorDescribeCapacityReservation(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("LoadBalancerNotFound", errorCode): + return awsAwsquery_deserializeErrorLoadBalancerNotFoundException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsAwsquery_deserializeOpDescribeListenerAttributes struct { } @@ -3980,6 +4092,139 @@ func awsAwsquery_deserializeOpErrorGetTrustStoreRevocationContent(response *smit } } +type awsAwsquery_deserializeOpModifyCapacityReservation struct { +} + +func (*awsAwsquery_deserializeOpModifyCapacityReservation) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsquery_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) + if err != nil { + return out, metadata, err + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsquery_deserializeOpErrorModifyCapacityReservation(response, &metadata) + } + output := &ModifyCapacityReservationOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("ModifyCapacityReservationResult") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_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 awsAwsquery_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)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + if err != nil { + return err + } + if reqID := errorComponents.RequestID; len(reqID) != 0 { + awsmiddleware.SetRequestIDMetadata(metadata, reqID) + } + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("CapacityDecreaseRequestLimitExceeded", errorCode): + return awsAwsquery_deserializeErrorCapacityDecreaseRequestsLimitExceededException(response, errorBody) + + case strings.EqualFold("CapacityReservationPending", errorCode): + return awsAwsquery_deserializeErrorCapacityReservationPendingException(response, errorBody) + + case strings.EqualFold("CapacityUnitsLimitExceeded", errorCode): + return awsAwsquery_deserializeErrorCapacityUnitsLimitExceededException(response, errorBody) + + case strings.EqualFold("InsufficientCapacity", errorCode): + return awsAwsquery_deserializeErrorInsufficientCapacityException(response, errorBody) + + case strings.EqualFold("InvalidConfigurationRequest", errorCode): + return awsAwsquery_deserializeErrorInvalidConfigurationRequestException(response, errorBody) + + case strings.EqualFold("LoadBalancerNotFound", errorCode): + return awsAwsquery_deserializeErrorLoadBalancerNotFoundException(response, errorBody) + + case strings.EqualFold("OperationNotPermitted", errorCode): + return awsAwsquery_deserializeErrorOperationNotPermittedException(response, errorBody) + + case strings.EqualFold("PriorRequestNotComplete", errorCode): + return awsAwsquery_deserializeErrorPriorRequestNotCompleteException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsAwsquery_deserializeOpModifyListener struct { } @@ -5803,6 +6048,9 @@ func awsAwsquery_deserializeOpErrorSetSubnets(response *smithyhttp.Response, met case strings.EqualFold("AvailabilityZoneNotSupported", errorCode): return awsAwsquery_deserializeErrorAvailabilityZoneNotSupportedException(response, errorBody) + case strings.EqualFold("CapacityReservationPending", errorCode): + return awsAwsquery_deserializeErrorCapacityReservationPendingException(response, errorBody) + case strings.EqualFold("InvalidConfigurationRequest", errorCode): return awsAwsquery_deserializeErrorInvalidConfigurationRequestException(response, errorBody) @@ -6001,8 +6249,8 @@ func awsAwsquery_deserializeErrorCaCertificatesBundleNotFoundException(response return output } -func awsAwsquery_deserializeErrorCertificateNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CertificateNotFoundException{} +func awsAwsquery_deserializeErrorCapacityDecreaseRequestsLimitExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CapacityDecreaseRequestsLimitExceededException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -6032,7 +6280,7 @@ func awsAwsquery_deserializeErrorCertificateNotFoundException(response *smithyht } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentCertificateNotFoundException(&output, decoder) + err = awsAwsquery_deserializeDocumentCapacityDecreaseRequestsLimitExceededException(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6045,8 +6293,8 @@ func awsAwsquery_deserializeErrorCertificateNotFoundException(response *smithyht return output } -func awsAwsquery_deserializeErrorDeleteAssociationSameAccountException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.DeleteAssociationSameAccountException{} +func awsAwsquery_deserializeErrorCapacityReservationPendingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CapacityReservationPendingException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -6076,7 +6324,7 @@ func awsAwsquery_deserializeErrorDeleteAssociationSameAccountException(response } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentDeleteAssociationSameAccountException(&output, decoder) + err = awsAwsquery_deserializeDocumentCapacityReservationPendingException(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6089,8 +6337,8 @@ func awsAwsquery_deserializeErrorDeleteAssociationSameAccountException(response return output } -func awsAwsquery_deserializeErrorDuplicateListenerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.DuplicateListenerException{} +func awsAwsquery_deserializeErrorCapacityUnitsLimitExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CapacityUnitsLimitExceededException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -6120,7 +6368,7 @@ func awsAwsquery_deserializeErrorDuplicateListenerException(response *smithyhttp } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentDuplicateListenerException(&output, decoder) + err = awsAwsquery_deserializeDocumentCapacityUnitsLimitExceededException(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6133,8 +6381,8 @@ func awsAwsquery_deserializeErrorDuplicateListenerException(response *smithyhttp return output } -func awsAwsquery_deserializeErrorDuplicateLoadBalancerNameException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.DuplicateLoadBalancerNameException{} +func awsAwsquery_deserializeErrorCertificateNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CertificateNotFoundException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -6164,7 +6412,7 @@ func awsAwsquery_deserializeErrorDuplicateLoadBalancerNameException(response *sm } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentDuplicateLoadBalancerNameException(&output, decoder) + err = awsAwsquery_deserializeDocumentCertificateNotFoundException(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6177,8 +6425,8 @@ func awsAwsquery_deserializeErrorDuplicateLoadBalancerNameException(response *sm return output } -func awsAwsquery_deserializeErrorDuplicateTagKeysException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.DuplicateTagKeysException{} +func awsAwsquery_deserializeErrorDeleteAssociationSameAccountException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.DeleteAssociationSameAccountException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -6208,7 +6456,7 @@ func awsAwsquery_deserializeErrorDuplicateTagKeysException(response *smithyhttp. } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentDuplicateTagKeysException(&output, decoder) + err = awsAwsquery_deserializeDocumentDeleteAssociationSameAccountException(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6221,8 +6469,8 @@ func awsAwsquery_deserializeErrorDuplicateTagKeysException(response *smithyhttp. return output } -func awsAwsquery_deserializeErrorDuplicateTargetGroupNameException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.DuplicateTargetGroupNameException{} +func awsAwsquery_deserializeErrorDuplicateListenerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.DuplicateListenerException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -6252,7 +6500,7 @@ func awsAwsquery_deserializeErrorDuplicateTargetGroupNameException(response *smi } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentDuplicateTargetGroupNameException(&output, decoder) + err = awsAwsquery_deserializeDocumentDuplicateListenerException(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6265,8 +6513,8 @@ func awsAwsquery_deserializeErrorDuplicateTargetGroupNameException(response *smi return output } -func awsAwsquery_deserializeErrorDuplicateTrustStoreNameException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.DuplicateTrustStoreNameException{} +func awsAwsquery_deserializeErrorDuplicateLoadBalancerNameException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.DuplicateLoadBalancerNameException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -6296,7 +6544,7 @@ func awsAwsquery_deserializeErrorDuplicateTrustStoreNameException(response *smit } decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentDuplicateTrustStoreNameException(&output, decoder) + err = awsAwsquery_deserializeDocumentDuplicateLoadBalancerNameException(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6309,9 +6557,141 @@ func awsAwsquery_deserializeErrorDuplicateTrustStoreNameException(response *smit return output } -func awsAwsquery_deserializeErrorHealthUnavailableException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.HealthUnavailableException{} - var buff [1024]byte +func awsAwsquery_deserializeErrorDuplicateTagKeysException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.DuplicateTagKeysException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentDuplicateTagKeysException(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsAwsquery_deserializeErrorDuplicateTargetGroupNameException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.DuplicateTargetGroupNameException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentDuplicateTargetGroupNameException(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsAwsquery_deserializeErrorDuplicateTrustStoreNameException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.DuplicateTrustStoreNameException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentDuplicateTrustStoreNameException(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + +func awsAwsquery_deserializeErrorHealthUnavailableException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.HealthUnavailableException{} + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) rootDecoder := xml.NewDecoder(body) @@ -6397,6 +6777,50 @@ func awsAwsquery_deserializeErrorIncompatibleProtocolsException(response *smithy return output } +func awsAwsquery_deserializeErrorInsufficientCapacityException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InsufficientCapacityException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentInsufficientCapacityException(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + func awsAwsquery_deserializeErrorInvalidCaCertificatesBundleException(response *smithyhttp.Response, errorBody *bytes.Reader) error { output := &types.InvalidCaCertificatesBundleException{} var buff [1024]byte @@ -6925,6 +7349,50 @@ func awsAwsquery_deserializeErrorPriorityInUseException(response *smithyhttp.Res return output } +func awsAwsquery_deserializeErrorPriorRequestNotCompleteException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.PriorRequestNotCompleteException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentPriorRequestNotCompleteException(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + func awsAwsquery_deserializeErrorResourceInUseException(response *smithyhttp.Response, errorBody *bytes.Reader) error { output := &types.ResourceInUseException{} var buff [1024]byte @@ -9339,13 +9807,13 @@ func awsAwsquery_deserializeDocumentCaCertificatesBundleNotFoundException(v **ty return nil } -func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCapacityDecreaseRequestsLimitExceededException(v **types.CapacityDecreaseRequestsLimitExceededException, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.Certificate + var sv *types.CapacityDecreaseRequestsLimitExceededException if *v == nil { - sv = &types.Certificate{} + sv = &types.CapacityDecreaseRequestsLimitExceededException{} } else { sv = *v } @@ -9361,7 +9829,7 @@ func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder s originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("CertificateArn", t.Name.Local): + case strings.EqualFold("Message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -9371,23 +9839,7 @@ func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder s } { xtv := string(val) - sv.CertificateArn = ptr.String(xtv) - } - - 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 Default to be of type *bool, got %T instead", val) - } - sv.IsDefault = ptr.Bool(xtv) + sv.Message = ptr.String(xtv) } default: @@ -9404,18 +9856,17 @@ func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder s return nil } -func awsAwsquery_deserializeDocumentCertificateList(v *[]types.Certificate, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentCapacityReservationPendingException(v **types.CapacityReservationPendingException, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.Certificate + var sv *types.CapacityReservationPendingException if *v == nil { - sv = make([]types.Certificate, 0) + sv = &types.CapacityReservationPendingException{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -9424,16 +9875,242 @@ func awsAwsquery_deserializeDocumentCertificateList(v *[]types.Certificate, deco if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("member", t.Name.Local): - var col types.Certificate - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentCertificate(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("Message", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr - sv = append(sv, col) + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentCapacityReservationStatus(v **types.CapacityReservationStatus, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CapacityReservationStatus + if *v == nil { + sv = &types.CapacityReservationStatus{} + } 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.CapacityReservationStateEnum(xtv) + } + + case strings.EqualFold("Reason", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Reason = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentCapacityUnitsLimitExceededException(v **types.CapacityUnitsLimitExceededException, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CapacityUnitsLimitExceededException + if *v == nil { + sv = &types.CapacityUnitsLimitExceededException{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("Message", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.Certificate + if *v == nil { + sv = &types.Certificate{} + } 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("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("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 Default 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() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentCertificateList(v *[]types.Certificate, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.Certificate + if *v == nil { + sv = make([]types.Certificate, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("member", t.Name.Local): + var col types.Certificate + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsAwsquery_deserializeDocumentCertificate(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) default: err = decoder.Decoder.Skip() @@ -10473,6 +11150,55 @@ func awsAwsquery_deserializeDocumentIncompatibleProtocolsException(v **types.Inc return nil } +func awsAwsquery_deserializeDocumentInsufficientCapacityException(v **types.InsufficientCapacityException, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.InsufficientCapacityException + if *v == nil { + sv = &types.InsufficientCapacityException{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("Message", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsAwsquery_deserializeDocumentInvalidCaCertificatesBundleException(v **types.InvalidCaCertificatesBundleException, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -12272,6 +12998,59 @@ func awsAwsquery_deserializeDocumentMatcher(v **types.Matcher, decoder smithyxml return nil } +func awsAwsquery_deserializeDocumentMinimumLoadBalancerCapacity(v **types.MinimumLoadBalancerCapacity, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.MinimumLoadBalancerCapacity + if *v == nil { + sv = &types.MinimumLoadBalancerCapacity{} + } 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("CapacityUnits", 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.CapacityUnits = ptr.Int32(int32(i64)) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsAwsquery_deserializeDocumentMutualAuthenticationAttributes(v **types.MutualAuthenticationAttributes, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -12503,6 +13282,55 @@ func awsAwsquery_deserializeDocumentPriorityInUseException(v **types.PriorityInU return nil } +func awsAwsquery_deserializeDocumentPriorRequestNotCompleteException(v **types.PriorRequestNotCompleteException, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.PriorRequestNotCompleteException + if *v == nil { + sv = &types.PriorRequestNotCompleteException{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("Message", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsAwsquery_deserializeDocumentQueryStringConditionConfig(v **types.QueryStringConditionConfig, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -16309,27 +17137,240 @@ func awsAwsquery_deserializeDocumentTrustStoreRevocations(v *[]types.TrustStoreR sv = *v } - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.TrustStoreRevocation + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("member", t.Name.Local): + var col types.TrustStoreRevocation + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsAwsquery_deserializeDocumentTrustStoreRevocation(&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 awsAwsquery_deserializeDocumentTrustStoreRevocationsUnwrapped(v *[]types.TrustStoreRevocation, decoder smithyxml.NodeDecoder) error { + var sv []types.TrustStoreRevocation + if *v == nil { + sv = make([]types.TrustStoreRevocation, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.TrustStoreRevocation + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTrustStoreRevocation(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsAwsquery_deserializeDocumentTrustStores(v *[]types.TrustStore, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.TrustStore + if *v == nil { + sv = make([]types.TrustStore, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("member", t.Name.Local): + var col types.TrustStore + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsAwsquery_deserializeDocumentTrustStore(&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 awsAwsquery_deserializeDocumentTrustStoresUnwrapped(v *[]types.TrustStore, decoder smithyxml.NodeDecoder) error { + var sv []types.TrustStore + if *v == nil { + sv = make([]types.TrustStore, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.TrustStore + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsAwsquery_deserializeDocumentTrustStore(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsAwsquery_deserializeDocumentUnsupportedProtocolException(v **types.UnsupportedProtocolException, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.UnsupportedProtocolException + if *v == nil { + sv = &types.UnsupportedProtocolException{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("Message", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentZonalCapacityReservationState(v **types.ZonalCapacityReservationState, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.ZonalCapacityReservationState + if *v == nil { + sv = &types.ZonalCapacityReservationState{} + } 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): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.AvailabilityZone = ptr.String(xtv) + } + + case strings.EqualFold("EffectiveCapacityUnits", 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.EffectiveCapacityUnits = ptr.Float64(f64) + } + + case strings.EqualFold("State", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentTrustStoreRevocation(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentCapacityReservationStatus(&sv.State, 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 @@ -16342,37 +17383,13 @@ func awsAwsquery_deserializeDocumentTrustStoreRevocations(v *[]types.TrustStoreR return nil } -func awsAwsquery_deserializeDocumentTrustStoreRevocationsUnwrapped(v *[]types.TrustStoreRevocation, decoder smithyxml.NodeDecoder) error { - var sv []types.TrustStoreRevocation - if *v == nil { - sv = make([]types.TrustStoreRevocation, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.TrustStoreRevocation - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentTrustStoreRevocation(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentTrustStores(v *[]types.TrustStore, decoder smithyxml.NodeDecoder) error { +func awsAwsquery_deserializeDocumentZonalCapacityReservationStates(v *[]types.ZonalCapacityReservationState, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.TrustStore + var sv []types.ZonalCapacityReservationState if *v == nil { - sv = make([]types.TrustStore, 0) + sv = make([]types.ZonalCapacityReservationState, 0) } else { sv = *v } @@ -16388,10 +17405,10 @@ func awsAwsquery_deserializeDocumentTrustStores(v *[]types.TrustStore, decoder s } switch { case strings.EqualFold("member", t.Name.Local): - var col types.TrustStore + var col types.ZonalCapacityReservationState nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsAwsquery_deserializeDocumentTrustStore(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentZonalCapacityReservationState(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -16410,22 +17427,22 @@ func awsAwsquery_deserializeDocumentTrustStores(v *[]types.TrustStore, decoder s return nil } -func awsAwsquery_deserializeDocumentTrustStoresUnwrapped(v *[]types.TrustStore, decoder smithyxml.NodeDecoder) error { - var sv []types.TrustStore +func awsAwsquery_deserializeDocumentZonalCapacityReservationStatesUnwrapped(v *[]types.ZonalCapacityReservationState, decoder smithyxml.NodeDecoder) error { + var sv []types.ZonalCapacityReservationState if *v == nil { - sv = make([]types.TrustStore, 0) + sv = make([]types.ZonalCapacityReservationState, 0) } else { sv = *v } switch { default: - var mv types.TrustStore + var mv types.ZonalCapacityReservationState t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsAwsquery_deserializeDocumentTrustStore(&destAddr, nodeDecoder); err != nil { + if err := awsAwsquery_deserializeDocumentZonalCapacityReservationState(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -16434,55 +17451,6 @@ func awsAwsquery_deserializeDocumentTrustStoresUnwrapped(v *[]types.TrustStore, *v = sv return nil } -func awsAwsquery_deserializeDocumentUnsupportedProtocolException(v **types.UnsupportedProtocolException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.UnsupportedProtocolException - if *v == nil { - sv = &types.UnsupportedProtocolException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - func awsAwsquery_deserializeOpDocumentAddListenerCertificatesOutput(v **AddListenerCertificatesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -17120,6 +18088,88 @@ func awsAwsquery_deserializeOpDocumentDescribeAccountLimitsOutput(v **DescribeAc return nil } +func awsAwsquery_deserializeOpDocumentDescribeCapacityReservationOutput(v **DescribeCapacityReservationOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeCapacityReservationOutput + if *v == nil { + sv = &DescribeCapacityReservationOutput{} + } 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("CapacityReservationState", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentZonalCapacityReservationStates(&sv.CapacityReservationState, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("DecreaseRequestsRemaining", 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.DecreaseRequestsRemaining = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("LastModifiedTime", 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.LastModifiedTime = ptr.Time(t) + } + + case strings.EqualFold("MinimumLoadBalancerCapacity", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentMinimumLoadBalancerCapacity(&sv.MinimumLoadBalancerCapacity, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsAwsquery_deserializeOpDocumentDescribeListenerAttributesOutput(v **DescribeListenerAttributesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -17972,6 +19022,88 @@ func awsAwsquery_deserializeOpDocumentGetTrustStoreRevocationContentOutput(v **G return nil } +func awsAwsquery_deserializeOpDocumentModifyCapacityReservationOutput(v **ModifyCapacityReservationOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ModifyCapacityReservationOutput + if *v == nil { + sv = &ModifyCapacityReservationOutput{} + } 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("CapacityReservationState", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentZonalCapacityReservationStates(&sv.CapacityReservationState, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("DecreaseRequestsRemaining", 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.DecreaseRequestsRemaining = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("LastModifiedTime", 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.LastModifiedTime = ptr.Time(t) + } + + case strings.EqualFold("MinimumLoadBalancerCapacity", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentMinimumLoadBalancerCapacity(&sv.MinimumLoadBalancerCapacity, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsAwsquery_deserializeOpDocumentModifyListenerAttributesOutput(v **ModifyListenerAttributesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/elasticloadbalancingv2/generated.json b/service/elasticloadbalancingv2/generated.json index 703c1bacf79..6f740b74b18 100644 --- a/service/elasticloadbalancingv2/generated.json +++ b/service/elasticloadbalancingv2/generated.json @@ -25,6 +25,7 @@ "api_op_DeleteTrustStore.go", "api_op_DeregisterTargets.go", "api_op_DescribeAccountLimits.go", + "api_op_DescribeCapacityReservation.go", "api_op_DescribeListenerAttributes.go", "api_op_DescribeListenerCertificates.go", "api_op_DescribeListeners.go", @@ -42,6 +43,7 @@ "api_op_GetResourcePolicy.go", "api_op_GetTrustStoreCaCertificatesBundle.go", "api_op_GetTrustStoreRevocationContent.go", + "api_op_ModifyCapacityReservation.go", "api_op_ModifyListener.go", "api_op_ModifyListenerAttributes.go", "api_op_ModifyLoadBalancerAttributes.go", diff --git a/service/elasticloadbalancingv2/go.mod b/service/elasticloadbalancingv2/go.mod index ab619d7bf42..e646aa71a47 100644 --- a/service/elasticloadbalancingv2/go.mod +++ b/service/elasticloadbalancingv2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elasticloadbalancingv2/go.sum b/service/elasticloadbalancingv2/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/elasticloadbalancingv2/go.sum +++ b/service/elasticloadbalancingv2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/elasticloadbalancingv2/go_module_metadata.go b/service/elasticloadbalancingv2/go_module_metadata.go index 36cb0e2ec9a..4c046b4fe45 100644 --- a/service/elasticloadbalancingv2/go_module_metadata.go +++ b/service/elasticloadbalancingv2/go_module_metadata.go @@ -3,4 +3,4 @@ package elasticloadbalancingv2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.41.1" +const goModuleVersion = "1.42.0" diff --git a/service/elasticloadbalancingv2/serializers.go b/service/elasticloadbalancingv2/serializers.go index b45d7d7b255..69dc4fbf0df 100644 --- a/service/elasticloadbalancingv2/serializers.go +++ b/service/elasticloadbalancingv2/serializers.go @@ -1137,6 +1137,76 @@ func (m *awsAwsquery_serializeOpDescribeAccountLimits) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } +type awsAwsquery_serializeOpDescribeCapacityReservation struct { +} + +func (*awsAwsquery_serializeOpDescribeCapacityReservation) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsquery_serializeOpDescribeCapacityReservation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DescribeCapacityReservationInput) + _ = 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("DescribeCapacityReservation") + body.Key("Version").String("2015-12-01") + + if err := awsAwsquery_serializeOpDocumentDescribeCapacityReservationInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + type awsAwsquery_serializeOpDescribeListenerAttributes struct { } @@ -2327,6 +2397,76 @@ func (m *awsAwsquery_serializeOpGetTrustStoreRevocationContent) HandleSerialize( return next.HandleSerialize(ctx, in) } +type awsAwsquery_serializeOpModifyCapacityReservation struct { +} + +func (*awsAwsquery_serializeOpModifyCapacityReservation) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsquery_serializeOpModifyCapacityReservation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*ModifyCapacityReservationInput) + _ = 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("ModifyCapacityReservation") + body.Key("Version").String("2015-12-01") + + if err := awsAwsquery_serializeOpDocumentModifyCapacityReservationInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + type awsAwsquery_serializeOpModifyListener struct { } @@ -3855,6 +3995,18 @@ func awsAwsquery_serializeDocumentMatcher(v *types.Matcher, value query.Value) e return nil } +func awsAwsquery_serializeDocumentMinimumLoadBalancerCapacity(v *types.MinimumLoadBalancerCapacity, value query.Value) error { + object := value.Object() + _ = object + + if v.CapacityUnits != nil { + objectKey := object.Key("CapacityUnits") + objectKey.Integer(*v.CapacityUnits) + } + + return nil +} + func awsAwsquery_serializeDocumentMutualAuthenticationAttributes(v *types.MutualAuthenticationAttributes, value query.Value) error { object := value.Object() _ = object @@ -4890,6 +5042,18 @@ func awsAwsquery_serializeOpDocumentDescribeAccountLimitsInput(v *DescribeAccoun return nil } +func awsAwsquery_serializeOpDocumentDescribeCapacityReservationInput(v *DescribeCapacityReservationInput, value query.Value) error { + object := value.Object() + _ = object + + if v.LoadBalancerArn != nil { + objectKey := object.Key("LoadBalancerArn") + objectKey.String(*v.LoadBalancerArn) + } + + return nil +} + func awsAwsquery_serializeOpDocumentDescribeListenerAttributesInput(v *DescribeListenerAttributesInput, value query.Value) error { object := value.Object() _ = object @@ -5265,6 +5429,30 @@ func awsAwsquery_serializeOpDocumentGetTrustStoreRevocationContentInput(v *GetTr return nil } +func awsAwsquery_serializeOpDocumentModifyCapacityReservationInput(v *ModifyCapacityReservationInput, value query.Value) error { + object := value.Object() + _ = object + + if v.LoadBalancerArn != nil { + objectKey := object.Key("LoadBalancerArn") + objectKey.String(*v.LoadBalancerArn) + } + + if v.MinimumLoadBalancerCapacity != nil { + objectKey := object.Key("MinimumLoadBalancerCapacity") + if err := awsAwsquery_serializeDocumentMinimumLoadBalancerCapacity(v.MinimumLoadBalancerCapacity, objectKey); err != nil { + return err + } + } + + if v.ResetCapacityReservation != nil { + objectKey := object.Key("ResetCapacityReservation") + objectKey.Boolean(*v.ResetCapacityReservation) + } + + return nil +} + func awsAwsquery_serializeOpDocumentModifyListenerAttributesInput(v *ModifyListenerAttributesInput, value query.Value) error { object := value.Object() _ = object diff --git a/service/elasticloadbalancingv2/snapshot/api_op_DescribeCapacityReservation.go.snap b/service/elasticloadbalancingv2/snapshot/api_op_DescribeCapacityReservation.go.snap new file mode 100644 index 00000000000..d4e05f44e59 --- /dev/null +++ b/service/elasticloadbalancingv2/snapshot/api_op_DescribeCapacityReservation.go.snap @@ -0,0 +1,41 @@ +DescribeCapacityReservation + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/elasticloadbalancingv2/snapshot/api_op_ModifyCapacityReservation.go.snap b/service/elasticloadbalancingv2/snapshot/api_op_ModifyCapacityReservation.go.snap new file mode 100644 index 00000000000..880bce06606 --- /dev/null +++ b/service/elasticloadbalancingv2/snapshot/api_op_ModifyCapacityReservation.go.snap @@ -0,0 +1,41 @@ +ModifyCapacityReservation + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/elasticloadbalancingv2/snapshot_test.go b/service/elasticloadbalancingv2/snapshot_test.go index f45b7f32fd5..2c1bc81b6a1 100644 --- a/service/elasticloadbalancingv2/snapshot_test.go +++ b/service/elasticloadbalancingv2/snapshot_test.go @@ -254,6 +254,18 @@ func TestCheckSnapshot_DescribeAccountLimits(t *testing.T) { } } +func TestCheckSnapshot_DescribeCapacityReservation(t *testing.T) { + svc := New(Options{}) + _, err := svc.DescribeCapacityReservation(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "DescribeCapacityReservation") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_DescribeListenerAttributes(t *testing.T) { svc := New(Options{}) _, err := svc.DescribeListenerAttributes(context.Background(), nil, func(o *Options) { @@ -458,6 +470,18 @@ func TestCheckSnapshot_GetTrustStoreRevocationContent(t *testing.T) { } } +func TestCheckSnapshot_ModifyCapacityReservation(t *testing.T) { + svc := New(Options{}) + _, err := svc.ModifyCapacityReservation(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "ModifyCapacityReservation") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_ModifyListener(t *testing.T) { svc := New(Options{}) _, err := svc.ModifyListener(context.Background(), nil, func(o *Options) { @@ -829,6 +853,18 @@ func TestUpdateSnapshot_DescribeAccountLimits(t *testing.T) { } } +func TestUpdateSnapshot_DescribeCapacityReservation(t *testing.T) { + svc := New(Options{}) + _, err := svc.DescribeCapacityReservation(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "DescribeCapacityReservation") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_DescribeListenerAttributes(t *testing.T) { svc := New(Options{}) _, err := svc.DescribeListenerAttributes(context.Background(), nil, func(o *Options) { @@ -1033,6 +1069,18 @@ func TestUpdateSnapshot_GetTrustStoreRevocationContent(t *testing.T) { } } +func TestUpdateSnapshot_ModifyCapacityReservation(t *testing.T) { + svc := New(Options{}) + _, err := svc.ModifyCapacityReservation(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "ModifyCapacityReservation") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_ModifyListener(t *testing.T) { svc := New(Options{}) _, err := svc.ModifyListener(context.Background(), nil, func(o *Options) { diff --git a/service/elasticloadbalancingv2/types/enums.go b/service/elasticloadbalancingv2/types/enums.go index 8979bffacd7..a95adb8a09c 100644 --- a/service/elasticloadbalancingv2/types/enums.go +++ b/service/elasticloadbalancingv2/types/enums.go @@ -90,6 +90,30 @@ func (AuthenticateOidcActionConditionalBehaviorEnum) Values() []AuthenticateOidc } } +type CapacityReservationStateEnum string + +// Enum values for CapacityReservationStateEnum +const ( + CapacityReservationStateEnumProvisioned CapacityReservationStateEnum = "provisioned" + CapacityReservationStateEnumPending CapacityReservationStateEnum = "pending" + CapacityReservationStateEnumRebalancing CapacityReservationStateEnum = "rebalancing" + CapacityReservationStateEnumFailed CapacityReservationStateEnum = "failed" +) + +// Values returns all known values for CapacityReservationStateEnum. 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 (CapacityReservationStateEnum) Values() []CapacityReservationStateEnum { + return []CapacityReservationStateEnum{ + "provisioned", + "pending", + "rebalancing", + "failed", + } +} + type DescribeTargetHealthInputIncludeEnum string // Enum values for DescribeTargetHealthInputIncludeEnum diff --git a/service/elasticloadbalancingv2/types/errors.go b/service/elasticloadbalancingv2/types/errors.go index d41bdc6f7b8..20dd36717f5 100644 --- a/service/elasticloadbalancingv2/types/errors.go +++ b/service/elasticloadbalancingv2/types/errors.go @@ -115,6 +115,90 @@ func (e *CaCertificatesBundleNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// You've exceeded the daily capacity decrease limit for this reservation. +type CapacityDecreaseRequestsLimitExceededException struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *CapacityDecreaseRequestsLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *CapacityDecreaseRequestsLimitExceededException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *CapacityDecreaseRequestsLimitExceededException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "CapacityDecreaseRequestLimitExceeded" + } + return *e.ErrorCodeOverride +} +func (e *CapacityDecreaseRequestsLimitExceededException) ErrorFault() smithy.ErrorFault { + return smithy.FaultClient +} + +// There is a pending capacity reservation. +type CapacityReservationPendingException struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *CapacityReservationPendingException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *CapacityReservationPendingException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *CapacityReservationPendingException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "CapacityReservationPending" + } + return *e.ErrorCodeOverride +} +func (e *CapacityReservationPendingException) ErrorFault() smithy.ErrorFault { + return smithy.FaultClient +} + +// You've exceeded the capacity units limit. +type CapacityUnitsLimitExceededException struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *CapacityUnitsLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *CapacityUnitsLimitExceededException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *CapacityUnitsLimitExceededException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "CapacityUnitsLimitExceeded" + } + return *e.ErrorCodeOverride +} +func (e *CapacityUnitsLimitExceededException) ErrorFault() smithy.ErrorFault { + return smithy.FaultClient +} + // The specified certificate does not exist. type CertificateNotFoundException struct { Message *string @@ -354,6 +438,32 @@ func (e *IncompatibleProtocolsException) ErrorCode() string { } func (e *IncompatibleProtocolsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// There is insufficient capacity to reserve. +type InsufficientCapacityException struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *InsufficientCapacityException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *InsufficientCapacityException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *InsufficientCapacityException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "InsufficientCapacity" + } + return *e.ErrorCodeOverride +} +func (e *InsufficientCapacityException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } + // The specified ca certificate bundle is in an invalid format, or corrupt. type InvalidCaCertificatesBundleException struct { Message *string @@ -674,6 +784,32 @@ func (e *PriorityInUseException) ErrorCode() string { } func (e *PriorityInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// This operation is not allowed while a prior request has not been completed. +type PriorRequestNotCompleteException struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *PriorRequestNotCompleteException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *PriorRequestNotCompleteException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *PriorRequestNotCompleteException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "PriorRequestNotComplete" + } + return *e.ErrorCodeOverride +} +func (e *PriorRequestNotCompleteException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + // A specified resource is in use. type ResourceInUseException struct { Message *string diff --git a/service/elasticloadbalancingv2/types/types.go b/service/elasticloadbalancingv2/types/types.go index 529c48d2dae..00b547620fe 100644 --- a/service/elasticloadbalancingv2/types/types.go +++ b/service/elasticloadbalancingv2/types/types.go @@ -233,6 +233,18 @@ type AvailabilityZone struct { noSmithyDocumentSerde } +// The status of a capacity reservation. +type CapacityReservationStatus struct { + + // The status code. + Code CapacityReservationStateEnum + + // The reason code for the status. + Reason *string + + noSmithyDocumentSerde +} + // Information about an SSL server certificate. type Certificate struct { @@ -747,6 +759,15 @@ type Matcher struct { noSmithyDocumentSerde } +// The minimum capacity for a load balancer. +type MinimumLoadBalancerCapacity struct { + + // The number of capacity units. + CapacityUnits *int32 + + noSmithyDocumentSerde +} + // Information about the mutual authentication attributes of a listener. type MutualAuthenticationAttributes struct { @@ -1536,4 +1557,19 @@ type TrustStoreRevocation struct { noSmithyDocumentSerde } +// The capacity reservation status for each availability zone. +type ZonalCapacityReservationState struct { + + // Information about the availability zone. + AvailabilityZone *string + + // The number of effective capacity units. + EffectiveCapacityUnits *float64 + + // The state of the capacity reservation. + State *CapacityReservationStatus + + noSmithyDocumentSerde +} + type noSmithyDocumentSerde = smithydocument.NoSerde diff --git a/service/elasticloadbalancingv2/validators.go b/service/elasticloadbalancingv2/validators.go index 79a5f0ab0cd..8cccded86e8 100644 --- a/service/elasticloadbalancingv2/validators.go +++ b/service/elasticloadbalancingv2/validators.go @@ -310,6 +310,26 @@ func (m *validateOpDeregisterTargets) HandleInitialize(ctx context.Context, in m return next.HandleInitialize(ctx, in) } +type validateOpDescribeCapacityReservation struct { +} + +func (*validateOpDescribeCapacityReservation) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeCapacityReservation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeCapacityReservationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeCapacityReservationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDescribeListenerAttributes struct { } @@ -530,6 +550,26 @@ func (m *validateOpGetTrustStoreRevocationContent) HandleInitialize(ctx context. return next.HandleInitialize(ctx, in) } +type validateOpModifyCapacityReservation struct { +} + +func (*validateOpModifyCapacityReservation) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpModifyCapacityReservation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ModifyCapacityReservationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpModifyCapacityReservationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpModifyListenerAttributes struct { } @@ -890,6 +930,10 @@ func addOpDeregisterTargetsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeregisterTargets{}, middleware.After) } +func addOpDescribeCapacityReservationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeCapacityReservation{}, middleware.After) +} + func addOpDescribeListenerAttributesValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeListenerAttributes{}, middleware.After) } @@ -934,6 +978,10 @@ func addOpGetTrustStoreRevocationContentValidationMiddleware(stack *middleware.S return stack.Initialize.Add(&validateOpGetTrustStoreRevocationContent{}, middleware.After) } +func addOpModifyCapacityReservationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpModifyCapacityReservation{}, middleware.After) +} + func addOpModifyListenerAttributesValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpModifyListenerAttributes{}, middleware.After) } @@ -1484,6 +1532,21 @@ func validateOpDeregisterTargetsInput(v *DeregisterTargetsInput) error { } } +func validateOpDescribeCapacityReservationInput(v *DescribeCapacityReservationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeCapacityReservationInput"} + if v.LoadBalancerArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("LoadBalancerArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDescribeListenerAttributesInput(v *DescribeListenerAttributesInput) error { if v == nil { return nil @@ -1657,6 +1720,21 @@ func validateOpGetTrustStoreRevocationContentInput(v *GetTrustStoreRevocationCon } } +func validateOpModifyCapacityReservationInput(v *ModifyCapacityReservationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ModifyCapacityReservationInput"} + if v.LoadBalancerArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("LoadBalancerArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpModifyListenerAttributesInput(v *ModifyListenerAttributesInput) error { if v == nil { return nil diff --git a/service/elasticsearchservice/CHANGELOG.md b/service/elasticsearchservice/CHANGELOG.md index 64510d7e175..5e97e3f8fc5 100644 --- a/service/elasticsearchservice/CHANGELOG.md +++ b/service/elasticsearchservice/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.32.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.32.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/elasticsearchservice/go.mod b/service/elasticsearchservice/go.mod index eda6e11ca58..49085d1a77b 100644 --- a/service/elasticsearchservice/go.mod +++ b/service/elasticsearchservice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/elasticsearchservice go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/elasticsearchservice/go.sum b/service/elasticsearchservice/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/elasticsearchservice/go.sum +++ b/service/elasticsearchservice/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/elasticsearchservice/go_module_metadata.go b/service/elasticsearchservice/go_module_metadata.go index 06b7cd289dc..0b84c9af80f 100644 --- a/service/elasticsearchservice/go_module_metadata.go +++ b/service/elasticsearchservice/go_module_metadata.go @@ -3,4 +3,4 @@ package elasticsearchservice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.32.5" +const goModuleVersion = "1.32.6" diff --git a/service/elastictranscoder/CHANGELOG.md b/service/elastictranscoder/CHANGELOG.md index d18bcc1f3d8..6387fecbd1c 100644 --- a/service/elastictranscoder/CHANGELOG.md +++ b/service/elastictranscoder/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/elastictranscoder/go.mod b/service/elastictranscoder/go.mod index 556ef185c6e..4aa773c8e5f 100644 --- a/service/elastictranscoder/go.mod +++ b/service/elastictranscoder/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/elastictranscoder go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elastictranscoder/go.sum b/service/elastictranscoder/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/elastictranscoder/go.sum +++ b/service/elastictranscoder/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/elastictranscoder/go_module_metadata.go b/service/elastictranscoder/go_module_metadata.go index 1627ed6278e..ee8d9b2b1fd 100644 --- a/service/elastictranscoder/go_module_metadata.go +++ b/service/elastictranscoder/go_module_metadata.go @@ -3,4 +3,4 @@ package elastictranscoder // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.5" +const goModuleVersion = "1.27.6" diff --git a/service/emr/CHANGELOG.md b/service/emr/CHANGELOG.md index 52d4ef1eff5..2d345175e8e 100644 --- a/service/emr/CHANGELOG.md +++ b/service/emr/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.46.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.46.3 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/emr/go.mod b/service/emr/go.mod index 3a551ef4cb9..99098fa1b32 100644 --- a/service/emr/go.mod +++ b/service/emr/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/emr go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/emr/go.sum b/service/emr/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/emr/go.sum +++ b/service/emr/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/emr/go_module_metadata.go b/service/emr/go_module_metadata.go index c7a63399868..4601a834f32 100644 --- a/service/emr/go_module_metadata.go +++ b/service/emr/go_module_metadata.go @@ -3,4 +3,4 @@ package emr // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.46.3" +const goModuleVersion = "1.46.4" diff --git a/service/emrcontainers/CHANGELOG.md b/service/emrcontainers/CHANGELOG.md index d20ad226096..6f75fefdb66 100644 --- a/service/emrcontainers/CHANGELOG.md +++ b/service/emrcontainers/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.33.7 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.33.6 (2024-11-15.2) * No change notes available for this release. diff --git a/service/emrcontainers/go.mod b/service/emrcontainers/go.mod index d99d04dbaae..3638a8f9f3b 100644 --- a/service/emrcontainers/go.mod +++ b/service/emrcontainers/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/emrcontainers go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/emrcontainers/go.sum b/service/emrcontainers/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/emrcontainers/go.sum +++ b/service/emrcontainers/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/emrcontainers/go_module_metadata.go b/service/emrcontainers/go_module_metadata.go index 6d27e8e9546..c995bc1eb9b 100644 --- a/service/emrcontainers/go_module_metadata.go +++ b/service/emrcontainers/go_module_metadata.go @@ -3,4 +3,4 @@ package emrcontainers // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.33.6" +const goModuleVersion = "1.33.7" diff --git a/service/emrserverless/CHANGELOG.md b/service/emrserverless/CHANGELOG.md index 6a9817567de..96820fc30b8 100644 --- a/service/emrserverless/CHANGELOG.md +++ b/service/emrserverless/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.26.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/emrserverless/go.mod b/service/emrserverless/go.mod index 6f3af1e262b..4c5c7c7378d 100644 --- a/service/emrserverless/go.mod +++ b/service/emrserverless/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/emrserverless go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/emrserverless/go.sum b/service/emrserverless/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/emrserverless/go.sum +++ b/service/emrserverless/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/emrserverless/go_module_metadata.go b/service/emrserverless/go_module_metadata.go index 06798d0ddd5..8201ca89b40 100644 --- a/service/emrserverless/go_module_metadata.go +++ b/service/emrserverless/go_module_metadata.go @@ -3,4 +3,4 @@ package emrserverless // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.5" +const goModuleVersion = "1.26.6" diff --git a/service/entityresolution/CHANGELOG.md b/service/entityresolution/CHANGELOG.md index a197a59d908..3097f017a4b 100644 --- a/service/entityresolution/CHANGELOG.md +++ b/service/entityresolution/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.15.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.15.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/entityresolution/go.mod b/service/entityresolution/go.mod index 6ca092017ab..71833d6048c 100644 --- a/service/entityresolution/go.mod +++ b/service/entityresolution/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/entityresolution go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/entityresolution/go.sum b/service/entityresolution/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/entityresolution/go.sum +++ b/service/entityresolution/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/entityresolution/go_module_metadata.go b/service/entityresolution/go_module_metadata.go index f3c48247e13..f1709b7d1ec 100644 --- a/service/entityresolution/go_module_metadata.go +++ b/service/entityresolution/go_module_metadata.go @@ -3,4 +3,4 @@ package entityresolution // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.15.5" +const goModuleVersion = "1.15.6" diff --git a/service/eventbridge/CHANGELOG.md b/service/eventbridge/CHANGELOG.md index 6edc417b54a..c5581b7dd9c 100644 --- a/service/eventbridge/CHANGELOG.md +++ b/service/eventbridge/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.35.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.35.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/eventbridge/go.mod b/service/eventbridge/go.mod index d066eba68ae..95de001eb6e 100644 --- a/service/eventbridge/go.mod +++ b/service/eventbridge/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/eventbridge go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/eventbridge/go.sum b/service/eventbridge/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/eventbridge/go.sum +++ b/service/eventbridge/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/eventbridge/go_module_metadata.go b/service/eventbridge/go_module_metadata.go index cec0d4bfc7c..6cbea4732bb 100644 --- a/service/eventbridge/go_module_metadata.go +++ b/service/eventbridge/go_module_metadata.go @@ -3,4 +3,4 @@ package eventbridge // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.35.5" +const goModuleVersion = "1.35.6" diff --git a/service/evidently/CHANGELOG.md b/service/evidently/CHANGELOG.md index f36fff0c30b..ac2204a11d6 100644 --- a/service/evidently/CHANGELOG.md +++ b/service/evidently/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.23.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/evidently/go.mod b/service/evidently/go.mod index 58e2c30c28d..9672ec893eb 100644 --- a/service/evidently/go.mod +++ b/service/evidently/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/evidently go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/evidently/go.sum b/service/evidently/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/evidently/go.sum +++ b/service/evidently/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/evidently/go_module_metadata.go b/service/evidently/go_module_metadata.go index cd6a9f0a839..8c134d9af97 100644 --- a/service/evidently/go_module_metadata.go +++ b/service/evidently/go_module_metadata.go @@ -3,4 +3,4 @@ package evidently // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.5" +const goModuleVersion = "1.23.6" diff --git a/service/finspace/CHANGELOG.md b/service/finspace/CHANGELOG.md index 80952703b85..a9134d151e4 100644 --- a/service/finspace/CHANGELOG.md +++ b/service/finspace/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.28.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/finspace/go.mod b/service/finspace/go.mod index f8de6f5ac6e..591f971ccab 100644 --- a/service/finspace/go.mod +++ b/service/finspace/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/finspace go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/finspace/go.sum b/service/finspace/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/finspace/go.sum +++ b/service/finspace/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/finspace/go_module_metadata.go b/service/finspace/go_module_metadata.go index 9b6d74575d8..e634bc18b8b 100644 --- a/service/finspace/go_module_metadata.go +++ b/service/finspace/go_module_metadata.go @@ -3,4 +3,4 @@ package finspace // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.5" +const goModuleVersion = "1.28.6" diff --git a/service/finspacedata/CHANGELOG.md b/service/finspacedata/CHANGELOG.md index 93a7ed1ad16..1e8dd1d3c51 100644 --- a/service/finspacedata/CHANGELOG.md +++ b/service/finspacedata/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.28.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/finspacedata/go.mod b/service/finspacedata/go.mod index 85281bf02bc..e1bdba43c2e 100644 --- a/service/finspacedata/go.mod +++ b/service/finspacedata/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/finspacedata go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/finspacedata/go.sum b/service/finspacedata/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/finspacedata/go.sum +++ b/service/finspacedata/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/finspacedata/go_module_metadata.go b/service/finspacedata/go_module_metadata.go index ae5729394ac..b78a858d385 100644 --- a/service/finspacedata/go_module_metadata.go +++ b/service/finspacedata/go_module_metadata.go @@ -3,4 +3,4 @@ package finspacedata // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.5" +const goModuleVersion = "1.28.6" diff --git a/service/firehose/CHANGELOG.md b/service/firehose/CHANGELOG.md index 6d1e3c2d278..81781e00321 100644 --- a/service/firehose/CHANGELOG.md +++ b/service/firehose/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.35.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.35.0 (2024-11-08) * **Feature**: Amazon Data Firehose / Features : Adds support for a new DeliveryStreamType, DatabaseAsSource. DatabaseAsSource hoses allow customers to stream CDC events from their RDS and Amazon EC2 hosted databases, running MySQL and PostgreSQL database engines, to Iceberg Table destinations. diff --git a/service/firehose/go.mod b/service/firehose/go.mod index 21d52967523..fd810fa8aa1 100644 --- a/service/firehose/go.mod +++ b/service/firehose/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/firehose go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/firehose/go.sum b/service/firehose/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/firehose/go.sum +++ b/service/firehose/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/firehose/go_module_metadata.go b/service/firehose/go_module_metadata.go index 25240dc07c8..3458eba8332 100644 --- a/service/firehose/go_module_metadata.go +++ b/service/firehose/go_module_metadata.go @@ -3,4 +3,4 @@ package firehose // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.35.0" +const goModuleVersion = "1.35.1" diff --git a/service/fis/CHANGELOG.md b/service/fis/CHANGELOG.md index ab4bcf08514..10e65d576b3 100644 --- a/service/fis/CHANGELOG.md +++ b/service/fis/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.31.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.31.0 (2024-11-12) * **Feature**: This release adds support for generating experiment reports with the experiment report configuration diff --git a/service/fis/go.mod b/service/fis/go.mod index c4493be17b2..47444eb5fb2 100644 --- a/service/fis/go.mod +++ b/service/fis/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/fis go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/fis/go.sum b/service/fis/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/fis/go.sum +++ b/service/fis/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/fis/go_module_metadata.go b/service/fis/go_module_metadata.go index fff845d7a75..26cd8e6309d 100644 --- a/service/fis/go_module_metadata.go +++ b/service/fis/go_module_metadata.go @@ -3,4 +3,4 @@ package fis // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.31.0" +const goModuleVersion = "1.31.1" diff --git a/service/fms/CHANGELOG.md b/service/fms/CHANGELOG.md index c7546c31a77..678ec33496d 100644 --- a/service/fms/CHANGELOG.md +++ b/service/fms/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.38.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.38.3 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/fms/go.mod b/service/fms/go.mod index 4a34f5fe14f..71257a9cebf 100644 --- a/service/fms/go.mod +++ b/service/fms/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/fms go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/fms/go.sum b/service/fms/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/fms/go.sum +++ b/service/fms/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/fms/go_module_metadata.go b/service/fms/go_module_metadata.go index 6eb706ff43a..d95f24aa402 100644 --- a/service/fms/go_module_metadata.go +++ b/service/fms/go_module_metadata.go @@ -3,4 +3,4 @@ package fms // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.38.3" +const goModuleVersion = "1.38.4" diff --git a/service/forecast/CHANGELOG.md b/service/forecast/CHANGELOG.md index 781b1d1beb3..201f5b3daca 100644 --- a/service/forecast/CHANGELOG.md +++ b/service/forecast/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.36.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.36.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/forecast/go.mod b/service/forecast/go.mod index 37227c7a6c3..d6417a4b1cc 100644 --- a/service/forecast/go.mod +++ b/service/forecast/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/forecast go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/forecast/go.sum b/service/forecast/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/forecast/go.sum +++ b/service/forecast/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/forecast/go_module_metadata.go b/service/forecast/go_module_metadata.go index c91ea31abdc..dc8ab262996 100644 --- a/service/forecast/go_module_metadata.go +++ b/service/forecast/go_module_metadata.go @@ -3,4 +3,4 @@ package forecast // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.36.5" +const goModuleVersion = "1.36.6" diff --git a/service/forecastquery/CHANGELOG.md b/service/forecastquery/CHANGELOG.md index ea2732350fc..16c62ce6e03 100644 --- a/service/forecastquery/CHANGELOG.md +++ b/service/forecastquery/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.24.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/forecastquery/go.mod b/service/forecastquery/go.mod index 4a10f536814..26dfec7f561 100644 --- a/service/forecastquery/go.mod +++ b/service/forecastquery/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/forecastquery go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/forecastquery/go.sum b/service/forecastquery/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/forecastquery/go.sum +++ b/service/forecastquery/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/forecastquery/go_module_metadata.go b/service/forecastquery/go_module_metadata.go index e3715fc69d3..9d065897e2b 100644 --- a/service/forecastquery/go_module_metadata.go +++ b/service/forecastquery/go_module_metadata.go @@ -3,4 +3,4 @@ package forecastquery // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.5" +const goModuleVersion = "1.24.6" diff --git a/service/frauddetector/CHANGELOG.md b/service/frauddetector/CHANGELOG.md index 6136de9069b..5410c432d5e 100644 --- a/service/frauddetector/CHANGELOG.md +++ b/service/frauddetector/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.35.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.35.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/frauddetector/go.mod b/service/frauddetector/go.mod index ffd2a66a709..4842aae7028 100644 --- a/service/frauddetector/go.mod +++ b/service/frauddetector/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/frauddetector go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/frauddetector/go.sum b/service/frauddetector/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/frauddetector/go.sum +++ b/service/frauddetector/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/frauddetector/go_module_metadata.go b/service/frauddetector/go_module_metadata.go index f505b0bf498..ae7974cae31 100644 --- a/service/frauddetector/go_module_metadata.go +++ b/service/frauddetector/go_module_metadata.go @@ -3,4 +3,4 @@ package frauddetector // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.35.5" +const goModuleVersion = "1.35.6" diff --git a/service/freetier/CHANGELOG.md b/service/freetier/CHANGELOG.md index e0505f20e77..7ffc8ffde76 100644 --- a/service/freetier/CHANGELOG.md +++ b/service/freetier/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.7.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.7.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/freetier/go.mod b/service/freetier/go.mod index 5d536237606..e69f51ea60d 100644 --- a/service/freetier/go.mod +++ b/service/freetier/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/freetier go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/freetier/go.sum b/service/freetier/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/freetier/go.sum +++ b/service/freetier/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/freetier/go_module_metadata.go b/service/freetier/go_module_metadata.go index e5a12e165f1..32253f4f10d 100644 --- a/service/freetier/go_module_metadata.go +++ b/service/freetier/go_module_metadata.go @@ -3,4 +3,4 @@ package freetier // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.7.5" +const goModuleVersion = "1.7.6" diff --git a/service/fsx/CHANGELOG.md b/service/fsx/CHANGELOG.md index b3c23f6c34c..0cd3e1269ae 100644 --- a/service/fsx/CHANGELOG.md +++ b/service/fsx/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.49.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.49.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/fsx/go.mod b/service/fsx/go.mod index 8ba72bf449f..a07704bf640 100644 --- a/service/fsx/go.mod +++ b/service/fsx/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/fsx go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/fsx/go.sum b/service/fsx/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/fsx/go.sum +++ b/service/fsx/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/fsx/go_module_metadata.go b/service/fsx/go_module_metadata.go index 39063b795b0..5b8aaa7cde0 100644 --- a/service/fsx/go_module_metadata.go +++ b/service/fsx/go_module_metadata.go @@ -3,4 +3,4 @@ package fsx // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.49.5" +const goModuleVersion = "1.49.6" diff --git a/service/gamelift/CHANGELOG.md b/service/gamelift/CHANGELOG.md index b39983abc5a..77338b1d961 100644 --- a/service/gamelift/CHANGELOG.md +++ b/service/gamelift/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.37.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.37.0 (2024-11-12) * **Feature**: Amazon GameLift releases container fleets support for general availability. Deploy Linux-based containerized game server software for hosting on Amazon GameLift. diff --git a/service/gamelift/go.mod b/service/gamelift/go.mod index 748ced5d4a0..aa66bcf79a5 100644 --- a/service/gamelift/go.mod +++ b/service/gamelift/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/gamelift go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/gamelift/go.sum b/service/gamelift/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/gamelift/go.sum +++ b/service/gamelift/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/gamelift/go_module_metadata.go b/service/gamelift/go_module_metadata.go index 0e2f6db1a15..bf72afd1318 100644 --- a/service/gamelift/go_module_metadata.go +++ b/service/gamelift/go_module_metadata.go @@ -3,4 +3,4 @@ package gamelift // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.37.0" +const goModuleVersion = "1.37.1" diff --git a/service/geomaps/CHANGELOG.md b/service/geomaps/CHANGELOG.md index fdbc75da81c..b86885b2725 100644 --- a/service/geomaps/CHANGELOG.md +++ b/service/geomaps/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.0.3 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.0.2 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/geomaps/go.mod b/service/geomaps/go.mod index 7abc329803f..82c14d1ff98 100644 --- a/service/geomaps/go.mod +++ b/service/geomaps/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/geomaps go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/geomaps/go.sum b/service/geomaps/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/geomaps/go.sum +++ b/service/geomaps/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/geomaps/go_module_metadata.go b/service/geomaps/go_module_metadata.go index a22a9d4f7d1..08ef701c7fe 100644 --- a/service/geomaps/go_module_metadata.go +++ b/service/geomaps/go_module_metadata.go @@ -3,4 +3,4 @@ package geomaps // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.0.2" +const goModuleVersion = "1.0.3" diff --git a/service/geoplaces/CHANGELOG.md b/service/geoplaces/CHANGELOG.md index f8b5f5608b8..8748a75150f 100644 --- a/service/geoplaces/CHANGELOG.md +++ b/service/geoplaces/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.0.3 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.0.2 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/geoplaces/go.mod b/service/geoplaces/go.mod index 1445526ac33..66c2c4918f0 100644 --- a/service/geoplaces/go.mod +++ b/service/geoplaces/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/geoplaces go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/geoplaces/go.sum b/service/geoplaces/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/geoplaces/go.sum +++ b/service/geoplaces/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/geoplaces/go_module_metadata.go b/service/geoplaces/go_module_metadata.go index 8573ae41cf9..68f4c4a661c 100644 --- a/service/geoplaces/go_module_metadata.go +++ b/service/geoplaces/go_module_metadata.go @@ -3,4 +3,4 @@ package geoplaces // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.0.2" +const goModuleVersion = "1.0.3" diff --git a/service/georoutes/CHANGELOG.md b/service/georoutes/CHANGELOG.md index 47f7cdf825d..0b8cd95a352 100644 --- a/service/georoutes/CHANGELOG.md +++ b/service/georoutes/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.0.3 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.0.2 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/georoutes/go.mod b/service/georoutes/go.mod index 937f088d67e..457a54ff544 100644 --- a/service/georoutes/go.mod +++ b/service/georoutes/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/georoutes go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/georoutes/go.sum b/service/georoutes/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/georoutes/go.sum +++ b/service/georoutes/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/georoutes/go_module_metadata.go b/service/georoutes/go_module_metadata.go index 652619efeec..b898bf2efd2 100644 --- a/service/georoutes/go_module_metadata.go +++ b/service/georoutes/go_module_metadata.go @@ -3,4 +3,4 @@ package georoutes // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.0.2" +const goModuleVersion = "1.0.3" diff --git a/service/glacier/CHANGELOG.md b/service/glacier/CHANGELOG.md index 897812e1e5d..15abf400776 100644 --- a/service/glacier/CHANGELOG.md +++ b/service/glacier/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.26.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/glacier/go.mod b/service/glacier/go.mod index 2c96a734edc..1c5c1c10938 100644 --- a/service/glacier/go.mod +++ b/service/glacier/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/glacier go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/glacier/go.sum b/service/glacier/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/glacier/go.sum +++ b/service/glacier/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/glacier/go_module_metadata.go b/service/glacier/go_module_metadata.go index 4dcf2b7eeff..624f901095f 100644 --- a/service/glacier/go_module_metadata.go +++ b/service/glacier/go_module_metadata.go @@ -3,4 +3,4 @@ package glacier // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.5" +const goModuleVersion = "1.26.6" diff --git a/service/globalaccelerator/CHANGELOG.md b/service/globalaccelerator/CHANGELOG.md index e9d93250906..76dab9e5995 100644 --- a/service/globalaccelerator/CHANGELOG.md +++ b/service/globalaccelerator/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.29.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.29.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/globalaccelerator/go.mod b/service/globalaccelerator/go.mod index cf8dca30f46..b6889435d18 100644 --- a/service/globalaccelerator/go.mod +++ b/service/globalaccelerator/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/globalaccelerator go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/globalaccelerator/go.sum b/service/globalaccelerator/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/globalaccelerator/go.sum +++ b/service/globalaccelerator/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/globalaccelerator/go_module_metadata.go b/service/globalaccelerator/go_module_metadata.go index 747e07bbc6b..f734cbca9d7 100644 --- a/service/globalaccelerator/go_module_metadata.go +++ b/service/globalaccelerator/go_module_metadata.go @@ -3,4 +3,4 @@ package globalaccelerator // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.29.5" +const goModuleVersion = "1.29.6" diff --git a/service/glue/CHANGELOG.md b/service/glue/CHANGELOG.md index 7fe5549a60c..baea8091d91 100644 --- a/service/glue/CHANGELOG.md +++ b/service/glue/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.102.0 (2024-11-19) + +* **Feature**: AWS Glue Data Catalog now enhances managed table optimizations of Apache Iceberg tables that can be accessed only from a specific Amazon Virtual Private Cloud (VPC) environment. + +# v1.101.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.101.3 (2024-11-13) * No change notes available for this release. diff --git a/service/glue/api_op_CreateTableOptimizer.go b/service/glue/api_op_CreateTableOptimizer.go index f8efda8038d..9b297bb4685 100644 --- a/service/glue/api_op_CreateTableOptimizer.go +++ b/service/glue/api_op_CreateTableOptimizer.go @@ -11,8 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a new table optimizer for a specific function. compaction is the only -// currently supported optimizer type. +// Creates a new table optimizer for a specific function. func (c *Client) CreateTableOptimizer(ctx context.Context, params *CreateTableOptimizerInput, optFns ...func(*Options)) (*CreateTableOptimizerOutput, error) { if params == nil { params = &CreateTableOptimizerInput{} @@ -51,7 +50,7 @@ type CreateTableOptimizerInput struct { // This member is required. TableOptimizerConfiguration *types.TableOptimizerConfiguration - // The type of table optimizer. Currently, the only valid value is compaction . + // The type of table optimizer. // // This member is required. Type types.TableOptimizerType diff --git a/service/glue/api_op_ListTableOptimizerRuns.go b/service/glue/api_op_ListTableOptimizerRuns.go index c2da467c87d..a032fe5b4f3 100644 --- a/service/glue/api_op_ListTableOptimizerRuns.go +++ b/service/glue/api_op_ListTableOptimizerRuns.go @@ -44,7 +44,7 @@ type ListTableOptimizerRunsInput struct { // This member is required. TableName *string - // The type of table optimizer. Currently, the only valid value is compaction . + // The type of table optimizer. // // This member is required. Type types.TableOptimizerType diff --git a/service/glue/api_op_UpdateTableOptimizer.go b/service/glue/api_op_UpdateTableOptimizer.go index d359af5a227..e6481fb61a2 100644 --- a/service/glue/api_op_UpdateTableOptimizer.go +++ b/service/glue/api_op_UpdateTableOptimizer.go @@ -50,7 +50,7 @@ type UpdateTableOptimizerInput struct { // This member is required. TableOptimizerConfiguration *types.TableOptimizerConfiguration - // The type of table optimizer. Currently, the only valid value is compaction . + // The type of table optimizer. // // This member is required. Type types.TableOptimizerType diff --git a/service/glue/deserializers.go b/service/glue/deserializers.go index 615bcc2ba8a..b1d372b3bca 100644 --- a/service/glue/deserializers.go +++ b/service/glue/deserializers.go @@ -57346,6 +57346,11 @@ func awsAwsjson11_deserializeDocumentTableOptimizerConfiguration(v **types.Table sv.RoleArn = ptr.String(jtv) } + case "vpcConfiguration": + if err := awsAwsjson11_deserializeDocumentTableOptimizerVpcConfiguration(&sv.VpcConfiguration, value); err != nil { + return err + } + default: _, _ = key, value @@ -57490,6 +57495,48 @@ func awsAwsjson11_deserializeDocumentTableOptimizerRuns(v *[]types.TableOptimize return nil } +func awsAwsjson11_deserializeDocumentTableOptimizerVpcConfiguration(v *types.TableOptimizerVpcConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var uv types.TableOptimizerVpcConfiguration +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "glueConnectionName": + var mv string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected glueConnectionNameString to be of type string, got %T instead", value) + } + mv = jtv + } + uv = &types.TableOptimizerVpcConfigurationMemberGlueConnectionName{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + func awsAwsjson11_deserializeDocumentTableStatus(v **types.TableStatus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/glue/generated.json b/service/glue/generated.json index 71b5c87eb45..7b59f91fbb8 100644 --- a/service/glue/generated.json +++ b/service/glue/generated.json @@ -255,6 +255,7 @@ "types/enums.go", "types/errors.go", "types/types.go", + "types/types_exported_test.go", "validators.go" ], "go": "1.15", diff --git a/service/glue/go.mod b/service/glue/go.mod index 703c3aef270..29f0f981313 100644 --- a/service/glue/go.mod +++ b/service/glue/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/glue go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/glue/go.sum b/service/glue/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/glue/go.sum +++ b/service/glue/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/glue/go_module_metadata.go b/service/glue/go_module_metadata.go index be0e89a4dc9..e19060fb3e7 100644 --- a/service/glue/go_module_metadata.go +++ b/service/glue/go_module_metadata.go @@ -3,4 +3,4 @@ package glue // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.101.3" +const goModuleVersion = "1.102.0" diff --git a/service/glue/serializers.go b/service/glue/serializers.go index 9930b9b90f8..bffa4e962a0 100644 --- a/service/glue/serializers.go +++ b/service/glue/serializers.go @@ -22674,6 +22674,29 @@ func awsAwsjson11_serializeDocumentTableOptimizerConfiguration(v *types.TableOpt ok.String(*v.RoleArn) } + if v.VpcConfiguration != nil { + ok := object.Key("vpcConfiguration") + if err := awsAwsjson11_serializeDocumentTableOptimizerVpcConfiguration(v.VpcConfiguration, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeDocumentTableOptimizerVpcConfiguration(v types.TableOptimizerVpcConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.TableOptimizerVpcConfigurationMemberGlueConnectionName: + av := object.Key("glueConnectionName") + av.String(uv.Value) + + default: + return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) + + } return nil } diff --git a/service/glue/types/types.go b/service/glue/types/types.go index 9bb6cfe0da0..d15ac537554 100644 --- a/service/glue/types/types.go +++ b/service/glue/types/types.go @@ -8891,6 +8891,13 @@ type TableOptimizerConfiguration struct { // resources associated with the optimizer on the caller's behalf. RoleArn *string + // A TableOptimizerVpcConfiguration object representing the VPC configuration for + // a table optimizer. + // + // This configuration is necessary to perform optimization on tables that are in a + // customer VPC. + VpcConfiguration TableOptimizerVpcConfiguration + noSmithyDocumentSerde } @@ -8931,6 +8938,27 @@ type TableOptimizerRun struct { noSmithyDocumentSerde } +// An object that describes the VPC configuration for a table optimizer. +// +// This configuration is necessary to perform optimization on tables that are in a +// customer VPC. +// +// The following types satisfy this interface: +// +// TableOptimizerVpcConfigurationMemberGlueConnectionName +type TableOptimizerVpcConfiguration interface { + isTableOptimizerVpcConfiguration() +} + +// The name of the Glue connection used for the VPC for the table optimizer. +type TableOptimizerVpcConfigurationMemberGlueConnectionName struct { + Value string + + noSmithyDocumentSerde +} + +func (*TableOptimizerVpcConfigurationMemberGlueConnectionName) isTableOptimizerVpcConfiguration() {} + // A structure containing information about the state of an asynchronous change to // a table. type TableStatus struct { @@ -9878,3 +9906,14 @@ type XMLClassifier struct { } 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) isTableOptimizerVpcConfiguration() {} diff --git a/service/glue/types/types_exported_test.go b/service/glue/types/types_exported_test.go new file mode 100644 index 00000000000..0760017d86f --- /dev/null +++ b/service/glue/types/types_exported_test.go @@ -0,0 +1,26 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types_test + +import ( + "fmt" + "github.com/aws/aws-sdk-go-v2/service/glue/types" +) + +func ExampleTableOptimizerVpcConfiguration_outputUsage() { + var union types.TableOptimizerVpcConfiguration + // type switches can be used to check the union value + switch v := union.(type) { + case *types.TableOptimizerVpcConfigurationMemberGlueConnectionName: + _ = 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 diff --git a/service/grafana/CHANGELOG.md b/service/grafana/CHANGELOG.md index 47fcc301865..830782aca75 100644 --- a/service/grafana/CHANGELOG.md +++ b/service/grafana/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.26.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/grafana/go.mod b/service/grafana/go.mod index d7a0bec2949..95de47605bf 100644 --- a/service/grafana/go.mod +++ b/service/grafana/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/grafana go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/grafana/go.sum b/service/grafana/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/grafana/go.sum +++ b/service/grafana/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/grafana/go_module_metadata.go b/service/grafana/go_module_metadata.go index fe64d75d7b1..0aeabdf897c 100644 --- a/service/grafana/go_module_metadata.go +++ b/service/grafana/go_module_metadata.go @@ -3,4 +3,4 @@ package grafana // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.5" +const goModuleVersion = "1.26.6" diff --git a/service/greengrass/CHANGELOG.md b/service/greengrass/CHANGELOG.md index 900fadda3b3..2a084ee1631 100644 --- a/service/greengrass/CHANGELOG.md +++ b/service/greengrass/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/greengrass/go.mod b/service/greengrass/go.mod index 3b9e997e666..766213d5402 100644 --- a/service/greengrass/go.mod +++ b/service/greengrass/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/greengrass go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/greengrass/go.sum b/service/greengrass/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/greengrass/go.sum +++ b/service/greengrass/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/greengrass/go_module_metadata.go b/service/greengrass/go_module_metadata.go index b874a8abf7f..a02d7231611 100644 --- a/service/greengrass/go_module_metadata.go +++ b/service/greengrass/go_module_metadata.go @@ -3,4 +3,4 @@ package greengrass // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.5" +const goModuleVersion = "1.27.6" diff --git a/service/greengrassv2/CHANGELOG.md b/service/greengrassv2/CHANGELOG.md index 1789bc0c358..37d28358c27 100644 --- a/service/greengrassv2/CHANGELOG.md +++ b/service/greengrassv2/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.35.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.35.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/greengrassv2/go.mod b/service/greengrassv2/go.mod index 4da1459632d..79bd6d3cd70 100644 --- a/service/greengrassv2/go.mod +++ b/service/greengrassv2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/greengrassv2 go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/greengrassv2/go.sum b/service/greengrassv2/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/greengrassv2/go.sum +++ b/service/greengrassv2/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/greengrassv2/go_module_metadata.go b/service/greengrassv2/go_module_metadata.go index eac6654882b..2ce6cb9ebf1 100644 --- a/service/greengrassv2/go_module_metadata.go +++ b/service/greengrassv2/go_module_metadata.go @@ -3,4 +3,4 @@ package greengrassv2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.35.5" +const goModuleVersion = "1.35.6" diff --git a/service/groundstation/CHANGELOG.md b/service/groundstation/CHANGELOG.md index 52749b7f75f..d5af1dbff98 100644 --- a/service/groundstation/CHANGELOG.md +++ b/service/groundstation/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.31.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.31.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/groundstation/go.mod b/service/groundstation/go.mod index 76b4b2351d6..eceff2fdefc 100644 --- a/service/groundstation/go.mod +++ b/service/groundstation/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/groundstation go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/groundstation/go.sum b/service/groundstation/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/groundstation/go.sum +++ b/service/groundstation/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/groundstation/go_module_metadata.go b/service/groundstation/go_module_metadata.go index c91b2f0aa00..08c79c1ce45 100644 --- a/service/groundstation/go_module_metadata.go +++ b/service/groundstation/go_module_metadata.go @@ -3,4 +3,4 @@ package groundstation // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.31.5" +const goModuleVersion = "1.31.6" diff --git a/service/guardduty/CHANGELOG.md b/service/guardduty/CHANGELOG.md index 9e0079e5444..548e3394a5a 100644 --- a/service/guardduty/CHANGELOG.md +++ b/service/guardduty/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.51.2 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.51.1 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/guardduty/go.mod b/service/guardduty/go.mod index 1426e6bd6b9..5b42c5b23ff 100644 --- a/service/guardduty/go.mod +++ b/service/guardduty/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/guardduty go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/guardduty/go.sum b/service/guardduty/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/guardduty/go.sum +++ b/service/guardduty/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/guardduty/go_module_metadata.go b/service/guardduty/go_module_metadata.go index 3da8d8442b8..538f9ceb89f 100644 --- a/service/guardduty/go_module_metadata.go +++ b/service/guardduty/go_module_metadata.go @@ -3,4 +3,4 @@ package guardduty // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.51.1" +const goModuleVersion = "1.51.2" diff --git a/service/health/CHANGELOG.md b/service/health/CHANGELOG.md index 6aed9efeb45..538ddb8b976 100644 --- a/service/health/CHANGELOG.md +++ b/service/health/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.28.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/health/go.mod b/service/health/go.mod index a41396708c5..ca16326ba7d 100644 --- a/service/health/go.mod +++ b/service/health/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/health go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/health/go.sum b/service/health/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/health/go.sum +++ b/service/health/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/health/go_module_metadata.go b/service/health/go_module_metadata.go index b01033c1ce6..b076226ef2a 100644 --- a/service/health/go_module_metadata.go +++ b/service/health/go_module_metadata.go @@ -3,4 +3,4 @@ package health // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.5" +const goModuleVersion = "1.28.6" diff --git a/service/healthlake/CHANGELOG.md b/service/healthlake/CHANGELOG.md index 8c1b04b7d54..2ef0999c6db 100644 --- a/service/healthlake/CHANGELOG.md +++ b/service/healthlake/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.28.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/healthlake/go.mod b/service/healthlake/go.mod index f04bf28b70d..23fa8c5a0ac 100644 --- a/service/healthlake/go.mod +++ b/service/healthlake/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/healthlake go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/healthlake/go.sum b/service/healthlake/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/healthlake/go.sum +++ b/service/healthlake/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/healthlake/go_module_metadata.go b/service/healthlake/go_module_metadata.go index 6f4c3a50633..0ce36922892 100644 --- a/service/healthlake/go_module_metadata.go +++ b/service/healthlake/go_module_metadata.go @@ -3,4 +3,4 @@ package healthlake // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.5" +const goModuleVersion = "1.28.6" diff --git a/service/iam/CHANGELOG.md b/service/iam/CHANGELOG.md index 1634a2734d7..b02a70a5f03 100644 --- a/service/iam/CHANGELOG.md +++ b/service/iam/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.38.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.38.0 (2024-11-14) * **Feature**: This release includes support for five new APIs and changes to existing APIs that give AWS Organizations customers the ability to use temporary root credentials, targeted to member accounts in the organization. diff --git a/service/iam/go.mod b/service/iam/go.mod index a6877b1f400..052f4cfc8bb 100644 --- a/service/iam/go.mod +++ b/service/iam/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iam go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iam/go.sum b/service/iam/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/iam/go.sum +++ b/service/iam/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/iam/go_module_metadata.go b/service/iam/go_module_metadata.go index f687c7d0dbf..eade2e3c77c 100644 --- a/service/iam/go_module_metadata.go +++ b/service/iam/go_module_metadata.go @@ -3,4 +3,4 @@ package iam // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.38.0" +const goModuleVersion = "1.38.1" diff --git a/service/identitystore/CHANGELOG.md b/service/identitystore/CHANGELOG.md index d610bcdedc1..f83a5d289b4 100644 --- a/service/identitystore/CHANGELOG.md +++ b/service/identitystore/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/identitystore/go.mod b/service/identitystore/go.mod index 55c622b3bf9..eca7b8c90f6 100644 --- a/service/identitystore/go.mod +++ b/service/identitystore/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/identitystore go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/identitystore/go.sum b/service/identitystore/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/identitystore/go.sum +++ b/service/identitystore/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/identitystore/go_module_metadata.go b/service/identitystore/go_module_metadata.go index 8dc3122306c..1ee1939a194 100644 --- a/service/identitystore/go_module_metadata.go +++ b/service/identitystore/go_module_metadata.go @@ -3,4 +3,4 @@ package identitystore // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.5" +const goModuleVersion = "1.27.6" diff --git a/service/imagebuilder/CHANGELOG.md b/service/imagebuilder/CHANGELOG.md index 82623311523..903c730dac0 100644 --- a/service/imagebuilder/CHANGELOG.md +++ b/service/imagebuilder/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.38.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.38.3 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/imagebuilder/go.mod b/service/imagebuilder/go.mod index 79d41aaeb4a..d6ac137f8a8 100644 --- a/service/imagebuilder/go.mod +++ b/service/imagebuilder/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/imagebuilder go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/imagebuilder/go.sum b/service/imagebuilder/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/imagebuilder/go.sum +++ b/service/imagebuilder/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/imagebuilder/go_module_metadata.go b/service/imagebuilder/go_module_metadata.go index c979ecf9c07..6d2b2f6d1c9 100644 --- a/service/imagebuilder/go_module_metadata.go +++ b/service/imagebuilder/go_module_metadata.go @@ -3,4 +3,4 @@ package imagebuilder // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.38.3" +const goModuleVersion = "1.38.4" diff --git a/service/inspector/CHANGELOG.md b/service/inspector/CHANGELOG.md index f51e41edd2a..cd3afa5e1e9 100644 --- a/service/inspector/CHANGELOG.md +++ b/service/inspector/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.25.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/inspector/go.mod b/service/inspector/go.mod index 0d08acab641..b223961c99a 100644 --- a/service/inspector/go.mod +++ b/service/inspector/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/inspector go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/inspector/go.sum b/service/inspector/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/inspector/go.sum +++ b/service/inspector/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/inspector/go_module_metadata.go b/service/inspector/go_module_metadata.go index 11d5ddcd400..95370c14d59 100644 --- a/service/inspector/go_module_metadata.go +++ b/service/inspector/go_module_metadata.go @@ -3,4 +3,4 @@ package inspector // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.5" +const goModuleVersion = "1.25.6" diff --git a/service/inspector2/CHANGELOG.md b/service/inspector2/CHANGELOG.md index bad7c1d190c..e3477ddfb82 100644 --- a/service/inspector2/CHANGELOG.md +++ b/service/inspector2/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.33.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.33.0 (2024-11-11) * **Feature**: Adds support for filePath filter. diff --git a/service/inspector2/go.mod b/service/inspector2/go.mod index 3089869bad1..b92add5cdaf 100644 --- a/service/inspector2/go.mod +++ b/service/inspector2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/inspector2 go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/inspector2/go.sum b/service/inspector2/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/inspector2/go.sum +++ b/service/inspector2/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/inspector2/go_module_metadata.go b/service/inspector2/go_module_metadata.go index 502bf5a1f6b..db2d4cb3b26 100644 --- a/service/inspector2/go_module_metadata.go +++ b/service/inspector2/go_module_metadata.go @@ -3,4 +3,4 @@ package inspector2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.33.0" +const goModuleVersion = "1.33.1" diff --git a/service/inspectorscan/CHANGELOG.md b/service/inspectorscan/CHANGELOG.md index 97c5f06dcbe..512c103f43f 100644 --- a/service/inspectorscan/CHANGELOG.md +++ b/service/inspectorscan/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.7.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.7.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/inspectorscan/go.mod b/service/inspectorscan/go.mod index a352eb6f0d1..b538c39e1a8 100644 --- a/service/inspectorscan/go.mod +++ b/service/inspectorscan/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/inspectorscan go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/inspectorscan/go.sum b/service/inspectorscan/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/inspectorscan/go.sum +++ b/service/inspectorscan/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/inspectorscan/go_module_metadata.go b/service/inspectorscan/go_module_metadata.go index dc936d406ed..3c9fef47dab 100644 --- a/service/inspectorscan/go_module_metadata.go +++ b/service/inspectorscan/go_module_metadata.go @@ -3,4 +3,4 @@ package inspectorscan // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.7.5" +const goModuleVersion = "1.7.6" diff --git a/service/internal/accept-encoding/CHANGELOG.md b/service/internal/accept-encoding/CHANGELOG.md index 297618fccee..8ab28d3a987 100644 --- a/service/internal/accept-encoding/CHANGELOG.md +++ b/service/internal/accept-encoding/CHANGELOG.md @@ -1,3 +1,7 @@ +# v1.12.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. + # v1.12.0 (2024-10-04) * **Feature**: Add support for HTTP client metrics. diff --git a/service/internal/accept-encoding/go.mod b/service/internal/accept-encoding/go.mod index cc5fa8103cd..e9bcdb84fa5 100644 --- a/service/internal/accept-encoding/go.mod +++ b/service/internal/accept-encoding/go.mod @@ -2,4 +2,4 @@ module github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding go 1.21 -require github.com/aws/smithy-go v1.22.0 +require github.com/aws/smithy-go v1.22.1 diff --git a/service/internal/accept-encoding/go.sum b/service/internal/accept-encoding/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/internal/accept-encoding/go.sum +++ b/service/internal/accept-encoding/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/internal/accept-encoding/go_module_metadata.go b/service/internal/accept-encoding/go_module_metadata.go index 4e50b2578e2..1514acbe346 100644 --- a/service/internal/accept-encoding/go_module_metadata.go +++ b/service/internal/accept-encoding/go_module_metadata.go @@ -3,4 +3,4 @@ package acceptencoding // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.12.0" +const goModuleVersion = "1.12.1" diff --git a/service/internal/benchmark/go.mod b/service/internal/benchmark/go.mod index d54ece4e1e9..69557c32e78 100644 --- a/service/internal/benchmark/go.mod +++ b/service/internal/benchmark/go.mod @@ -4,24 +4,24 @@ go 1.21 require ( github.com/aws/aws-sdk-go v1.44.28 - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/service/dynamodb v1.37.0 - github.com/aws/aws-sdk-go-v2/service/lexruntimeservice v1.24.5 - github.com/aws/aws-sdk-go-v2/service/s3 v1.67.0 - github.com/aws/aws-sdk-go-v2/service/schemas v1.28.6 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/service/dynamodb v1.37.1 + github.com/aws/aws-sdk-go-v2/service/lexruntimeservice v1.24.6 + github.com/aws/aws-sdk-go-v2/service/s3 v1.67.1 + github.com/aws/aws-sdk-go-v2/service/schemas v1.28.7 + github.com/aws/smithy-go v1.22.1 ) require ( - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.6 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 // indirect - github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.23 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.4.4 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.4 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.4 // indirect + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.7 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 // indirect + github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.24 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.4.5 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.5 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.5 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect ) diff --git a/service/internal/benchmark/go.sum b/service/internal/benchmark/go.sum index 09ef9fb5f96..bd48474a005 100644 --- a/service/internal/benchmark/go.sum +++ b/service/internal/benchmark/go.sum @@ -1,7 +1,7 @@ github.com/aws/aws-sdk-go v1.44.28 h1:h/OAqEqY18wq//v6h4GNPMmCkxuzSDrWuGyrvSiRqf4= github.com/aws/aws-sdk-go v1.44.28/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/internal/checksum/CHANGELOG.md b/service/internal/checksum/CHANGELOG.md index c07acfccb58..c363283efb0 100644 --- a/service/internal/checksum/CHANGELOG.md +++ b/service/internal/checksum/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.4.5 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.4.4 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/internal/checksum/go.mod b/service/internal/checksum/go.mod index dc29ff77981..e0d21e3da0b 100644 --- a/service/internal/checksum/go.mod +++ b/service/internal/checksum/go.mod @@ -3,9 +3,9 @@ module github.com/aws/aws-sdk-go-v2/service/internal/checksum go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/service/internal/checksum/go.sum b/service/internal/checksum/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/internal/checksum/go.sum +++ b/service/internal/checksum/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/internal/checksum/go_module_metadata.go b/service/internal/checksum/go_module_metadata.go index 25c41ea1ce7..5793044ec48 100644 --- a/service/internal/checksum/go_module_metadata.go +++ b/service/internal/checksum/go_module_metadata.go @@ -3,4 +3,4 @@ package checksum // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.4.4" +const goModuleVersion = "1.4.5" diff --git a/service/internal/endpoint-discovery/CHANGELOG.md b/service/internal/endpoint-discovery/CHANGELOG.md index 0bbee652f94..da56399bf30 100644 --- a/service/internal/endpoint-discovery/CHANGELOG.md +++ b/service/internal/endpoint-discovery/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.10.5 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.10.4 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/internal/endpoint-discovery/go.mod b/service/internal/endpoint-discovery/go.mod index af1f77f17df..af560650c1d 100644 --- a/service/internal/endpoint-discovery/go.mod +++ b/service/internal/endpoint-discovery/go.mod @@ -3,8 +3,8 @@ module github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/service/internal/endpoint-discovery/go.sum b/service/internal/endpoint-discovery/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/internal/endpoint-discovery/go.sum +++ b/service/internal/endpoint-discovery/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/internal/endpoint-discovery/go_module_metadata.go b/service/internal/endpoint-discovery/go_module_metadata.go index 5fd8b7c1f74..1950da69deb 100644 --- a/service/internal/endpoint-discovery/go_module_metadata.go +++ b/service/internal/endpoint-discovery/go_module_metadata.go @@ -3,4 +3,4 @@ package endpointdiscovery // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.10.4" +const goModuleVersion = "1.10.5" diff --git a/service/internal/eventstreamtesting/CHANGELOG.md b/service/internal/eventstreamtesting/CHANGELOG.md index 52583ca6599..9a59530833c 100644 --- a/service/internal/eventstreamtesting/CHANGELOG.md +++ b/service/internal/eventstreamtesting/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.5.7 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.5.6 (2024-11-14) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/internal/eventstreamtesting/go.mod b/service/internal/eventstreamtesting/go.mod index 4397220978e..2f85d391811 100644 --- a/service/internal/eventstreamtesting/go.mod +++ b/service/internal/eventstreamtesting/go.mod @@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/service/internal/eventstreamtesting go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.6 - github.com/aws/aws-sdk-go-v2/credentials v1.17.45 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.7 + github.com/aws/aws-sdk-go-v2/credentials v1.17.46 ) -require github.com/aws/smithy-go v1.22.0 // indirect +require github.com/aws/smithy-go v1.22.1 // indirect replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/service/internal/eventstreamtesting/go.sum b/service/internal/eventstreamtesting/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/internal/eventstreamtesting/go.sum +++ b/service/internal/eventstreamtesting/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/internal/eventstreamtesting/go_module_metadata.go b/service/internal/eventstreamtesting/go_module_metadata.go index e47388c0edf..e6e4c26c7f6 100644 --- a/service/internal/eventstreamtesting/go_module_metadata.go +++ b/service/internal/eventstreamtesting/go_module_metadata.go @@ -3,4 +3,4 @@ package eventstreamtesting // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.5.6" +const goModuleVersion = "1.5.7" diff --git a/service/internal/integrationtest/go.mod b/service/internal/integrationtest/go.mod index 579e7ee17c9..0cd1b5bca6f 100644 --- a/service/internal/integrationtest/go.mod +++ b/service/internal/integrationtest/go.mod @@ -1,104 +1,104 @@ module github.com/aws/aws-sdk-go-v2/service/internal/integrationtest require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/config v1.28.4 - github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.38 - github.com/aws/aws-sdk-go-v2/service/acm v1.30.5 - github.com/aws/aws-sdk-go-v2/service/apigateway v1.27.5 - github.com/aws/aws-sdk-go-v2/service/applicationautoscaling v1.33.5 - github.com/aws/aws-sdk-go-v2/service/applicationdiscoveryservice v1.28.5 - github.com/aws/aws-sdk-go-v2/service/appstream v1.41.5 - github.com/aws/aws-sdk-go-v2/service/athena v1.48.3 - github.com/aws/aws-sdk-go-v2/service/batch v1.48.0 - github.com/aws/aws-sdk-go-v2/service/cloudformation v1.55.5 - github.com/aws/aws-sdk-go-v2/service/cloudfront v1.41.0 - github.com/aws/aws-sdk-go-v2/service/cloudhsmv2 v1.27.6 - github.com/aws/aws-sdk-go-v2/service/cloudtrail v1.45.0 - github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.43.0 - github.com/aws/aws-sdk-go-v2/service/codebuild v1.49.0 - github.com/aws/aws-sdk-go-v2/service/codecommit v1.27.5 - github.com/aws/aws-sdk-go-v2/service/codedeploy v1.29.5 - github.com/aws/aws-sdk-go-v2/service/codepipeline v1.36.3 - github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider v1.46.5 - github.com/aws/aws-sdk-go-v2/service/configservice v1.50.5 - github.com/aws/aws-sdk-go-v2/service/costandusagereportservice v1.28.5 - github.com/aws/aws-sdk-go-v2/service/databasemigrationservice v1.44.3 - github.com/aws/aws-sdk-go-v2/service/devicefarm v1.28.5 - github.com/aws/aws-sdk-go-v2/service/directconnect v1.29.5 - github.com/aws/aws-sdk-go-v2/service/directoryservice v1.30.6 - github.com/aws/aws-sdk-go-v2/service/docdb v1.39.4 - github.com/aws/aws-sdk-go-v2/service/dynamodb v1.37.0 - github.com/aws/aws-sdk-go-v2/service/ec2 v1.189.0 - github.com/aws/aws-sdk-go-v2/service/ecr v1.36.5 - github.com/aws/aws-sdk-go-v2/service/ecs v1.49.2 - github.com/aws/aws-sdk-go-v2/service/efs v1.33.5 - github.com/aws/aws-sdk-go-v2/service/elasticache v1.43.2 - github.com/aws/aws-sdk-go-v2/service/elasticbeanstalk v1.28.4 - github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing v1.28.4 - github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 v1.41.1 - github.com/aws/aws-sdk-go-v2/service/elasticsearchservice v1.32.5 - github.com/aws/aws-sdk-go-v2/service/emr v1.46.3 - github.com/aws/aws-sdk-go-v2/service/eventbridge v1.35.5 - github.com/aws/aws-sdk-go-v2/service/firehose v1.35.0 - github.com/aws/aws-sdk-go-v2/service/gamelift v1.37.0 - github.com/aws/aws-sdk-go-v2/service/glacier v1.26.5 - github.com/aws/aws-sdk-go-v2/service/glue v1.101.3 - github.com/aws/aws-sdk-go-v2/service/health v1.28.5 - github.com/aws/aws-sdk-go-v2/service/iam v1.38.0 - github.com/aws/aws-sdk-go-v2/service/inspector v1.25.5 - github.com/aws/aws-sdk-go-v2/service/iot v1.60.0 - github.com/aws/aws-sdk-go-v2/service/kinesis v1.32.5 - github.com/aws/aws-sdk-go-v2/service/kms v1.37.5 - github.com/aws/aws-sdk-go-v2/service/lambda v1.66.0 - github.com/aws/aws-sdk-go-v2/service/lightsail v1.42.5 - github.com/aws/aws-sdk-go-v2/service/marketplacecommerceanalytics v1.24.5 - github.com/aws/aws-sdk-go-v2/service/neptune v1.35.4 - github.com/aws/aws-sdk-go-v2/service/pinpointemail v1.23.5 - github.com/aws/aws-sdk-go-v2/service/polly v1.45.5 - github.com/aws/aws-sdk-go-v2/service/rds v1.89.2 - github.com/aws/aws-sdk-go-v2/service/redshift v1.52.0 - github.com/aws/aws-sdk-go-v2/service/rekognition v1.45.6 - github.com/aws/aws-sdk-go-v2/service/route53 v1.46.1 - github.com/aws/aws-sdk-go-v2/service/route53domains v1.27.5 - github.com/aws/aws-sdk-go-v2/service/route53resolver v1.34.0 - github.com/aws/aws-sdk-go-v2/service/s3 v1.67.0 - github.com/aws/aws-sdk-go-v2/service/s3control v1.50.0 - github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.34.5 - github.com/aws/aws-sdk-go-v2/service/servicecatalog v1.32.5 - github.com/aws/aws-sdk-go-v2/service/ses v1.28.4 - github.com/aws/aws-sdk-go-v2/service/sfn v1.33.5 - github.com/aws/aws-sdk-go-v2/service/shield v1.29.5 - github.com/aws/aws-sdk-go-v2/service/snowball v1.30.5 - github.com/aws/aws-sdk-go-v2/service/sns v1.33.4 - github.com/aws/aws-sdk-go-v2/service/sqs v1.37.0 - github.com/aws/aws-sdk-go-v2/service/ssm v1.55.5 - github.com/aws/aws-sdk-go-v2/service/sts v1.33.0 - github.com/aws/aws-sdk-go-v2/service/support v1.26.5 - github.com/aws/aws-sdk-go-v2/service/timestreamwrite v1.29.5 - github.com/aws/aws-sdk-go-v2/service/transcribestreaming v1.22.3 - github.com/aws/aws-sdk-go-v2/service/waf v1.25.5 - github.com/aws/aws-sdk-go-v2/service/wafregional v1.25.5 - github.com/aws/aws-sdk-go-v2/service/wafv2 v1.55.4 - github.com/aws/aws-sdk-go-v2/service/workspaces v1.48.5 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/config v1.28.5 + github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.39 + github.com/aws/aws-sdk-go-v2/service/acm v1.30.6 + github.com/aws/aws-sdk-go-v2/service/apigateway v1.27.6 + github.com/aws/aws-sdk-go-v2/service/applicationautoscaling v1.33.6 + github.com/aws/aws-sdk-go-v2/service/applicationdiscoveryservice v1.29.0 + github.com/aws/aws-sdk-go-v2/service/appstream v1.41.6 + github.com/aws/aws-sdk-go-v2/service/athena v1.48.4 + github.com/aws/aws-sdk-go-v2/service/batch v1.48.1 + github.com/aws/aws-sdk-go-v2/service/cloudformation v1.56.0 + github.com/aws/aws-sdk-go-v2/service/cloudfront v1.42.0 + github.com/aws/aws-sdk-go-v2/service/cloudhsmv2 v1.27.7 + github.com/aws/aws-sdk-go-v2/service/cloudtrail v1.45.1 + github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.43.1 + github.com/aws/aws-sdk-go-v2/service/codebuild v1.49.1 + github.com/aws/aws-sdk-go-v2/service/codecommit v1.27.6 + github.com/aws/aws-sdk-go-v2/service/codedeploy v1.29.6 + github.com/aws/aws-sdk-go-v2/service/codepipeline v1.36.4 + github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider v1.46.6 + github.com/aws/aws-sdk-go-v2/service/configservice v1.50.6 + github.com/aws/aws-sdk-go-v2/service/costandusagereportservice v1.28.6 + github.com/aws/aws-sdk-go-v2/service/databasemigrationservice v1.44.4 + github.com/aws/aws-sdk-go-v2/service/devicefarm v1.28.6 + github.com/aws/aws-sdk-go-v2/service/directconnect v1.29.6 + github.com/aws/aws-sdk-go-v2/service/directoryservice v1.30.7 + github.com/aws/aws-sdk-go-v2/service/docdb v1.39.5 + github.com/aws/aws-sdk-go-v2/service/dynamodb v1.37.1 + github.com/aws/aws-sdk-go-v2/service/ec2 v1.192.0 + github.com/aws/aws-sdk-go-v2/service/ecr v1.36.6 + github.com/aws/aws-sdk-go-v2/service/ecs v1.52.0 + github.com/aws/aws-sdk-go-v2/service/efs v1.34.0 + github.com/aws/aws-sdk-go-v2/service/elasticache v1.43.3 + github.com/aws/aws-sdk-go-v2/service/elasticbeanstalk v1.28.5 + github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing v1.28.5 + github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 v1.42.0 + github.com/aws/aws-sdk-go-v2/service/elasticsearchservice v1.32.6 + github.com/aws/aws-sdk-go-v2/service/emr v1.46.4 + github.com/aws/aws-sdk-go-v2/service/eventbridge v1.35.6 + github.com/aws/aws-sdk-go-v2/service/firehose v1.35.1 + github.com/aws/aws-sdk-go-v2/service/gamelift v1.37.1 + github.com/aws/aws-sdk-go-v2/service/glacier v1.26.6 + github.com/aws/aws-sdk-go-v2/service/glue v1.102.0 + github.com/aws/aws-sdk-go-v2/service/health v1.28.6 + github.com/aws/aws-sdk-go-v2/service/iam v1.38.1 + github.com/aws/aws-sdk-go-v2/service/inspector v1.25.6 + github.com/aws/aws-sdk-go-v2/service/iot v1.60.1 + github.com/aws/aws-sdk-go-v2/service/kinesis v1.32.6 + github.com/aws/aws-sdk-go-v2/service/kms v1.37.6 + github.com/aws/aws-sdk-go-v2/service/lambda v1.67.0 + github.com/aws/aws-sdk-go-v2/service/lightsail v1.42.6 + github.com/aws/aws-sdk-go-v2/service/marketplacecommerceanalytics v1.24.6 + github.com/aws/aws-sdk-go-v2/service/neptune v1.35.5 + github.com/aws/aws-sdk-go-v2/service/pinpointemail v1.23.6 + github.com/aws/aws-sdk-go-v2/service/polly v1.45.6 + github.com/aws/aws-sdk-go-v2/service/rds v1.91.0 + github.com/aws/aws-sdk-go-v2/service/redshift v1.52.1 + github.com/aws/aws-sdk-go-v2/service/rekognition v1.45.7 + github.com/aws/aws-sdk-go-v2/service/route53 v1.46.2 + github.com/aws/aws-sdk-go-v2/service/route53domains v1.27.6 + github.com/aws/aws-sdk-go-v2/service/route53resolver v1.34.1 + github.com/aws/aws-sdk-go-v2/service/s3 v1.67.1 + github.com/aws/aws-sdk-go-v2/service/s3control v1.50.1 + github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.34.6 + github.com/aws/aws-sdk-go-v2/service/servicecatalog v1.32.6 + github.com/aws/aws-sdk-go-v2/service/ses v1.28.5 + github.com/aws/aws-sdk-go-v2/service/sfn v1.33.6 + github.com/aws/aws-sdk-go-v2/service/shield v1.29.6 + github.com/aws/aws-sdk-go-v2/service/snowball v1.30.6 + github.com/aws/aws-sdk-go-v2/service/sns v1.33.5 + github.com/aws/aws-sdk-go-v2/service/sqs v1.37.1 + github.com/aws/aws-sdk-go-v2/service/ssm v1.55.6 + github.com/aws/aws-sdk-go-v2/service/sts v1.33.1 + github.com/aws/aws-sdk-go-v2/service/support v1.26.6 + github.com/aws/aws-sdk-go-v2/service/timestreamwrite v1.29.6 + github.com/aws/aws-sdk-go-v2/service/transcribestreaming v1.22.4 + github.com/aws/aws-sdk-go-v2/service/waf v1.25.6 + github.com/aws/aws-sdk-go-v2/service/wafregional v1.25.6 + github.com/aws/aws-sdk-go-v2/service/wafv2 v1.55.5 + github.com/aws/aws-sdk-go-v2/service/workspaces v1.50.0 + github.com/aws/smithy-go v1.22.1 ) require ( - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.6 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.17.45 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.19 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 // indirect + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.7 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.17.46 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.20 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect - github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.23 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.4.4 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.4 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.4 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.24.5 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.4 // indirect + github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.24 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.4.5 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.5 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.5 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.24.6 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.5 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect ) @@ -194,8 +194,6 @@ replace github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 => ../../../ replace github.com/aws/aws-sdk-go-v2/service/elasticsearchservice => ../../../service/elasticsearchservice/ -replace github.com/aws/aws-sdk-go-v2/service/elastictranscoder => ../../../service/elastictranscoder/ - replace github.com/aws/aws-sdk-go-v2/service/emr => ../../../service/emr/ replace github.com/aws/aws-sdk-go-v2/service/eventbridge => ../../../service/eventbridge/ diff --git a/service/internal/integrationtest/go.sum b/service/internal/integrationtest/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/internal/integrationtest/go.sum +++ b/service/internal/integrationtest/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/internal/presigned-url/CHANGELOG.md b/service/internal/presigned-url/CHANGELOG.md index f239d1a7d62..8b667bc004d 100644 --- a/service/internal/presigned-url/CHANGELOG.md +++ b/service/internal/presigned-url/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.12.5 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.12.4 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/internal/presigned-url/go.mod b/service/internal/presigned-url/go.mod index 798c7a300a2..99aaebe7caf 100644 --- a/service/internal/presigned-url/go.mod +++ b/service/internal/presigned-url/go.mod @@ -3,8 +3,8 @@ module github.com/aws/aws-sdk-go-v2/service/internal/presigned-url go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/service/internal/presigned-url/go.sum b/service/internal/presigned-url/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/internal/presigned-url/go.sum +++ b/service/internal/presigned-url/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/internal/presigned-url/go_module_metadata.go b/service/internal/presigned-url/go_module_metadata.go index c5d9e1e9511..20e16af75af 100644 --- a/service/internal/presigned-url/go_module_metadata.go +++ b/service/internal/presigned-url/go_module_metadata.go @@ -3,4 +3,4 @@ package presignedurl // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.12.4" +const goModuleVersion = "1.12.5" diff --git a/service/internal/s3shared/CHANGELOG.md b/service/internal/s3shared/CHANGELOG.md index f085559c63d..2a5b115d949 100644 --- a/service/internal/s3shared/CHANGELOG.md +++ b/service/internal/s3shared/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.18.5 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.4 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/internal/s3shared/go.mod b/service/internal/s3shared/go.mod index 7596466a1ec..042a15a6eb7 100644 --- a/service/internal/s3shared/go.mod +++ b/service/internal/s3shared/go.mod @@ -3,8 +3,8 @@ module github.com/aws/aws-sdk-go-v2/service/internal/s3shared go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/service/internal/s3shared/go.sum b/service/internal/s3shared/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/internal/s3shared/go.sum +++ b/service/internal/s3shared/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/internal/s3shared/go_module_metadata.go b/service/internal/s3shared/go_module_metadata.go index 0144f160aca..931c07e9eb5 100644 --- a/service/internal/s3shared/go_module_metadata.go +++ b/service/internal/s3shared/go_module_metadata.go @@ -3,4 +3,4 @@ package s3shared // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.4" +const goModuleVersion = "1.18.5" diff --git a/service/internetmonitor/CHANGELOG.md b/service/internetmonitor/CHANGELOG.md index c42a83e945d..dc60ac9e7c4 100644 --- a/service/internetmonitor/CHANGELOG.md +++ b/service/internetmonitor/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.20.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2024-11-13) * **Feature**: Add new query type Routing_Suggestions regarding querying interface diff --git a/service/internetmonitor/go.mod b/service/internetmonitor/go.mod index e117c3bc7a3..02cf64a642d 100644 --- a/service/internetmonitor/go.mod +++ b/service/internetmonitor/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/internetmonitor go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/internetmonitor/go.sum b/service/internetmonitor/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/internetmonitor/go.sum +++ b/service/internetmonitor/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/internetmonitor/go_module_metadata.go b/service/internetmonitor/go_module_metadata.go index 6b6d64a6303..a4be115e884 100644 --- a/service/internetmonitor/go_module_metadata.go +++ b/service/internetmonitor/go_module_metadata.go @@ -3,4 +3,4 @@ package internetmonitor // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.1" diff --git a/service/iot/CHANGELOG.md b/service/iot/CHANGELOG.md index d24e594a564..3fb33d98a31 100644 --- a/service/iot/CHANGELOG.md +++ b/service/iot/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.60.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.60.0 (2024-11-15.2) * **Feature**: This release allows AWS IoT Core users to enrich MQTT messages with propagating attributes, to associate a thing to a connection, and to enable Online Certificate Status Protocol (OCSP) stapling for TLS X.509 server certificates through private endpoints. diff --git a/service/iot/go.mod b/service/iot/go.mod index 528a70a543e..abef5474574 100644 --- a/service/iot/go.mod +++ b/service/iot/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iot go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iot/go.sum b/service/iot/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/iot/go.sum +++ b/service/iot/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/iot/go_module_metadata.go b/service/iot/go_module_metadata.go index 995cd014bd5..ac39a64859c 100644 --- a/service/iot/go_module_metadata.go +++ b/service/iot/go_module_metadata.go @@ -3,4 +3,4 @@ package iot // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.60.0" +const goModuleVersion = "1.60.1" diff --git a/service/iot1clickdevicesservice/CHANGELOG.md b/service/iot1clickdevicesservice/CHANGELOG.md index cf371b0cb46..cb34a809911 100644 --- a/service/iot1clickdevicesservice/CHANGELOG.md +++ b/service/iot1clickdevicesservice/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.23.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/iot1clickdevicesservice/go.mod b/service/iot1clickdevicesservice/go.mod index 2f5218ecf26..0e734eea35f 100644 --- a/service/iot1clickdevicesservice/go.mod +++ b/service/iot1clickdevicesservice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iot1clickdevicesservice go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iot1clickdevicesservice/go.sum b/service/iot1clickdevicesservice/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/iot1clickdevicesservice/go.sum +++ b/service/iot1clickdevicesservice/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/iot1clickdevicesservice/go_module_metadata.go b/service/iot1clickdevicesservice/go_module_metadata.go index 4171575bccf..dfc10be39bf 100644 --- a/service/iot1clickdevicesservice/go_module_metadata.go +++ b/service/iot1clickdevicesservice/go_module_metadata.go @@ -3,4 +3,4 @@ package iot1clickdevicesservice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.5" +const goModuleVersion = "1.23.6" diff --git a/service/iot1clickprojects/CHANGELOG.md b/service/iot1clickprojects/CHANGELOG.md index 637ffcf0e0b..85efa3c4464 100644 --- a/service/iot1clickprojects/CHANGELOG.md +++ b/service/iot1clickprojects/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.23.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/iot1clickprojects/go.mod b/service/iot1clickprojects/go.mod index 48acc8966a8..0cff70442a2 100644 --- a/service/iot1clickprojects/go.mod +++ b/service/iot1clickprojects/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iot1clickprojects go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iot1clickprojects/go.sum b/service/iot1clickprojects/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/iot1clickprojects/go.sum +++ b/service/iot1clickprojects/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/iot1clickprojects/go_module_metadata.go b/service/iot1clickprojects/go_module_metadata.go index 860dd4375d0..536d329a6b9 100644 --- a/service/iot1clickprojects/go_module_metadata.go +++ b/service/iot1clickprojects/go_module_metadata.go @@ -3,4 +3,4 @@ package iot1clickprojects // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.5" +const goModuleVersion = "1.23.6" diff --git a/service/iotanalytics/CHANGELOG.md b/service/iotanalytics/CHANGELOG.md index 30d0f452675..7e3bbf8bd50 100644 --- a/service/iotanalytics/CHANGELOG.md +++ b/service/iotanalytics/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.26.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/iotanalytics/go.mod b/service/iotanalytics/go.mod index cd052d99175..b9a5d208443 100644 --- a/service/iotanalytics/go.mod +++ b/service/iotanalytics/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotanalytics go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotanalytics/go.sum b/service/iotanalytics/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/iotanalytics/go.sum +++ b/service/iotanalytics/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/iotanalytics/go_module_metadata.go b/service/iotanalytics/go_module_metadata.go index 153ba175537..d3ac687412b 100644 --- a/service/iotanalytics/go_module_metadata.go +++ b/service/iotanalytics/go_module_metadata.go @@ -3,4 +3,4 @@ package iotanalytics // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.5" +const goModuleVersion = "1.26.6" diff --git a/service/iotdataplane/CHANGELOG.md b/service/iotdataplane/CHANGELOG.md index f40f289256c..b0b43361fe1 100644 --- a/service/iotdataplane/CHANGELOG.md +++ b/service/iotdataplane/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.26.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/iotdataplane/go.mod b/service/iotdataplane/go.mod index 0a80d6733f7..c278674d3fc 100644 --- a/service/iotdataplane/go.mod +++ b/service/iotdataplane/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotdataplane go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotdataplane/go.sum b/service/iotdataplane/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/iotdataplane/go.sum +++ b/service/iotdataplane/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/iotdataplane/go_module_metadata.go b/service/iotdataplane/go_module_metadata.go index 440f122ce7c..89c5d807944 100644 --- a/service/iotdataplane/go_module_metadata.go +++ b/service/iotdataplane/go_module_metadata.go @@ -3,4 +3,4 @@ package iotdataplane // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.5" +const goModuleVersion = "1.26.6" diff --git a/service/iotdeviceadvisor/CHANGELOG.md b/service/iotdeviceadvisor/CHANGELOG.md index 31508634f1c..9bf6d9a7ee1 100644 --- a/service/iotdeviceadvisor/CHANGELOG.md +++ b/service/iotdeviceadvisor/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.31.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.31.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/iotdeviceadvisor/go.mod b/service/iotdeviceadvisor/go.mod index ed1dcd05929..029e5357578 100644 --- a/service/iotdeviceadvisor/go.mod +++ b/service/iotdeviceadvisor/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotdeviceadvisor go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotdeviceadvisor/go.sum b/service/iotdeviceadvisor/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/iotdeviceadvisor/go.sum +++ b/service/iotdeviceadvisor/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/iotdeviceadvisor/go_module_metadata.go b/service/iotdeviceadvisor/go_module_metadata.go index 7fe3c04f8f9..5e3ca82cfd4 100644 --- a/service/iotdeviceadvisor/go_module_metadata.go +++ b/service/iotdeviceadvisor/go_module_metadata.go @@ -3,4 +3,4 @@ package iotdeviceadvisor // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.31.5" +const goModuleVersion = "1.31.6" diff --git a/service/iotevents/CHANGELOG.md b/service/iotevents/CHANGELOG.md index 65e3e92593c..700594cb9ba 100644 --- a/service/iotevents/CHANGELOG.md +++ b/service/iotevents/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/iotevents/go.mod b/service/iotevents/go.mod index 83f4029372a..811ce613b4d 100644 --- a/service/iotevents/go.mod +++ b/service/iotevents/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotevents go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotevents/go.sum b/service/iotevents/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/iotevents/go.sum +++ b/service/iotevents/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/iotevents/go_module_metadata.go b/service/iotevents/go_module_metadata.go index 86d7f405905..4cd4b3a34ba 100644 --- a/service/iotevents/go_module_metadata.go +++ b/service/iotevents/go_module_metadata.go @@ -3,4 +3,4 @@ package iotevents // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.5" +const goModuleVersion = "1.27.6" diff --git a/service/ioteventsdata/CHANGELOG.md b/service/ioteventsdata/CHANGELOG.md index 6d1d2a71bec..b43c0bd45f1 100644 --- a/service/ioteventsdata/CHANGELOG.md +++ b/service/ioteventsdata/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.24.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/ioteventsdata/go.mod b/service/ioteventsdata/go.mod index 35c12e189ec..073ea345c7a 100644 --- a/service/ioteventsdata/go.mod +++ b/service/ioteventsdata/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ioteventsdata go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ioteventsdata/go.sum b/service/ioteventsdata/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/ioteventsdata/go.sum +++ b/service/ioteventsdata/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/ioteventsdata/go_module_metadata.go b/service/ioteventsdata/go_module_metadata.go index 6cd034aa85b..deab7b360db 100644 --- a/service/ioteventsdata/go_module_metadata.go +++ b/service/ioteventsdata/go_module_metadata.go @@ -3,4 +3,4 @@ package ioteventsdata // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.5" +const goModuleVersion = "1.24.6" diff --git a/service/iotfleethub/CHANGELOG.md b/service/iotfleethub/CHANGELOG.md index 0c5ff50a957..eb41da1a83c 100644 --- a/service/iotfleethub/CHANGELOG.md +++ b/service/iotfleethub/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.24.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/iotfleethub/go.mod b/service/iotfleethub/go.mod index acb0e91bb63..b3243228805 100644 --- a/service/iotfleethub/go.mod +++ b/service/iotfleethub/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotfleethub go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotfleethub/go.sum b/service/iotfleethub/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/iotfleethub/go.sum +++ b/service/iotfleethub/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/iotfleethub/go_module_metadata.go b/service/iotfleethub/go_module_metadata.go index 701494e83ca..18f62c839e7 100644 --- a/service/iotfleethub/go_module_metadata.go +++ b/service/iotfleethub/go_module_metadata.go @@ -3,4 +3,4 @@ package iotfleethub // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.5" +const goModuleVersion = "1.24.6" diff --git a/service/iotfleetwise/CHANGELOG.md b/service/iotfleetwise/CHANGELOG.md index c5ea2b1e639..c4b10ff6ea6 100644 --- a/service/iotfleetwise/CHANGELOG.md +++ b/service/iotfleetwise/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.21.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.3 (2024-11-13) * No change notes available for this release. diff --git a/service/iotfleetwise/go.mod b/service/iotfleetwise/go.mod index ace0531d4b0..18911226604 100644 --- a/service/iotfleetwise/go.mod +++ b/service/iotfleetwise/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotfleetwise go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotfleetwise/go.sum b/service/iotfleetwise/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/iotfleetwise/go.sum +++ b/service/iotfleetwise/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/iotfleetwise/go_module_metadata.go b/service/iotfleetwise/go_module_metadata.go index fca33c54c3e..c6f6c2c54aa 100644 --- a/service/iotfleetwise/go_module_metadata.go +++ b/service/iotfleetwise/go_module_metadata.go @@ -3,4 +3,4 @@ package iotfleetwise // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.3" +const goModuleVersion = "1.21.4" diff --git a/service/iotjobsdataplane/CHANGELOG.md b/service/iotjobsdataplane/CHANGELOG.md index 7da53eb1753..620d7d916ab 100644 --- a/service/iotjobsdataplane/CHANGELOG.md +++ b/service/iotjobsdataplane/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.23.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/iotjobsdataplane/go.mod b/service/iotjobsdataplane/go.mod index be05eac0023..ede2a399809 100644 --- a/service/iotjobsdataplane/go.mod +++ b/service/iotjobsdataplane/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotjobsdataplane go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotjobsdataplane/go.sum b/service/iotjobsdataplane/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/iotjobsdataplane/go.sum +++ b/service/iotjobsdataplane/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/iotjobsdataplane/go_module_metadata.go b/service/iotjobsdataplane/go_module_metadata.go index 32c5aa8a6df..2b18cbc5266 100644 --- a/service/iotjobsdataplane/go_module_metadata.go +++ b/service/iotjobsdataplane/go_module_metadata.go @@ -3,4 +3,4 @@ package iotjobsdataplane // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.5" +const goModuleVersion = "1.23.6" diff --git a/service/iotsecuretunneling/CHANGELOG.md b/service/iotsecuretunneling/CHANGELOG.md index d9771e8538e..acedbe2cc4f 100644 --- a/service/iotsecuretunneling/CHANGELOG.md +++ b/service/iotsecuretunneling/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/iotsecuretunneling/go.mod b/service/iotsecuretunneling/go.mod index 8c056cd78f0..63c8e5ea2f5 100644 --- a/service/iotsecuretunneling/go.mod +++ b/service/iotsecuretunneling/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotsecuretunneling go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotsecuretunneling/go.sum b/service/iotsecuretunneling/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/iotsecuretunneling/go.sum +++ b/service/iotsecuretunneling/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/iotsecuretunneling/go_module_metadata.go b/service/iotsecuretunneling/go_module_metadata.go index 4c7772801fb..51bf0d5a52a 100644 --- a/service/iotsecuretunneling/go_module_metadata.go +++ b/service/iotsecuretunneling/go_module_metadata.go @@ -3,4 +3,4 @@ package iotsecuretunneling // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.5" +const goModuleVersion = "1.27.6" diff --git a/service/iotsitewise/CHANGELOG.md b/service/iotsitewise/CHANGELOG.md index 3f447b52233..af5b3cd13ef 100644 --- a/service/iotsitewise/CHANGELOG.md +++ b/service/iotsitewise/CHANGELOG.md @@ -1,3 +1,9 @@ +# v1.44.0 (2024-11-18) + +* **Feature**: The release introduces a generative AI Assistant in AWS IoT SiteWise. It includes: 1) InvokeAssistant API - Invoke the Assistant to get alarm summaries and ask questions. 2) Dataset APIs - Manage knowledge base configuration for the Assistant. 3) Portal APIs enhancement - Manage AI-aware dashboards. +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.43.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/iotsitewise/api_client.go b/service/iotsitewise/api_client.go index 0d8524de92a..e14e4310e2d 100644 --- a/service/iotsitewise/api_client.go +++ b/service/iotsitewise/api_client.go @@ -242,6 +242,8 @@ func (c *Client) invokeOperation( fn(&options) } + setSafeEventStreamClientLogMode(&options, opID) + finalizeOperationRetryMaxAttempts(&options, *c) finalizeClientEndpointResolverOptions(&options) diff --git a/service/iotsitewise/api_op_CreateDashboard.go b/service/iotsitewise/api_op_CreateDashboard.go index 2d4adef9396..067f7808402 100644 --- a/service/iotsitewise/api_op_CreateDashboard.go +++ b/service/iotsitewise/api_op_CreateDashboard.go @@ -28,10 +28,15 @@ func (c *Client) CreateDashboard(ctx context.Context, params *CreateDashboardInp type CreateDashboardInput struct { - // The dashboard definition specified in a JSON literal. For detailed information, - // see [Creating dashboards (CLI)]in the IoT SiteWise User Guide. + // The dashboard definition specified in a JSON literal. // - // [Creating dashboards (CLI)]: https://docs.aws.amazon.com/iot-sitewise/latest/userguide/create-dashboards-using-aws-cli.html + // - IoT SiteWise Monitor (Classic) see [Create dashboards (CLI)] + // + // - IoT SiteWise Monitor (AI-aware) see [Create dashboards (CLI)] + // + // in the IoT SiteWise User Guide + // + // [Create dashboards (CLI)]: https://docs.aws.amazon.com/iot-sitewise/latest/userguide/create-dashboards-ai-dashboard-cli.html // // This member is required. DashboardDefinition *string diff --git a/service/iotsitewise/api_op_CreateDataset.go b/service/iotsitewise/api_op_CreateDataset.go new file mode 100644 index 00000000000..b72fcce0324 --- /dev/null +++ b/service/iotsitewise/api_op_CreateDataset.go @@ -0,0 +1,262 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iotsitewise + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/iotsitewise/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a dataset to connect an external datasource. +func (c *Client) CreateDataset(ctx context.Context, params *CreateDatasetInput, optFns ...func(*Options)) (*CreateDatasetOutput, error) { + if params == nil { + params = &CreateDatasetInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateDataset", params, optFns, c.addOperationCreateDatasetMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateDatasetOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateDatasetInput struct { + + // The name of the dataset. + // + // This member is required. + DatasetName *string + + // The data source for the dataset. + // + // This member is required. + DatasetSource *types.DatasetSource + + // A unique case-sensitive identifier that you can provide to ensure the + // idempotency of the request. Don't reuse this client token if a new idempotent + // request is required. + ClientToken *string + + // A description about the dataset, and its functionality. + DatasetDescription *string + + // The ID of the dataset. + DatasetId *string + + // A list of key-value pairs that contain metadata for the access policy. For more + // information, see [Tagging your IoT SiteWise resources]in the IoT SiteWise User Guide. + // + // [Tagging your IoT SiteWise resources]: https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html + Tags map[string]string + + noSmithyDocumentSerde +} + +type CreateDatasetOutput struct { + + // The [ARN] of the dataset. The format is + // arn:${Partition}:iotsitewise:${Region}:${Account}:dataset/${DatasetId} . + // + // [ARN]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference-arns.html + // + // This member is required. + DatasetArn *string + + // The ID of the dataset. + // + // This member is required. + DatasetId *string + + // The status of the dataset. This contains the state and any error messages. + // State is CREATING after a successfull call to this API, and any associated + // error message. The state is ACTIVE when ready to use. + // + // This member is required. + DatasetStatus *types.DatasetStatus + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateDatasetMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateDataset{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateDataset{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateDataset"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addEndpointPrefix_opCreateDatasetMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opCreateDatasetMiddleware(stack, options); err != nil { + return err + } + if err = addOpCreateDatasetValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateDataset(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +type endpointPrefix_opCreateDatasetMiddleware struct { +} + +func (*endpointPrefix_opCreateDatasetMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opCreateDatasetMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleFinalize(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.HandleFinalize(ctx, in) +} +func addEndpointPrefix_opCreateDatasetMiddleware(stack *middleware.Stack) error { + return stack.Finalize.Insert(&endpointPrefix_opCreateDatasetMiddleware{}, "ResolveEndpointV2", middleware.After) +} + +type idempotencyToken_initializeOpCreateDataset struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateDataset) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateDataset) 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.(*CreateDatasetInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateDatasetInput ") + } + + 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_opCreateDatasetMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateDataset{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opCreateDataset(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateDataset", + } +} diff --git a/service/iotsitewise/api_op_CreatePortal.go b/service/iotsitewise/api_op_CreatePortal.go index eccfe9a5e04..15ea4c4eade 100644 --- a/service/iotsitewise/api_op_CreatePortal.go +++ b/service/iotsitewise/api_op_CreatePortal.go @@ -103,6 +103,16 @@ type CreatePortalInput struct { // The image is displayed on a dark background. PortalLogoImageFile *types.ImageFile + // Define the type of portal. The value for IoT SiteWise Monitor (Classic) is + // SITEWISE_PORTAL_V1 . The value for IoT SiteWise Monitor (AI-aware) is + // SITEWISE_PORTAL_V2 . + PortalType types.PortalType + + // The configuration entry associated with the specific portal type. The value for + // IoT SiteWise Monitor (Classic) is SITEWISE_PORTAL_V1 . The value for IoT + // SiteWise Monitor (AI-aware) is SITEWISE_PORTAL_V2 . + PortalTypeConfiguration map[string]types.PortalTypeEntry + // A list of key-value pairs that contain metadata for the portal. For more // information, see [Tagging your IoT SiteWise resources]in the IoT SiteWise User Guide. // diff --git a/service/iotsitewise/api_op_DeleteDataset.go b/service/iotsitewise/api_op_DeleteDataset.go new file mode 100644 index 00000000000..2baae8f18fd --- /dev/null +++ b/service/iotsitewise/api_op_DeleteDataset.go @@ -0,0 +1,232 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iotsitewise + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/iotsitewise/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes a dataset. This cannot be undone. +func (c *Client) DeleteDataset(ctx context.Context, params *DeleteDatasetInput, optFns ...func(*Options)) (*DeleteDatasetOutput, error) { + if params == nil { + params = &DeleteDatasetInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteDataset", params, optFns, c.addOperationDeleteDatasetMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteDatasetOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteDatasetInput struct { + + // The ID of the dataset. + // + // This member is required. + DatasetId *string + + // A unique case-sensitive identifier that you can provide to ensure the + // idempotency of the request. Don't reuse this client token if a new idempotent + // request is required. + ClientToken *string + + noSmithyDocumentSerde +} + +type DeleteDatasetOutput struct { + + // The status of the dataset. This contains the state and any error messages. + // State is DELETING after a successfull call to this API, and any associated + // error message. + // + // This member is required. + DatasetStatus *types.DatasetStatus + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteDatasetMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteDataset{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteDataset{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteDataset"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addEndpointPrefix_opDeleteDatasetMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opDeleteDatasetMiddleware(stack, options); err != nil { + return err + } + if err = addOpDeleteDatasetValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteDataset(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +type endpointPrefix_opDeleteDatasetMiddleware struct { +} + +func (*endpointPrefix_opDeleteDatasetMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opDeleteDatasetMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleFinalize(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.HandleFinalize(ctx, in) +} +func addEndpointPrefix_opDeleteDatasetMiddleware(stack *middleware.Stack) error { + return stack.Finalize.Insert(&endpointPrefix_opDeleteDatasetMiddleware{}, "ResolveEndpointV2", middleware.After) +} + +type idempotencyToken_initializeOpDeleteDataset struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpDeleteDataset) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpDeleteDataset) 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.(*DeleteDatasetInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *DeleteDatasetInput ") + } + + 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_opDeleteDatasetMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpDeleteDataset{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opDeleteDataset(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteDataset", + } +} diff --git a/service/iotsitewise/api_op_DescribeDataset.go b/service/iotsitewise/api_op_DescribeDataset.go new file mode 100644 index 00000000000..9e388aa90c5 --- /dev/null +++ b/service/iotsitewise/api_op_DescribeDataset.go @@ -0,0 +1,233 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iotsitewise + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/iotsitewise/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Retrieves information about a dataset. +func (c *Client) DescribeDataset(ctx context.Context, params *DescribeDatasetInput, optFns ...func(*Options)) (*DescribeDatasetOutput, error) { + if params == nil { + params = &DescribeDatasetInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeDataset", params, optFns, c.addOperationDescribeDatasetMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeDatasetOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeDatasetInput struct { + + // The ID of the dataset. + // + // This member is required. + DatasetId *string + + noSmithyDocumentSerde +} + +type DescribeDatasetOutput struct { + + // The [ARN] of the dataset. The format is + // arn:${Partition}:iotsitewise:${Region}:${Account}:dataset/${DatasetId} . + // + // [ARN]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference-arns.html + // + // This member is required. + DatasetArn *string + + // The dataset creation date, in Unix epoch time. + // + // This member is required. + DatasetCreationDate *time.Time + + // A description about the dataset, and its functionality. + // + // This member is required. + DatasetDescription *string + + // The ID of the dataset. + // + // This member is required. + DatasetId *string + + // The date the dataset was last updated, in Unix epoch time. + // + // This member is required. + DatasetLastUpdateDate *time.Time + + // The name of the dataset. + // + // This member is required. + DatasetName *string + + // The data source for the dataset. + // + // This member is required. + DatasetSource *types.DatasetSource + + // The status of the dataset. This contains the state and any error messages. + // State is CREATING after a successfull call to this API, and any associated + // error message. The state is ACTIVE when ready to use. + // + // This member is required. + DatasetStatus *types.DatasetStatus + + // The version of the dataset. + DatasetVersion *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeDatasetMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeDataset{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeDataset{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeDataset"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addEndpointPrefix_opDescribeDatasetMiddleware(stack); err != nil { + return err + } + if err = addOpDescribeDatasetValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeDataset(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +type endpointPrefix_opDescribeDatasetMiddleware struct { +} + +func (*endpointPrefix_opDescribeDatasetMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opDescribeDatasetMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleFinalize(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.HandleFinalize(ctx, in) +} +func addEndpointPrefix_opDescribeDatasetMiddleware(stack *middleware.Stack) error { + return stack.Finalize.Insert(&endpointPrefix_opDescribeDatasetMiddleware{}, "ResolveEndpointV2", middleware.After) +} + +func newServiceMetadataMiddleware_opDescribeDataset(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DescribeDataset", + } +} diff --git a/service/iotsitewise/api_op_DescribeGatewayCapabilityConfiguration.go b/service/iotsitewise/api_op_DescribeGatewayCapabilityConfiguration.go index f719f3bf69a..07e24671d5b 100644 --- a/service/iotsitewise/api_op_DescribeGatewayCapabilityConfiguration.go +++ b/service/iotsitewise/api_op_DescribeGatewayCapabilityConfiguration.go @@ -72,10 +72,17 @@ type DescribeGatewayCapabilityConfigurationOutput struct { // // - IN_SYNC – The gateway is running the capability configuration. // + // - NOT_APPLICABLE – Synchronization is not required for this capability + // configuration. This is most common when integrating partner data sources, + // because the data integration is handled externally by the partner. + // // - OUT_OF_SYNC – The gateway hasn't received the capability configuration. // // - SYNC_FAILED – The gateway rejected the capability configuration. // + // - UNKNOWN – The synchronization status is currently unknown due to an + // undetermined or temporary error. + // // This member is required. CapabilitySyncStatus types.CapabilitySyncStatus diff --git a/service/iotsitewise/api_op_DescribePortal.go b/service/iotsitewise/api_op_DescribePortal.go index 7aec36fbd73..8cb5c336c39 100644 --- a/service/iotsitewise/api_op_DescribePortal.go +++ b/service/iotsitewise/api_op_DescribePortal.go @@ -114,6 +114,16 @@ type DescribePortalOutput struct { // The portal's logo image, which is available at a URL. PortalLogoImageLocation *types.ImageLocation + // Define the type of portal. The value for IoT SiteWise Monitor (Classic) is + // SITEWISE_PORTAL_V1 . The value for IoT SiteWise Monitor (AI-aware) is + // SITEWISE_PORTAL_V2 . + PortalType types.PortalType + + // The configuration entry associated with the specific portal type. The value for + // IoT SiteWise Monitor (Classic) is SITEWISE_PORTAL_V1 . The value for IoT + // SiteWise Monitor (AI-aware) is SITEWISE_PORTAL_V2 . + PortalTypeConfiguration map[string]types.PortalTypeEntry + // The [ARN] of the service role that allows the portal's users to access your IoT // SiteWise resources on your behalf. For more information, see [Using service roles for IoT SiteWise Monitor]in the IoT // SiteWise User Guide. diff --git a/service/iotsitewise/api_op_ExecuteQuery.go b/service/iotsitewise/api_op_ExecuteQuery.go index 68fa1c40a79..89ec692b737 100644 --- a/service/iotsitewise/api_op_ExecuteQuery.go +++ b/service/iotsitewise/api_op_ExecuteQuery.go @@ -35,6 +35,11 @@ type ExecuteQueryInput struct { // This member is required. QueryStatement *string + // A unique case-sensitive identifier that you can provide to ensure the + // idempotency of the request. Don't reuse this client token if a new idempotent + // request is required. + ClientToken *string + // The maximum number of results to return at one time. The default is 25. MaxResults *int32 @@ -128,6 +133,9 @@ func (c *Client) addOperationExecuteQueryMiddlewares(stack *middleware.Stack, op if err = addEndpointPrefix_opExecuteQueryMiddleware(stack); err != nil { return err } + if err = addIdempotencyToken_opExecuteQueryMiddleware(stack, options); err != nil { + return err + } if err = addOpExecuteQueryValidationMiddleware(stack); err != nil { return err } @@ -283,6 +291,39 @@ type ExecuteQueryAPIClient interface { var _ ExecuteQueryAPIClient = (*Client)(nil) +type idempotencyToken_initializeOpExecuteQuery struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpExecuteQuery) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpExecuteQuery) 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.(*ExecuteQueryInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *ExecuteQueryInput ") + } + + 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_opExecuteQueryMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpExecuteQuery{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + func newServiceMetadataMiddleware_opExecuteQuery(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/iotsitewise/api_op_InvokeAssistant.go b/service/iotsitewise/api_op_InvokeAssistant.go new file mode 100644 index 00000000000..7b4f3bf2c5e --- /dev/null +++ b/service/iotsitewise/api_op_InvokeAssistant.go @@ -0,0 +1,306 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iotsitewise + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/iotsitewise/types" + "github.com/aws/smithy-go/middleware" + smithysync "github.com/aws/smithy-go/sync" + smithyhttp "github.com/aws/smithy-go/transport/http" + "sync" +) + +// Invokes SiteWise Assistant to start or continue a conversation. +func (c *Client) InvokeAssistant(ctx context.Context, params *InvokeAssistantInput, optFns ...func(*Options)) (*InvokeAssistantOutput, error) { + if params == nil { + params = &InvokeAssistantInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "InvokeAssistant", params, optFns, c.addOperationInvokeAssistantMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*InvokeAssistantOutput) + out.ResultMetadata = metadata + return out, nil +} + +type InvokeAssistantInput struct { + + // A text message sent to the SiteWise Assistant by the user. + // + // This member is required. + Message *string + + // The ID assigned to a conversation. IoT SiteWise automatically generates a + // unique ID for you, and this parameter is never required. However, if you prefer + // to have your own ID, you must specify it here in UUID format. If you specify + // your own ID, it must be globally unique. + ConversationId *string + + // Specifies if to turn trace on or not. It is used to track the SiteWise + // Assistant's reasoning, and data access process. + EnableTrace bool + + noSmithyDocumentSerde +} + +type InvokeAssistantOutput struct { + + // The ID of the conversation, in UUID format. This ID uniquely identifies the + // conversation within IoT SiteWise. + // + // This member is required. + ConversationId *string + + eventStream *InvokeAssistantEventStream + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +// GetStream returns the type to interact with the event stream. +func (o *InvokeAssistantOutput) GetStream() *InvokeAssistantEventStream { + return o.eventStream +} + +func (c *Client) addOperationInvokeAssistantMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpInvokeAssistant{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpInvokeAssistant{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "InvokeAssistant"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addEventStreamInvokeAssistantMiddleware(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addEndpointPrefix_opInvokeAssistantMiddleware(stack); err != nil { + return err + } + if err = addOpInvokeAssistantValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opInvokeAssistant(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +type endpointPrefix_opInvokeAssistantMiddleware struct { +} + +func (*endpointPrefix_opInvokeAssistantMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opInvokeAssistantMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleFinalize(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.HandleFinalize(ctx, in) +} +func addEndpointPrefix_opInvokeAssistantMiddleware(stack *middleware.Stack) error { + return stack.Finalize.Insert(&endpointPrefix_opInvokeAssistantMiddleware{}, "ResolveEndpointV2", middleware.After) +} + +func newServiceMetadataMiddleware_opInvokeAssistant(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "InvokeAssistant", + } +} + +// InvokeAssistantEventStream provides the event stream handling for the InvokeAssistant operation. +// +// For testing and mocking the event stream this type should be initialized via +// the NewInvokeAssistantEventStream constructor function. Using the functional options +// to pass in nested mock behavior. +type InvokeAssistantEventStream struct { + // ResponseStreamReader is the EventStream reader for the ResponseStream events. + // This value is automatically set by the SDK when the API call is made Use this + // member when unit testing your code with the SDK to mock out the EventStream + // Reader. + // + // Must not be nil. + Reader ResponseStreamReader + + done chan struct{} + closeOnce sync.Once + err *smithysync.OnceErr +} + +// NewInvokeAssistantEventStream initializes an InvokeAssistantEventStream. +// This function should only be used for testing and mocking the InvokeAssistantEventStream +// stream within your application. +// +// The Reader member must be set before reading events from the stream. +func NewInvokeAssistantEventStream(optFns ...func(*InvokeAssistantEventStream)) *InvokeAssistantEventStream { + es := &InvokeAssistantEventStream{ + done: make(chan struct{}), + err: smithysync.NewOnceErr(), + } + for _, fn := range optFns { + fn(es) + } + return es +} + +// Events returns a channel to read events from. +func (es *InvokeAssistantEventStream) Events() <-chan types.ResponseStream { + return es.Reader.Events() +} + +// Close closes the stream. This will also cause the stream to be closed. +// Close must be called when done using the stream API. Not calling Close +// may result in resource leaks. +// +// Will close the underlying EventStream writer and reader, and no more events can be +// sent or received. +func (es *InvokeAssistantEventStream) Close() error { + es.closeOnce.Do(es.safeClose) + return es.Err() +} + +func (es *InvokeAssistantEventStream) safeClose() { + close(es.done) + + es.Reader.Close() +} + +// Err returns any error that occurred while reading or writing EventStream Events +// from the service API's response. Returns nil if there were no errors. +func (es *InvokeAssistantEventStream) Err() error { + if err := es.err.Err(); err != nil { + return err + } + + if err := es.Reader.Err(); err != nil { + return err + } + + return nil +} + +func (es *InvokeAssistantEventStream) waitStreamClose() { + type errorSet interface { + ErrorSet() <-chan struct{} + } + + var outputErrCh <-chan struct{} + if v, ok := es.Reader.(errorSet); ok { + outputErrCh = v.ErrorSet() + } + var outputClosedCh <-chan struct{} + if v, ok := es.Reader.(interface{ Closed() <-chan struct{} }); ok { + outputClosedCh = v.Closed() + } + + select { + case <-es.done: + case <-outputErrCh: + es.err.SetError(es.Reader.Err()) + es.Close() + + case <-outputClosedCh: + if err := es.Reader.Err(); err != nil { + es.err.SetError(es.Reader.Err()) + } + es.Close() + + } +} diff --git a/service/iotsitewise/api_op_ListDatasets.go b/service/iotsitewise/api_op_ListDatasets.go new file mode 100644 index 00000000000..3560f04d59a --- /dev/null +++ b/service/iotsitewise/api_op_ListDatasets.go @@ -0,0 +1,292 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iotsitewise + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/iotsitewise/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieves a paginated list of datasets for a specific target resource. +func (c *Client) ListDatasets(ctx context.Context, params *ListDatasetsInput, optFns ...func(*Options)) (*ListDatasetsOutput, error) { + if params == nil { + params = &ListDatasetsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListDatasets", params, optFns, c.addOperationListDatasetsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListDatasetsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListDatasetsInput struct { + + // The type of data source for the dataset. + // + // This member is required. + SourceType types.DatasetSourceType + + // The maximum number of results to return for each paginated request. + MaxResults *int32 + + // The token for the next set of results, or null if there are no additional + // results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListDatasetsOutput struct { + + // A list that summarizes the dataset response. + // + // This member is required. + DatasetSummaries []types.DatasetSummary + + // The token for the next set of results, or null if there are no additional + // results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListDatasetsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListDatasets{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListDatasets{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListDatasets"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addEndpointPrefix_opListDatasetsMiddleware(stack); err != nil { + return err + } + if err = addOpListDatasetsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListDatasets(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +// ListDatasetsPaginatorOptions is the paginator options for ListDatasets +type ListDatasetsPaginatorOptions struct { + // The maximum number of results to return for each paginated 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 +} + +// ListDatasetsPaginator is a paginator for ListDatasets +type ListDatasetsPaginator struct { + options ListDatasetsPaginatorOptions + client ListDatasetsAPIClient + params *ListDatasetsInput + nextToken *string + firstPage bool +} + +// NewListDatasetsPaginator returns a new ListDatasetsPaginator +func NewListDatasetsPaginator(client ListDatasetsAPIClient, params *ListDatasetsInput, optFns ...func(*ListDatasetsPaginatorOptions)) *ListDatasetsPaginator { + if params == nil { + params = &ListDatasetsInput{} + } + + options := ListDatasetsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListDatasetsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListDatasetsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListDatasets page. +func (p *ListDatasetsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListDatasetsOutput, 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 + + optFns = append([]func(*Options){ + addIsPaginatorUserAgent, + }, optFns...) + result, err := p.client.ListDatasets(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 +} + +type endpointPrefix_opListDatasetsMiddleware struct { +} + +func (*endpointPrefix_opListDatasetsMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opListDatasetsMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleFinalize(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.HandleFinalize(ctx, in) +} +func addEndpointPrefix_opListDatasetsMiddleware(stack *middleware.Stack) error { + return stack.Finalize.Insert(&endpointPrefix_opListDatasetsMiddleware{}, "ResolveEndpointV2", middleware.After) +} + +// ListDatasetsAPIClient is a client that implements the ListDatasets operation. +type ListDatasetsAPIClient interface { + ListDatasets(context.Context, *ListDatasetsInput, ...func(*Options)) (*ListDatasetsOutput, error) +} + +var _ ListDatasetsAPIClient = (*Client)(nil) + +func newServiceMetadataMiddleware_opListDatasets(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListDatasets", + } +} diff --git a/service/iotsitewise/api_op_UpdateDashboard.go b/service/iotsitewise/api_op_UpdateDashboard.go index c8681bdd33a..12088b23365 100644 --- a/service/iotsitewise/api_op_UpdateDashboard.go +++ b/service/iotsitewise/api_op_UpdateDashboard.go @@ -28,10 +28,15 @@ func (c *Client) UpdateDashboard(ctx context.Context, params *UpdateDashboardInp type UpdateDashboardInput struct { - // The new dashboard definition, as specified in a JSON literal. For detailed - // information, see [Creating dashboards (CLI)]in the IoT SiteWise User Guide. + // The new dashboard definition, as specified in a JSON literal. // - // [Creating dashboards (CLI)]: https://docs.aws.amazon.com/iot-sitewise/latest/userguide/create-dashboards-using-aws-cli.html + // - IoT SiteWise Monitor (Classic) see [Create dashboards (CLI)] + // + // - IoT SiteWise Monitor (AI-aware) see [Create dashboards (CLI)] + // + // in the IoT SiteWise User Guide + // + // [Create dashboards (CLI)]: https://docs.aws.amazon.com/iot-sitewise/latest/userguide/create-dashboards-ai-dashboard-cli.html // // This member is required. DashboardDefinition *string diff --git a/service/iotsitewise/api_op_UpdateDataset.go b/service/iotsitewise/api_op_UpdateDataset.go new file mode 100644 index 00000000000..6d07a7f4b45 --- /dev/null +++ b/service/iotsitewise/api_op_UpdateDataset.go @@ -0,0 +1,252 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iotsitewise + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/iotsitewise/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates a dataset. +func (c *Client) UpdateDataset(ctx context.Context, params *UpdateDatasetInput, optFns ...func(*Options)) (*UpdateDatasetOutput, error) { + if params == nil { + params = &UpdateDatasetInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateDataset", params, optFns, c.addOperationUpdateDatasetMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateDatasetOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateDatasetInput struct { + + // The ID of the dataset. + // + // This member is required. + DatasetId *string + + // The name of the dataset. + // + // This member is required. + DatasetName *string + + // The data source for the dataset. + // + // This member is required. + DatasetSource *types.DatasetSource + + // A unique case-sensitive identifier that you can provide to ensure the + // idempotency of the request. Don't reuse this client token if a new idempotent + // request is required. + ClientToken *string + + // A description about the dataset, and its functionality. + DatasetDescription *string + + noSmithyDocumentSerde +} + +type UpdateDatasetOutput struct { + + // The [ARN] of the dataset. The format is + // arn:${Partition}:iotsitewise:${Region}:${Account}:dataset/${DatasetId} . + // + // [ARN]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference-arns.html + DatasetArn *string + + // The ID of the dataset. + DatasetId *string + + // The status of the dataset. This contains the state and any error messages. + // State is UPDATING after a successfull call to this API, and any associated + // error message. The state is ACTIVE when ready to use. + DatasetStatus *types.DatasetStatus + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateDatasetMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateDataset{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateDataset{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateDataset"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addEndpointPrefix_opUpdateDatasetMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opUpdateDatasetMiddleware(stack, options); err != nil { + return err + } + if err = addOpUpdateDatasetValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateDataset(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +type endpointPrefix_opUpdateDatasetMiddleware struct { +} + +func (*endpointPrefix_opUpdateDatasetMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opUpdateDatasetMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleFinalize(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.HandleFinalize(ctx, in) +} +func addEndpointPrefix_opUpdateDatasetMiddleware(stack *middleware.Stack) error { + return stack.Finalize.Insert(&endpointPrefix_opUpdateDatasetMiddleware{}, "ResolveEndpointV2", middleware.After) +} + +type idempotencyToken_initializeOpUpdateDataset struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpUpdateDataset) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpUpdateDataset) 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.(*UpdateDatasetInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *UpdateDatasetInput ") + } + + 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_opUpdateDatasetMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpUpdateDataset{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opUpdateDataset(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "UpdateDataset", + } +} diff --git a/service/iotsitewise/api_op_UpdateGatewayCapabilityConfiguration.go b/service/iotsitewise/api_op_UpdateGatewayCapabilityConfiguration.go index 4afe903ffb5..66a394953f8 100644 --- a/service/iotsitewise/api_op_UpdateGatewayCapabilityConfiguration.go +++ b/service/iotsitewise/api_op_UpdateGatewayCapabilityConfiguration.go @@ -72,10 +72,17 @@ type UpdateGatewayCapabilityConfigurationOutput struct { // // - IN_SYNC – The gateway is running the capability configuration. // + // - NOT_APPLICABLE – Synchronization is not required for this capability + // configuration. This is most common when integrating partner data sources, + // because the data integration is handled externally by the partner. + // // - OUT_OF_SYNC – The gateway hasn't received the capability configuration. // // - SYNC_FAILED – The gateway rejected the capability configuration. // + // - UNKNOWN – The synchronization status is currently unknown due to an + // undetermined or temporary error. + // // After you update a capability configuration, its sync status is OUT_OF_SYNC // until the gateway receives and applies or rejects the updated configuration. // diff --git a/service/iotsitewise/api_op_UpdatePortal.go b/service/iotsitewise/api_op_UpdatePortal.go index 484b388e857..a50ee65914f 100644 --- a/service/iotsitewise/api_op_UpdatePortal.go +++ b/service/iotsitewise/api_op_UpdatePortal.go @@ -80,6 +80,16 @@ type UpdatePortalInput struct { // - The ID of an existing image. Choose this option to keep an existing image. PortalLogoImage *types.Image + // Define the type of portal. The value for IoT SiteWise Monitor (Classic) is + // SITEWISE_PORTAL_V1 . The value for IoT SiteWise Monitor (AI-aware) is + // SITEWISE_PORTAL_V2 . + PortalType types.PortalType + + // The configuration entry associated with the specific portal type. The value for + // IoT SiteWise Monitor (Classic) is SITEWISE_PORTAL_V1 . The value for IoT + // SiteWise Monitor (AI-aware) is SITEWISE_PORTAL_V2 . + PortalTypeConfiguration map[string]types.PortalTypeEntry + noSmithyDocumentSerde } diff --git a/service/iotsitewise/deserializers.go b/service/iotsitewise/deserializers.go index 733c1aa7f50..c1a32c71b50 100644 --- a/service/iotsitewise/deserializers.go +++ b/service/iotsitewise/deserializers.go @@ -7,6 +7,8 @@ import ( "context" "encoding/json" "fmt" + "github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream" + "github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream/eventstreamapi" "github.com/aws/aws-sdk-go-v2/aws/protocol/restjson" "github.com/aws/aws-sdk-go-v2/service/iotsitewise/types" smithy "github.com/aws/smithy-go" @@ -2393,6 +2395,194 @@ func awsRestjson1_deserializeOpDocumentCreateDashboardOutput(v **CreateDashboard return nil } +type awsRestjson1_deserializeOpCreateDataset struct { +} + +func (*awsRestjson1_deserializeOpCreateDataset) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateDataset) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorCreateDataset(response, &metadata) + } + output := &CreateDatasetOutput{} + 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_deserializeOpDocumentCreateDatasetOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateDataset(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConflictingOperationException", errorCode): + return awsRestjson1_deserializeErrorConflictingOperationException(response, errorBody) + + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidRequestException", errorCode): + return awsRestjson1_deserializeErrorInvalidRequestException(response, errorBody) + + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + + case strings.EqualFold("ResourceAlreadyExistsException", errorCode): + return awsRestjson1_deserializeErrorResourceAlreadyExistsException(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_deserializeOpDocumentCreateDatasetOutput(v **CreateDatasetOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateDatasetOutput + if *v == nil { + sv = &CreateDatasetOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "datasetArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.DatasetArn = ptr.String(jtv) + } + + case "datasetId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ID to be of type string, got %T instead", value) + } + sv.DatasetId = ptr.String(jtv) + } + + case "datasetStatus": + if err := awsRestjson1_deserializeDocumentDatasetStatus(&sv.DatasetStatus, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + type awsRestjson1_deserializeOpCreateGateway struct { } @@ -3639,14 +3829,14 @@ func awsRestjson1_deserializeOpErrorDeleteDashboard(response *smithyhttp.Respons } } -type awsRestjson1_deserializeOpDeleteGateway struct { +type awsRestjson1_deserializeOpDeleteDataset struct { } -func (*awsRestjson1_deserializeOpDeleteGateway) ID() string { +func (*awsRestjson1_deserializeOpDeleteDataset) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteGateway) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteDataset) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3664,14 +3854,36 @@ func (m *awsRestjson1_deserializeOpDeleteGateway) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteGateway(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteDataset(response, &metadata) } - output := &DeleteGatewayOutput{} + output := &DeleteDatasetOutput{} 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) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + 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_deserializeOpDocumentDeleteDatasetOutput(&output, shape) + 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 with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), } } @@ -3679,7 +3891,7 @@ func (m *awsRestjson1_deserializeOpDeleteGateway) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteDataset(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3745,14 +3957,50 @@ func awsRestjson1_deserializeOpErrorDeleteGateway(response *smithyhttp.Response, } } -type awsRestjson1_deserializeOpDeletePortal struct { +func awsRestjson1_deserializeOpDocumentDeleteDatasetOutput(v **DeleteDatasetOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DeleteDatasetOutput + if *v == nil { + sv = &DeleteDatasetOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "datasetStatus": + if err := awsRestjson1_deserializeDocumentDatasetStatus(&sv.DatasetStatus, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil } -func (*awsRestjson1_deserializeOpDeletePortal) ID() string { +type awsRestjson1_deserializeOpDeleteGateway struct { +} + +func (*awsRestjson1_deserializeOpDeleteGateway) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeletePortal) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_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) @@ -3770,17 +4018,123 @@ func (m *awsRestjson1_deserializeOpDeletePortal) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeletePortal(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteGateway(response, &metadata) } - output := &DeletePortalOutput{} + output := &DeleteGatewayOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + 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), + } + } - body := io.TeeReader(response.Body, ringBuffer) + span.End() + return out, metadata, err +} - decoder := json.NewDecoder(body) +func awsRestjson1_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 + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConflictingOperationException", errorCode): + return awsRestjson1_deserializeErrorConflictingOperationException(response, errorBody) + + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidRequestException", errorCode): + return awsRestjson1_deserializeErrorInvalidRequestException(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 + + } +} + +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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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 + + 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 { @@ -6263,14 +6617,14 @@ func awsRestjson1_deserializeOpDocumentDescribeDashboardOutput(v **DescribeDashb return nil } -type awsRestjson1_deserializeOpDescribeDefaultEncryptionConfiguration struct { +type awsRestjson1_deserializeOpDescribeDataset struct { } -func (*awsRestjson1_deserializeOpDescribeDefaultEncryptionConfiguration) ID() string { +func (*awsRestjson1_deserializeOpDescribeDataset) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeDefaultEncryptionConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeDataset) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6288,9 +6642,9 @@ func (m *awsRestjson1_deserializeOpDescribeDefaultEncryptionConfiguration) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeDefaultEncryptionConfiguration(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeDataset(response, &metadata) } - output := &DescribeDefaultEncryptionConfigurationOutput{} + output := &DescribeDatasetOutput{} out.Result = output var buff [1024]byte @@ -6311,7 +6665,7 @@ func (m *awsRestjson1_deserializeOpDescribeDefaultEncryptionConfiguration) Handl return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeDefaultEncryptionConfigurationOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeDatasetOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6325,7 +6679,7 @@ func (m *awsRestjson1_deserializeOpDescribeDefaultEncryptionConfiguration) Handl return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeDefaultEncryptionConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeDataset(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6372,6 +6726,9 @@ func awsRestjson1_deserializeOpErrorDescribeDefaultEncryptionConfiguration(respo case strings.EqualFold("InvalidRequestException", errorCode): return awsRestjson1_deserializeErrorInvalidRequestException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -6385,7 +6742,7 @@ func awsRestjson1_deserializeOpErrorDescribeDefaultEncryptionConfiguration(respo } } -func awsRestjson1_deserializeOpDocumentDescribeDefaultEncryptionConfigurationOutput(v **DescribeDefaultEncryptionConfigurationOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeDatasetOutput(v **DescribeDatasetOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6398,36 +6755,100 @@ func awsRestjson1_deserializeOpDocumentDescribeDefaultEncryptionConfigurationOut return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeDefaultEncryptionConfigurationOutput + var sv *DescribeDatasetOutput if *v == nil { - sv = &DescribeDefaultEncryptionConfigurationOutput{} + sv = &DescribeDatasetOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "configurationStatus": - if err := awsRestjson1_deserializeDocumentConfigurationStatus(&sv.ConfigurationStatus, value); err != nil { - return err + case "datasetArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.DatasetArn = ptr.String(jtv) } - case "encryptionType": + case "datasetCreationDate": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.DatasetCreationDate = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "datasetDescription": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected EncryptionType to be of type string, got %T instead", value) + return fmt.Errorf("expected RestrictedDescription to be of type string, got %T instead", value) } - sv.EncryptionType = types.EncryptionType(jtv) + sv.DatasetDescription = ptr.String(jtv) } - case "kmsKeyArn": + case "datasetId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + return fmt.Errorf("expected ID to be of type string, got %T instead", value) } - sv.KmsKeyArn = ptr.String(jtv) + sv.DatasetId = ptr.String(jtv) + } + + case "datasetLastUpdateDate": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.DatasetLastUpdateDate = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "datasetName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RestrictedName to be of type string, got %T instead", value) + } + sv.DatasetName = ptr.String(jtv) + } + + case "datasetSource": + if err := awsRestjson1_deserializeDocumentDatasetSource(&sv.DatasetSource, value); err != nil { + return err + } + + case "datasetStatus": + if err := awsRestjson1_deserializeDocumentDatasetStatus(&sv.DatasetStatus, value); err != nil { + return err + } + + case "datasetVersion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Version to be of type string, got %T instead", value) + } + sv.DatasetVersion = ptr.String(jtv) } default: @@ -6439,14 +6860,14 @@ func awsRestjson1_deserializeOpDocumentDescribeDefaultEncryptionConfigurationOut return nil } -type awsRestjson1_deserializeOpDescribeGateway struct { +type awsRestjson1_deserializeOpDescribeDefaultEncryptionConfiguration struct { } -func (*awsRestjson1_deserializeOpDescribeGateway) ID() string { +func (*awsRestjson1_deserializeOpDescribeDefaultEncryptionConfiguration) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeGateway) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeDefaultEncryptionConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6464,9 +6885,9 @@ func (m *awsRestjson1_deserializeOpDescribeGateway) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeGateway(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeDefaultEncryptionConfiguration(response, &metadata) } - output := &DescribeGatewayOutput{} + output := &DescribeDefaultEncryptionConfigurationOutput{} out.Result = output var buff [1024]byte @@ -6487,7 +6908,7 @@ func (m *awsRestjson1_deserializeOpDescribeGateway) HandleDeserialize(ctx contex return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeGatewayOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeDefaultEncryptionConfigurationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6501,7 +6922,7 @@ func (m *awsRestjson1_deserializeOpDescribeGateway) HandleDeserialize(ctx contex return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeDefaultEncryptionConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6548,9 +6969,6 @@ func awsRestjson1_deserializeOpErrorDescribeGateway(response *smithyhttp.Respons case strings.EqualFold("InvalidRequestException", errorCode): return awsRestjson1_deserializeErrorInvalidRequestException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -6564,7 +6982,7 @@ func awsRestjson1_deserializeOpErrorDescribeGateway(response *smithyhttp.Respons } } -func awsRestjson1_deserializeOpDocumentDescribeGatewayOutput(v **DescribeGatewayOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeDefaultEncryptionConfigurationOutput(v **DescribeDefaultEncryptionConfigurationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6577,77 +6995,256 @@ func awsRestjson1_deserializeOpDocumentDescribeGatewayOutput(v **DescribeGateway return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeGatewayOutput + var sv *DescribeDefaultEncryptionConfigurationOutput if *v == nil { - sv = &DescribeGatewayOutput{} + sv = &DescribeDefaultEncryptionConfigurationOutput{} } else { sv = *v } for key, value := range shape { switch key { - 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 "gatewayArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ARN to be of type string, got %T instead", value) - } - sv.GatewayArn = ptr.String(jtv) - } - - case "gatewayCapabilitySummaries": - if err := awsRestjson1_deserializeDocumentGatewayCapabilitySummaries(&sv.GatewayCapabilitySummaries, value); err != nil { + case "configurationStatus": + if err := awsRestjson1_deserializeDocumentConfigurationStatus(&sv.ConfigurationStatus, value); err != nil { return err } - case "gatewayId": + case "encryptionType": 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 EncryptionType to be of type string, got %T instead", value) } - sv.GatewayId = ptr.String(jtv) + sv.EncryptionType = types.EncryptionType(jtv) } - case "gatewayName": + case "kmsKeyArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected GatewayName to be of type string, got %T instead", value) + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.GatewayName = ptr.String(jtv) + sv.KmsKeyArn = ptr.String(jtv) } - case "gatewayPlatform": - if err := awsRestjson1_deserializeDocumentGatewayPlatform(&sv.GatewayPlatform, value); err != nil { - return err - } + default: + _, _ = key, value - case "lastUpdateDate": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdateDate = ptr.Time(smithytime.ParseEpochSeconds(f64)) + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpDescribeGateway struct { +} + +func (*awsRestjson1_deserializeOpDescribeGateway) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDescribeGateway) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorDescribeGateway(response, &metadata) + } + output := &DescribeGatewayOutput{} + 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_deserializeOpDocumentDescribeGatewayOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDescribeGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidRequestException", errorCode): + return awsRestjson1_deserializeErrorInvalidRequestException(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_deserializeOpDocumentDescribeGatewayOutput(v **DescribeGatewayOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DescribeGatewayOutput + if *v == nil { + sv = &DescribeGatewayOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + 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 "gatewayArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.GatewayArn = ptr.String(jtv) + } + + case "gatewayCapabilitySummaries": + if err := awsRestjson1_deserializeDocumentGatewayCapabilitySummaries(&sv.GatewayCapabilitySummaries, value); err != nil { + return err + } + + case "gatewayId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ID to be of type string, got %T instead", value) + } + sv.GatewayId = ptr.String(jtv) + } + + case "gatewayName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GatewayName to be of type string, got %T instead", value) + } + sv.GatewayName = ptr.String(jtv) + } + + case "gatewayPlatform": + if err := awsRestjson1_deserializeDocumentGatewayPlatform(&sv.GatewayPlatform, value); err != nil { + return err + } + + case "lastUpdateDate": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdateDate = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) @@ -7292,11 +7889,25 @@ func awsRestjson1_deserializeOpDocumentDescribePortalOutput(v **DescribePortalOu return err } + case "portalType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PortalType to be of type string, got %T instead", value) + } + sv.PortalType = types.PortalType(jtv) + } + + case "portalTypeConfiguration": + if err := awsRestjson1_deserializeDocumentPortalTypeConfiguration(&sv.PortalTypeConfiguration, value); err != nil { + return err + } + case "roleArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + return fmt.Errorf("expected IamArn to be of type string, got %T instead", value) } sv.RoleArn = ptr.String(jtv) } @@ -9269,14 +9880,14 @@ func awsRestjson1_deserializeOpDocumentGetInterpolatedAssetPropertyValuesOutput( return nil } -type awsRestjson1_deserializeOpListAccessPolicies struct { +type awsRestjson1_deserializeOpInvokeAssistant struct { } -func (*awsRestjson1_deserializeOpListAccessPolicies) ID() string { +func (*awsRestjson1_deserializeOpInvokeAssistant) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListAccessPolicies) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpInvokeAssistant) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -9294,37 +9905,161 @@ func (m *awsRestjson1_deserializeOpListAccessPolicies) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListAccessPolicies(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorInvokeAssistant(response, &metadata) } - output := &ListAccessPoliciesOutput{} + output := &InvokeAssistantOutput{} 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_deserializeOpDocumentListAccessPoliciesOutput(&output, shape) + err = awsRestjson1_deserializeOpHttpBindingsInvokeAssistantOutput(output, response) 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, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorInvokeAssistant(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictingOperationException", errorCode): + return awsRestjson1_deserializeErrorConflictingOperationException(response, errorBody) + + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidRequestException", errorCode): + return awsRestjson1_deserializeErrorInvalidRequestException(response, errorBody) + + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(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_deserializeOpHttpBindingsInvokeAssistantOutput(v *InvokeAssistantOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + if headerValues := response.Header.Values("x-amz-iotsitewise-assistant-conversation-id"); len(headerValues) != 0 { + headerValues[0] = strings.TrimSpace(headerValues[0]) + v.ConversationId = ptr.String(headerValues[0]) + } + + return nil +} + +type awsRestjson1_deserializeOpListAccessPolicies struct { +} + +func (*awsRestjson1_deserializeOpListAccessPolicies) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListAccessPolicies) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorListAccessPolicies(response, &metadata) + } + output := &ListAccessPoliciesOutput{} + 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_deserializeOpDocumentListAccessPoliciesOutput(&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(), + } } span.End() @@ -11300,14 +12035,14 @@ func awsRestjson1_deserializeOpDocumentListDashboardsOutput(v **ListDashboardsOu return nil } -type awsRestjson1_deserializeOpListGateways struct { +type awsRestjson1_deserializeOpListDatasets struct { } -func (*awsRestjson1_deserializeOpListGateways) ID() string { +func (*awsRestjson1_deserializeOpListDatasets) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListGateways) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListDatasets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -11325,9 +12060,9 @@ func (m *awsRestjson1_deserializeOpListGateways) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListGateways(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListDatasets(response, &metadata) } - output := &ListGatewaysOutput{} + output := &ListDatasetsOutput{} out.Result = output var buff [1024]byte @@ -11348,7 +12083,7 @@ func (m *awsRestjson1_deserializeOpListGateways) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListGatewaysOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListDatasetsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11362,7 +12097,7 @@ func (m *awsRestjson1_deserializeOpListGateways) HandleDeserialize(ctx context.C return out, metadata, err } -func awsRestjson1_deserializeOpErrorListGateways(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListDatasets(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -11422,7 +12157,7 @@ func awsRestjson1_deserializeOpErrorListGateways(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentListGatewaysOutput(v **ListGatewaysOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListDatasetsOutput(v **ListDatasetsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11435,17 +12170,17 @@ func awsRestjson1_deserializeOpDocumentListGatewaysOutput(v **ListGatewaysOutput return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListGatewaysOutput + var sv *ListDatasetsOutput if *v == nil { - sv = &ListGatewaysOutput{} + sv = &ListDatasetsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "gatewaySummaries": - if err := awsRestjson1_deserializeDocumentGatewaySummaries(&sv.GatewaySummaries, value); err != nil { + case "datasetSummaries": + if err := awsRestjson1_deserializeDocumentDatasetSummaries(&sv.DatasetSummaries, value); err != nil { return err } @@ -11467,14 +12202,14 @@ func awsRestjson1_deserializeOpDocumentListGatewaysOutput(v **ListGatewaysOutput return nil } -type awsRestjson1_deserializeOpListPortals struct { +type awsRestjson1_deserializeOpListGateways struct { } -func (*awsRestjson1_deserializeOpListPortals) ID() string { +func (*awsRestjson1_deserializeOpListGateways) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListPortals) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_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) @@ -11492,9 +12227,9 @@ func (m *awsRestjson1_deserializeOpListPortals) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListPortals(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListGateways(response, &metadata) } - output := &ListPortalsOutput{} + output := &ListGatewaysOutput{} out.Result = output var buff [1024]byte @@ -11515,7 +12250,7 @@ func (m *awsRestjson1_deserializeOpListPortals) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListPortalsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListGatewaysOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11529,7 +12264,7 @@ func (m *awsRestjson1_deserializeOpListPortals) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsRestjson1_deserializeOpErrorListPortals(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_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)} @@ -11589,7 +12324,7 @@ func awsRestjson1_deserializeOpErrorListPortals(response *smithyhttp.Response, m } } -func awsRestjson1_deserializeOpDocumentListPortalsOutput(v **ListPortalsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListGatewaysOutput(v **ListGatewaysOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11602,15 +12337,20 @@ func awsRestjson1_deserializeOpDocumentListPortalsOutput(v **ListPortalsOutput, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListPortalsOutput + var sv *ListGatewaysOutput if *v == nil { - sv = &ListPortalsOutput{} + sv = &ListGatewaysOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "gatewaySummaries": + if err := awsRestjson1_deserializeDocumentGatewaySummaries(&sv.GatewaySummaries, value); err != nil { + return err + } + case "nextToken": if value != nil { jtv, ok := value.(string) @@ -11620,11 +12360,6 @@ func awsRestjson1_deserializeOpDocumentListPortalsOutput(v **ListPortalsOutput, sv.NextToken = ptr.String(jtv) } - case "portalSummaries": - if err := awsRestjson1_deserializeDocumentPortalSummaries(&sv.PortalSummaries, value); err != nil { - return err - } - default: _, _ = key, value @@ -11634,14 +12369,14 @@ func awsRestjson1_deserializeOpDocumentListPortalsOutput(v **ListPortalsOutput, return nil } -type awsRestjson1_deserializeOpListProjectAssets struct { +type awsRestjson1_deserializeOpListPortals struct { } -func (*awsRestjson1_deserializeOpListProjectAssets) ID() string { +func (*awsRestjson1_deserializeOpListPortals) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListProjectAssets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -11659,9 +12394,9 @@ func (m *awsRestjson1_deserializeOpListProjectAssets) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListProjectAssets(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListPortals(response, &metadata) } - output := &ListProjectAssetsOutput{} + output := &ListPortalsOutput{} out.Result = output var buff [1024]byte @@ -11682,7 +12417,7 @@ func (m *awsRestjson1_deserializeOpListProjectAssets) HandleDeserialize(ctx cont return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListProjectAssetsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListPortalsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11696,7 +12431,7 @@ func (m *awsRestjson1_deserializeOpListProjectAssets) HandleDeserialize(ctx cont return out, metadata, err } -func awsRestjson1_deserializeOpErrorListProjectAssets(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -11756,7 +12491,7 @@ func awsRestjson1_deserializeOpErrorListProjectAssets(response *smithyhttp.Respo } } -func awsRestjson1_deserializeOpDocumentListProjectAssetsOutput(v **ListProjectAssetsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListPortalsOutput(v **ListPortalsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11769,20 +12504,15 @@ func awsRestjson1_deserializeOpDocumentListProjectAssetsOutput(v **ListProjectAs return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListProjectAssetsOutput + var sv *ListPortalsOutput if *v == nil { - sv = &ListProjectAssetsOutput{} + sv = &ListPortalsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "assetIds": - if err := awsRestjson1_deserializeDocumentAssetIDs(&sv.AssetIds, value); err != nil { - return err - } - case "nextToken": if value != nil { jtv, ok := value.(string) @@ -11792,6 +12522,11 @@ func awsRestjson1_deserializeOpDocumentListProjectAssetsOutput(v **ListProjectAs sv.NextToken = ptr.String(jtv) } + case "portalSummaries": + if err := awsRestjson1_deserializeDocumentPortalSummaries(&sv.PortalSummaries, value); err != nil { + return err + } + default: _, _ = key, value @@ -11801,14 +12536,14 @@ func awsRestjson1_deserializeOpDocumentListProjectAssetsOutput(v **ListProjectAs return nil } -type awsRestjson1_deserializeOpListProjects struct { +type awsRestjson1_deserializeOpListProjectAssets struct { } -func (*awsRestjson1_deserializeOpListProjects) ID() string { +func (*awsRestjson1_deserializeOpListProjectAssets) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListProjects) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListProjectAssets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -11826,9 +12561,9 @@ func (m *awsRestjson1_deserializeOpListProjects) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListProjects(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListProjectAssets(response, &metadata) } - output := &ListProjectsOutput{} + output := &ListProjectAssetsOutput{} out.Result = output var buff [1024]byte @@ -11849,7 +12584,7 @@ func (m *awsRestjson1_deserializeOpListProjects) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListProjectsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListProjectAssetsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11863,7 +12598,7 @@ func (m *awsRestjson1_deserializeOpListProjects) HandleDeserialize(ctx context.C return out, metadata, err } -func awsRestjson1_deserializeOpErrorListProjects(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListProjectAssets(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -11923,7 +12658,7 @@ func awsRestjson1_deserializeOpErrorListProjects(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentListProjectsOutput(v **ListProjectsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListProjectAssetsOutput(v **ListProjectAssetsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11936,15 +12671,20 @@ func awsRestjson1_deserializeOpDocumentListProjectsOutput(v **ListProjectsOutput return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListProjectsOutput + var sv *ListProjectAssetsOutput if *v == nil { - sv = &ListProjectsOutput{} + sv = &ListProjectAssetsOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "assetIds": + if err := awsRestjson1_deserializeDocumentAssetIDs(&sv.AssetIds, value); err != nil { + return err + } + case "nextToken": if value != nil { jtv, ok := value.(string) @@ -11954,11 +12694,6 @@ func awsRestjson1_deserializeOpDocumentListProjectsOutput(v **ListProjectsOutput sv.NextToken = ptr.String(jtv) } - case "projectSummaries": - if err := awsRestjson1_deserializeDocumentProjectSummaries(&sv.ProjectSummaries, value); err != nil { - return err - } - default: _, _ = key, value @@ -11968,14 +12703,14 @@ func awsRestjson1_deserializeOpDocumentListProjectsOutput(v **ListProjectsOutput return nil } -type awsRestjson1_deserializeOpListTagsForResource struct { +type awsRestjson1_deserializeOpListProjects struct { } -func (*awsRestjson1_deserializeOpListTagsForResource) ID() string { +func (*awsRestjson1_deserializeOpListProjects) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_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) @@ -11993,9 +12728,9 @@ func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListTagsForResource(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListProjects(response, &metadata) } - output := &ListTagsForResourceOutput{} + output := &ListProjectsOutput{} out.Result = output var buff [1024]byte @@ -12016,7 +12751,174 @@ func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListProjectsOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_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)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidRequestException", errorCode): + return awsRestjson1_deserializeErrorInvalidRequestException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListProjectsOutput(v **ListProjectsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListProjectsOutput + if *v == nil { + sv = &ListProjectsOutput{} + } 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 "projectSummaries": + if err := awsRestjson1_deserializeDocumentProjectSummaries(&sv.ProjectSummaries, 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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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) @@ -13835,14 +14737,14 @@ func awsRestjson1_deserializeOpErrorUpdateDashboard(response *smithyhttp.Respons } } -type awsRestjson1_deserializeOpUpdateGateway struct { +type awsRestjson1_deserializeOpUpdateDataset struct { } -func (*awsRestjson1_deserializeOpUpdateGateway) ID() string { +func (*awsRestjson1_deserializeOpUpdateDataset) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateGateway) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpUpdateDataset) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -13860,14 +14762,36 @@ func (m *awsRestjson1_deserializeOpUpdateGateway) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateGateway(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorUpdateDataset(response, &metadata) } - output := &UpdateGatewayOutput{} + output := &UpdateDatasetOutput{} 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) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + 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_deserializeOpDocumentUpdateDatasetOutput(&output, shape) + 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 with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), } } @@ -13875,7 +14799,7 @@ func (m *awsRestjson1_deserializeOpUpdateGateway) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorUpdateDataset(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -13925,6 +14849,9 @@ func awsRestjson1_deserializeOpErrorUpdateGateway(response *smithyhttp.Response, case strings.EqualFold("InvalidRequestException", errorCode): return awsRestjson1_deserializeErrorInvalidRequestException(response, errorBody) + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -13941,14 +14868,68 @@ func awsRestjson1_deserializeOpErrorUpdateGateway(response *smithyhttp.Response, } } -type awsRestjson1_deserializeOpUpdateGatewayCapabilityConfiguration struct { +func awsRestjson1_deserializeOpDocumentUpdateDatasetOutput(v **UpdateDatasetOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateDatasetOutput + if *v == nil { + sv = &UpdateDatasetOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "datasetArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.DatasetArn = ptr.String(jtv) + } + + case "datasetId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CustomID to be of type string, got %T instead", value) + } + sv.DatasetId = ptr.String(jtv) + } + + case "datasetStatus": + if err := awsRestjson1_deserializeDocumentDatasetStatus(&sv.DatasetStatus, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil } -func (*awsRestjson1_deserializeOpUpdateGatewayCapabilityConfiguration) ID() string { +type awsRestjson1_deserializeOpUpdateGateway struct { +} + +func (*awsRestjson1_deserializeOpUpdateGateway) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateGatewayCapabilityConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpUpdateGateway) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -13966,9 +14947,115 @@ func (m *awsRestjson1_deserializeOpUpdateGatewayCapabilityConfiguration) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateGatewayCapabilityConfiguration(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorUpdateGateway(response, &metadata) } - output := &UpdateGatewayCapabilityConfigurationOutput{} + output := &UpdateGatewayOutput{} + 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), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConflictingOperationException", errorCode): + return awsRestjson1_deserializeErrorConflictingOperationException(response, errorBody) + + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidRequestException", errorCode): + return awsRestjson1_deserializeErrorInvalidRequestException(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 + + } +} + +type awsRestjson1_deserializeOpUpdateGatewayCapabilityConfiguration struct { +} + +func (*awsRestjson1_deserializeOpUpdateGatewayCapabilityConfiguration) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateGatewayCapabilityConfiguration) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorUpdateGatewayCapabilityConfiguration(response, &metadata) + } + output := &UpdateGatewayCapabilityConfigurationOutput{} out.Result = output var buff [1024]byte @@ -14324,62 +15411,1144 @@ func awsRestjson1_deserializeOpErrorUpdateProject(response *smithyhttp.Response, 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()) + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidRequestException", errorCode): + return awsRestjson1_deserializeErrorInvalidRequestException(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_deserializeEventStreamResponseStream(v *types.ResponseStream, msg *eventstream.Message) error { + if v == nil { + return fmt.Errorf("unexpected serialization of nil %T", v) + } + + eventType := msg.Headers.Get(eventstreamapi.EventTypeHeader) + if eventType == nil { + return fmt.Errorf("%s event header not present", eventstreamapi.EventTypeHeader) + } + + switch { + case strings.EqualFold("output", eventType.String()): + vv := &types.ResponseStreamMemberOutput{} + if err := awsRestjson1_deserializeEventMessageInvocationOutput(&vv.Value, msg); err != nil { + return err + } + *v = vv + return nil + + case strings.EqualFold("trace", eventType.String()): + vv := &types.ResponseStreamMemberTrace{} + if err := awsRestjson1_deserializeEventMessageTrace(&vv.Value, msg); err != nil { + return err + } + *v = vv + return nil + + default: + buffer := bytes.NewBuffer(nil) + eventstream.NewEncoder().Encode(buffer, *msg) + *v = &types.UnknownUnionMember{ + Tag: eventType.String(), + Value: buffer.Bytes(), + } + return nil + + } +} + +func awsRestjson1_deserializeEventStreamExceptionResponseStream(msg *eventstream.Message) error { + exceptionType := msg.Headers.Get(eventstreamapi.ExceptionTypeHeader) + if exceptionType == nil { + return fmt.Errorf("%s event header not present", eventstreamapi.ExceptionTypeHeader) + } + + switch { + case strings.EqualFold("accessDeniedException", exceptionType.String()): + return awsRestjson1_deserializeEventMessageExceptionAccessDeniedException(msg) + + case strings.EqualFold("conflictingOperationException", exceptionType.String()): + return awsRestjson1_deserializeEventMessageExceptionConflictingOperationException(msg) + + case strings.EqualFold("internalFailureException", exceptionType.String()): + return awsRestjson1_deserializeEventMessageExceptionInternalFailureException(msg) + + case strings.EqualFold("invalidRequestException", exceptionType.String()): + return awsRestjson1_deserializeEventMessageExceptionInvalidRequestException(msg) + + case strings.EqualFold("limitExceededException", exceptionType.String()): + return awsRestjson1_deserializeEventMessageExceptionLimitExceededException(msg) + + case strings.EqualFold("resourceNotFoundException", exceptionType.String()): + return awsRestjson1_deserializeEventMessageExceptionResourceNotFoundException(msg) + + case strings.EqualFold("throttlingException", exceptionType.String()): + return awsRestjson1_deserializeEventMessageExceptionThrottlingException(msg) + + default: + br := bytes.NewReader(msg.Payload) + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(br, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + return err + } + errorCode := "UnknownError" + errorMessage := errorCode + if ev := exceptionType.String(); len(ev) > 0 { + errorCode = ev + } else if ev := code; len(ev) > 0 { + errorCode = ev + } + if ev := message; len(ev) > 0 { + errorMessage = ev + } + return &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + + } +} + +func awsRestjson1_deserializeEventMessageTrace(v *types.Trace, msg *eventstream.Message) error { + if v == nil { + return fmt.Errorf("unexpected serialization of nil %T", v) + } + + br := bytes.NewReader(msg.Payload) + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(br, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + if err := awsRestjson1_deserializeDocumentTrace(&v, shape); err != nil { + if err != nil { + var snapshot 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 nil +} + +func awsRestjson1_deserializeEventMessageInvocationOutput(v *types.InvocationOutput, msg *eventstream.Message) error { + if v == nil { + return fmt.Errorf("unexpected serialization of nil %T", v) + } + + br := bytes.NewReader(msg.Payload) + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(br, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + if err := awsRestjson1_deserializeDocumentInvocationOutput(&v, shape); err != nil { + if err != nil { + var snapshot 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 nil +} + +func awsRestjson1_deserializeEventMessageExceptionAccessDeniedException(msg *eventstream.Message) error { + br := bytes.NewReader(msg.Payload) + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(br, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot 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 := &types.AccessDeniedException{} + if err := awsRestjson1_deserializeDocumentAccessDeniedException(&v, shape); err != nil { + if err != nil { + var snapshot 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 v +} + +func awsRestjson1_deserializeEventMessageExceptionConflictingOperationException(msg *eventstream.Message) error { + br := bytes.NewReader(msg.Payload) + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(br, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot 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 := &types.ConflictingOperationException{} + if err := awsRestjson1_deserializeDocumentConflictingOperationException(&v, shape); err != nil { + if err != nil { + var snapshot 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 v +} + +func awsRestjson1_deserializeEventMessageExceptionInternalFailureException(msg *eventstream.Message) error { + br := bytes.NewReader(msg.Payload) + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(br, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot 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 := &types.InternalFailureException{} + if err := awsRestjson1_deserializeDocumentInternalFailureException(&v, shape); err != nil { + if err != nil { + var snapshot 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 v +} + +func awsRestjson1_deserializeEventMessageExceptionInvalidRequestException(msg *eventstream.Message) error { + br := bytes.NewReader(msg.Payload) + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(br, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot 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 := &types.InvalidRequestException{} + if err := awsRestjson1_deserializeDocumentInvalidRequestException(&v, shape); err != nil { + if err != nil { + var snapshot 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 v +} + +func awsRestjson1_deserializeEventMessageExceptionLimitExceededException(msg *eventstream.Message) error { + br := bytes.NewReader(msg.Payload) + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(br, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot 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 := &types.LimitExceededException{} + if err := awsRestjson1_deserializeDocumentLimitExceededException(&v, shape); err != nil { + if err != nil { + var snapshot 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 v +} + +func awsRestjson1_deserializeEventMessageExceptionResourceNotFoundException(msg *eventstream.Message) error { + br := bytes.NewReader(msg.Payload) + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(br, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot 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 := &types.ResourceNotFoundException{} + if err := awsRestjson1_deserializeDocumentResourceNotFoundException(&v, shape); err != nil { + if err != nil { + var snapshot 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 v +} + +func awsRestjson1_deserializeEventMessageExceptionThrottlingException(msg *eventstream.Message) error { + br := bytes.NewReader(msg.Payload) + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(br, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot 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 := &types.ThrottlingException{} + if err := awsRestjson1_deserializeDocumentThrottlingException(&v, shape); err != nil { + if err != nil { + var snapshot 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 v +} + +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", "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_deserializeDocumentCitation(v **types.Citation, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.Citation + if *v == nil { + sv = &types.Citation{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "content": + if err := awsRestjson1_deserializeDocumentContent(&sv.Content, value); err != nil { + return err + } + + case "reference": + if err := awsRestjson1_deserializeDocumentReference(&sv.Reference, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentCitations(v *[]types.Citation, 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.Citation + if *v == nil { + cv = []types.Citation{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Citation + destAddr := &col + if err := awsRestjson1_deserializeDocumentCitation(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentConflictingOperationException(v **types.ConflictingOperationException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.ConflictingOperationException + if *v == nil { + sv = &types.ConflictingOperationException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message", "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 "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 "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) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentContent(v **types.Content, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.Content + if *v == nil { + sv = &types.Content{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "text": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Text = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDataSetReference(v **types.DataSetReference, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.DataSetReference + if *v == nil { + sv = &types.DataSetReference{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "datasetArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.DatasetArn = ptr.String(jtv) + } + + case "source": + if err := awsRestjson1_deserializeDocumentSource(&sv.Source, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentInternalFailureException(v **types.InternalFailureException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.InternalFailureException + if *v == nil { + sv = &types.InternalFailureException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message", "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_deserializeDocumentInvalidRequestException(v **types.InvalidRequestException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.InvalidRequestException + if *v == nil { + sv = &types.InvalidRequestException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message", "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_deserializeDocumentInvocationOutput(v **types.InvocationOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.InvocationOutput + if *v == nil { + sv = &types.InvocationOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "citations": + if err := awsRestjson1_deserializeDocumentCitations(&sv.Citations, value); err != nil { + return err + } + + 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 awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExceededException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.LimitExceededException + if *v == nil { + sv = &types.LimitExceededException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message", "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_deserializeDocumentLocation(v **types.Location, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.Location + if *v == nil { + sv = &types.Location{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "uri": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Uri = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentReference(v **types.Reference, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.Reference + if *v == nil { + sv = &types.Reference{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "dataset": + if err := awsRestjson1_deserializeDocumentDataSetReference(&sv.Dataset, 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", "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_deserializeDocumentSource(v **types.Source, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.Source + if *v == nil { + sv = &types.Source{} + } 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 "location": + if err := awsRestjson1_deserializeDocumentLocation(&sv.Location, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + 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 + } - errorCode := "UnknownError" - errorMessage := errorCode + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - headerCode := response.Header.Get("X-Amzn-ErrorType") - if len(headerCode) != 0 { - errorCode = restjson.SanitizeErrorCode(headerCode) + var sv *types.ThrottlingException + if *v == nil { + sv = &types.ThrottlingException{} + } else { + sv = *v } - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + for key, value := range shape { + switch key { + case "message", "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 - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - jsonCode, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), } - return err } + *v = sv + return nil +} - errorBody.Seek(0, io.SeekStart) - if len(headerCode) == 0 && len(jsonCode) != 0 { - errorCode = restjson.SanitizeErrorCode(jsonCode) +func awsRestjson1_deserializeDocumentTrace(v **types.Trace, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) } - if len(message) != 0 { - errorMessage = message + if value == nil { + return nil } - switch { - case strings.EqualFold("InternalFailureException", errorCode): - return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - case strings.EqualFold("InvalidRequestException", errorCode): - return awsRestjson1_deserializeErrorInvalidRequestException(response, errorBody) + var sv *types.Trace + if *v == nil { + sv = &types.Trace{} + } else { + sv = *v + } - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + for key, value := range shape { + switch key { + case "text": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Text = ptr.String(jtv) + } - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + default: + _, _ = key, value - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, } - return genericError - } + *v = sv + return nil } func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { @@ -14886,46 +17055,6 @@ func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Respo 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", "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_deserializeDocumentAccessPolicySummaries(v *[]types.AccessPolicySummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -15627,7 +17756,7 @@ func awsRestjson1_deserializeDocumentAlarms(v **types.Alarms, value interface{}) if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + return fmt.Errorf("expected IamArn to be of type string, got %T instead", value) } sv.AlarmRoleArn = ptr.String(jtv) } @@ -19692,7 +21821,137 @@ func awsRestjson1_deserializeDocumentCompositionRelationshipSummary(v **types.Co return nil } -func awsRestjson1_deserializeDocumentConfigurationErrorDetails(v **types.ConfigurationErrorDetails, value interface{}) error { +func awsRestjson1_deserializeDocumentConfigurationErrorDetails(v **types.ConfigurationErrorDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.ConfigurationErrorDetails + if *v == nil { + sv = &types.ConfigurationErrorDetails{} + } 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_deserializeDocumentConfigurationStatus(v **types.ConfigurationStatus, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.ConfigurationStatus + if *v == nil { + sv = &types.ConfigurationStatus{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "error": + if err := awsRestjson1_deserializeDocumentConfigurationErrorDetails(&sv.Error, value); err != nil { + return err + } + + 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 +} + +func awsRestjson1_deserializeDocumentCsv(v **types.Csv, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.Csv + if *v == nil { + sv = &types.Csv{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "columnNames": + if err := awsRestjson1_deserializeDocumentColumnNames(&sv.ColumnNames, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentCustomerManagedS3Storage(v **types.CustomerManagedS3Storage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19705,31 +21964,31 @@ func awsRestjson1_deserializeDocumentConfigurationErrorDetails(v **types.Configu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConfigurationErrorDetails + var sv *types.CustomerManagedS3Storage if *v == nil { - sv = &types.ConfigurationErrorDetails{} + sv = &types.CustomerManagedS3Storage{} } else { sv = *v } for key, value := range shape { switch key { - case "code": + case "roleArn": 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 ARN to be of type string, got %T instead", value) } - sv.Code = types.ErrorCode(jtv) + sv.RoleArn = ptr.String(jtv) } - case "message": + case "s3ResourceArn": 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 ARN to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.S3ResourceArn = ptr.String(jtv) } default: @@ -19741,7 +22000,7 @@ func awsRestjson1_deserializeDocumentConfigurationErrorDetails(v **types.Configu return nil } -func awsRestjson1_deserializeDocumentConfigurationStatus(v **types.ConfigurationStatus, value interface{}) error { +func awsRestjson1_deserializeDocumentDashboardSummaries(v *[]types.DashboardSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19749,44 +22008,33 @@ func awsRestjson1_deserializeDocumentConfigurationStatus(v **types.Configuration 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.ConfigurationStatus + var cv []types.DashboardSummary if *v == nil { - sv = &types.ConfigurationStatus{} + cv = []types.DashboardSummary{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "error": - if err := awsRestjson1_deserializeDocumentConfigurationErrorDetails(&sv.Error, value); err != nil { - return err - } - - 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 - + for _, value := range shape { + var col types.DashboardSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDashboardSummary(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentConflictingOperationException(v **types.ConflictingOperationException, value interface{}) error { +func awsRestjson1_deserializeDocumentDashboardSummary(v **types.DashboardSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19799,40 +22047,72 @@ func awsRestjson1_deserializeDocumentConflictingOperationException(v **types.Con return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConflictingOperationException + var sv *types.DashboardSummary if *v == nil { - sv = &types.ConflictingOperationException{} + sv = &types.DashboardSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "message", "Message": + 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 "description": 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 Description to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.Description = ptr.String(jtv) } - case "resourceArn": + case "id": 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 ID to be of type string, got %T instead", value) } - sv.ResourceArn = ptr.String(jtv) + sv.Id = ptr.String(jtv) } - case "resourceId": + case "lastUpdateDate": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdateDate = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.ResourceId = ptr.String(jtv) + sv.Name = ptr.String(jtv) } default: @@ -19844,7 +22124,7 @@ func awsRestjson1_deserializeDocumentConflictingOperationException(v **types.Con return nil } -func awsRestjson1_deserializeDocumentCsv(v **types.Csv, value interface{}) error { +func awsRestjson1_deserializeDocumentDatasetSource(v **types.DatasetSource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19857,20 +22137,38 @@ func awsRestjson1_deserializeDocumentCsv(v **types.Csv, value interface{}) error return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Csv + var sv *types.DatasetSource if *v == nil { - sv = &types.Csv{} + sv = &types.DatasetSource{} } else { sv = *v } for key, value := range shape { switch key { - case "columnNames": - if err := awsRestjson1_deserializeDocumentColumnNames(&sv.ColumnNames, value); err != nil { + case "sourceDetail": + if err := awsRestjson1_deserializeDocumentSourceDetail(&sv.SourceDetail, value); err != nil { return err } + case "sourceFormat": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DatasetSourceFormat to be of type string, got %T instead", value) + } + sv.SourceFormat = types.DatasetSourceFormat(jtv) + } + + case "sourceType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DatasetSourceType to be of type string, got %T instead", value) + } + sv.SourceType = types.DatasetSourceType(jtv) + } + default: _, _ = key, value @@ -19880,7 +22178,7 @@ func awsRestjson1_deserializeDocumentCsv(v **types.Csv, value interface{}) error return nil } -func awsRestjson1_deserializeDocumentCustomerManagedS3Storage(v **types.CustomerManagedS3Storage, value interface{}) error { +func awsRestjson1_deserializeDocumentDatasetStatus(v **types.DatasetStatus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19893,31 +22191,27 @@ func awsRestjson1_deserializeDocumentCustomerManagedS3Storage(v **types.Customer return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CustomerManagedS3Storage + var sv *types.DatasetStatus if *v == nil { - sv = &types.CustomerManagedS3Storage{} + sv = &types.DatasetStatus{} } else { sv = *v } for key, value := range shape { switch key { - case "roleArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ARN to be of type string, got %T instead", value) - } - sv.RoleArn = ptr.String(jtv) + case "error": + if err := awsRestjson1_deserializeDocumentErrorDetails(&sv.Error, value); err != nil { + return err } - case "s3ResourceArn": + case "state": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + return fmt.Errorf("expected DatasetState to be of type string, got %T instead", value) } - sv.S3ResourceArn = ptr.String(jtv) + sv.State = types.DatasetState(jtv) } default: @@ -19929,7 +22223,7 @@ func awsRestjson1_deserializeDocumentCustomerManagedS3Storage(v **types.Customer return nil } -func awsRestjson1_deserializeDocumentDashboardSummaries(v *[]types.DashboardSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDatasetSummaries(v *[]types.DatasetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19942,17 +22236,17 @@ func awsRestjson1_deserializeDocumentDashboardSummaries(v *[]types.DashboardSumm return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DashboardSummary + var cv []types.DatasetSummary if *v == nil { - cv = []types.DashboardSummary{} + cv = []types.DatasetSummary{} } else { cv = *v } for _, value := range shape { - var col types.DashboardSummary + var col types.DatasetSummary destAddr := &col - if err := awsRestjson1_deserializeDocumentDashboardSummary(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentDatasetSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -19963,7 +22257,7 @@ func awsRestjson1_deserializeDocumentDashboardSummaries(v *[]types.DashboardSumm return nil } -func awsRestjson1_deserializeDocumentDashboardSummary(v **types.DashboardSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDatasetSummary(v **types.DatasetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19976,15 +22270,24 @@ func awsRestjson1_deserializeDocumentDashboardSummary(v **types.DashboardSummary return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DashboardSummary + var sv *types.DatasetSummary if *v == nil { - sv = &types.DashboardSummary{} + sv = &types.DatasetSummary{} } 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 ARN to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + case "creationDate": if value != nil { switch jtv := value.(type) { @@ -20005,7 +22308,7 @@ func awsRestjson1_deserializeDocumentDashboardSummary(v **types.DashboardSummary if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Description to be of type string, got %T instead", value) + return fmt.Errorf("expected RestrictedDescription to be of type string, got %T instead", value) } sv.Description = ptr.String(jtv) } @@ -20039,11 +22342,16 @@ func awsRestjson1_deserializeDocumentDashboardSummary(v **types.DashboardSummary if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Name to be of type string, got %T instead", value) + return fmt.Errorf("expected RestrictedName to be of type string, got %T instead", value) } sv.Name = ptr.String(jtv) } + case "status": + if err := awsRestjson1_deserializeDocumentDatasetStatus(&sv.Status, value); err != nil { + return err + } + default: _, _ = key, value @@ -20984,7 +23292,7 @@ func awsRestjson1_deserializeDocumentIAMRoleIdentity(v **types.IAMRoleIdentity, if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + return fmt.Errorf("expected IamArn to be of type string, got %T instead", value) } sv.Arn = ptr.String(jtv) } @@ -21024,7 +23332,7 @@ func awsRestjson1_deserializeDocumentIAMUserIdentity(v **types.IAMUserIdentity, if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + return fmt.Errorf("expected IamArn to be of type string, got %T instead", value) } sv.Arn = ptr.String(jtv) } @@ -21138,46 +23446,6 @@ func awsRestjson1_deserializeDocumentImageLocation(v **types.ImageLocation, valu return nil } -func awsRestjson1_deserializeDocumentInternalFailureException(v **types.InternalFailureException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", 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.InternalFailureException - if *v == nil { - sv = &types.InternalFailureException{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "message", "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_deserializeDocumentInterpolatedAssetPropertyValue(v **types.InterpolatedAssetPropertyValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -21211,49 +23479,15 @@ func awsRestjson1_deserializeDocumentInterpolatedAssetPropertyValue(v **types.In } default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentInterpolatedAssetPropertyValues(v *[]types.InterpolatedAssetPropertyValue, 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.InterpolatedAssetPropertyValue - if *v == nil { - cv = []types.InterpolatedAssetPropertyValue{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.InterpolatedAssetPropertyValue - destAddr := &col - if err := awsRestjson1_deserializeDocumentInterpolatedAssetPropertyValue(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRequestException, value interface{}) error { +func awsRestjson1_deserializeDocumentInterpolatedAssetPropertyValues(v *[]types.InterpolatedAssetPropertyValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21261,35 +23495,29 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe 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.InvalidRequestException + var cv []types.InterpolatedAssetPropertyValue if *v == nil { - sv = &types.InvalidRequestException{} + cv = []types.InterpolatedAssetPropertyValue{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "message", "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.InterpolatedAssetPropertyValue + destAddr := &col + if err := awsRestjson1_deserializeDocumentInterpolatedAssetPropertyValue(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } @@ -21421,7 +23649,7 @@ func awsRestjson1_deserializeDocumentJobSummary(v **types.JobSummary, value inte return nil } -func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExceededException, value interface{}) error { +func awsRestjson1_deserializeDocumentKendraSourceDetail(v **types.KendraSourceDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21434,22 +23662,31 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LimitExceededException + var sv *types.KendraSourceDetail if *v == nil { - sv = &types.LimitExceededException{} + sv = &types.KendraSourceDetail{} } else { sv = *v } for key, value := range shape { switch key { - case "message", "Message": + case "knowledgeBaseArn": 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 ARN to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.KnowledgeBaseArn = ptr.String(jtv) + } + + case "roleArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.RoleArn = ptr.String(jtv) } default: @@ -22020,11 +24257,20 @@ func awsRestjson1_deserializeDocumentPortalSummary(v **types.PortalSummary, valu sv.Name = ptr.String(jtv) } + case "portalType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PortalType to be of type string, got %T instead", value) + } + sv.PortalType = types.PortalType(jtv) + } + case "roleArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + return fmt.Errorf("expected IamArn to be of type string, got %T instead", value) } sv.RoleArn = ptr.String(jtv) } @@ -22052,6 +24298,113 @@ func awsRestjson1_deserializeDocumentPortalSummary(v **types.PortalSummary, valu return nil } +func awsRestjson1_deserializeDocumentPortalTools(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_deserializeDocumentPortalTypeConfiguration(v *map[string]types.PortalTypeEntry, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %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.PortalTypeEntry + if *v == nil { + mv = map[string]types.PortalTypeEntry{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal types.PortalTypeEntry + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentPortalTypeEntry(&destAddr, value); err != nil { + return err + } + parsedVal = *destAddr + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentPortalTypeEntry(v **types.PortalTypeEntry, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.PortalTypeEntry + if *v == nil { + sv = &types.PortalTypeEntry{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "portalTools": + if err := awsRestjson1_deserializeDocumentPortalTools(&sv.PortalTools, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentPreconditionFailedException(v **types.PreconditionFailedException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -22613,46 +24966,6 @@ func awsRestjson1_deserializeDocumentResourceAlreadyExistsException(v **types.Re 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", "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_deserializeDocumentRetentionPeriod(v **types.RetentionPeriod, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -22856,7 +25169,7 @@ func awsRestjson1_deserializeDocumentSiemensIE(v **types.SiemensIE, value interf return nil } -func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { +func awsRestjson1_deserializeDocumentSourceDetail(v **types.SourceDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22869,30 +25182,30 @@ func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]string + var sv *types.SourceDetail if *v == nil { - mv = map[string]string{} + sv = &types.SourceDetail{} } else { - mv = *v + sv = *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) + switch key { + case "kendra": + if err := awsRestjson1_deserializeDocumentKendraSourceDetail(&sv.Kendra, value); err != nil { + return err } - parsedVal = jtv - } - mv[key] = parsedVal + default: + _, _ = key, value + + } } - *v = mv + *v = sv return nil } -func awsRestjson1_deserializeDocumentTargetResource(v **types.TargetResource, value interface{}) error { +func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22905,34 +25218,30 @@ func awsRestjson1_deserializeDocumentTargetResource(v **types.TargetResource, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TargetResource + var mv map[string]string if *v == nil { - sv = &types.TargetResource{} + mv = map[string]string{} } else { - sv = *v + mv = *v } for key, value := range shape { - switch key { - case "assetId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CustomID to be of type string, got %T instead", value) - } - sv.AssetId = ptr.String(jtv) + 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) } - - default: - _, _ = key, value - + parsedVal = jtv } + mv[key] = parsedVal + } - *v = sv + *v = mv return nil } -func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingException, value interface{}) error { +func awsRestjson1_deserializeDocumentTargetResource(v **types.TargetResource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22945,22 +25254,22 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ThrottlingException + var sv *types.TargetResource if *v == nil { - sv = &types.ThrottlingException{} + sv = &types.TargetResource{} } else { sv = *v } for key, value := range shape { switch key { - case "message", "Message": + case "assetId": 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 CustomID to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.AssetId = ptr.String(jtv) } default: diff --git a/service/iotsitewise/eventstream.go b/service/iotsitewise/eventstream.go new file mode 100644 index 00000000000..9829a9ed298 --- /dev/null +++ b/service/iotsitewise/eventstream.go @@ -0,0 +1,284 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iotsitewise + +import ( + "context" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream" + "github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream/eventstreamapi" + "github.com/aws/aws-sdk-go-v2/service/iotsitewise/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/middleware" + smithysync "github.com/aws/smithy-go/sync" + smithyhttp "github.com/aws/smithy-go/transport/http" + "io" + "io/ioutil" + "sync" +) + +// ResponseStreamReader provides the interface for reading events from a stream. +// +// The writer's Close method must allow multiple concurrent calls. +type ResponseStreamReader interface { + Events() <-chan types.ResponseStream + Close() error + Err() error +} + +type responseStreamReader struct { + stream chan types.ResponseStream + decoder *eventstream.Decoder + eventStream io.ReadCloser + err *smithysync.OnceErr + payloadBuf []byte + done chan struct{} + closeOnce sync.Once +} + +func newResponseStreamReader(readCloser io.ReadCloser, decoder *eventstream.Decoder) *responseStreamReader { + w := &responseStreamReader{ + stream: make(chan types.ResponseStream), + decoder: decoder, + eventStream: readCloser, + err: smithysync.NewOnceErr(), + done: make(chan struct{}), + payloadBuf: make([]byte, 10*1024), + } + + go w.readEventStream() + + return w +} + +func (r *responseStreamReader) Events() <-chan types.ResponseStream { + return r.stream +} + +func (r *responseStreamReader) readEventStream() { + defer r.Close() + defer close(r.stream) + + for { + r.payloadBuf = r.payloadBuf[0:0] + decodedMessage, err := r.decoder.Decode(r.eventStream, r.payloadBuf) + if err != nil { + if err == io.EOF { + return + } + select { + case <-r.done: + return + default: + r.err.SetError(err) + return + } + } + + event, err := r.deserializeEventMessage(&decodedMessage) + if err != nil { + r.err.SetError(err) + return + } + + select { + case r.stream <- event: + case <-r.done: + return + } + + } +} + +func (r *responseStreamReader) deserializeEventMessage(msg *eventstream.Message) (types.ResponseStream, error) { + messageType := msg.Headers.Get(eventstreamapi.MessageTypeHeader) + if messageType == nil { + return nil, fmt.Errorf("%s event header not present", eventstreamapi.MessageTypeHeader) + } + + switch messageType.String() { + case eventstreamapi.EventMessageType: + var v types.ResponseStream + if err := awsRestjson1_deserializeEventStreamResponseStream(&v, msg); err != nil { + return nil, err + } + return v, nil + + case eventstreamapi.ExceptionMessageType: + return nil, awsRestjson1_deserializeEventStreamExceptionResponseStream(msg) + + case eventstreamapi.ErrorMessageType: + errorCode := "UnknownError" + errorMessage := errorCode + if header := msg.Headers.Get(eventstreamapi.ErrorCodeHeader); header != nil { + errorCode = header.String() + } + if header := msg.Headers.Get(eventstreamapi.ErrorMessageHeader); header != nil { + errorMessage = header.String() + } + return nil, &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + + default: + mc := msg.Clone() + return nil, &UnknownEventMessageError{ + Type: messageType.String(), + Message: &mc, + } + + } +} + +func (r *responseStreamReader) ErrorSet() <-chan struct{} { + return r.err.ErrorSet() +} + +func (r *responseStreamReader) Close() error { + r.closeOnce.Do(r.safeClose) + return r.Err() +} + +func (r *responseStreamReader) safeClose() { + close(r.done) + r.eventStream.Close() + +} + +func (r *responseStreamReader) Err() error { + return r.err.Err() +} + +func (r *responseStreamReader) Closed() <-chan struct{} { + return r.done +} + +type awsRestjson1_deserializeOpEventStreamInvokeAssistant struct { + LogEventStreamWrites bool + LogEventStreamReads bool +} + +func (*awsRestjson1_deserializeOpEventStreamInvokeAssistant) ID() string { + return "OperationEventStreamDeserializer" +} + +func (m *awsRestjson1_deserializeOpEventStreamInvokeAssistant) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + defer func() { + if err == nil { + return + } + m.closeResponseBody(out) + }() + + logger := middleware.GetLogger(ctx) + + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type: %T", in.Request) + } + _ = request + + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + deserializeOutput, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type: %T", out.RawResponse) + } + _ = deserializeOutput + + output, ok := out.Result.(*InvokeAssistantOutput) + if out.Result != nil && !ok { + return out, metadata, fmt.Errorf("unexpected output result type: %T", out.Result) + } else if out.Result == nil { + output = &InvokeAssistantOutput{} + out.Result = output + } + + eventReader := newResponseStreamReader( + deserializeOutput.Body, + eventstream.NewDecoder(func(options *eventstream.DecoderOptions) { + options.Logger = logger + options.LogMessages = m.LogEventStreamReads + + }), + ) + defer func() { + if err == nil { + return + } + _ = eventReader.Close() + }() + + output.eventStream = NewInvokeAssistantEventStream(func(stream *InvokeAssistantEventStream) { + stream.Reader = eventReader + }) + + go output.eventStream.waitStreamClose() + + return out, metadata, nil +} + +func (*awsRestjson1_deserializeOpEventStreamInvokeAssistant) closeResponseBody(out middleware.DeserializeOutput) { + if resp, ok := out.RawResponse.(*smithyhttp.Response); ok && resp != nil && resp.Body != nil { + _, _ = io.Copy(ioutil.Discard, resp.Body) + _ = resp.Body.Close() + } +} + +func addEventStreamInvokeAssistantMiddleware(stack *middleware.Stack, options Options) error { + if err := stack.Deserialize.Insert(&awsRestjson1_deserializeOpEventStreamInvokeAssistant{ + LogEventStreamWrites: options.ClientLogMode.IsRequestEventMessage(), + LogEventStreamReads: options.ClientLogMode.IsResponseEventMessage(), + }, "OperationDeserializer", middleware.Before); err != nil { + return err + } + return nil + +} + +// UnknownEventMessageError provides an error when a message is received from the stream, +// but the reader is unable to determine what kind of message it is. +type UnknownEventMessageError struct { + Type string + Message *eventstream.Message +} + +// Error retruns the error message string. +func (e *UnknownEventMessageError) Error() string { + return "unknown event stream message type, " + e.Type +} + +func setSafeEventStreamClientLogMode(o *Options, operation string) { + switch operation { + case "InvokeAssistant": + toggleEventStreamClientLogMode(o, false, true) + return + + default: + return + + } +} +func toggleEventStreamClientLogMode(o *Options, request, response bool) { + mode := o.ClientLogMode + + if request && mode.IsRequestWithBody() { + mode.ClearRequestWithBody() + mode |= aws.LogRequest + } + + if response && mode.IsResponseWithBody() { + mode.ClearResponseWithBody() + mode |= aws.LogResponse + } + + o.ClientLogMode = mode + +} diff --git a/service/iotsitewise/generated.json b/service/iotsitewise/generated.json index 7df12afae70..b0f676a8370 100644 --- a/service/iotsitewise/generated.json +++ b/service/iotsitewise/generated.json @@ -1,6 +1,7 @@ { "dependencies": { "github.com/aws/aws-sdk-go-v2": "v1.4.0", + "github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream": "v0.0.0-00010101000000-000000000000", "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", @@ -23,6 +24,7 @@ "api_op_CreateAssetModelCompositeModel.go", "api_op_CreateBulkImportJob.go", "api_op_CreateDashboard.go", + "api_op_CreateDataset.go", "api_op_CreateGateway.go", "api_op_CreatePortal.go", "api_op_CreateProject.go", @@ -31,6 +33,7 @@ "api_op_DeleteAssetModel.go", "api_op_DeleteAssetModelCompositeModel.go", "api_op_DeleteDashboard.go", + "api_op_DeleteDataset.go", "api_op_DeleteGateway.go", "api_op_DeletePortal.go", "api_op_DeleteProject.go", @@ -44,6 +47,7 @@ "api_op_DescribeAssetProperty.go", "api_op_DescribeBulkImportJob.go", "api_op_DescribeDashboard.go", + "api_op_DescribeDataset.go", "api_op_DescribeDefaultEncryptionConfiguration.go", "api_op_DescribeGateway.go", "api_op_DescribeGatewayCapabilityConfiguration.go", @@ -60,6 +64,7 @@ "api_op_GetAssetPropertyValue.go", "api_op_GetAssetPropertyValueHistory.go", "api_op_GetInterpolatedAssetPropertyValues.go", + "api_op_InvokeAssistant.go", "api_op_ListAccessPolicies.go", "api_op_ListActions.go", "api_op_ListAssetModelCompositeModels.go", @@ -72,6 +77,7 @@ "api_op_ListBulkImportJobs.go", "api_op_ListCompositionRelationships.go", "api_op_ListDashboards.go", + "api_op_ListDatasets.go", "api_op_ListGateways.go", "api_op_ListPortals.go", "api_op_ListProjectAssets.go", @@ -89,6 +95,7 @@ "api_op_UpdateAssetModelCompositeModel.go", "api_op_UpdateAssetProperty.go", "api_op_UpdateDashboard.go", + "api_op_UpdateDataset.go", "api_op_UpdateGateway.go", "api_op_UpdateGatewayCapabilityConfiguration.go", "api_op_UpdatePortal.go", @@ -99,6 +106,7 @@ "endpoints.go", "endpoints_config_test.go", "endpoints_test.go", + "eventstream.go", "generated.json", "internal/endpoints/endpoints.go", "internal/endpoints/endpoints_test.go", @@ -109,6 +117,7 @@ "types/enums.go", "types/errors.go", "types/types.go", + "types/types_exported_test.go", "validators.go" ], "go": "1.15", diff --git a/service/iotsitewise/go.mod b/service/iotsitewise/go.mod index 6a19a0417e9..b5aaa0f0ba5 100644 --- a/service/iotsitewise/go.mod +++ b/service/iotsitewise/go.mod @@ -3,15 +3,18 @@ module github.com/aws/aws-sdk-go-v2/service/iotsitewise go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.7 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) replace github.com/aws/aws-sdk-go-v2 => ../../ +replace github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream => ../../aws/protocol/eventstream/ + 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/iotsitewise/go.sum b/service/iotsitewise/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/iotsitewise/go.sum +++ b/service/iotsitewise/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/iotsitewise/go_module_metadata.go b/service/iotsitewise/go_module_metadata.go index 1f795e303b3..6e611c8cf4b 100644 --- a/service/iotsitewise/go_module_metadata.go +++ b/service/iotsitewise/go_module_metadata.go @@ -3,4 +3,4 @@ package iotsitewise // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.43.5" +const goModuleVersion = "1.44.0" diff --git a/service/iotsitewise/serializers.go b/service/iotsitewise/serializers.go index ff9a40ddb6d..f6a014b164f 100644 --- a/service/iotsitewise/serializers.go +++ b/service/iotsitewise/serializers.go @@ -1507,6 +1507,116 @@ func awsRestjson1_serializeOpDocumentCreateDashboardInput(v *CreateDashboardInpu return nil } +type awsRestjson1_serializeOpCreateDataset struct { +} + +func (*awsRestjson1_serializeOpCreateDataset) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateDataset) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*CreateDatasetInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/datasets") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, 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_serializeOpDocumentCreateDatasetInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateDatasetInput(v *CreateDatasetInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateDatasetInput(v *CreateDatasetInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientToken != nil { + ok := object.Key("clientToken") + ok.String(*v.ClientToken) + } + + if v.DatasetDescription != nil { + ok := object.Key("datasetDescription") + ok.String(*v.DatasetDescription) + } + + if v.DatasetId != nil { + ok := object.Key("datasetId") + ok.String(*v.DatasetId) + } + + if v.DatasetName != nil { + ok := object.Key("datasetName") + ok.String(*v.DatasetName) + } + + if v.DatasetSource != nil { + ok := object.Key("datasetSource") + if err := awsRestjson1_serializeDocumentDatasetSource(v.DatasetSource, 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_serializeOpCreateGateway struct { } @@ -1719,6 +1829,18 @@ func awsRestjson1_serializeOpDocumentCreatePortalInput(v *CreatePortalInput, val ok.String(*v.PortalName) } + if len(v.PortalType) > 0 { + ok := object.Key("portalType") + ok.String(string(v.PortalType)) + } + + if v.PortalTypeConfiguration != nil { + ok := object.Key("portalTypeConfiguration") + if err := awsRestjson1_serializeDocumentPortalTypeConfiguration(v.PortalTypeConfiguration, ok); err != nil { + return err + } + } + if v.RoleArn != nil { ok := object.Key("roleArn") ok.String(*v.RoleArn) @@ -2251,6 +2373,81 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDashboardInput(v *DeleteDashboard return nil } +type awsRestjson1_serializeOpDeleteDataset struct { +} + +func (*awsRestjson1_serializeOpDeleteDataset) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteDataset) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DeleteDatasetInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/datasets/{datasetId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteDatasetInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteDatasetInput(v *DeleteDatasetInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ClientToken != nil { + encoder.SetQuery("clientToken").String(*v.ClientToken) + } + + if v.DatasetId == nil || len(*v.DatasetId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member datasetId must not be empty")} + } + if v.DatasetId != nil { + if err := encoder.SetURI("datasetId").String(*v.DatasetId); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpDeleteGateway struct { } @@ -3251,6 +3448,77 @@ func awsRestjson1_serializeOpHttpBindingsDescribeDashboardInput(v *DescribeDashb return nil } +type awsRestjson1_serializeOpDescribeDataset struct { +} + +func (*awsRestjson1_serializeOpDescribeDataset) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDescribeDataset) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DescribeDatasetInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/datasets/{datasetId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDescribeDatasetInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDescribeDatasetInput(v *DescribeDatasetInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.DatasetId == nil || len(*v.DatasetId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member datasetId must not be empty")} + } + if v.DatasetId != nil { + if err := encoder.SetURI("datasetId").String(*v.DatasetId); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpDescribeDefaultEncryptionConfiguration struct { } @@ -4166,6 +4434,11 @@ func awsRestjson1_serializeOpDocumentExecuteQueryInput(v *ExecuteQueryInput, val object := value.Object() defer object.Close() + if v.ClientToken != nil { + ok := object.Key("clientToken") + ok.String(*v.ClientToken) + } + if v.MaxResults != nil { ok := object.Key("maxResults") ok.Integer(*v.MaxResults) @@ -4555,28 +4828,119 @@ func awsRestjson1_serializeOpHttpBindingsGetInterpolatedAssetPropertyValuesInput encoder.SetQuery("nextToken").String(*v.NextToken) } - if v.PropertyAlias != nil { - encoder.SetQuery("propertyAlias").String(*v.PropertyAlias) + if v.PropertyAlias != nil { + encoder.SetQuery("propertyAlias").String(*v.PropertyAlias) + } + + if v.PropertyId != nil { + encoder.SetQuery("propertyId").String(*v.PropertyId) + } + + if len(v.Quality) > 0 { + encoder.SetQuery("quality").String(string(v.Quality)) + } + + if v.StartTimeInSeconds != nil { + encoder.SetQuery("startTimeInSeconds").Long(*v.StartTimeInSeconds) + } + + if v.StartTimeOffsetInNanos != nil { + encoder.SetQuery("startTimeOffsetInNanos").Integer(*v.StartTimeOffsetInNanos) + } + + if v.Type != nil { + encoder.SetQuery("type").String(*v.Type) + } + + return nil +} + +type awsRestjson1_serializeOpInvokeAssistant struct { +} + +func (*awsRestjson1_serializeOpInvokeAssistant) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpInvokeAssistant) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*InvokeAssistantInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/assistant/invocation") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, 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_serializeOpDocumentInvokeAssistantInput(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 - if v.PropertyId != nil { - encoder.SetQuery("propertyId").String(*v.PropertyId) + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsInvokeAssistantInput(v *InvokeAssistantInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) } - if len(v.Quality) > 0 { - encoder.SetQuery("quality").String(string(v.Quality)) - } + return nil +} - if v.StartTimeInSeconds != nil { - encoder.SetQuery("startTimeInSeconds").Long(*v.StartTimeInSeconds) +func awsRestjson1_serializeOpDocumentInvokeAssistantInput(v *InvokeAssistantInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ConversationId != nil { + ok := object.Key("conversationId") + ok.String(*v.ConversationId) } - if v.StartTimeOffsetInNanos != nil { - encoder.SetQuery("startTimeOffsetInNanos").Integer(*v.StartTimeOffsetInNanos) + if v.EnableTrace { + ok := object.Key("enableTrace") + ok.Boolean(v.EnableTrace) } - if v.Type != nil { - encoder.SetQuery("type").String(*v.Type) + if v.Message != nil { + ok := object.Key("message") + ok.String(*v.Message) } return nil @@ -5558,6 +5922,80 @@ func awsRestjson1_serializeOpHttpBindingsListDashboardsInput(v *ListDashboardsIn return nil } +type awsRestjson1_serializeOpListDatasets struct { +} + +func (*awsRestjson1_serializeOpListDatasets) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListDatasets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*ListDatasetsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/datasets") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListDatasetsInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListDatasetsInput(v *ListDatasetsInput, 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 len(v.SourceType) > 0 { + encoder.SetQuery("sourceType").String(string(v.SourceType)) + } + + return nil +} + type awsRestjson1_serializeOpListGateways struct { } @@ -7177,6 +7615,117 @@ func awsRestjson1_serializeOpDocumentUpdateDashboardInput(v *UpdateDashboardInpu return nil } +type awsRestjson1_serializeOpUpdateDataset struct { +} + +func (*awsRestjson1_serializeOpUpdateDataset) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateDataset) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*UpdateDatasetInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/datasets/{datasetId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateDatasetInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateDatasetInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateDatasetInput(v *UpdateDatasetInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.DatasetId == nil || len(*v.DatasetId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member datasetId must not be empty")} + } + if v.DatasetId != nil { + if err := encoder.SetURI("datasetId").String(*v.DatasetId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateDatasetInput(v *UpdateDatasetInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientToken != nil { + ok := object.Key("clientToken") + ok.String(*v.ClientToken) + } + + if v.DatasetDescription != nil { + ok := object.Key("datasetDescription") + ok.String(*v.DatasetDescription) + } + + if v.DatasetName != nil { + ok := object.Key("datasetName") + ok.String(*v.DatasetName) + } + + if v.DatasetSource != nil { + ok := object.Key("datasetSource") + if err := awsRestjson1_serializeDocumentDatasetSource(v.DatasetSource, ok); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpUpdateGateway struct { } @@ -7495,6 +8044,18 @@ func awsRestjson1_serializeOpDocumentUpdatePortalInput(v *UpdatePortalInput, val ok.String(*v.PortalName) } + if len(v.PortalType) > 0 { + ok := object.Key("portalType") + ok.String(string(v.PortalType)) + } + + if v.PortalTypeConfiguration != nil { + ok := object.Key("portalTypeConfiguration") + if err := awsRestjson1_serializeDocumentPortalTypeConfiguration(v.PortalTypeConfiguration, ok); err != nil { + return err + } + } + if v.RoleArn != nil { ok := object.Key("roleArn") ok.String(*v.RoleArn) @@ -8251,6 +8812,30 @@ func awsRestjson1_serializeDocumentCustomerManagedS3Storage(v *types.CustomerMan return nil } +func awsRestjson1_serializeDocumentDatasetSource(v *types.DatasetSource, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.SourceDetail != nil { + ok := object.Key("sourceDetail") + if err := awsRestjson1_serializeDocumentSourceDetail(v.SourceDetail, ok); err != nil { + return err + } + } + + if len(v.SourceFormat) > 0 { + ok := object.Key("sourceFormat") + ok.String(string(v.SourceFormat)) + } + + if len(v.SourceType) > 0 { + ok := object.Key("sourceType") + ok.String(string(v.SourceType)) + } + + return nil +} + func awsRestjson1_serializeDocumentErrorReportLocation(v *types.ErrorReportLocation, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -8552,6 +9137,23 @@ func awsRestjson1_serializeDocumentJobConfiguration(v *types.JobConfiguration, v return nil } +func awsRestjson1_serializeDocumentKendraSourceDetail(v *types.KendraSourceDetail, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.KnowledgeBaseArn != nil { + ok := object.Key("knowledgeBaseArn") + ok.String(*v.KnowledgeBaseArn) + } + + if v.RoleArn != nil { + ok := object.Key("roleArn") + ok.String(*v.RoleArn) + } + + return nil +} + func awsRestjson1_serializeDocumentLoggingOptions(v *types.LoggingOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -8684,6 +9286,45 @@ func awsRestjson1_serializeDocumentPortalResource(v *types.PortalResource, value return nil } +func awsRestjson1_serializeDocumentPortalTools(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_serializeDocumentPortalTypeConfiguration(v map[string]types.PortalTypeEntry, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + mapVar := v[key] + if err := awsRestjson1_serializeDocumentPortalTypeEntry(&mapVar, om); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentPortalTypeEntry(v *types.PortalTypeEntry, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.PortalTools != nil { + ok := object.Key("portalTools") + if err := awsRestjson1_serializeDocumentPortalTools(v.PortalTools, ok); err != nil { + return err + } + } + + return nil +} + func awsRestjson1_serializeDocumentProjectResource(v *types.ProjectResource, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -8839,6 +9480,20 @@ func awsRestjson1_serializeDocumentSiemensIE(v *types.SiemensIE, value smithyjso return nil } +func awsRestjson1_serializeDocumentSourceDetail(v *types.SourceDetail, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Kendra != nil { + ok := object.Key("kendra") + if err := awsRestjson1_serializeDocumentKendraSourceDetail(v.Kendra, ok); err != nil { + return err + } + } + + return nil +} + func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/iotsitewise/snapshot/api_op_CreateDataset.go.snap b/service/iotsitewise/snapshot/api_op_CreateDataset.go.snap new file mode 100644 index 00000000000..78382392759 --- /dev/null +++ b/service/iotsitewise/snapshot/api_op_CreateDataset.go.snap @@ -0,0 +1,43 @@ +CreateDataset + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + OperationIdempotencyTokenAutoFill + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + EndpointHostPrefix + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/iotsitewise/snapshot/api_op_DeleteDataset.go.snap b/service/iotsitewise/snapshot/api_op_DeleteDataset.go.snap new file mode 100644 index 00000000000..0f5c0a41e3e --- /dev/null +++ b/service/iotsitewise/snapshot/api_op_DeleteDataset.go.snap @@ -0,0 +1,43 @@ +DeleteDataset + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + OperationIdempotencyTokenAutoFill + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + EndpointHostPrefix + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/iotsitewise/snapshot/api_op_DescribeDataset.go.snap b/service/iotsitewise/snapshot/api_op_DescribeDataset.go.snap new file mode 100644 index 00000000000..17e8d388803 --- /dev/null +++ b/service/iotsitewise/snapshot/api_op_DescribeDataset.go.snap @@ -0,0 +1,42 @@ +DescribeDataset + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + EndpointHostPrefix + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/iotsitewise/snapshot/api_op_ExecuteQuery.go.snap b/service/iotsitewise/snapshot/api_op_ExecuteQuery.go.snap index 29cd7b49bca..ecf1b70703e 100644 --- a/service/iotsitewise/snapshot/api_op_ExecuteQuery.go.snap +++ b/service/iotsitewise/snapshot/api_op_ExecuteQuery.go.snap @@ -2,6 +2,7 @@ ExecuteQuery Initialize stack step spanInitializeStart RegisterServiceMetadata + OperationIdempotencyTokenAutoFill legacyEndpointContextSetter SetLogger OperationInputValidation diff --git a/service/iotsitewise/snapshot/api_op_InvokeAssistant.go.snap b/service/iotsitewise/snapshot/api_op_InvokeAssistant.go.snap new file mode 100644 index 00000000000..4500b4e862f --- /dev/null +++ b/service/iotsitewise/snapshot/api_op_InvokeAssistant.go.snap @@ -0,0 +1,41 @@ +InvokeAssistant + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + EndpointHostPrefix + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + OperationEventStreamDeserializer + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/iotsitewise/snapshot/api_op_ListDatasets.go.snap b/service/iotsitewise/snapshot/api_op_ListDatasets.go.snap new file mode 100644 index 00000000000..276e4d99fe9 --- /dev/null +++ b/service/iotsitewise/snapshot/api_op_ListDatasets.go.snap @@ -0,0 +1,42 @@ +ListDatasets + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + EndpointHostPrefix + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/iotsitewise/snapshot/api_op_UpdateDataset.go.snap b/service/iotsitewise/snapshot/api_op_UpdateDataset.go.snap new file mode 100644 index 00000000000..66ec69bc7bb --- /dev/null +++ b/service/iotsitewise/snapshot/api_op_UpdateDataset.go.snap @@ -0,0 +1,43 @@ +UpdateDataset + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + OperationIdempotencyTokenAutoFill + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + EndpointHostPrefix + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/iotsitewise/snapshot_test.go b/service/iotsitewise/snapshot_test.go index 4235ca8773d..d391fd65e9a 100644 --- a/service/iotsitewise/snapshot_test.go +++ b/service/iotsitewise/snapshot_test.go @@ -230,6 +230,18 @@ func TestCheckSnapshot_CreateDashboard(t *testing.T) { } } +func TestCheckSnapshot_CreateDataset(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateDataset(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "CreateDataset") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_CreateGateway(t *testing.T) { svc := New(Options{}) _, err := svc.CreateGateway(context.Background(), nil, func(o *Options) { @@ -326,6 +338,18 @@ func TestCheckSnapshot_DeleteDashboard(t *testing.T) { } } +func TestCheckSnapshot_DeleteDataset(t *testing.T) { + svc := New(Options{}) + _, err := svc.DeleteDataset(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "DeleteDataset") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_DeleteGateway(t *testing.T) { svc := New(Options{}) _, err := svc.DeleteGateway(context.Background(), nil, func(o *Options) { @@ -482,6 +506,18 @@ func TestCheckSnapshot_DescribeDashboard(t *testing.T) { } } +func TestCheckSnapshot_DescribeDataset(t *testing.T) { + svc := New(Options{}) + _, err := svc.DescribeDataset(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "DescribeDataset") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_DescribeDefaultEncryptionConfiguration(t *testing.T) { svc := New(Options{}) _, err := svc.DescribeDefaultEncryptionConfiguration(context.Background(), nil, func(o *Options) { @@ -674,6 +710,18 @@ func TestCheckSnapshot_GetInterpolatedAssetPropertyValues(t *testing.T) { } } +func TestCheckSnapshot_InvokeAssistant(t *testing.T) { + svc := New(Options{}) + _, err := svc.InvokeAssistant(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "InvokeAssistant") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_ListAccessPolicies(t *testing.T) { svc := New(Options{}) _, err := svc.ListAccessPolicies(context.Background(), nil, func(o *Options) { @@ -818,6 +866,18 @@ func TestCheckSnapshot_ListDashboards(t *testing.T) { } } +func TestCheckSnapshot_ListDatasets(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListDatasets(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "ListDatasets") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_ListGateways(t *testing.T) { svc := New(Options{}) _, err := svc.ListGateways(context.Background(), nil, func(o *Options) { @@ -1022,6 +1082,18 @@ func TestCheckSnapshot_UpdateDashboard(t *testing.T) { } } +func TestCheckSnapshot_UpdateDataset(t *testing.T) { + svc := New(Options{}) + _, err := svc.UpdateDataset(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "UpdateDataset") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_UpdateGateway(t *testing.T) { svc := New(Options{}) _, err := svc.UpdateGateway(context.Background(), nil, func(o *Options) { @@ -1237,6 +1309,18 @@ func TestUpdateSnapshot_CreateDashboard(t *testing.T) { } } +func TestUpdateSnapshot_CreateDataset(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateDataset(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "CreateDataset") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_CreateGateway(t *testing.T) { svc := New(Options{}) _, err := svc.CreateGateway(context.Background(), nil, func(o *Options) { @@ -1333,6 +1417,18 @@ func TestUpdateSnapshot_DeleteDashboard(t *testing.T) { } } +func TestUpdateSnapshot_DeleteDataset(t *testing.T) { + svc := New(Options{}) + _, err := svc.DeleteDataset(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "DeleteDataset") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_DeleteGateway(t *testing.T) { svc := New(Options{}) _, err := svc.DeleteGateway(context.Background(), nil, func(o *Options) { @@ -1489,6 +1585,18 @@ func TestUpdateSnapshot_DescribeDashboard(t *testing.T) { } } +func TestUpdateSnapshot_DescribeDataset(t *testing.T) { + svc := New(Options{}) + _, err := svc.DescribeDataset(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "DescribeDataset") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_DescribeDefaultEncryptionConfiguration(t *testing.T) { svc := New(Options{}) _, err := svc.DescribeDefaultEncryptionConfiguration(context.Background(), nil, func(o *Options) { @@ -1681,6 +1789,18 @@ func TestUpdateSnapshot_GetInterpolatedAssetPropertyValues(t *testing.T) { } } +func TestUpdateSnapshot_InvokeAssistant(t *testing.T) { + svc := New(Options{}) + _, err := svc.InvokeAssistant(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "InvokeAssistant") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_ListAccessPolicies(t *testing.T) { svc := New(Options{}) _, err := svc.ListAccessPolicies(context.Background(), nil, func(o *Options) { @@ -1825,6 +1945,18 @@ func TestUpdateSnapshot_ListDashboards(t *testing.T) { } } +func TestUpdateSnapshot_ListDatasets(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListDatasets(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "ListDatasets") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_ListGateways(t *testing.T) { svc := New(Options{}) _, err := svc.ListGateways(context.Background(), nil, func(o *Options) { @@ -2029,6 +2161,18 @@ func TestUpdateSnapshot_UpdateDashboard(t *testing.T) { } } +func TestUpdateSnapshot_UpdateDataset(t *testing.T) { + svc := New(Options{}) + _, err := svc.UpdateDataset(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "UpdateDataset") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_UpdateGateway(t *testing.T) { svc := New(Options{}) _, err := svc.UpdateGateway(context.Background(), nil, func(o *Options) { diff --git a/service/iotsitewise/types/enums.go b/service/iotsitewise/types/enums.go index d9aafe87bcd..2b238256a37 100644 --- a/service/iotsitewise/types/enums.go +++ b/service/iotsitewise/types/enums.go @@ -387,6 +387,65 @@ func (ConfigurationState) Values() []ConfigurationState { } } +type DatasetSourceFormat string + +// Enum values for DatasetSourceFormat +const ( + DatasetSourceFormatKnowledgeBase DatasetSourceFormat = "KNOWLEDGE_BASE" +) + +// Values returns all known values for DatasetSourceFormat. 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 (DatasetSourceFormat) Values() []DatasetSourceFormat { + return []DatasetSourceFormat{ + "KNOWLEDGE_BASE", + } +} + +type DatasetSourceType string + +// Enum values for DatasetSourceType +const ( + DatasetSourceTypeKendra DatasetSourceType = "KENDRA" +) + +// Values returns all known values for DatasetSourceType. 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 (DatasetSourceType) Values() []DatasetSourceType { + return []DatasetSourceType{ + "KENDRA", + } +} + +type DatasetState string + +// Enum values for DatasetState +const ( + DatasetStateCreating DatasetState = "CREATING" + DatasetStateActive DatasetState = "ACTIVE" + DatasetStateUpdating DatasetState = "UPDATING" + DatasetStateDeleting DatasetState = "DELETING" + DatasetStateFailed DatasetState = "FAILED" +) + +// Values returns all known values for DatasetState. 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 (DatasetState) Values() []DatasetState { + return []DatasetState{ + "CREATING", + "ACTIVE", + "UPDATING", + "DELETING", + "FAILED", + } +} + type DetailedErrorCode string // Enum values for DetailedErrorCode @@ -720,6 +779,7 @@ type PortalState string // Enum values for PortalState const ( PortalStateCreating PortalState = "CREATING" + PortalStatePending PortalState = "PENDING" PortalStateUpdating PortalState = "UPDATING" PortalStateDeleting PortalState = "DELETING" PortalStateActive PortalState = "ACTIVE" @@ -733,6 +793,7 @@ const ( func (PortalState) Values() []PortalState { return []PortalState{ "CREATING", + "PENDING", "UPDATING", "DELETING", "ACTIVE", @@ -740,6 +801,25 @@ func (PortalState) Values() []PortalState { } } +type PortalType string + +// Enum values for PortalType +const ( + PortalTypeSitewisePortalV1 PortalType = "SITEWISE_PORTAL_V1" + PortalTypeSitewisePortalV2 PortalType = "SITEWISE_PORTAL_V2" +) + +// Values returns all known values for PortalType. 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 (PortalType) Values() []PortalType { + return []PortalType{ + "SITEWISE_PORTAL_V1", + "SITEWISE_PORTAL_V2", + } +} + type PropertyDataType string // Enum values for PropertyDataType diff --git a/service/iotsitewise/types/types.go b/service/iotsitewise/types/types.go index 215c6e2def9..ca73d9b666b 100644 --- a/service/iotsitewise/types/types.go +++ b/service/iotsitewise/types/types.go @@ -526,6 +526,9 @@ type AssetModelProperty struct { // The data type of the asset model property. // + // If you specify STRUCT , you must also specify dataTypeSpec to identify the type + // of the structure for this property. + // // This member is required. DataType PropertyDataType @@ -1501,6 +1504,19 @@ type BatchPutAssetPropertyErrorEntry struct { noSmithyDocumentSerde } +// Contains text content to which the SiteWise Assistant refers to, and generate +// the final response. It also contains information about the source. +type Citation struct { + + // Contains the cited text from the data source. + Content *Content + + // Contains information about the data source. + Reference *Reference + + noSmithyDocumentSerde +} + // A description of the column in the query results. type ColumnInfo struct { @@ -1626,6 +1642,15 @@ type ConfigurationStatus struct { noSmithyDocumentSerde } +// Contains the cited text from the data source. +type Content struct { + + // The cited text from the data source. + Text *string + + noSmithyDocumentSerde +} + // A .CSV file. type Csv struct { @@ -1685,6 +1710,100 @@ type DashboardSummary struct { noSmithyDocumentSerde } +// Contains information about the dataset use and it's source. +type DataSetReference struct { + + // The [ARN] of the dataset. The format is + // arn:${Partition}:iotsitewise:${Region}:${Account}:dataset/${DatasetId} . + // + // [ARN]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference-arns.html + DatasetArn *string + + // The data source for the dataset. + Source *Source + + noSmithyDocumentSerde +} + +// The data source for the dataset. +type DatasetSource struct { + + // The format of the dataset source associated with the dataset. + // + // This member is required. + SourceFormat DatasetSourceFormat + + // The type of data source for the dataset. + // + // This member is required. + SourceType DatasetSourceType + + // The details of the dataset source associated with the dataset. + SourceDetail *SourceDetail + + noSmithyDocumentSerde +} + +// The status of the dataset. This contains the state and any error messages. The +// state is ACTIVE when ready to use. +type DatasetStatus struct { + + // The current status of the dataset. + // + // This member is required. + State DatasetState + + // Contains the details of an IoT SiteWise error. + Error *ErrorDetails + + noSmithyDocumentSerde +} + +// The summary details for the dataset. +type DatasetSummary struct { + + // The [ARN] of the dataset. The format is + // arn:${Partition}:iotsitewise:${Region}:${Account}:dataset/${DatasetId} . + // + // [ARN]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference-arns.html + // + // This member is required. + Arn *string + + // The dataset creation date, in Unix epoch time. + // + // This member is required. + CreationDate *time.Time + + // A description about the dataset, and its functionality. + // + // This member is required. + Description *string + + // The ID of the dataset. + // + // This member is required. + Id *string + + // The date the dataset was last updated, in Unix epoch time. + // + // This member is required. + LastUpdateDate *time.Time + + // The name of the dataset. + // + // This member is required. + Name *string + + // The status of the dataset. This contains the state and any error messages. The + // state is ACTIVE when ready to use. + // + // This member is required. + Status *DatasetStatus + + noSmithyDocumentSerde +} + // Represents a single data point in a query result. type Datum struct { @@ -1838,10 +1957,17 @@ type GatewayCapabilitySummary struct { // // - IN_SYNC – The gateway is running the capability configuration. // + // - NOT_APPLICABLE – Synchronization is not required for this capability + // configuration. This is most common when integrating partner data sources, + // because the data integration is handled externally by the partner. + // // - OUT_OF_SYNC – The gateway hasn't received the capability configuration. // // - SYNC_FAILED – The gateway rejected the capability configuration. // + // - UNKNOWN – The synchronization status is currently unknown due to an + // undetermined or temporary error. + // // This member is required. CapabilitySyncStatus CapabilitySyncStatus @@ -2072,6 +2198,19 @@ type InterpolatedAssetPropertyValue struct { noSmithyDocumentSerde } +// This contains the SiteWise Assistant's response and the corresponding citation. +type InvocationOutput struct { + + // A list of citations, and related information for the SiteWise Assistant's + // response. + Citations []Citation + + // The text message of the SiteWise Assistant's response. + Message *string + + noSmithyDocumentSerde +} + // Contains the configuration information of a job, such as the file format used // to save data in Amazon S3. type JobConfiguration struct { @@ -2123,6 +2262,31 @@ type JobSummary struct { noSmithyDocumentSerde } +// The source details for the Kendra dataset source. +type KendraSourceDetail struct { + + // The knowledgeBaseArn details for the Kendra dataset source. + // + // This member is required. + KnowledgeBaseArn *string + + // The roleARN details for the Kendra dataset source. + // + // This member is required. + RoleArn *string + + noSmithyDocumentSerde +} + +// Contains location information about the cited text and where it's stored. +type Location struct { + + // The URI of the location. + Uri *string + + noSmithyDocumentSerde +} + // Contains logging options. type LoggingOptions struct { @@ -2316,6 +2480,11 @@ type PortalSummary struct { // The date the portal was last updated, in Unix epoch time. LastUpdateDate *time.Time + // Define the type of portal. The value for IoT SiteWise Monitor (Classic) is + // SITEWISE_PORTAL_V1 . The value for IoT SiteWise Monitor (AI-aware) is + // SITEWISE_PORTAL_V2 . + PortalType PortalType + // The [ARN] of the service role that allows the portal's users to access your IoT // SiteWise resources on your behalf. For more information, see [Using service roles for IoT SiteWise Monitor]in the IoT // SiteWise User Guide. @@ -2327,6 +2496,17 @@ type PortalSummary struct { noSmithyDocumentSerde } +// The configuration entry associated with the specific portal type. The +// portalTypeConfiguration is a map of the portalTypeKey to the PortalTypeEntry . +type PortalTypeEntry struct { + + // The array of tools associated with the specified portal type. The possible + // values are ASSISTANT and DASHBOARD . + PortalTools []string + + noSmithyDocumentSerde +} + // Identifies a specific IoT SiteWise Monitor project. type ProjectResource struct { @@ -2495,6 +2675,15 @@ type PutAssetPropertyValueEntry struct { noSmithyDocumentSerde } +// Contains the reference information. +type Reference struct { + + // Contains the dataset reference information. + Dataset *DataSetReference + + noSmithyDocumentSerde +} + // Contains an IoT SiteWise Monitor resource ID for a portal or project. type Resource struct { @@ -2507,6 +2696,35 @@ type Resource struct { noSmithyDocumentSerde } +// Contains the response, citation, and trace from the SiteWise Assistant. +// +// The following types satisfy this interface: +// +// ResponseStreamMemberOutput +// ResponseStreamMemberTrace +type ResponseStream interface { + isResponseStream() +} + +// Contains the SiteWise Assistant's response. +type ResponseStreamMemberOutput struct { + Value InvocationOutput + + noSmithyDocumentSerde +} + +func (*ResponseStreamMemberOutput) isResponseStream() {} + +// Contains tracing information of the SiteWise Assistant's reasoning and data +// access. +type ResponseStreamMemberTrace struct { + Value Trace + + noSmithyDocumentSerde +} + +func (*ResponseStreamMemberTrace) isResponseStream() {} + // The number of days your data is kept in the hot tier. By default, your data is // kept indefinitely in the hot tier. type RetentionPeriod struct { @@ -2549,6 +2767,30 @@ type SiemensIE struct { noSmithyDocumentSerde } +// The data source for the dataset. +type Source struct { + + // Contains the ARN of the dataset. If the source is Kendra, it's the ARN of the + // Kendra index. + Arn *string + + // Contains the location information where the cited text is originally stored. + // For example, if the data source is Kendra, and the text synchronized is from an + // S3 bucket, then the location refers to an S3 object. + Location *Location + + noSmithyDocumentSerde +} + +// The details of the dataset source associated with the dataset. +type SourceDetail struct { + + // Contains details about the Kendra dataset source. + Kendra *KendraSourceDetail + + noSmithyDocumentSerde +} + // The resource the action will be taken on. type TargetResource struct { @@ -2630,6 +2872,16 @@ type TimeSeriesSummary struct { noSmithyDocumentSerde } +// Contains tracing information of the SiteWise Assistant's reasoning and data +// access. +type Trace struct { + + // The cited text from the data source. + Text *string + + noSmithyDocumentSerde +} + // Contains an asset transform property. A transform is a one-to-one mapping of a // property's data points from one form to another. For example, you can use a // transform to convert a Celsius data stream to Fahrenheit by applying the @@ -2831,3 +3083,14 @@ type WarmTierRetentionPeriod struct { } 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) isResponseStream() {} diff --git a/service/iotsitewise/types/types_exported_test.go b/service/iotsitewise/types/types_exported_test.go new file mode 100644 index 00000000000..ea8ea6275ad --- /dev/null +++ b/service/iotsitewise/types/types_exported_test.go @@ -0,0 +1,30 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types_test + +import ( + "fmt" + "github.com/aws/aws-sdk-go-v2/service/iotsitewise/types" +) + +func ExampleResponseStream_outputUsage() { + var union types.ResponseStream + // type switches can be used to check the union value + switch v := union.(type) { + case *types.ResponseStreamMemberOutput: + _ = v.Value // Value is types.InvocationOutput + + case *types.ResponseStreamMemberTrace: + _ = v.Value // Value is types.Trace + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.InvocationOutput +var _ *types.Trace diff --git a/service/iotsitewise/validators.go b/service/iotsitewise/validators.go index c4ba0447a2d..ef286ebb7d5 100644 --- a/service/iotsitewise/validators.go +++ b/service/iotsitewise/validators.go @@ -290,6 +290,26 @@ func (m *validateOpCreateDashboard) HandleInitialize(ctx context.Context, in mid return next.HandleInitialize(ctx, in) } +type validateOpCreateDataset struct { +} + +func (*validateOpCreateDataset) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateDataset) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateDatasetInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateDatasetInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateGateway struct { } @@ -450,6 +470,26 @@ func (m *validateOpDeleteDashboard) HandleInitialize(ctx context.Context, in mid return next.HandleInitialize(ctx, in) } +type validateOpDeleteDataset struct { +} + +func (*validateOpDeleteDataset) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteDataset) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteDatasetInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteDatasetInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteGateway struct { } @@ -690,6 +730,26 @@ func (m *validateOpDescribeDashboard) HandleInitialize(ctx context.Context, in m return next.HandleInitialize(ctx, in) } +type validateOpDescribeDataset struct { +} + +func (*validateOpDescribeDataset) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeDataset) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeDatasetInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeDatasetInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDescribeGatewayCapabilityConfiguration struct { } @@ -890,6 +950,26 @@ func (m *validateOpGetInterpolatedAssetPropertyValues) HandleInitialize(ctx cont return next.HandleInitialize(ctx, in) } +type validateOpInvokeAssistant struct { +} + +func (*validateOpInvokeAssistant) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpInvokeAssistant) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*InvokeAssistantInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpInvokeAssistantInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListActions struct { } @@ -1050,6 +1130,26 @@ func (m *validateOpListDashboards) HandleInitialize(ctx context.Context, in midd return next.HandleInitialize(ctx, in) } +type validateOpListDatasets struct { +} + +func (*validateOpListDatasets) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListDatasets) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListDatasetsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListDatasetsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListProjectAssets struct { } @@ -1330,6 +1430,26 @@ func (m *validateOpUpdateDashboard) HandleInitialize(ctx context.Context, in mid return next.HandleInitialize(ctx, in) } +type validateOpUpdateDataset struct { +} + +func (*validateOpUpdateDataset) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateDataset) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateDatasetInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateDatasetInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpUpdateGatewayCapabilityConfiguration struct { } @@ -1466,6 +1586,10 @@ func addOpCreateDashboardValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateDashboard{}, middleware.After) } +func addOpCreateDatasetValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateDataset{}, middleware.After) +} + func addOpCreateGatewayValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateGateway{}, middleware.After) } @@ -1498,6 +1622,10 @@ func addOpDeleteDashboardValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteDashboard{}, middleware.After) } +func addOpDeleteDatasetValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteDataset{}, middleware.After) +} + func addOpDeleteGatewayValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteGateway{}, middleware.After) } @@ -1546,6 +1674,10 @@ func addOpDescribeDashboardValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeDashboard{}, middleware.After) } +func addOpDescribeDatasetValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeDataset{}, middleware.After) +} + func addOpDescribeGatewayCapabilityConfigurationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeGatewayCapabilityConfiguration{}, middleware.After) } @@ -1586,6 +1718,10 @@ func addOpGetInterpolatedAssetPropertyValuesValidationMiddleware(stack *middlewa return stack.Initialize.Add(&validateOpGetInterpolatedAssetPropertyValues{}, middleware.After) } +func addOpInvokeAssistantValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpInvokeAssistant{}, middleware.After) +} + func addOpListActionsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListActions{}, middleware.After) } @@ -1618,6 +1754,10 @@ func addOpListDashboardsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListDashboards{}, middleware.After) } +func addOpListDatasetsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListDatasets{}, middleware.After) +} + func addOpListProjectAssetsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListProjectAssets{}, middleware.After) } @@ -1674,6 +1814,10 @@ func addOpUpdateDashboardValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateDashboard{}, middleware.After) } +func addOpUpdateDatasetValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateDataset{}, middleware.After) +} + func addOpUpdateGatewayCapabilityConfigurationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateGatewayCapabilityConfiguration{}, middleware.After) } @@ -2134,6 +2278,29 @@ func validateCustomerManagedS3Storage(v *types.CustomerManagedS3Storage) error { } } +func validateDatasetSource(v *types.DatasetSource) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DatasetSource"} + if len(v.SourceType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("SourceType")) + } + if len(v.SourceFormat) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("SourceFormat")) + } + if v.SourceDetail != nil { + if err := validateSourceDetail(v.SourceDetail); err != nil { + invalidParams.AddNested("SourceDetail", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateErrorReportLocation(v *types.ErrorReportLocation) error { if v == nil { return nil @@ -2442,6 +2609,24 @@ func validateJobConfiguration(v *types.JobConfiguration) error { } } +func validateKendraSourceDetail(v *types.KendraSourceDetail) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "KendraSourceDetail"} + if v.KnowledgeBaseArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("KnowledgeBaseArn")) + } + if v.RoleArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("RoleArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateLoggingOptions(v *types.LoggingOptions) error { if v == nil { return nil @@ -2711,6 +2896,23 @@ func validateSiemensIE(v *types.SiemensIE) error { } } +func validateSourceDetail(v *types.SourceDetail) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "SourceDetail"} + if v.Kendra != nil { + if err := validateKendraSourceDetail(v.Kendra); err != nil { + invalidParams.AddNested("Kendra", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateTargetResource(v *types.TargetResource) error { if v == nil { return nil @@ -3135,6 +3337,28 @@ func validateOpCreateDashboardInput(v *CreateDashboardInput) error { } } +func validateOpCreateDatasetInput(v *CreateDatasetInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateDatasetInput"} + if v.DatasetName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DatasetName")) + } + if v.DatasetSource == nil { + invalidParams.Add(smithy.NewErrParamRequired("DatasetSource")) + } else if v.DatasetSource != nil { + if err := validateDatasetSource(v.DatasetSource); err != nil { + invalidParams.AddNested("DatasetSource", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateGatewayInput(v *CreateGatewayInput) error { if v == nil { return nil @@ -3284,6 +3508,21 @@ func validateOpDeleteDashboardInput(v *DeleteDashboardInput) error { } } +func validateOpDeleteDatasetInput(v *DeleteDatasetInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteDatasetInput"} + if v.DatasetId == nil { + invalidParams.Add(smithy.NewErrParamRequired("DatasetId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteGatewayInput(v *DeleteGatewayInput) error { if v == nil { return nil @@ -3473,6 +3712,21 @@ func validateOpDescribeDashboardInput(v *DescribeDashboardInput) error { } } +func validateOpDescribeDatasetInput(v *DescribeDatasetInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeDatasetInput"} + if v.DatasetId == nil { + invalidParams.Add(smithy.NewErrParamRequired("DatasetId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDescribeGatewayCapabilityConfigurationInput(v *DescribeGatewayCapabilityConfigurationInput) error { if v == nil { return nil @@ -3673,6 +3927,21 @@ func validateOpGetInterpolatedAssetPropertyValuesInput(v *GetInterpolatedAssetPr } } +func validateOpInvokeAssistantInput(v *InvokeAssistantInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "InvokeAssistantInput"} + if v.Message == nil { + invalidParams.Add(smithy.NewErrParamRequired("Message")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListActionsInput(v *ListActionsInput) error { if v == nil { return nil @@ -3799,6 +4068,21 @@ func validateOpListDashboardsInput(v *ListDashboardsInput) error { } } +func validateOpListDatasetsInput(v *ListDatasetsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListDatasetsInput"} + if len(v.SourceType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("SourceType")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListProjectAssetsInput(v *ListProjectAssetsInput) error { if v == nil { return nil @@ -4082,6 +4366,31 @@ func validateOpUpdateDashboardInput(v *UpdateDashboardInput) error { } } +func validateOpUpdateDatasetInput(v *UpdateDatasetInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateDatasetInput"} + if v.DatasetId == nil { + invalidParams.Add(smithy.NewErrParamRequired("DatasetId")) + } + if v.DatasetName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DatasetName")) + } + if v.DatasetSource == nil { + invalidParams.Add(smithy.NewErrParamRequired("DatasetSource")) + } else if v.DatasetSource != nil { + if err := validateDatasetSource(v.DatasetSource); err != nil { + invalidParams.AddNested("DatasetSource", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpUpdateGatewayCapabilityConfigurationInput(v *UpdateGatewayCapabilityConfigurationInput) error { if v == nil { return nil diff --git a/service/iotthingsgraph/CHANGELOG.md b/service/iotthingsgraph/CHANGELOG.md index f98693220df..f703dae48c1 100644 --- a/service/iotthingsgraph/CHANGELOG.md +++ b/service/iotthingsgraph/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.25.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/iotthingsgraph/go.mod b/service/iotthingsgraph/go.mod index 8e1e30854e1..d32079a9dde 100644 --- a/service/iotthingsgraph/go.mod +++ b/service/iotthingsgraph/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotthingsgraph go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotthingsgraph/go.sum b/service/iotthingsgraph/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/iotthingsgraph/go.sum +++ b/service/iotthingsgraph/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/iotthingsgraph/go_module_metadata.go b/service/iotthingsgraph/go_module_metadata.go index 50bbd2a9b56..76ee7f568eb 100644 --- a/service/iotthingsgraph/go_module_metadata.go +++ b/service/iotthingsgraph/go_module_metadata.go @@ -3,4 +3,4 @@ package iotthingsgraph // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.5" +const goModuleVersion = "1.25.6" diff --git a/service/iottwinmaker/CHANGELOG.md b/service/iottwinmaker/CHANGELOG.md index 894833db629..6f1f2fc415a 100644 --- a/service/iottwinmaker/CHANGELOG.md +++ b/service/iottwinmaker/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.24.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/iottwinmaker/go.mod b/service/iottwinmaker/go.mod index 840e83ab466..f613863115f 100644 --- a/service/iottwinmaker/go.mod +++ b/service/iottwinmaker/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iottwinmaker go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iottwinmaker/go.sum b/service/iottwinmaker/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/iottwinmaker/go.sum +++ b/service/iottwinmaker/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/iottwinmaker/go_module_metadata.go b/service/iottwinmaker/go_module_metadata.go index 32e4e0a0a85..d6321c57aeb 100644 --- a/service/iottwinmaker/go_module_metadata.go +++ b/service/iottwinmaker/go_module_metadata.go @@ -3,4 +3,4 @@ package iottwinmaker // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.5" +const goModuleVersion = "1.24.6" diff --git a/service/iotwireless/CHANGELOG.md b/service/iotwireless/CHANGELOG.md index cff325899a0..43cf99d38a5 100644 --- a/service/iotwireless/CHANGELOG.md +++ b/service/iotwireless/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.45.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.45.0 (2024-11-14) * **Feature**: New FuotaTask resource type to enable logging for your FUOTA tasks. A ParticipatingGatewaysforMulticast parameter to choose the list of gateways to receive the multicast downlink message and the transmission interval between them. Descriptor field which will be sent to devices during FUOTA transfer. diff --git a/service/iotwireless/go.mod b/service/iotwireless/go.mod index 94a1c8b53ce..62cc1f39d91 100644 --- a/service/iotwireless/go.mod +++ b/service/iotwireless/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotwireless go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/iotwireless/go.sum b/service/iotwireless/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/iotwireless/go.sum +++ b/service/iotwireless/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/iotwireless/go_module_metadata.go b/service/iotwireless/go_module_metadata.go index 01d1c881835..76192090939 100644 --- a/service/iotwireless/go_module_metadata.go +++ b/service/iotwireless/go_module_metadata.go @@ -3,4 +3,4 @@ package iotwireless // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.45.0" +const goModuleVersion = "1.45.1" diff --git a/service/ivs/CHANGELOG.md b/service/ivs/CHANGELOG.md index 9eaa747fcd0..93358f47ca5 100644 --- a/service/ivs/CHANGELOG.md +++ b/service/ivs/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.42.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.42.0 (2024-11-14) * **Feature**: IVS now offers customers the ability to stream multitrack video to Channels. diff --git a/service/ivs/go.mod b/service/ivs/go.mod index 9e0e6f3a622..613524970b4 100644 --- a/service/ivs/go.mod +++ b/service/ivs/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ivs go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ivs/go.sum b/service/ivs/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/ivs/go.sum +++ b/service/ivs/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/ivs/go_module_metadata.go b/service/ivs/go_module_metadata.go index e2e1164c07d..822880632b8 100644 --- a/service/ivs/go_module_metadata.go +++ b/service/ivs/go_module_metadata.go @@ -3,4 +3,4 @@ package ivs // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.42.0" +const goModuleVersion = "1.42.1" diff --git a/service/ivschat/CHANGELOG.md b/service/ivschat/CHANGELOG.md index b4866801ce6..9b63fc3029e 100644 --- a/service/ivschat/CHANGELOG.md +++ b/service/ivschat/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.16.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.16.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/ivschat/go.mod b/service/ivschat/go.mod index f56325ebc0b..de3aca1fb5f 100644 --- a/service/ivschat/go.mod +++ b/service/ivschat/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ivschat go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ivschat/go.sum b/service/ivschat/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/ivschat/go.sum +++ b/service/ivschat/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/ivschat/go_module_metadata.go b/service/ivschat/go_module_metadata.go index 22b76225084..9f0c88132a6 100644 --- a/service/ivschat/go_module_metadata.go +++ b/service/ivschat/go_module_metadata.go @@ -3,4 +3,4 @@ package ivschat // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.16.5" +const goModuleVersion = "1.16.6" diff --git a/service/ivsrealtime/CHANGELOG.md b/service/ivsrealtime/CHANGELOG.md index 274ddb15431..dd1a1043d26 100644 --- a/service/ivsrealtime/CHANGELOG.md +++ b/service/ivsrealtime/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.20.5 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.4 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/ivsrealtime/go.mod b/service/ivsrealtime/go.mod index 7a210e88490..8a452d782ec 100644 --- a/service/ivsrealtime/go.mod +++ b/service/ivsrealtime/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ivsrealtime go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ivsrealtime/go.sum b/service/ivsrealtime/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/ivsrealtime/go.sum +++ b/service/ivsrealtime/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/ivsrealtime/go_module_metadata.go b/service/ivsrealtime/go_module_metadata.go index 59573ede1ac..3ab5618234f 100644 --- a/service/ivsrealtime/go_module_metadata.go +++ b/service/ivsrealtime/go_module_metadata.go @@ -3,4 +3,4 @@ package ivsrealtime // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.4" +const goModuleVersion = "1.20.5" diff --git a/service/kafka/CHANGELOG.md b/service/kafka/CHANGELOG.md index 25e5fe91751..ae8d76a1d83 100644 --- a/service/kafka/CHANGELOG.md +++ b/service/kafka/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.38.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.38.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/kafka/go.mod b/service/kafka/go.mod index 18d8d657642..225e5ef87e5 100644 --- a/service/kafka/go.mod +++ b/service/kafka/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kafka go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kafka/go.sum b/service/kafka/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/kafka/go.sum +++ b/service/kafka/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/kafka/go_module_metadata.go b/service/kafka/go_module_metadata.go index 353f701af05..5711f6b8266 100644 --- a/service/kafka/go_module_metadata.go +++ b/service/kafka/go_module_metadata.go @@ -3,4 +3,4 @@ package kafka // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.38.5" +const goModuleVersion = "1.38.6" diff --git a/service/kafkaconnect/CHANGELOG.md b/service/kafkaconnect/CHANGELOG.md index f17e0f17eb7..c9c81316e84 100644 --- a/service/kafkaconnect/CHANGELOG.md +++ b/service/kafkaconnect/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.21.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/kafkaconnect/go.mod b/service/kafkaconnect/go.mod index 35fc658bcd8..12b0566d4a8 100644 --- a/service/kafkaconnect/go.mod +++ b/service/kafkaconnect/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kafkaconnect go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kafkaconnect/go.sum b/service/kafkaconnect/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/kafkaconnect/go.sum +++ b/service/kafkaconnect/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/kafkaconnect/go_module_metadata.go b/service/kafkaconnect/go_module_metadata.go index 2ca01538f89..a66df20724c 100644 --- a/service/kafkaconnect/go_module_metadata.go +++ b/service/kafkaconnect/go_module_metadata.go @@ -3,4 +3,4 @@ package kafkaconnect // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.5" +const goModuleVersion = "1.21.6" diff --git a/service/kendra/CHANGELOG.md b/service/kendra/CHANGELOG.md index 298b8f8c0ee..e8559042629 100644 --- a/service/kendra/CHANGELOG.md +++ b/service/kendra/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.54.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.54.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/kendra/go.mod b/service/kendra/go.mod index 3ba6ff1f106..33155c02c71 100644 --- a/service/kendra/go.mod +++ b/service/kendra/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kendra go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kendra/go.sum b/service/kendra/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/kendra/go.sum +++ b/service/kendra/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/kendra/go_module_metadata.go b/service/kendra/go_module_metadata.go index 86834fb91ee..c60cc0aa5af 100644 --- a/service/kendra/go_module_metadata.go +++ b/service/kendra/go_module_metadata.go @@ -3,4 +3,4 @@ package kendra // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.54.5" +const goModuleVersion = "1.54.6" diff --git a/service/kendraranking/CHANGELOG.md b/service/kendraranking/CHANGELOG.md index 5c955c08226..ee973967ef4 100644 --- a/service/kendraranking/CHANGELOG.md +++ b/service/kendraranking/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.11.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.11.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/kendraranking/go.mod b/service/kendraranking/go.mod index c35c221428b..5829d474489 100644 --- a/service/kendraranking/go.mod +++ b/service/kendraranking/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kendraranking go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kendraranking/go.sum b/service/kendraranking/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/kendraranking/go.sum +++ b/service/kendraranking/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/kendraranking/go_module_metadata.go b/service/kendraranking/go_module_metadata.go index 7569cd7a213..5eef01e06ac 100644 --- a/service/kendraranking/go_module_metadata.go +++ b/service/kendraranking/go_module_metadata.go @@ -3,4 +3,4 @@ package kendraranking // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.11.5" +const goModuleVersion = "1.11.6" diff --git a/service/keyspaces/CHANGELOG.md b/service/keyspaces/CHANGELOG.md index cdee75da3ed..3c098aa32ce 100644 --- a/service/keyspaces/CHANGELOG.md +++ b/service/keyspaces/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.16.0 (2024-11-19) + +* **Feature**: Amazon Keyspaces Multi-Region Replication: Adds support to add new regions to multi and single-region keyspaces. + +# v1.15.3 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.15.2 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/keyspaces/api_op_CreateType.go b/service/keyspaces/api_op_CreateType.go index d32c58d9ca1..39d101f84dd 100644 --- a/service/keyspaces/api_op_CreateType.go +++ b/service/keyspaces/api_op_CreateType.go @@ -15,9 +15,13 @@ import ( // // keyspace. // +// To configure the required permissions, see [Permissions to create a UDT] in the Amazon Keyspaces Developer +// Guide. +// // For more information, see [User-defined types (UDTs)] in the Amazon Keyspaces Developer Guide. // // [User-defined types (UDTs)]: https://docs.aws.amazon.com/keyspaces/latest/devguide/udts.html +// [Permissions to create a UDT]: https://docs.aws.amazon.com/keyspaces/latest/devguide/configure-udt-permissions.html#udt-permissions-create func (c *Client) CreateType(ctx context.Context, params *CreateTypeInput, optFns ...func(*Options)) (*CreateTypeOutput, error) { if params == nil { params = &CreateTypeInput{} diff --git a/service/keyspaces/api_op_DeleteType.go b/service/keyspaces/api_op_DeleteType.go index be7fc963a68..eda233d594b 100644 --- a/service/keyspaces/api_op_DeleteType.go +++ b/service/keyspaces/api_op_DeleteType.go @@ -13,6 +13,11 @@ import ( // The DeleteType operation deletes a user-defined type (UDT). You can only // // delete a type that is not used in a table or another UDT. +// +// To configure the required permissions, see [Permissions to delete a UDT] in the Amazon Keyspaces Developer +// Guide. +// +// [Permissions to delete a UDT]: https://docs.aws.amazon.com/keyspaces/latest/devguide/configure-udt-permissions.html#udt-permissions-drop func (c *Client) DeleteType(ctx context.Context, params *DeleteTypeInput, optFns ...func(*Options)) (*DeleteTypeOutput, error) { if params == nil { params = &DeleteTypeInput{} diff --git a/service/keyspaces/api_op_GetKeyspace.go b/service/keyspaces/api_op_GetKeyspace.go index 880d58bc095..5ec3f76ebc5 100644 --- a/service/keyspaces/api_op_GetKeyspace.go +++ b/service/keyspaces/api_op_GetKeyspace.go @@ -11,7 +11,10 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the name and the Amazon Resource Name (ARN) of the specified table. +// Returns the name of the specified keyspace, the Amazon Resource Name (ARN), the +// replication strategy, the Amazon Web Services Regions of a multi-Region +// keyspace, and the status of newly added Regions after an UpdateKeyspace +// operation. func (c *Client) GetKeyspace(ctx context.Context, params *GetKeyspaceInput, optFns ...func(*Options)) (*GetKeyspaceOutput, error) { if params == nil { params = &GetKeyspaceInput{} @@ -55,6 +58,10 @@ type GetKeyspaceOutput struct { // This member is required. ResourceArn *string + // A list of all Regions the keyspace is replicated in after the update keyspace + // operation and their status. + ReplicationGroupStatuses []types.ReplicationGroupStatus + // If the replicationStrategy of the keyspace is MULTI_REGION , a list of // replication Regions is returned. ReplicationRegions []string diff --git a/service/keyspaces/api_op_GetType.go b/service/keyspaces/api_op_GetType.go index 4a1f0d95e69..54c760cb624 100644 --- a/service/keyspaces/api_op_GetType.go +++ b/service/keyspaces/api_op_GetType.go @@ -19,7 +19,10 @@ import ( // tables. // // To read keyspace metadata using GetType , the IAM principal needs Select action -// permissions for the system keyspace. +// permissions for the system keyspace. To configure the required permissions, see [Permissions to view a UDT] +// in the Amazon Keyspaces Developer Guide. +// +// [Permissions to view a UDT]: https://docs.aws.amazon.com/keyspaces/latest/devguide/configure-udt-permissions.html#udt-permissions-view func (c *Client) GetType(ctx context.Context, params *GetTypeInput, optFns ...func(*Options)) (*GetTypeOutput, error) { if params == nil { params = &GetTypeInput{} diff --git a/service/keyspaces/api_op_ListTypes.go b/service/keyspaces/api_op_ListTypes.go index 9ba7e6db049..ff76670a146 100644 --- a/service/keyspaces/api_op_ListTypes.go +++ b/service/keyspaces/api_op_ListTypes.go @@ -13,7 +13,10 @@ import ( // The ListTypes operation returns a list of types for a specified keyspace. // // To read keyspace metadata using ListTypes , the IAM principal needs Select -// action permissions for the system keyspace. +// action permissions for the system keyspace. To configure the required +// permissions, see [Permissions to view a UDT]in the Amazon Keyspaces Developer Guide. +// +// [Permissions to view a UDT]: https://docs.aws.amazon.com/keyspaces/latest/devguide/configure-udt-permissions.html#udt-permissions-view func (c *Client) ListTypes(ctx context.Context, params *ListTypesInput, optFns ...func(*Options)) (*ListTypesOutput, error) { if params == nil { params = &ListTypesInput{} diff --git a/service/keyspaces/api_op_UpdateKeyspace.go b/service/keyspaces/api_op_UpdateKeyspace.go new file mode 100644 index 00000000000..cd96819341e --- /dev/null +++ b/service/keyspaces/api_op_UpdateKeyspace.go @@ -0,0 +1,188 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package keyspaces + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/keyspaces/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Adds a new Amazon Web Services Region to the keyspace. You can add a new +// +// Region to a keyspace that is either a single or a multi-Region keyspace. The new +// replica Region is applied to all tables in the keyspace. For more information, +// see [Add an Amazon Web Services Region to a keyspace in Amazon Keyspaces]in the Amazon Keyspaces Developer Guide. +// +// To change a single-Region to a multi-Region keyspace, you have to enable +// client-side timestamps for all tables in the keyspace. For more information, see +// [Client-side timestamps in Amazon Keyspaces]in the Amazon Keyspaces Developer Guide. +// +// [Client-side timestamps in Amazon Keyspaces]: https://docs.aws.amazon.com/keyspaces/latest/devguide/client-side-timestamps.html +// [Add an Amazon Web Services Region to a keyspace in Amazon Keyspaces]: https://docs.aws.amazon.com/keyspaces/latest/devguide/keyspaces-multi-region-add-replica.html +func (c *Client) UpdateKeyspace(ctx context.Context, params *UpdateKeyspaceInput, optFns ...func(*Options)) (*UpdateKeyspaceOutput, error) { + if params == nil { + params = &UpdateKeyspaceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateKeyspace", params, optFns, c.addOperationUpdateKeyspaceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateKeyspaceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateKeyspaceInput struct { + + // The name of the keyspace. + // + // This member is required. + KeyspaceName *string + + // The replication specification of the keyspace includes: + // + // - regionList - up to six Amazon Web Services Regions where the keyspace is + // replicated in. + // + // - replicationStrategy - the required value is SINGLE_REGION or MULTI_REGION . + // + // This member is required. + ReplicationSpecification *types.ReplicationSpecification + + // The client-side timestamp setting of the table. + // + // For more information, see [How it works: Amazon Keyspaces client-side timestamps] in the Amazon Keyspaces Developer Guide. + // + // [How it works: Amazon Keyspaces client-side timestamps]: https://docs.aws.amazon.com/keyspaces/latest/devguide/client-side-timestamps-how-it-works.html + ClientSideTimestamps *types.ClientSideTimestamps + + noSmithyDocumentSerde +} + +type UpdateKeyspaceOutput struct { + + // The unique identifier of the keyspace in the format of an Amazon Resource Name + // (ARN). + // + // This member is required. + ResourceArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateKeyspaceMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson10_serializeOpUpdateKeyspace{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpUpdateKeyspace{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateKeyspace"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpUpdateKeyspaceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateKeyspace(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateKeyspace(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "UpdateKeyspace", + } +} diff --git a/service/keyspaces/deserializers.go b/service/keyspaces/deserializers.go index 7c1b2984be0..6588f3cc9b9 100644 --- a/service/keyspaces/deserializers.go +++ b/service/keyspaces/deserializers.go @@ -2145,6 +2145,132 @@ func awsAwsjson10_deserializeOpErrorUntagResource(response *smithyhttp.Response, } } +type awsAwsjson10_deserializeOpUpdateKeyspace struct { +} + +func (*awsAwsjson10_deserializeOpUpdateKeyspace) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpUpdateKeyspace) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorUpdateKeyspace(response, &metadata) + } + output := &UpdateKeyspaceOutput{} + 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_deserializeOpDocumentUpdateKeyspaceOutput(&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_deserializeOpErrorUpdateKeyspace(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + bodyInfo, err := getProtocolErrorInfo(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 typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok { + errorCode = restjson.SanitizeErrorCode(typ) + } + if len(bodyInfo.Message) != 0 { + errorMessage = bodyInfo.Message + } + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) + + 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("ServiceQuotaExceededException", errorCode): + return awsAwsjson10_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsAwsjson10_deserializeOpUpdateTable struct { } @@ -3639,6 +3765,98 @@ func awsAwsjson10_deserializeDocumentReplicaSpecificationSummaryList(v *[]types. return nil } +func awsAwsjson10_deserializeDocumentReplicationGroupStatus(v **types.ReplicationGroupStatus, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.ReplicationGroupStatus + if *v == nil { + sv = &types.ReplicationGroupStatus{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "keyspaceStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected KeyspaceStatus to be of type string, got %T instead", value) + } + sv.KeyspaceStatus = types.KeyspaceStatus(jtv) + } + + case "region": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected region to be of type string, got %T instead", value) + } + sv.Region = ptr.String(jtv) + } + + case "tablesReplicationProgress": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TablesReplicationProgress to be of type string, got %T instead", value) + } + sv.TablesReplicationProgress = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentReplicationGroupStatusList(v *[]types.ReplicationGroupStatus, 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.ReplicationGroupStatus + if *v == nil { + cv = []types.ReplicationGroupStatus{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ReplicationGroupStatus + destAddr := &col + if err := awsAwsjson10_deserializeDocumentReplicationGroupStatus(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -4551,6 +4769,11 @@ func awsAwsjson10_deserializeOpDocumentGetKeyspaceOutput(v **GetKeyspaceOutput, sv.KeyspaceName = ptr.String(jtv) } + case "replicationGroupStatuses": + if err := awsAwsjson10_deserializeDocumentReplicationGroupStatusList(&sv.ReplicationGroupStatuses, value); err != nil { + return err + } + case "replicationRegions": if err := awsAwsjson10_deserializeDocumentRegionList(&sv.ReplicationRegions, value); err != nil { return err @@ -5180,6 +5403,46 @@ func awsAwsjson10_deserializeOpDocumentUntagResourceOutput(v **UntagResourceOutp return nil } +func awsAwsjson10_deserializeOpDocumentUpdateKeyspaceOutput(v **UpdateKeyspaceOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateKeyspaceOutput + if *v == nil { + sv = &UpdateKeyspaceOutput{} + } 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 ARN to be of type string, got %T instead", value) + } + sv.ResourceArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson10_deserializeOpDocumentUpdateTableOutput(v **UpdateTableOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/keyspaces/generated.json b/service/keyspaces/generated.json index 7dd26df5318..ca2865cd7c0 100644 --- a/service/keyspaces/generated.json +++ b/service/keyspaces/generated.json @@ -25,6 +25,7 @@ "api_op_RestoreTable.go", "api_op_TagResource.go", "api_op_UntagResource.go", + "api_op_UpdateKeyspace.go", "api_op_UpdateTable.go", "auth.go", "deserializers.go", diff --git a/service/keyspaces/go.mod b/service/keyspaces/go.mod index 886078ef73e..e3d81bd9523 100644 --- a/service/keyspaces/go.mod +++ b/service/keyspaces/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/keyspaces go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/keyspaces/go.sum b/service/keyspaces/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/keyspaces/go.sum +++ b/service/keyspaces/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/keyspaces/go_module_metadata.go b/service/keyspaces/go_module_metadata.go index 062e1feb758..0276c061f55 100644 --- a/service/keyspaces/go_module_metadata.go +++ b/service/keyspaces/go_module_metadata.go @@ -3,4 +3,4 @@ package keyspaces // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.15.2" +const goModuleVersion = "1.16.0" diff --git a/service/keyspaces/serializers.go b/service/keyspaces/serializers.go index 22dba837868..0fb4bbebca7 100644 --- a/service/keyspaces/serializers.go +++ b/service/keyspaces/serializers.go @@ -1055,6 +1055,67 @@ func (m *awsAwsjson10_serializeOpUntagResource) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } +type awsAwsjson10_serializeOpUpdateKeyspace struct { +} + +func (*awsAwsjson10_serializeOpUpdateKeyspace) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpUpdateKeyspace) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*UpdateKeyspaceInput) + _ = 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("KeyspacesService.UpdateKeyspace") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentUpdateKeyspaceInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + type awsAwsjson10_serializeOpUpdateTable struct { } @@ -2024,6 +2085,32 @@ func awsAwsjson10_serializeOpDocumentUntagResourceInput(v *UntagResourceInput, v return nil } +func awsAwsjson10_serializeOpDocumentUpdateKeyspaceInput(v *UpdateKeyspaceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientSideTimestamps != nil { + ok := object.Key("clientSideTimestamps") + if err := awsAwsjson10_serializeDocumentClientSideTimestamps(v.ClientSideTimestamps, ok); err != nil { + return err + } + } + + if v.KeyspaceName != nil { + ok := object.Key("keyspaceName") + ok.String(*v.KeyspaceName) + } + + if v.ReplicationSpecification != nil { + ok := object.Key("replicationSpecification") + if err := awsAwsjson10_serializeDocumentReplicationSpecification(v.ReplicationSpecification, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson10_serializeOpDocumentUpdateTableInput(v *UpdateTableInput, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/keyspaces/snapshot/api_op_UpdateKeyspace.go.snap b/service/keyspaces/snapshot/api_op_UpdateKeyspace.go.snap new file mode 100644 index 00000000000..9bbaa29094c --- /dev/null +++ b/service/keyspaces/snapshot/api_op_UpdateKeyspace.go.snap @@ -0,0 +1,41 @@ +UpdateKeyspace + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/keyspaces/snapshot_test.go b/service/keyspaces/snapshot_test.go index 32acd8f6f4a..09d2c0c0fd0 100644 --- a/service/keyspaces/snapshot_test.go +++ b/service/keyspaces/snapshot_test.go @@ -266,6 +266,18 @@ func TestCheckSnapshot_UntagResource(t *testing.T) { } } +func TestCheckSnapshot_UpdateKeyspace(t *testing.T) { + svc := New(Options{}) + _, err := svc.UpdateKeyspace(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "UpdateKeyspace") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_UpdateTable(t *testing.T) { svc := New(Options{}) _, err := svc.UpdateTable(context.Background(), nil, func(o *Options) { @@ -481,6 +493,18 @@ func TestUpdateSnapshot_UntagResource(t *testing.T) { } } +func TestUpdateSnapshot_UpdateKeyspace(t *testing.T) { + svc := New(Options{}) + _, err := svc.UpdateKeyspace(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "UpdateKeyspace") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_UpdateTable(t *testing.T) { svc := New(Options{}) _, err := svc.UpdateTable(context.Background(), nil, func(o *Options) { diff --git a/service/keyspaces/types/enums.go b/service/keyspaces/types/enums.go index 1b3db8566ad..0e019aac7e9 100644 --- a/service/keyspaces/types/enums.go +++ b/service/keyspaces/types/enums.go @@ -38,6 +38,29 @@ func (EncryptionType) Values() []EncryptionType { } } +type KeyspaceStatus string + +// Enum values for KeyspaceStatus +const ( + KeyspaceStatusActive KeyspaceStatus = "ACTIVE" + KeyspaceStatusCreating KeyspaceStatus = "CREATING" + KeyspaceStatusUpdating KeyspaceStatus = "UPDATING" + KeyspaceStatusDeleting KeyspaceStatus = "DELETING" +) + +// Values returns all known values for KeyspaceStatus. 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 (KeyspaceStatus) Values() []KeyspaceStatus { + return []KeyspaceStatus{ + "ACTIVE", + "CREATING", + "UPDATING", + "DELETING", + } +} + type PointInTimeRecoveryStatus string // Enum values for PointInTimeRecoveryStatus diff --git a/service/keyspaces/types/types.go b/service/keyspaces/types/types.go index fde02bb0686..e3bfe08663d 100644 --- a/service/keyspaces/types/types.go +++ b/service/keyspaces/types/types.go @@ -468,6 +468,29 @@ type ReplicaSpecificationSummary struct { noSmithyDocumentSerde } +// This shows the summary status of the keyspace after a new Amazon Web Services +// +// Region was added. +type ReplicationGroupStatus struct { + + // The status of the keyspace. + // + // This member is required. + KeyspaceStatus KeyspaceStatus + + // The name of the Region that was added to the keyspace. + // + // This member is required. + Region *string + + // This shows the replication progress of tables in the keyspace. The value is + // expressed as a percentage of the newly replicated tables with status Active + // compared to the total number of tables in the keyspace. + TablesReplicationProgress *string + + noSmithyDocumentSerde +} + // The replication specification of the keyspace includes: // // - regionList - up to six Amazon Web Services Regions where the keyspace is diff --git a/service/keyspaces/validators.go b/service/keyspaces/validators.go index 76adefc2103..889d97d8904 100644 --- a/service/keyspaces/validators.go +++ b/service/keyspaces/validators.go @@ -330,6 +330,26 @@ func (m *validateOpUntagResource) HandleInitialize(ctx context.Context, in middl return next.HandleInitialize(ctx, in) } +type validateOpUpdateKeyspace struct { +} + +func (*validateOpUpdateKeyspace) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateKeyspace) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateKeyspaceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateKeyspaceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpUpdateTable struct { } @@ -414,6 +434,10 @@ func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After) } +func addOpUpdateKeyspaceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateKeyspace{}, middleware.After) +} + func addOpUpdateTableValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateTable{}, middleware.After) } @@ -1251,6 +1275,33 @@ func validateOpUntagResourceInput(v *UntagResourceInput) error { } } +func validateOpUpdateKeyspaceInput(v *UpdateKeyspaceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateKeyspaceInput"} + if v.KeyspaceName == nil { + invalidParams.Add(smithy.NewErrParamRequired("KeyspaceName")) + } + if v.ReplicationSpecification == nil { + invalidParams.Add(smithy.NewErrParamRequired("ReplicationSpecification")) + } else if v.ReplicationSpecification != nil { + if err := validateReplicationSpecification(v.ReplicationSpecification); err != nil { + invalidParams.AddNested("ReplicationSpecification", err.(smithy.InvalidParamsError)) + } + } + if v.ClientSideTimestamps != nil { + if err := validateClientSideTimestamps(v.ClientSideTimestamps); err != nil { + invalidParams.AddNested("ClientSideTimestamps", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpUpdateTableInput(v *UpdateTableInput) error { if v == nil { return nil diff --git a/service/kinesis/CHANGELOG.md b/service/kinesis/CHANGELOG.md index 242c31a311f..3ae9a24903d 100644 --- a/service/kinesis/CHANGELOG.md +++ b/service/kinesis/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.32.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.32.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/kinesis/go.mod b/service/kinesis/go.mod index 2c86fc90bca..36f002005bf 100644 --- a/service/kinesis/go.mod +++ b/service/kinesis/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/kinesis go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.6 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.7 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/kinesis/go.sum b/service/kinesis/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/kinesis/go.sum +++ b/service/kinesis/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/kinesis/go_module_metadata.go b/service/kinesis/go_module_metadata.go index 617cf326eb4..b310df0949e 100644 --- a/service/kinesis/go_module_metadata.go +++ b/service/kinesis/go_module_metadata.go @@ -3,4 +3,4 @@ package kinesis // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.32.5" +const goModuleVersion = "1.32.6" diff --git a/service/kinesis/internal/testing/go.mod b/service/kinesis/internal/testing/go.mod index 9a33361193c..11401cd6c75 100644 --- a/service/kinesis/internal/testing/go.mod +++ b/service/kinesis/internal/testing/go.mod @@ -3,17 +3,17 @@ module github.com/aws/aws-sdk-go-v2/service/kinesis/internal/testing go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.6 - github.com/aws/aws-sdk-go-v2/service/internal/eventstreamtesting v1.5.6 - github.com/aws/aws-sdk-go-v2/service/kinesis v1.32.5 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.7 + github.com/aws/aws-sdk-go-v2/service/internal/eventstreamtesting v1.5.7 + github.com/aws/aws-sdk-go-v2/service/kinesis v1.32.6 + github.com/aws/smithy-go v1.22.1 ) require ( - github.com/aws/aws-sdk-go-v2/credentials v1.17.45 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.17.46 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect ) diff --git a/service/kinesis/internal/testing/go.sum b/service/kinesis/internal/testing/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/kinesis/internal/testing/go.sum +++ b/service/kinesis/internal/testing/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/kinesisanalytics/CHANGELOG.md b/service/kinesisanalytics/CHANGELOG.md index 95cca4d50e4..93651b72f60 100644 --- a/service/kinesisanalytics/CHANGELOG.md +++ b/service/kinesisanalytics/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.25.7 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.6 (2024-11-12) * No change notes available for this release. diff --git a/service/kinesisanalytics/go.mod b/service/kinesisanalytics/go.mod index 2554f39ed38..01b06beae3f 100644 --- a/service/kinesisanalytics/go.mod +++ b/service/kinesisanalytics/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisanalytics go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisanalytics/go.sum b/service/kinesisanalytics/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/kinesisanalytics/go.sum +++ b/service/kinesisanalytics/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/kinesisanalytics/go_module_metadata.go b/service/kinesisanalytics/go_module_metadata.go index fcb2749b86c..55c0a77273f 100644 --- a/service/kinesisanalytics/go_module_metadata.go +++ b/service/kinesisanalytics/go_module_metadata.go @@ -3,4 +3,4 @@ package kinesisanalytics // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.6" +const goModuleVersion = "1.25.7" diff --git a/service/kinesisanalyticsv2/CHANGELOG.md b/service/kinesisanalyticsv2/CHANGELOG.md index 4e3e8199788..5faf72ed1b1 100644 --- a/service/kinesisanalyticsv2/CHANGELOG.md +++ b/service/kinesisanalyticsv2/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.31.7 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.31.6 (2024-11-12) * No change notes available for this release. diff --git a/service/kinesisanalyticsv2/go.mod b/service/kinesisanalyticsv2/go.mod index 41c201c9bfb..b50be532e1a 100644 --- a/service/kinesisanalyticsv2/go.mod +++ b/service/kinesisanalyticsv2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisanalyticsv2 go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisanalyticsv2/go.sum b/service/kinesisanalyticsv2/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/kinesisanalyticsv2/go.sum +++ b/service/kinesisanalyticsv2/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/kinesisanalyticsv2/go_module_metadata.go b/service/kinesisanalyticsv2/go_module_metadata.go index 3b6ccf4de68..2162d59735e 100644 --- a/service/kinesisanalyticsv2/go_module_metadata.go +++ b/service/kinesisanalyticsv2/go_module_metadata.go @@ -3,4 +3,4 @@ package kinesisanalyticsv2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.31.6" +const goModuleVersion = "1.31.7" diff --git a/service/kinesisvideo/CHANGELOG.md b/service/kinesisvideo/CHANGELOG.md index efdfc49f03c..81d91ef2012 100644 --- a/service/kinesisvideo/CHANGELOG.md +++ b/service/kinesisvideo/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/kinesisvideo/go.mod b/service/kinesisvideo/go.mod index 1dcfb2f0ef8..944b137c7bf 100644 --- a/service/kinesisvideo/go.mod +++ b/service/kinesisvideo/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisvideo go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisvideo/go.sum b/service/kinesisvideo/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/kinesisvideo/go.sum +++ b/service/kinesisvideo/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/kinesisvideo/go_module_metadata.go b/service/kinesisvideo/go_module_metadata.go index 90947c76061..8c552ac4c59 100644 --- a/service/kinesisvideo/go_module_metadata.go +++ b/service/kinesisvideo/go_module_metadata.go @@ -3,4 +3,4 @@ package kinesisvideo // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.5" +const goModuleVersion = "1.27.6" diff --git a/service/kinesisvideoarchivedmedia/CHANGELOG.md b/service/kinesisvideoarchivedmedia/CHANGELOG.md index e0de77a7909..bbeb38828b9 100644 --- a/service/kinesisvideoarchivedmedia/CHANGELOG.md +++ b/service/kinesisvideoarchivedmedia/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/kinesisvideoarchivedmedia/go.mod b/service/kinesisvideoarchivedmedia/go.mod index c1b6f8e7f5d..47c7c78060a 100644 --- a/service/kinesisvideoarchivedmedia/go.mod +++ b/service/kinesisvideoarchivedmedia/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisvideoarchivedmedia go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisvideoarchivedmedia/go.sum b/service/kinesisvideoarchivedmedia/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/kinesisvideoarchivedmedia/go.sum +++ b/service/kinesisvideoarchivedmedia/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/kinesisvideoarchivedmedia/go_module_metadata.go b/service/kinesisvideoarchivedmedia/go_module_metadata.go index da68746e08b..a47e466043d 100644 --- a/service/kinesisvideoarchivedmedia/go_module_metadata.go +++ b/service/kinesisvideoarchivedmedia/go_module_metadata.go @@ -3,4 +3,4 @@ package kinesisvideoarchivedmedia // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.5" +const goModuleVersion = "1.27.6" diff --git a/service/kinesisvideomedia/CHANGELOG.md b/service/kinesisvideomedia/CHANGELOG.md index cdcd78af243..1814ead52bb 100644 --- a/service/kinesisvideomedia/CHANGELOG.md +++ b/service/kinesisvideomedia/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.22.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/kinesisvideomedia/go.mod b/service/kinesisvideomedia/go.mod index 05d5ad937b4..b4b4b9732fc 100644 --- a/service/kinesisvideomedia/go.mod +++ b/service/kinesisvideomedia/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisvideomedia go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisvideomedia/go.sum b/service/kinesisvideomedia/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/kinesisvideomedia/go.sum +++ b/service/kinesisvideomedia/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/kinesisvideomedia/go_module_metadata.go b/service/kinesisvideomedia/go_module_metadata.go index 137f1529aa9..57eb4398df4 100644 --- a/service/kinesisvideomedia/go_module_metadata.go +++ b/service/kinesisvideomedia/go_module_metadata.go @@ -3,4 +3,4 @@ package kinesisvideomedia // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.5" +const goModuleVersion = "1.22.6" diff --git a/service/kinesisvideosignaling/CHANGELOG.md b/service/kinesisvideosignaling/CHANGELOG.md index 727209e4fe3..c96da9c76df 100644 --- a/service/kinesisvideosignaling/CHANGELOG.md +++ b/service/kinesisvideosignaling/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.23.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/kinesisvideosignaling/go.mod b/service/kinesisvideosignaling/go.mod index 4a139f316ad..3aa12b9e4d5 100644 --- a/service/kinesisvideosignaling/go.mod +++ b/service/kinesisvideosignaling/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisvideosignaling go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisvideosignaling/go.sum b/service/kinesisvideosignaling/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/kinesisvideosignaling/go.sum +++ b/service/kinesisvideosignaling/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/kinesisvideosignaling/go_module_metadata.go b/service/kinesisvideosignaling/go_module_metadata.go index e2485b459ca..9aba385c2be 100644 --- a/service/kinesisvideosignaling/go_module_metadata.go +++ b/service/kinesisvideosignaling/go_module_metadata.go @@ -3,4 +3,4 @@ package kinesisvideosignaling // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.5" +const goModuleVersion = "1.23.6" diff --git a/service/kinesisvideowebrtcstorage/CHANGELOG.md b/service/kinesisvideowebrtcstorage/CHANGELOG.md index aaa014e1d74..8763b94c2c7 100644 --- a/service/kinesisvideowebrtcstorage/CHANGELOG.md +++ b/service/kinesisvideowebrtcstorage/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.14.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.14.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/kinesisvideowebrtcstorage/go.mod b/service/kinesisvideowebrtcstorage/go.mod index 2c26cb4b3ce..8bebc90378c 100644 --- a/service/kinesisvideowebrtcstorage/go.mod +++ b/service/kinesisvideowebrtcstorage/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisvideowebrtcstorage go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kinesisvideowebrtcstorage/go.sum b/service/kinesisvideowebrtcstorage/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/kinesisvideowebrtcstorage/go.sum +++ b/service/kinesisvideowebrtcstorage/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/kinesisvideowebrtcstorage/go_module_metadata.go b/service/kinesisvideowebrtcstorage/go_module_metadata.go index e987163c9a3..879222d5839 100644 --- a/service/kinesisvideowebrtcstorage/go_module_metadata.go +++ b/service/kinesisvideowebrtcstorage/go_module_metadata.go @@ -3,4 +3,4 @@ package kinesisvideowebrtcstorage // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.14.5" +const goModuleVersion = "1.14.6" diff --git a/service/kms/CHANGELOG.md b/service/kms/CHANGELOG.md index 05b46e94472..0ce8f0584ec 100644 --- a/service/kms/CHANGELOG.md +++ b/service/kms/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.37.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.37.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/kms/go.mod b/service/kms/go.mod index dacaaf86d57..db0fca57ef3 100644 --- a/service/kms/go.mod +++ b/service/kms/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kms go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/kms/go.sum b/service/kms/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/kms/go.sum +++ b/service/kms/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/kms/go_module_metadata.go b/service/kms/go_module_metadata.go index 1e376975a1d..7ed577ac411 100644 --- a/service/kms/go_module_metadata.go +++ b/service/kms/go_module_metadata.go @@ -3,4 +3,4 @@ package kms // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.37.5" +const goModuleVersion = "1.37.6" diff --git a/service/lakeformation/CHANGELOG.md b/service/lakeformation/CHANGELOG.md index 32fd2971260..a3fc7269f32 100644 --- a/service/lakeformation/CHANGELOG.md +++ b/service/lakeformation/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.38.3 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.38.2 (2024-11-15) * No change notes available for this release. diff --git a/service/lakeformation/go.mod b/service/lakeformation/go.mod index b7b6ab9629a..41a46589160 100644 --- a/service/lakeformation/go.mod +++ b/service/lakeformation/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/lakeformation go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lakeformation/go.sum b/service/lakeformation/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/lakeformation/go.sum +++ b/service/lakeformation/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/lakeformation/go_module_metadata.go b/service/lakeformation/go_module_metadata.go index 7e3e27d38f9..6b13f13ab3f 100644 --- a/service/lakeformation/go_module_metadata.go +++ b/service/lakeformation/go_module_metadata.go @@ -3,4 +3,4 @@ package lakeformation // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.38.2" +const goModuleVersion = "1.38.3" diff --git a/service/lambda/CHANGELOG.md b/service/lambda/CHANGELOG.md index 33de6778ea6..8d6fdb8d871 100644 --- a/service/lambda/CHANGELOG.md +++ b/service/lambda/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.67.0 (2024-11-20) + +* **Feature**: Add Node 22.x (node22.x) support to AWS Lambda + +# v1.66.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.66.0 (2024-11-11) * **Feature**: Add Python 3.13 (python3.13) support to AWS Lambda diff --git a/service/lambda/go.mod b/service/lambda/go.mod index e6b8a958722..dd5bfc6d8b1 100644 --- a/service/lambda/go.mod +++ b/service/lambda/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/lambda go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.6 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.7 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/lambda/go.sum b/service/lambda/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/lambda/go.sum +++ b/service/lambda/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/lambda/go_module_metadata.go b/service/lambda/go_module_metadata.go index 52f11979873..b3b89af5e92 100644 --- a/service/lambda/go_module_metadata.go +++ b/service/lambda/go_module_metadata.go @@ -3,4 +3,4 @@ package lambda // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.66.0" +const goModuleVersion = "1.67.0" diff --git a/service/lambda/types/enums.go b/service/lambda/types/enums.go index 0541d3be93e..a0df67f42b2 100644 --- a/service/lambda/types/enums.go +++ b/service/lambda/types/enums.go @@ -456,6 +456,7 @@ const ( RuntimePython312 Runtime = "python3.12" RuntimeJava21 Runtime = "java21" RuntimePython313 Runtime = "python3.13" + RuntimeNodejs22x Runtime = "nodejs22.x" ) // Values returns all known values for Runtime. Note that this can be expanded in @@ -503,6 +504,7 @@ func (Runtime) Values() []Runtime { "python3.12", "java21", "python3.13", + "nodejs22.x", } } diff --git a/service/launchwizard/CHANGELOG.md b/service/launchwizard/CHANGELOG.md index 425c0697a03..36e32fc8d8e 100644 --- a/service/launchwizard/CHANGELOG.md +++ b/service/launchwizard/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.8.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.8.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/launchwizard/go.mod b/service/launchwizard/go.mod index 1c501475d49..61a46229cf3 100644 --- a/service/launchwizard/go.mod +++ b/service/launchwizard/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/launchwizard go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/launchwizard/go.sum b/service/launchwizard/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/launchwizard/go.sum +++ b/service/launchwizard/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/launchwizard/go_module_metadata.go b/service/launchwizard/go_module_metadata.go index 57d548320fa..50308ecbeec 100644 --- a/service/launchwizard/go_module_metadata.go +++ b/service/launchwizard/go_module_metadata.go @@ -3,4 +3,4 @@ package launchwizard // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.8.5" +const goModuleVersion = "1.8.6" diff --git a/service/lexmodelbuildingservice/CHANGELOG.md b/service/lexmodelbuildingservice/CHANGELOG.md index 62d3dd90b06..a8dd71578f0 100644 --- a/service/lexmodelbuildingservice/CHANGELOG.md +++ b/service/lexmodelbuildingservice/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.28.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/lexmodelbuildingservice/go.mod b/service/lexmodelbuildingservice/go.mod index 28160cdb831..995f9798b2c 100644 --- a/service/lexmodelbuildingservice/go.mod +++ b/service/lexmodelbuildingservice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/lexmodelbuildingservice go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lexmodelbuildingservice/go.sum b/service/lexmodelbuildingservice/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/lexmodelbuildingservice/go.sum +++ b/service/lexmodelbuildingservice/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/lexmodelbuildingservice/go_module_metadata.go b/service/lexmodelbuildingservice/go_module_metadata.go index b180a7b1dd7..8216b6d5a96 100644 --- a/service/lexmodelbuildingservice/go_module_metadata.go +++ b/service/lexmodelbuildingservice/go_module_metadata.go @@ -3,4 +3,4 @@ package lexmodelbuildingservice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.5" +const goModuleVersion = "1.28.6" diff --git a/service/lexmodelsv2/CHANGELOG.md b/service/lexmodelsv2/CHANGELOG.md index 1cac3855446..a115efc409d 100644 --- a/service/lexmodelsv2/CHANGELOG.md +++ b/service/lexmodelsv2/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.49.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.49.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/lexmodelsv2/go.mod b/service/lexmodelsv2/go.mod index c8026db44ce..0fe4604db6a 100644 --- a/service/lexmodelsv2/go.mod +++ b/service/lexmodelsv2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/lexmodelsv2 go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/lexmodelsv2/go.sum b/service/lexmodelsv2/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/lexmodelsv2/go.sum +++ b/service/lexmodelsv2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/lexmodelsv2/go_module_metadata.go b/service/lexmodelsv2/go_module_metadata.go index fff67c01232..ea920e6f5f8 100644 --- a/service/lexmodelsv2/go_module_metadata.go +++ b/service/lexmodelsv2/go_module_metadata.go @@ -3,4 +3,4 @@ package lexmodelsv2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.49.5" +const goModuleVersion = "1.49.6" diff --git a/service/lexruntimeservice/CHANGELOG.md b/service/lexruntimeservice/CHANGELOG.md index 70f3f2ef893..4f91e87862e 100644 --- a/service/lexruntimeservice/CHANGELOG.md +++ b/service/lexruntimeservice/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.24.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/lexruntimeservice/go.mod b/service/lexruntimeservice/go.mod index b2ff57c3acc..05695a197d1 100644 --- a/service/lexruntimeservice/go.mod +++ b/service/lexruntimeservice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/lexruntimeservice go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lexruntimeservice/go.sum b/service/lexruntimeservice/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/lexruntimeservice/go.sum +++ b/service/lexruntimeservice/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/lexruntimeservice/go_module_metadata.go b/service/lexruntimeservice/go_module_metadata.go index db7c6c0ed6d..6a95ba6b5fc 100644 --- a/service/lexruntimeservice/go_module_metadata.go +++ b/service/lexruntimeservice/go_module_metadata.go @@ -3,4 +3,4 @@ package lexruntimeservice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.5" +const goModuleVersion = "1.24.6" diff --git a/service/lexruntimev2/CHANGELOG.md b/service/lexruntimev2/CHANGELOG.md index 24e82ed9bcc..c1f34890e84 100644 --- a/service/lexruntimev2/CHANGELOG.md +++ b/service/lexruntimev2/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.29.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.29.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/lexruntimev2/go.mod b/service/lexruntimev2/go.mod index b713c2878d7..15606a237c0 100644 --- a/service/lexruntimev2/go.mod +++ b/service/lexruntimev2/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/lexruntimev2 go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.6 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.7 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lexruntimev2/go.sum b/service/lexruntimev2/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/lexruntimev2/go.sum +++ b/service/lexruntimev2/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/lexruntimev2/go_module_metadata.go b/service/lexruntimev2/go_module_metadata.go index 979cd5568f5..8d59e51205b 100644 --- a/service/lexruntimev2/go_module_metadata.go +++ b/service/lexruntimev2/go_module_metadata.go @@ -3,4 +3,4 @@ package lexruntimev2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.29.5" +const goModuleVersion = "1.29.6" diff --git a/service/licensemanager/CHANGELOG.md b/service/licensemanager/CHANGELOG.md index 8479c8ee162..081386cda58 100644 --- a/service/licensemanager/CHANGELOG.md +++ b/service/licensemanager/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.29.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.29.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/licensemanager/go.mod b/service/licensemanager/go.mod index 7fbcdf48723..6975c36cae9 100644 --- a/service/licensemanager/go.mod +++ b/service/licensemanager/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/licensemanager go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/licensemanager/go.sum b/service/licensemanager/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/licensemanager/go.sum +++ b/service/licensemanager/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/licensemanager/go_module_metadata.go b/service/licensemanager/go_module_metadata.go index f700588bcd5..1a3746c3a98 100644 --- a/service/licensemanager/go_module_metadata.go +++ b/service/licensemanager/go_module_metadata.go @@ -3,4 +3,4 @@ package licensemanager // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.29.5" +const goModuleVersion = "1.29.6" diff --git a/service/licensemanagerlinuxsubscriptions/CHANGELOG.md b/service/licensemanagerlinuxsubscriptions/CHANGELOG.md index 1ceb7ac3e4c..c3a2d349e88 100644 --- a/service/licensemanagerlinuxsubscriptions/CHANGELOG.md +++ b/service/licensemanagerlinuxsubscriptions/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.14.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.14.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/licensemanagerlinuxsubscriptions/go.mod b/service/licensemanagerlinuxsubscriptions/go.mod index aa135b45b90..0a80d7431a5 100644 --- a/service/licensemanagerlinuxsubscriptions/go.mod +++ b/service/licensemanagerlinuxsubscriptions/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/licensemanagerlinuxsubscriptions go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/licensemanagerlinuxsubscriptions/go.sum b/service/licensemanagerlinuxsubscriptions/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/licensemanagerlinuxsubscriptions/go.sum +++ b/service/licensemanagerlinuxsubscriptions/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/licensemanagerlinuxsubscriptions/go_module_metadata.go b/service/licensemanagerlinuxsubscriptions/go_module_metadata.go index 30cbca5e4a5..263ad90ec85 100644 --- a/service/licensemanagerlinuxsubscriptions/go_module_metadata.go +++ b/service/licensemanagerlinuxsubscriptions/go_module_metadata.go @@ -3,4 +3,4 @@ package licensemanagerlinuxsubscriptions // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.14.5" +const goModuleVersion = "1.14.6" diff --git a/service/licensemanagerusersubscriptions/CHANGELOG.md b/service/licensemanagerusersubscriptions/CHANGELOG.md index b69841b4a7e..c1a165f5fdf 100644 --- a/service/licensemanagerusersubscriptions/CHANGELOG.md +++ b/service/licensemanagerusersubscriptions/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.14.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.14.0 (2024-11-14) * **Feature**: New and updated API operations to support License Included User-based Subscription of Microsoft Remote Desktop Services (RDS). diff --git a/service/licensemanagerusersubscriptions/go.mod b/service/licensemanagerusersubscriptions/go.mod index 97f07bfa6db..c8f79e7016c 100644 --- a/service/licensemanagerusersubscriptions/go.mod +++ b/service/licensemanagerusersubscriptions/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/licensemanagerusersubscriptions go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/licensemanagerusersubscriptions/go.sum b/service/licensemanagerusersubscriptions/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/licensemanagerusersubscriptions/go.sum +++ b/service/licensemanagerusersubscriptions/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/licensemanagerusersubscriptions/go_module_metadata.go b/service/licensemanagerusersubscriptions/go_module_metadata.go index 3f26c1c46ac..dd8cb2f0271 100644 --- a/service/licensemanagerusersubscriptions/go_module_metadata.go +++ b/service/licensemanagerusersubscriptions/go_module_metadata.go @@ -3,4 +3,4 @@ package licensemanagerusersubscriptions // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.14.0" +const goModuleVersion = "1.14.1" diff --git a/service/lightsail/CHANGELOG.md b/service/lightsail/CHANGELOG.md index 0513e320c08..9e13c7bd1a4 100644 --- a/service/lightsail/CHANGELOG.md +++ b/service/lightsail/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.42.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.42.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/lightsail/go.mod b/service/lightsail/go.mod index 4d0accc6783..88bbf74b0e4 100644 --- a/service/lightsail/go.mod +++ b/service/lightsail/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/lightsail go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lightsail/go.sum b/service/lightsail/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/lightsail/go.sum +++ b/service/lightsail/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/lightsail/go_module_metadata.go b/service/lightsail/go_module_metadata.go index 436bb4f5dc6..5e02694e226 100644 --- a/service/lightsail/go_module_metadata.go +++ b/service/lightsail/go_module_metadata.go @@ -3,4 +3,4 @@ package lightsail // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.42.5" +const goModuleVersion = "1.42.6" diff --git a/service/location/CHANGELOG.md b/service/location/CHANGELOG.md index 2502103d23b..fa65bea8735 100644 --- a/service/location/CHANGELOG.md +++ b/service/location/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.42.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.42.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/location/go.mod b/service/location/go.mod index bb71cdd9335..fa95868be69 100644 --- a/service/location/go.mod +++ b/service/location/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/location go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/location/go.sum b/service/location/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/location/go.sum +++ b/service/location/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/location/go_module_metadata.go b/service/location/go_module_metadata.go index 49e26d97dac..81070de7586 100644 --- a/service/location/go_module_metadata.go +++ b/service/location/go_module_metadata.go @@ -3,4 +3,4 @@ package location // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.42.5" +const goModuleVersion = "1.42.6" diff --git a/service/lookoutequipment/CHANGELOG.md b/service/lookoutequipment/CHANGELOG.md index 4c5907b4871..2f4accdfd15 100644 --- a/service/lookoutequipment/CHANGELOG.md +++ b/service/lookoutequipment/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.30.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.30.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/lookoutequipment/go.mod b/service/lookoutequipment/go.mod index 37e0e4af92c..1ac11d5d093 100644 --- a/service/lookoutequipment/go.mod +++ b/service/lookoutequipment/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/lookoutequipment go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lookoutequipment/go.sum b/service/lookoutequipment/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/lookoutequipment/go.sum +++ b/service/lookoutequipment/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/lookoutequipment/go_module_metadata.go b/service/lookoutequipment/go_module_metadata.go index 2b2423f4de6..a6331777375 100644 --- a/service/lookoutequipment/go_module_metadata.go +++ b/service/lookoutequipment/go_module_metadata.go @@ -3,4 +3,4 @@ package lookoutequipment // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.30.5" +const goModuleVersion = "1.30.6" diff --git a/service/lookoutmetrics/CHANGELOG.md b/service/lookoutmetrics/CHANGELOG.md index 35007100711..980b6ad4093 100644 --- a/service/lookoutmetrics/CHANGELOG.md +++ b/service/lookoutmetrics/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.31.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.31.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/lookoutmetrics/go.mod b/service/lookoutmetrics/go.mod index fa54747af6b..c4bd18fcaf2 100644 --- a/service/lookoutmetrics/go.mod +++ b/service/lookoutmetrics/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/lookoutmetrics go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lookoutmetrics/go.sum b/service/lookoutmetrics/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/lookoutmetrics/go.sum +++ b/service/lookoutmetrics/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/lookoutmetrics/go_module_metadata.go b/service/lookoutmetrics/go_module_metadata.go index 2fe8ae541bc..1f214240aaa 100644 --- a/service/lookoutmetrics/go_module_metadata.go +++ b/service/lookoutmetrics/go_module_metadata.go @@ -3,4 +3,4 @@ package lookoutmetrics // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.31.5" +const goModuleVersion = "1.31.6" diff --git a/service/lookoutvision/CHANGELOG.md b/service/lookoutvision/CHANGELOG.md index 18b11481139..1b2cb9d63b9 100644 --- a/service/lookoutvision/CHANGELOG.md +++ b/service/lookoutvision/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/lookoutvision/go.mod b/service/lookoutvision/go.mod index 363da56a031..62012fb186d 100644 --- a/service/lookoutvision/go.mod +++ b/service/lookoutvision/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/lookoutvision go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/lookoutvision/go.sum b/service/lookoutvision/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/lookoutvision/go.sum +++ b/service/lookoutvision/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/lookoutvision/go_module_metadata.go b/service/lookoutvision/go_module_metadata.go index bdeb6d268da..855090729f1 100644 --- a/service/lookoutvision/go_module_metadata.go +++ b/service/lookoutvision/go_module_metadata.go @@ -3,4 +3,4 @@ package lookoutvision // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.5" +const goModuleVersion = "1.27.6" diff --git a/service/m2/CHANGELOG.md b/service/m2/CHANGELOG.md index ade38b80a18..25df63a5dc5 100644 --- a/service/m2/CHANGELOG.md +++ b/service/m2/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.18.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.3 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/m2/go.mod b/service/m2/go.mod index eb83b25f124..3f91b14617a 100644 --- a/service/m2/go.mod +++ b/service/m2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/m2 go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/m2/go.sum b/service/m2/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/m2/go.sum +++ b/service/m2/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/m2/go_module_metadata.go b/service/m2/go_module_metadata.go index f6553b54026..ed02850c606 100644 --- a/service/m2/go_module_metadata.go +++ b/service/m2/go_module_metadata.go @@ -3,4 +3,4 @@ package m2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.3" +const goModuleVersion = "1.18.4" diff --git a/service/machinelearning/CHANGELOG.md b/service/machinelearning/CHANGELOG.md index 438021231de..ad292dbd324 100644 --- a/service/machinelearning/CHANGELOG.md +++ b/service/machinelearning/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.28.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/machinelearning/go.mod b/service/machinelearning/go.mod index 2780279d8aa..02bb4e43189 100644 --- a/service/machinelearning/go.mod +++ b/service/machinelearning/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/machinelearning go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/machinelearning/go.sum b/service/machinelearning/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/machinelearning/go.sum +++ b/service/machinelearning/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/machinelearning/go_module_metadata.go b/service/machinelearning/go_module_metadata.go index f0910d1e10d..a3ff959f1db 100644 --- a/service/machinelearning/go_module_metadata.go +++ b/service/machinelearning/go_module_metadata.go @@ -3,4 +3,4 @@ package machinelearning // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.5" +const goModuleVersion = "1.28.6" diff --git a/service/macie2/CHANGELOG.md b/service/macie2/CHANGELOG.md index 00304d3ee7e..8d74e7f63c6 100644 --- a/service/macie2/CHANGELOG.md +++ b/service/macie2/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.43.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.43.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/macie2/go.mod b/service/macie2/go.mod index 2ee3b178eb6..f1156bf849f 100644 --- a/service/macie2/go.mod +++ b/service/macie2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/macie2 go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/macie2/go.sum b/service/macie2/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/macie2/go.sum +++ b/service/macie2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/macie2/go_module_metadata.go b/service/macie2/go_module_metadata.go index 0aada59e43d..38b180983ff 100644 --- a/service/macie2/go_module_metadata.go +++ b/service/macie2/go_module_metadata.go @@ -3,4 +3,4 @@ package macie2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.43.5" +const goModuleVersion = "1.43.6" diff --git a/service/mailmanager/CHANGELOG.md b/service/mailmanager/CHANGELOG.md index fa8eb094f54..bee934aaee7 100644 --- a/service/mailmanager/CHANGELOG.md +++ b/service/mailmanager/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.6.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.6.3 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/mailmanager/go.mod b/service/mailmanager/go.mod index 04ad8772d76..300380dc8fd 100644 --- a/service/mailmanager/go.mod +++ b/service/mailmanager/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mailmanager go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mailmanager/go.sum b/service/mailmanager/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/mailmanager/go.sum +++ b/service/mailmanager/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/mailmanager/go_module_metadata.go b/service/mailmanager/go_module_metadata.go index f35576121ae..699ee864c3a 100644 --- a/service/mailmanager/go_module_metadata.go +++ b/service/mailmanager/go_module_metadata.go @@ -3,4 +3,4 @@ package mailmanager // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.6.3" +const goModuleVersion = "1.6.4" diff --git a/service/managedblockchain/CHANGELOG.md b/service/managedblockchain/CHANGELOG.md index 408d80ec9e9..24d40c29950 100644 --- a/service/managedblockchain/CHANGELOG.md +++ b/service/managedblockchain/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.26.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/managedblockchain/go.mod b/service/managedblockchain/go.mod index 69a58f679d6..c9220145994 100644 --- a/service/managedblockchain/go.mod +++ b/service/managedblockchain/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/managedblockchain go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/managedblockchain/go.sum b/service/managedblockchain/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/managedblockchain/go.sum +++ b/service/managedblockchain/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/managedblockchain/go_module_metadata.go b/service/managedblockchain/go_module_metadata.go index 127c543e272..ffc6041cf12 100644 --- a/service/managedblockchain/go_module_metadata.go +++ b/service/managedblockchain/go_module_metadata.go @@ -3,4 +3,4 @@ package managedblockchain // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.5" +const goModuleVersion = "1.26.6" diff --git a/service/managedblockchainquery/CHANGELOG.md b/service/managedblockchainquery/CHANGELOG.md index be4499778b2..3903f538ed3 100644 --- a/service/managedblockchainquery/CHANGELOG.md +++ b/service/managedblockchainquery/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.16.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.16.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/managedblockchainquery/go.mod b/service/managedblockchainquery/go.mod index 29b57d60cb8..54103ce3824 100644 --- a/service/managedblockchainquery/go.mod +++ b/service/managedblockchainquery/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/managedblockchainquery go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/managedblockchainquery/go.sum b/service/managedblockchainquery/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/managedblockchainquery/go.sum +++ b/service/managedblockchainquery/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/managedblockchainquery/go_module_metadata.go b/service/managedblockchainquery/go_module_metadata.go index f12577bfede..84da69d4ff2 100644 --- a/service/managedblockchainquery/go_module_metadata.go +++ b/service/managedblockchainquery/go_module_metadata.go @@ -3,4 +3,4 @@ package managedblockchainquery // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.16.5" +const goModuleVersion = "1.16.6" diff --git a/service/marketplaceagreement/CHANGELOG.md b/service/marketplaceagreement/CHANGELOG.md index e77231cdea1..7ad40174540 100644 --- a/service/marketplaceagreement/CHANGELOG.md +++ b/service/marketplaceagreement/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.6.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.6.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/marketplaceagreement/go.mod b/service/marketplaceagreement/go.mod index 22e0000217b..fbff2c897f2 100644 --- a/service/marketplaceagreement/go.mod +++ b/service/marketplaceagreement/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/marketplaceagreement go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/marketplaceagreement/go.sum b/service/marketplaceagreement/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/marketplaceagreement/go.sum +++ b/service/marketplaceagreement/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/marketplaceagreement/go_module_metadata.go b/service/marketplaceagreement/go_module_metadata.go index e59de35a40c..7f6d294f131 100644 --- a/service/marketplaceagreement/go_module_metadata.go +++ b/service/marketplaceagreement/go_module_metadata.go @@ -3,4 +3,4 @@ package marketplaceagreement // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.6.5" +const goModuleVersion = "1.6.6" diff --git a/service/marketplacecatalog/CHANGELOG.md b/service/marketplacecatalog/CHANGELOG.md index 6bb503da026..dccfba86706 100644 --- a/service/marketplacecatalog/CHANGELOG.md +++ b/service/marketplacecatalog/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.30.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.30.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/marketplacecatalog/go.mod b/service/marketplacecatalog/go.mod index 13ec433badf..b495418fb3f 100644 --- a/service/marketplacecatalog/go.mod +++ b/service/marketplacecatalog/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/marketplacecatalog go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/marketplacecatalog/go.sum b/service/marketplacecatalog/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/marketplacecatalog/go.sum +++ b/service/marketplacecatalog/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/marketplacecatalog/go_module_metadata.go b/service/marketplacecatalog/go_module_metadata.go index c105b603c95..7815bb44654 100644 --- a/service/marketplacecatalog/go_module_metadata.go +++ b/service/marketplacecatalog/go_module_metadata.go @@ -3,4 +3,4 @@ package marketplacecatalog // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.30.5" +const goModuleVersion = "1.30.6" diff --git a/service/marketplacecommerceanalytics/CHANGELOG.md b/service/marketplacecommerceanalytics/CHANGELOG.md index ac0cfa3c047..774eb35d8ff 100644 --- a/service/marketplacecommerceanalytics/CHANGELOG.md +++ b/service/marketplacecommerceanalytics/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.24.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/marketplacecommerceanalytics/go.mod b/service/marketplacecommerceanalytics/go.mod index a5a09c37a31..0c54812aa86 100644 --- a/service/marketplacecommerceanalytics/go.mod +++ b/service/marketplacecommerceanalytics/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/marketplacecommerceanalytics go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/marketplacecommerceanalytics/go.sum b/service/marketplacecommerceanalytics/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/marketplacecommerceanalytics/go.sum +++ b/service/marketplacecommerceanalytics/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/marketplacecommerceanalytics/go_module_metadata.go b/service/marketplacecommerceanalytics/go_module_metadata.go index 340413d179a..454772721de 100644 --- a/service/marketplacecommerceanalytics/go_module_metadata.go +++ b/service/marketplacecommerceanalytics/go_module_metadata.go @@ -3,4 +3,4 @@ package marketplacecommerceanalytics // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.5" +const goModuleVersion = "1.24.6" diff --git a/service/marketplacedeployment/CHANGELOG.md b/service/marketplacedeployment/CHANGELOG.md index ae6eabaf887..cadbede8775 100644 --- a/service/marketplacedeployment/CHANGELOG.md +++ b/service/marketplacedeployment/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.6.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.6.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/marketplacedeployment/go.mod b/service/marketplacedeployment/go.mod index 5569a11690e..27156f9ba73 100644 --- a/service/marketplacedeployment/go.mod +++ b/service/marketplacedeployment/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/marketplacedeployment go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/marketplacedeployment/go.sum b/service/marketplacedeployment/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/marketplacedeployment/go.sum +++ b/service/marketplacedeployment/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/marketplacedeployment/go_module_metadata.go b/service/marketplacedeployment/go_module_metadata.go index 2ced9ce1c55..ff4f05a0ea9 100644 --- a/service/marketplacedeployment/go_module_metadata.go +++ b/service/marketplacedeployment/go_module_metadata.go @@ -3,4 +3,4 @@ package marketplacedeployment // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.6.5" +const goModuleVersion = "1.6.6" diff --git a/service/marketplaceentitlementservice/CHANGELOG.md b/service/marketplaceentitlementservice/CHANGELOG.md index 021acaac9ed..39842a331ca 100644 --- a/service/marketplaceentitlementservice/CHANGELOG.md +++ b/service/marketplaceentitlementservice/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.25.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/marketplaceentitlementservice/go.mod b/service/marketplaceentitlementservice/go.mod index 57b7e7b4192..9900344384f 100644 --- a/service/marketplaceentitlementservice/go.mod +++ b/service/marketplaceentitlementservice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/marketplaceentitlementservice go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/marketplaceentitlementservice/go.sum b/service/marketplaceentitlementservice/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/marketplaceentitlementservice/go.sum +++ b/service/marketplaceentitlementservice/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/marketplaceentitlementservice/go_module_metadata.go b/service/marketplaceentitlementservice/go_module_metadata.go index e38c76f35c9..ef53a636fd1 100644 --- a/service/marketplaceentitlementservice/go_module_metadata.go +++ b/service/marketplaceentitlementservice/go_module_metadata.go @@ -3,4 +3,4 @@ package marketplaceentitlementservice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.5" +const goModuleVersion = "1.25.6" diff --git a/service/marketplacemetering/CHANGELOG.md b/service/marketplacemetering/CHANGELOG.md index 55ac44493f6..2ac3b7ade2d 100644 --- a/service/marketplacemetering/CHANGELOG.md +++ b/service/marketplacemetering/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.25.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/marketplacemetering/go.mod b/service/marketplacemetering/go.mod index f7be755e018..8d5666d8e81 100644 --- a/service/marketplacemetering/go.mod +++ b/service/marketplacemetering/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/marketplacemetering go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/marketplacemetering/go.sum b/service/marketplacemetering/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/marketplacemetering/go.sum +++ b/service/marketplacemetering/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/marketplacemetering/go_module_metadata.go b/service/marketplacemetering/go_module_metadata.go index 1ebf1540ca3..9fd454ed18d 100644 --- a/service/marketplacemetering/go_module_metadata.go +++ b/service/marketplacemetering/go_module_metadata.go @@ -3,4 +3,4 @@ package marketplacemetering // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.5" +const goModuleVersion = "1.25.6" diff --git a/service/marketplacereporting/CHANGELOG.md b/service/marketplacereporting/CHANGELOG.md index c01d47d1d8b..a0c9d2c5b9a 100644 --- a/service/marketplacereporting/CHANGELOG.md +++ b/service/marketplacereporting/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.1.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.1.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/marketplacereporting/go.mod b/service/marketplacereporting/go.mod index f9379e92845..48eda38d4bb 100644 --- a/service/marketplacereporting/go.mod +++ b/service/marketplacereporting/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/marketplacereporting go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/marketplacereporting/go.sum b/service/marketplacereporting/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/marketplacereporting/go.sum +++ b/service/marketplacereporting/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/marketplacereporting/go_module_metadata.go b/service/marketplacereporting/go_module_metadata.go index 9d07c72f3d1..29c2c39a613 100644 --- a/service/marketplacereporting/go_module_metadata.go +++ b/service/marketplacereporting/go_module_metadata.go @@ -3,4 +3,4 @@ package marketplacereporting // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.1.5" +const goModuleVersion = "1.1.6" diff --git a/service/mediaconnect/CHANGELOG.md b/service/mediaconnect/CHANGELOG.md index 52f9ffd0409..d27089a00d5 100644 --- a/service/mediaconnect/CHANGELOG.md +++ b/service/mediaconnect/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.35.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.35.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/mediaconnect/go.mod b/service/mediaconnect/go.mod index 347c4150f32..02152162271 100644 --- a/service/mediaconnect/go.mod +++ b/service/mediaconnect/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mediaconnect go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/mediaconnect/go.sum b/service/mediaconnect/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/mediaconnect/go.sum +++ b/service/mediaconnect/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/mediaconnect/go_module_metadata.go b/service/mediaconnect/go_module_metadata.go index 90962da86d9..a98380bc3ba 100644 --- a/service/mediaconnect/go_module_metadata.go +++ b/service/mediaconnect/go_module_metadata.go @@ -3,4 +3,4 @@ package mediaconnect // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.35.5" +const goModuleVersion = "1.35.6" diff --git a/service/mediaconvert/CHANGELOG.md b/service/mediaconvert/CHANGELOG.md index 538c7f6492f..7e31d04587d 100644 --- a/service/mediaconvert/CHANGELOG.md +++ b/service/mediaconvert/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.63.0 (2024-11-20) + +* **Feature**: This release adds the ability to reconfigure concurrent job settings for existing queues and create queues with custom concurrent job settings. + +# v1.62.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.62.0 (2024-11-13) * **Feature**: This release adds support for ARN inputs in the Kantar credentials secrets name field and the MSPR field to the manifests for PlayReady DRM protected outputs. diff --git a/service/mediaconvert/api_op_CreateQueue.go b/service/mediaconvert/api_op_CreateQueue.go index 4d142fa626a..d082d66a99e 100644 --- a/service/mediaconvert/api_op_CreateQueue.go +++ b/service/mediaconvert/api_op_CreateQueue.go @@ -36,6 +36,13 @@ type CreateQueueInput struct { // This member is required. Name *string + // Specify the maximum number of jobs your queue can process concurrently. For + // on-demand queues, the value you enter is constrained by your service quotas for + // Maximum concurrent jobs, per on-demand queue and Maximum concurrent jobs, per + // account. For reserved queues, specify the number of jobs you can process + // concurrently in your reservation plan instead. + ConcurrentJobs *int32 + // Optional. A description of the queue that you are creating. Description *string diff --git a/service/mediaconvert/api_op_ListQueues.go b/service/mediaconvert/api_op_ListQueues.go index 0b4f88a1841..2e1af269451 100644 --- a/service/mediaconvert/api_op_ListQueues.go +++ b/service/mediaconvert/api_op_ListQueues.go @@ -58,6 +58,15 @@ type ListQueuesOutput struct { // List of queues. Queues []types.Queue + // The maximum number of jobs that MediaConvert can process at one time, across + // all of your on-demand queues in the current AWS Region. + TotalConcurrentJobs *int32 + + // The remaining number of concurrent jobs that are not associated with a queue + // and are available to allocate to a queue. You can allocate these jobs when you + // create or update a queue. + UnallocatedConcurrentJobs *int32 + // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/mediaconvert/api_op_UpdateQueue.go b/service/mediaconvert/api_op_UpdateQueue.go index 45cf5860c1b..e53cc83c005 100644 --- a/service/mediaconvert/api_op_UpdateQueue.go +++ b/service/mediaconvert/api_op_UpdateQueue.go @@ -34,6 +34,13 @@ type UpdateQueueInput struct { // This member is required. Name *string + // Specify the maximum number of jobs your queue can process concurrently. For + // on-demand queues, the value you enter is constrained by your service quotas for + // Maximum concurrent jobs, per on-demand queue and Maximum concurrent jobs, per + // account. For reserved queues, update your reservation plan instead in order to + // increase your yearly commitment. + ConcurrentJobs *int32 + // The new description for the queue, if you are changing it. Description *string diff --git a/service/mediaconvert/deserializers.go b/service/mediaconvert/deserializers.go index 0c85f25d9ad..f40521b47c9 100644 --- a/service/mediaconvert/deserializers.go +++ b/service/mediaconvert/deserializers.go @@ -3125,6 +3125,32 @@ func awsRestjson1_deserializeOpDocumentListQueuesOutput(v **ListQueuesOutput, va return err } + case "totalConcurrentJobs": + 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.TotalConcurrentJobs = ptr.Int32(int32(i64)) + } + + case "unallocatedConcurrentJobs": + 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.UnallocatedConcurrentJobs = ptr.Int32(int32(i64)) + } + default: _, _ = key, value @@ -6196,6 +6222,40 @@ func awsRestjson1_deserializeDocument__listOfQueueTransition(v *[]types.QueueTra return nil } +func awsRestjson1_deserializeDocument__listOfServiceOverride(v *[]types.ServiceOverride, 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.ServiceOverride + if *v == nil { + cv = []types.ServiceOverride{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ServiceOverride + destAddr := &col + if err := awsRestjson1_deserializeDocumentServiceOverride(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocument__listOfTeletextPageType(v *[]types.TeletextPageType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -20930,6 +20990,19 @@ func awsRestjson1_deserializeDocumentQueue(v **types.Queue, value interface{}) e sv.Arn = ptr.String(jtv) } + case "concurrentJobs": + 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.ConcurrentJobs = ptr.Int32(int32(i64)) + } + case "createdAt": if value != nil { switch jtv := value.(type) { @@ -21007,6 +21080,11 @@ func awsRestjson1_deserializeDocumentQueue(v **types.Queue, value interface{}) e return err } + case "serviceOverrides": + if err := awsRestjson1_deserializeDocument__listOfServiceOverride(&sv.ServiceOverrides, value); err != nil { + return err + } + case "status": if value != nil { jtv, ok := value.(string) @@ -21619,6 +21697,73 @@ func awsRestjson1_deserializeDocumentSccDestinationSettings(v **types.SccDestina return nil } +func awsRestjson1_deserializeDocumentServiceOverride(v **types.ServiceOverride, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.ServiceOverride + if *v == nil { + sv = &types.ServiceOverride{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "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 "overrideValue": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.OverrideValue = 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) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentSpekeKeyProvider(v **types.SpekeKeyProvider, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/mediaconvert/go.mod b/service/mediaconvert/go.mod index 8f16c91356b..12dcd8166a6 100644 --- a/service/mediaconvert/go.mod +++ b/service/mediaconvert/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mediaconvert go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediaconvert/go.sum b/service/mediaconvert/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/mediaconvert/go.sum +++ b/service/mediaconvert/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/mediaconvert/go_module_metadata.go b/service/mediaconvert/go_module_metadata.go index e83e360ad01..46314810a3e 100644 --- a/service/mediaconvert/go_module_metadata.go +++ b/service/mediaconvert/go_module_metadata.go @@ -3,4 +3,4 @@ package mediaconvert // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.62.0" +const goModuleVersion = "1.63.0" diff --git a/service/mediaconvert/serializers.go b/service/mediaconvert/serializers.go index ea6610393e2..3098fff2b7a 100644 --- a/service/mediaconvert/serializers.go +++ b/service/mediaconvert/serializers.go @@ -636,6 +636,11 @@ func awsRestjson1_serializeOpDocumentCreateQueueInput(v *CreateQueueInput, value object := value.Object() defer object.Close() + if v.ConcurrentJobs != nil { + ok := object.Key("concurrentJobs") + ok.Integer(*v.ConcurrentJobs) + } + if v.Description != nil { ok := object.Key("description") ok.String(*v.Description) @@ -2593,6 +2598,11 @@ func awsRestjson1_serializeOpDocumentUpdateQueueInput(v *UpdateQueueInput, value object := value.Object() defer object.Close() + if v.ConcurrentJobs != nil { + ok := object.Key("concurrentJobs") + ok.Integer(*v.ConcurrentJobs) + } + if v.Description != nil { ok := object.Key("description") ok.String(*v.Description) diff --git a/service/mediaconvert/types/types.go b/service/mediaconvert/types/types.go index 83b63a36346..e0f17bb6bb4 100644 --- a/service/mediaconvert/types/types.go +++ b/service/mediaconvert/types/types.go @@ -7221,6 +7221,9 @@ type Queue struct { // An identifier for this resource that is unique within all of AWS. Arn *string + // The maximum number of jobs your queue can process concurrently. + ConcurrentJobs *int32 + // The timestamp in epoch seconds for when you created the queue. CreatedAt *time.Time @@ -7243,6 +7246,11 @@ type Queue struct { // queues and not applicable to on-demand queues. ReservationPlan *ReservationPlan + // A list of any service overrides applied by MediaConvert to the settings that + // you have configured. If you see any overrides, we recommend that you contact AWS + // Support. + ServiceOverrides []ServiceOverride + // Queues can be ACTIVE or PAUSED. If you pause a queue, the service won't begin // processing jobs in that queue. Jobs that are running when you pause the queue // continue to run until they finish or result in an error. @@ -7511,6 +7519,26 @@ type SccDestinationSettings struct { noSmithyDocumentSerde } +// A service override applied by MediaConvert to the settings that you have +// configured. If you see any overrides, we recommend that you contact AWS Support. +type ServiceOverride struct { + + // Details about the service override that MediaConvert has applied. + Message *string + + // The name of the setting that MediaConvert has applied an override to. + Name *string + + // The current value of the service override that MediaConvert has applied. + OverrideValue *string + + // The value of the setting that you configured, prior to any overrides that + // MediaConvert has applied. + Value *string + + noSmithyDocumentSerde +} + // If your output group type is HLS, DASH, or Microsoft Smooth, use these settings // when doing DRM encryption with a SPEKE-compliant key provider. If your output // group type is CMAF, use the SpekeKeyProviderCmaf settings instead. diff --git a/service/medialive/CHANGELOG.md b/service/medialive/CHANGELOG.md index 3114b640af1..ef64cf92794 100644 --- a/service/medialive/CHANGELOG.md +++ b/service/medialive/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.62.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.62.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/medialive/go.mod b/service/medialive/go.mod index ee8bcb2ff3c..a97403c8c91 100644 --- a/service/medialive/go.mod +++ b/service/medialive/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/medialive go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/medialive/go.sum b/service/medialive/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/medialive/go.sum +++ b/service/medialive/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/medialive/go_module_metadata.go b/service/medialive/go_module_metadata.go index 40374dde53c..cf79087d159 100644 --- a/service/medialive/go_module_metadata.go +++ b/service/medialive/go_module_metadata.go @@ -3,4 +3,4 @@ package medialive // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.62.5" +const goModuleVersion = "1.62.6" diff --git a/service/mediapackage/CHANGELOG.md b/service/mediapackage/CHANGELOG.md index 4097192a54b..5f247fcec85 100644 --- a/service/mediapackage/CHANGELOG.md +++ b/service/mediapackage/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.34.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.34.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/mediapackage/go.mod b/service/mediapackage/go.mod index 73c3ea0b528..36976539397 100644 --- a/service/mediapackage/go.mod +++ b/service/mediapackage/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mediapackage go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediapackage/go.sum b/service/mediapackage/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/mediapackage/go.sum +++ b/service/mediapackage/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/mediapackage/go_module_metadata.go b/service/mediapackage/go_module_metadata.go index df7f8b74789..24f61954d13 100644 --- a/service/mediapackage/go_module_metadata.go +++ b/service/mediapackage/go_module_metadata.go @@ -3,4 +3,4 @@ package mediapackage // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.34.5" +const goModuleVersion = "1.34.6" diff --git a/service/mediapackagev2/CHANGELOG.md b/service/mediapackagev2/CHANGELOG.md index d27e8401a1d..826d39c518f 100644 --- a/service/mediapackagev2/CHANGELOG.md +++ b/service/mediapackagev2/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.20.0 (2024-11-20) + +* **Feature**: MediaPackage v2 now supports the Media Quality Confidence Score (MQCS) published from MediaLive. Customers can control input switching based on the MQCS and publishing HTTP Headers for the MQCS via the API. + +# v1.19.3 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.2 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/mediapackagev2/api_op_CreateChannel.go b/service/mediapackagev2/api_op_CreateChannel.go index 1edbc524220..94bc3d4670c 100644 --- a/service/mediapackagev2/api_op_CreateChannel.go +++ b/service/mediapackagev2/api_op_CreateChannel.go @@ -57,6 +57,11 @@ type CreateChannelInput struct { // Enter any descriptive text that helps you to identify the channel. Description *string + // The configuration for input switching based on the media quality confidence + // score (MQCS) as provided from AWS Elemental MediaLive. This setting is valid + // only when InputType is CMAF . + InputSwitchConfiguration *types.InputSwitchConfiguration + // The input type will be an immutable field which will be used to define whether // the channel will allow CMAF ingest or HLS ingest. If unprovided, it will default // to HLS to preserve current behavior. @@ -70,6 +75,11 @@ type CreateChannelInput struct { // with optional DASH manifests). InputType types.InputType + // The settings for what common media server data (CMSD) headers AWS Elemental + // MediaPackage includes in responses to the CDN. This setting is valid only when + // InputType is CMAF . + OutputHeaderConfiguration *types.OutputHeaderConfiguration + // A comma-separated list of tag key:value pairs that you define. For example: // // "Key1": "Value1", @@ -120,6 +130,11 @@ type CreateChannelOutput struct { // The list of ingest endpoints. IngestEndpoints []types.IngestEndpoint + // The configuration for input switching based on the media quality confidence + // score (MQCS) as provided from AWS Elemental MediaLive. This setting is valid + // only when InputType is CMAF . + InputSwitchConfiguration *types.InputSwitchConfiguration + // The input type will be an immutable field which will be used to define whether // the channel will allow CMAF ingest or HLS ingest. If unprovided, it will default // to HLS to preserve current behavior. @@ -133,6 +148,11 @@ type CreateChannelOutput struct { // with optional DASH manifests). InputType types.InputType + // The settings for what common media server data (CMSD) headers AWS Elemental + // MediaPackage includes in responses to the CDN. This setting is valid only when + // InputType is CMAF . + OutputHeaderConfiguration *types.OutputHeaderConfiguration + // The comma-separated list of tag key:value pairs assigned to the channel. Tags map[string]string diff --git a/service/mediapackagev2/api_op_GetChannel.go b/service/mediapackagev2/api_op_GetChannel.go index cfc75cb07a2..8d9f45e4840 100644 --- a/service/mediapackagev2/api_op_GetChannel.go +++ b/service/mediapackagev2/api_op_GetChannel.go @@ -87,6 +87,11 @@ type GetChannelOutput struct { // The list of ingest endpoints. IngestEndpoints []types.IngestEndpoint + // The configuration for input switching based on the media quality confidence + // score (MQCS) as provided from AWS Elemental MediaLive. This setting is valid + // only when InputType is CMAF . + InputSwitchConfiguration *types.InputSwitchConfiguration + // The input type will be an immutable field which will be used to define whether // the channel will allow CMAF ingest or HLS ingest. If unprovided, it will default // to HLS to preserve current behavior. @@ -100,6 +105,11 @@ type GetChannelOutput struct { // with optional DASH manifests). InputType types.InputType + // The settings for what common media server data (CMSD) headers AWS Elemental + // MediaPackage includes in responses to the CDN. This setting is valid only when + // InputType is CMAF . + OutputHeaderConfiguration *types.OutputHeaderConfiguration + // The comma-separated list of tag key:value pairs assigned to the channel. Tags map[string]string diff --git a/service/mediapackagev2/api_op_UpdateChannel.go b/service/mediapackagev2/api_op_UpdateChannel.go index 05842f9a310..7a33e437671 100644 --- a/service/mediapackagev2/api_op_UpdateChannel.go +++ b/service/mediapackagev2/api_op_UpdateChannel.go @@ -58,6 +58,16 @@ type UpdateChannelInput struct { // rejected. ETag *string + // The configuration for input switching based on the media quality confidence + // score (MQCS) as provided from AWS Elemental MediaLive. This setting is valid + // only when InputType is CMAF . + InputSwitchConfiguration *types.InputSwitchConfiguration + + // The settings for what common media server data (CMSD) headers AWS Elemental + // MediaPackage includes in responses to the CDN. This setting is valid only when + // InputType is CMAF . + OutputHeaderConfiguration *types.OutputHeaderConfiguration + noSmithyDocumentSerde } @@ -101,6 +111,11 @@ type UpdateChannelOutput struct { // The list of ingest endpoints. IngestEndpoints []types.IngestEndpoint + // The configuration for input switching based on the media quality confidence + // score (MQCS) as provided from AWS Elemental MediaLive. This setting is valid + // only when InputType is CMAF . + InputSwitchConfiguration *types.InputSwitchConfiguration + // The input type will be an immutable field which will be used to define whether // the channel will allow CMAF ingest or HLS ingest. If unprovided, it will default // to HLS to preserve current behavior. @@ -114,6 +129,11 @@ type UpdateChannelOutput struct { // with optional DASH manifests). InputType types.InputType + // The settings for what common media server data (CMSD) headers AWS Elemental + // MediaPackage includes in responses to the CDN. This setting is valid only when + // InputType is CMAF . + OutputHeaderConfiguration *types.OutputHeaderConfiguration + // The comma-separated list of tag key:value pairs assigned to the channel. Tags map[string]string diff --git a/service/mediapackagev2/deserializers.go b/service/mediapackagev2/deserializers.go index 280a8794a9c..a28d12e7c8e 100644 --- a/service/mediapackagev2/deserializers.go +++ b/service/mediapackagev2/deserializers.go @@ -356,6 +356,11 @@ func awsRestjson1_deserializeOpDocumentCreateChannelOutput(v **CreateChannelOutp return err } + case "InputSwitchConfiguration": + if err := awsRestjson1_deserializeDocumentInputSwitchConfiguration(&sv.InputSwitchConfiguration, value); err != nil { + return err + } + case "InputType": if value != nil { jtv, ok := value.(string) @@ -381,6 +386,11 @@ func awsRestjson1_deserializeOpDocumentCreateChannelOutput(v **CreateChannelOutp } } + case "OutputHeaderConfiguration": + if err := awsRestjson1_deserializeDocumentOutputHeaderConfiguration(&sv.OutputHeaderConfiguration, value); err != nil { + return err + } + case "Tags": if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { return err @@ -1956,6 +1966,11 @@ func awsRestjson1_deserializeOpDocumentGetChannelOutput(v **GetChannelOutput, va return err } + case "InputSwitchConfiguration": + if err := awsRestjson1_deserializeDocumentInputSwitchConfiguration(&sv.InputSwitchConfiguration, value); err != nil { + return err + } + case "InputType": if value != nil { jtv, ok := value.(string) @@ -1981,6 +1996,11 @@ func awsRestjson1_deserializeOpDocumentGetChannelOutput(v **GetChannelOutput, va } } + case "OutputHeaderConfiguration": + if err := awsRestjson1_deserializeDocumentOutputHeaderConfiguration(&sv.OutputHeaderConfiguration, value); err != nil { + return err + } + case "Tags": if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { return err @@ -4660,6 +4680,11 @@ func awsRestjson1_deserializeOpDocumentUpdateChannelOutput(v **UpdateChannelOutp return err } + case "InputSwitchConfiguration": + if err := awsRestjson1_deserializeDocumentInputSwitchConfiguration(&sv.InputSwitchConfiguration, value); err != nil { + return err + } + case "InputType": if value != nil { jtv, ok := value.(string) @@ -4685,6 +4710,11 @@ func awsRestjson1_deserializeOpDocumentUpdateChannelOutput(v **UpdateChannelOutp } } + case "OutputHeaderConfiguration": + if err := awsRestjson1_deserializeDocumentOutputHeaderConfiguration(&sv.OutputHeaderConfiguration, value); err != nil { + return err + } + case "tags": if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { return err @@ -7390,6 +7420,46 @@ func awsRestjson1_deserializeDocumentIngestEndpointList(v *[]types.IngestEndpoin return nil } +func awsRestjson1_deserializeDocumentInputSwitchConfiguration(v **types.InputSwitchConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.InputSwitchConfiguration + if *v == nil { + sv = &types.InputSwitchConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "MQCSInputSwitching": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.MQCSInputSwitching = ptr.Bool(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) @@ -7868,6 +7938,46 @@ func awsRestjson1_deserializeDocumentOriginEndpointsList(v *[]types.OriginEndpoi return nil } +func awsRestjson1_deserializeDocumentOutputHeaderConfiguration(v **types.OutputHeaderConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.OutputHeaderConfiguration + if *v == nil { + sv = &types.OutputHeaderConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "PublishMQCS": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.PublishMQCS = ptr.Bool(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) diff --git a/service/mediapackagev2/go.mod b/service/mediapackagev2/go.mod index c5e28a64ec4..fedca482184 100644 --- a/service/mediapackagev2/go.mod +++ b/service/mediapackagev2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mediapackagev2 go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/mediapackagev2/go.sum b/service/mediapackagev2/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/mediapackagev2/go.sum +++ b/service/mediapackagev2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/mediapackagev2/go_module_metadata.go b/service/mediapackagev2/go_module_metadata.go index b94ae448b63..eae6042aaa1 100644 --- a/service/mediapackagev2/go_module_metadata.go +++ b/service/mediapackagev2/go_module_metadata.go @@ -3,4 +3,4 @@ package mediapackagev2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.2" +const goModuleVersion = "1.20.0" diff --git a/service/mediapackagev2/serializers.go b/service/mediapackagev2/serializers.go index 86adbf441e3..fb0f7a798b8 100644 --- a/service/mediapackagev2/serializers.go +++ b/service/mediapackagev2/serializers.go @@ -221,11 +221,25 @@ func awsRestjson1_serializeOpDocumentCreateChannelInput(v *CreateChannelInput, v ok.String(*v.Description) } + if v.InputSwitchConfiguration != nil { + ok := object.Key("InputSwitchConfiguration") + if err := awsRestjson1_serializeDocumentInputSwitchConfiguration(v.InputSwitchConfiguration, ok); err != nil { + return err + } + } + if len(v.InputType) > 0 { ok := object.Key("InputType") ok.String(string(v.InputType)) } + if v.OutputHeaderConfiguration != nil { + ok := object.Key("OutputHeaderConfiguration") + if err := awsRestjson1_serializeDocumentOutputHeaderConfiguration(v.OutputHeaderConfiguration, ok); err != nil { + return err + } + } + if v.Tags != nil { ok := object.Key("tags") if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil { @@ -2461,6 +2475,20 @@ func awsRestjson1_serializeOpDocumentUpdateChannelInput(v *UpdateChannelInput, v ok.String(*v.Description) } + if v.InputSwitchConfiguration != nil { + ok := object.Key("InputSwitchConfiguration") + if err := awsRestjson1_serializeDocumentInputSwitchConfiguration(v.InputSwitchConfiguration, ok); err != nil { + return err + } + } + + if v.OutputHeaderConfiguration != nil { + ok := object.Key("OutputHeaderConfiguration") + if err := awsRestjson1_serializeDocumentOutputHeaderConfiguration(v.OutputHeaderConfiguration, ok); err != nil { + return err + } + } + return nil } @@ -3225,6 +3253,30 @@ func awsRestjson1_serializeDocumentHarvesterScheduleConfiguration(v *types.Harve return nil } +func awsRestjson1_serializeDocumentInputSwitchConfiguration(v *types.InputSwitchConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.MQCSInputSwitching != nil { + ok := object.Key("MQCSInputSwitching") + ok.Boolean(*v.MQCSInputSwitching) + } + + return nil +} + +func awsRestjson1_serializeDocumentOutputHeaderConfiguration(v *types.OutputHeaderConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.PublishMQCS != nil { + ok := object.Key("PublishMQCS") + ok.Boolean(*v.PublishMQCS) + } + + return nil +} + func awsRestjson1_serializeDocumentS3DestinationConfig(v *types.S3DestinationConfig, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/mediapackagev2/types/enums.go b/service/mediapackagev2/types/enums.go index a732280f228..4af9db530c4 100644 --- a/service/mediapackagev2/types/enums.go +++ b/service/mediapackagev2/types/enums.go @@ -471,6 +471,8 @@ const ( ValidationExceptionTypeHarvestJobCustomerEndpointReadAccessDenied ValidationExceptionType = "HARVEST_JOB_CUSTOMER_ENDPOINT_READ_ACCESS_DENIED" ValidationExceptionTypeClipStartTimeWithStartOrEnd ValidationExceptionType = "CLIP_START_TIME_WITH_START_OR_END" ValidationExceptionTypeStartTagTimeOffsetInvalid ValidationExceptionType = "START_TAG_TIME_OFFSET_INVALID" + ValidationExceptionTypeOnlyCmafInputTypeAllowMqcsInputSwitching ValidationExceptionType = "ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_INPUT_SWITCHING" + ValidationExceptionTypeOnlyCmafInputTypeAllowMqcsOutputConfiguration ValidationExceptionType = "ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_OUTPUT_CONFIGURATION" ) // Values returns all known values for ValidationExceptionType. Note that this can @@ -536,5 +538,7 @@ func (ValidationExceptionType) Values() []ValidationExceptionType { "HARVEST_JOB_CUSTOMER_ENDPOINT_READ_ACCESS_DENIED", "CLIP_START_TIME_WITH_START_OR_END", "START_TAG_TIME_OFFSET_INVALID", + "ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_INPUT_SWITCHING", + "ONLY_CMAF_INPUT_TYPE_ALLOW_MQCS_OUTPUT_CONFIGURATION", } } diff --git a/service/mediapackagev2/types/types.go b/service/mediapackagev2/types/types.go index ca242bc6a63..95c1ca3ff23 100644 --- a/service/mediapackagev2/types/types.go +++ b/service/mediapackagev2/types/types.go @@ -184,8 +184,6 @@ type CreateHlsManifestConfiguration struct { // that you specify. If you don't enter an interval, EXT-X-PROGRAM-DATE-TIME tags // aren't included in the manifest. The tags sync the stream to the wall clock so // that viewers can seek to a specific time in the playback timeline on the player. - // ID3Timed metadata messages generate every 5 seconds whenever the content is - // ingested. // // Irrespective of this parameter, if any ID3Timed metadata is in the HLS input, // it is passed through to the HLS output. @@ -234,8 +232,6 @@ type CreateLowLatencyHlsManifestConfiguration struct { // that you specify. If you don't enter an interval, EXT-X-PROGRAM-DATE-TIME tags // aren't included in the manifest. The tags sync the stream to the wall clock so // that viewers can seek to a specific time in the playback timeline on the player. - // ID3Timed metadata messages generate every 5 seconds whenever the content is - // ingested. // // Irrespective of this parameter, if any ID3Timed metadata is in the HLS input, // it is passed through to the HLS output. @@ -555,8 +551,6 @@ type GetHlsManifestConfiguration struct { // that you specify. If you don't enter an interval, EXT-X-PROGRAM-DATE-TIME tags // aren't included in the manifest. The tags sync the stream to the wall clock so // that viewers can seek to a specific time in the playback timeline on the player. - // ID3Timed metadata messages generate every 5 seconds whenever the content is - // ingested. // // Irrespective of this parameter, if any ID3Timed metadata is in the HLS input, // it is passed through to the HLS output. @@ -610,8 +604,6 @@ type GetLowLatencyHlsManifestConfiguration struct { // that you specify. If you don't enter an interval, EXT-X-PROGRAM-DATE-TIME tags // aren't included in the manifest. The tags sync the stream to the wall clock so // that viewers can seek to a specific time in the playback timeline on the player. - // ID3Timed metadata messages generate every 5 seconds whenever the content is - // ingested. // // Irrespective of this parameter, if any ID3Timed metadata is in the HLS input, // it is passed through to the HLS output. @@ -777,6 +769,17 @@ type IngestEndpoint struct { noSmithyDocumentSerde } +// The configuration for input switching based on the media quality confidence +// score (MQCS) as provided from AWS Elemental MediaLive. +type InputSwitchConfiguration struct { + + // When true, AWS Elemental MediaPackage performs input switching based on the + // MQCS. Default is true. This setting is valid only when InputType is CMAF . + MQCSInputSwitching *bool + + noSmithyDocumentSerde +} + // List the DASH manifest configuration. type ListDashManifestConfiguration struct { @@ -905,6 +908,17 @@ type OriginEndpointListConfiguration struct { noSmithyDocumentSerde } +// The settings for what common media server data (CMSD) headers AWS Elemental +// MediaPackage includes in responses to the CDN. +type OutputHeaderConfiguration struct { + + // When true, AWS Elemental MediaPackage includes the MQCS in responses to the + // CDN. This setting is valid only when InputType is CMAF . + PublishMQCS *bool + + noSmithyDocumentSerde +} + // Configuration parameters for where in an S3 bucket to place the harvested // content. type S3DestinationConfig struct { diff --git a/service/mediapackagevod/CHANGELOG.md b/service/mediapackagevod/CHANGELOG.md index e2e7b096109..6e63801061c 100644 --- a/service/mediapackagevod/CHANGELOG.md +++ b/service/mediapackagevod/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.34.7 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.34.6 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/mediapackagevod/go.mod b/service/mediapackagevod/go.mod index b66165094f9..23e3b0f00bd 100644 --- a/service/mediapackagevod/go.mod +++ b/service/mediapackagevod/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mediapackagevod go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediapackagevod/go.sum b/service/mediapackagevod/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/mediapackagevod/go.sum +++ b/service/mediapackagevod/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/mediapackagevod/go_module_metadata.go b/service/mediapackagevod/go_module_metadata.go index 2e12110a9a1..67a17d20010 100644 --- a/service/mediapackagevod/go_module_metadata.go +++ b/service/mediapackagevod/go_module_metadata.go @@ -3,4 +3,4 @@ package mediapackagevod // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.34.6" +const goModuleVersion = "1.34.7" diff --git a/service/mediastore/CHANGELOG.md b/service/mediastore/CHANGELOG.md index 1661f253ad2..5d7abce0616 100644 --- a/service/mediastore/CHANGELOG.md +++ b/service/mediastore/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.24.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/mediastore/go.mod b/service/mediastore/go.mod index 8a6e12f6fcb..22459d54bfd 100644 --- a/service/mediastore/go.mod +++ b/service/mediastore/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mediastore go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediastore/go.sum b/service/mediastore/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/mediastore/go.sum +++ b/service/mediastore/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/mediastore/go_module_metadata.go b/service/mediastore/go_module_metadata.go index 96fbd20f532..8ba869cae80 100644 --- a/service/mediastore/go_module_metadata.go +++ b/service/mediastore/go_module_metadata.go @@ -3,4 +3,4 @@ package mediastore // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.5" +const goModuleVersion = "1.24.6" diff --git a/service/mediastoredata/CHANGELOG.md b/service/mediastoredata/CHANGELOG.md index 3fe09f4e2af..78aafa58cbc 100644 --- a/service/mediastoredata/CHANGELOG.md +++ b/service/mediastoredata/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.24.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/mediastoredata/go.mod b/service/mediastoredata/go.mod index 8312b834467..218d9fff300 100644 --- a/service/mediastoredata/go.mod +++ b/service/mediastoredata/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mediastoredata go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediastoredata/go.sum b/service/mediastoredata/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/mediastoredata/go.sum +++ b/service/mediastoredata/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/mediastoredata/go_module_metadata.go b/service/mediastoredata/go_module_metadata.go index 2cc4a3c3052..e28231ce56d 100644 --- a/service/mediastoredata/go_module_metadata.go +++ b/service/mediastoredata/go_module_metadata.go @@ -3,4 +3,4 @@ package mediastoredata // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.5" +const goModuleVersion = "1.24.6" diff --git a/service/mediatailor/CHANGELOG.md b/service/mediatailor/CHANGELOG.md index 6eba1b8131e..1c9a5657dd8 100644 --- a/service/mediatailor/CHANGELOG.md +++ b/service/mediatailor/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.42.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.42.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/mediatailor/go.mod b/service/mediatailor/go.mod index 14ca04ea05a..13ca7d3848f 100644 --- a/service/mediatailor/go.mod +++ b/service/mediatailor/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mediatailor go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mediatailor/go.sum b/service/mediatailor/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/mediatailor/go.sum +++ b/service/mediatailor/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/mediatailor/go_module_metadata.go b/service/mediatailor/go_module_metadata.go index d3d68035bd9..9ed04017cb8 100644 --- a/service/mediatailor/go_module_metadata.go +++ b/service/mediatailor/go_module_metadata.go @@ -3,4 +3,4 @@ package mediatailor // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.42.5" +const goModuleVersion = "1.42.6" diff --git a/service/medicalimaging/CHANGELOG.md b/service/medicalimaging/CHANGELOG.md index e581c37aad7..db94d6136db 100644 --- a/service/medicalimaging/CHANGELOG.md +++ b/service/medicalimaging/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.14.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.14.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/medicalimaging/go.mod b/service/medicalimaging/go.mod index 06020339052..d7979ce2757 100644 --- a/service/medicalimaging/go.mod +++ b/service/medicalimaging/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/medicalimaging go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/medicalimaging/go.sum b/service/medicalimaging/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/medicalimaging/go.sum +++ b/service/medicalimaging/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/medicalimaging/go_module_metadata.go b/service/medicalimaging/go_module_metadata.go index 46f28977113..1a34712bafb 100644 --- a/service/medicalimaging/go_module_metadata.go +++ b/service/medicalimaging/go_module_metadata.go @@ -3,4 +3,4 @@ package medicalimaging // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.14.5" +const goModuleVersion = "1.14.6" diff --git a/service/memorydb/CHANGELOG.md b/service/memorydb/CHANGELOG.md index 2c14ed79297..21db96c720b 100644 --- a/service/memorydb/CHANGELOG.md +++ b/service/memorydb/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.24.5 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.4 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/memorydb/go.mod b/service/memorydb/go.mod index 838d674c313..a8cf273f30d 100644 --- a/service/memorydb/go.mod +++ b/service/memorydb/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/memorydb go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/memorydb/go.sum b/service/memorydb/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/memorydb/go.sum +++ b/service/memorydb/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/memorydb/go_module_metadata.go b/service/memorydb/go_module_metadata.go index cc88c9ef491..b61013a66df 100644 --- a/service/memorydb/go_module_metadata.go +++ b/service/memorydb/go_module_metadata.go @@ -3,4 +3,4 @@ package memorydb // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.4" +const goModuleVersion = "1.24.5" diff --git a/service/mgn/CHANGELOG.md b/service/mgn/CHANGELOG.md index 421a477cd5f..0c9a975483f 100644 --- a/service/mgn/CHANGELOG.md +++ b/service/mgn/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.32.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.32.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/mgn/go.mod b/service/mgn/go.mod index c10c00b878f..1c1b4ac658f 100644 --- a/service/mgn/go.mod +++ b/service/mgn/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mgn go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mgn/go.sum b/service/mgn/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/mgn/go.sum +++ b/service/mgn/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/mgn/go_module_metadata.go b/service/mgn/go_module_metadata.go index 76d53f9a5ab..0246b3d766f 100644 --- a/service/mgn/go_module_metadata.go +++ b/service/mgn/go_module_metadata.go @@ -3,4 +3,4 @@ package mgn // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.32.5" +const goModuleVersion = "1.32.6" diff --git a/service/migrationhub/CHANGELOG.md b/service/migrationhub/CHANGELOG.md index 1661f253ad2..5d7abce0616 100644 --- a/service/migrationhub/CHANGELOG.md +++ b/service/migrationhub/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.24.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/migrationhub/go.mod b/service/migrationhub/go.mod index 8ef6047f07b..185401ae10e 100644 --- a/service/migrationhub/go.mod +++ b/service/migrationhub/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/migrationhub go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/migrationhub/go.sum b/service/migrationhub/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/migrationhub/go.sum +++ b/service/migrationhub/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/migrationhub/go_module_metadata.go b/service/migrationhub/go_module_metadata.go index 04fffd42aaf..e520bb67f8e 100644 --- a/service/migrationhub/go_module_metadata.go +++ b/service/migrationhub/go_module_metadata.go @@ -3,4 +3,4 @@ package migrationhub // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.5" +const goModuleVersion = "1.24.6" diff --git a/service/migrationhubconfig/CHANGELOG.md b/service/migrationhubconfig/CHANGELOG.md index aa27a0187d7..2e1e44eb8e6 100644 --- a/service/migrationhubconfig/CHANGELOG.md +++ b/service/migrationhubconfig/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.25.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/migrationhubconfig/go.mod b/service/migrationhubconfig/go.mod index 57251073d91..8e9a7ea7bfc 100644 --- a/service/migrationhubconfig/go.mod +++ b/service/migrationhubconfig/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/migrationhubconfig go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/migrationhubconfig/go.sum b/service/migrationhubconfig/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/migrationhubconfig/go.sum +++ b/service/migrationhubconfig/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/migrationhubconfig/go_module_metadata.go b/service/migrationhubconfig/go_module_metadata.go index d421086e8ec..a5a4a6f5616 100644 --- a/service/migrationhubconfig/go_module_metadata.go +++ b/service/migrationhubconfig/go_module_metadata.go @@ -3,4 +3,4 @@ package migrationhubconfig // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.5" +const goModuleVersion = "1.25.6" diff --git a/service/migrationhuborchestrator/CHANGELOG.md b/service/migrationhuborchestrator/CHANGELOG.md index 320990e38c7..09df710ea59 100644 --- a/service/migrationhuborchestrator/CHANGELOG.md +++ b/service/migrationhuborchestrator/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.13.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.13.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/migrationhuborchestrator/go.mod b/service/migrationhuborchestrator/go.mod index 8bca139453f..6a33b0fa02e 100644 --- a/service/migrationhuborchestrator/go.mod +++ b/service/migrationhuborchestrator/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/migrationhuborchestrator go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/migrationhuborchestrator/go.sum b/service/migrationhuborchestrator/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/migrationhuborchestrator/go.sum +++ b/service/migrationhuborchestrator/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/migrationhuborchestrator/go_module_metadata.go b/service/migrationhuborchestrator/go_module_metadata.go index 1be0722d5c5..932a6bd08ee 100644 --- a/service/migrationhuborchestrator/go_module_metadata.go +++ b/service/migrationhuborchestrator/go_module_metadata.go @@ -3,4 +3,4 @@ package migrationhuborchestrator // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.13.5" +const goModuleVersion = "1.13.6" diff --git a/service/migrationhubrefactorspaces/CHANGELOG.md b/service/migrationhubrefactorspaces/CHANGELOG.md index 1215d16e280..06ca80727f6 100644 --- a/service/migrationhubrefactorspaces/CHANGELOG.md +++ b/service/migrationhubrefactorspaces/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.20.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/migrationhubrefactorspaces/go.mod b/service/migrationhubrefactorspaces/go.mod index b8ab34f88ee..443d90ff119 100644 --- a/service/migrationhubrefactorspaces/go.mod +++ b/service/migrationhubrefactorspaces/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/migrationhubrefactorspaces go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/migrationhubrefactorspaces/go.sum b/service/migrationhubrefactorspaces/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/migrationhubrefactorspaces/go.sum +++ b/service/migrationhubrefactorspaces/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/migrationhubrefactorspaces/go_module_metadata.go b/service/migrationhubrefactorspaces/go_module_metadata.go index 82814bbf5bd..412c9c227d9 100644 --- a/service/migrationhubrefactorspaces/go_module_metadata.go +++ b/service/migrationhubrefactorspaces/go_module_metadata.go @@ -3,4 +3,4 @@ package migrationhubrefactorspaces // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.5" +const goModuleVersion = "1.20.6" diff --git a/service/migrationhubstrategy/CHANGELOG.md b/service/migrationhubstrategy/CHANGELOG.md index 3f9ae510bc3..a01ce4c922a 100644 --- a/service/migrationhubstrategy/CHANGELOG.md +++ b/service/migrationhubstrategy/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.21.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/migrationhubstrategy/go.mod b/service/migrationhubstrategy/go.mod index 3ae60b4546a..425da346cf1 100644 --- a/service/migrationhubstrategy/go.mod +++ b/service/migrationhubstrategy/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/migrationhubstrategy go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/migrationhubstrategy/go.sum b/service/migrationhubstrategy/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/migrationhubstrategy/go.sum +++ b/service/migrationhubstrategy/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/migrationhubstrategy/go_module_metadata.go b/service/migrationhubstrategy/go_module_metadata.go index 0c303301a5b..d42927ce24e 100644 --- a/service/migrationhubstrategy/go_module_metadata.go +++ b/service/migrationhubstrategy/go_module_metadata.go @@ -3,4 +3,4 @@ package migrationhubstrategy // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.5" +const goModuleVersion = "1.21.6" diff --git a/service/mq/CHANGELOG.md b/service/mq/CHANGELOG.md index 93bab74497b..f0bc1ebcb1d 100644 --- a/service/mq/CHANGELOG.md +++ b/service/mq/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.7 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.6 (2024-11-14) * No change notes available for this release. diff --git a/service/mq/go.mod b/service/mq/go.mod index f4015541930..d39b3035e88 100644 --- a/service/mq/go.mod +++ b/service/mq/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mq go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mq/go.sum b/service/mq/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/mq/go.sum +++ b/service/mq/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/mq/go_module_metadata.go b/service/mq/go_module_metadata.go index 0ed80c79542..d706038efae 100644 --- a/service/mq/go_module_metadata.go +++ b/service/mq/go_module_metadata.go @@ -3,4 +3,4 @@ package mq // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.6" +const goModuleVersion = "1.27.7" diff --git a/service/mturk/CHANGELOG.md b/service/mturk/CHANGELOG.md index b62a7acfe48..3e7ed0939ce 100644 --- a/service/mturk/CHANGELOG.md +++ b/service/mturk/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.25.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/mturk/go.mod b/service/mturk/go.mod index b0af5731334..69f09f0e879 100644 --- a/service/mturk/go.mod +++ b/service/mturk/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mturk go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mturk/go.sum b/service/mturk/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/mturk/go.sum +++ b/service/mturk/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/mturk/go_module_metadata.go b/service/mturk/go_module_metadata.go index ad8ea0dbda2..415d3d90937 100644 --- a/service/mturk/go_module_metadata.go +++ b/service/mturk/go_module_metadata.go @@ -3,4 +3,4 @@ package mturk // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.5" +const goModuleVersion = "1.25.6" diff --git a/service/mwaa/CHANGELOG.md b/service/mwaa/CHANGELOG.md index 0259ab40c55..e22d7f225b4 100644 --- a/service/mwaa/CHANGELOG.md +++ b/service/mwaa/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.33.0 (2024-11-19) + +* **Feature**: Amazon MWAA now supports a new environment class, mw1.micro, ideal for workloads requiring fewer resources than mw1.small. This class supports a single instance of each Airflow component: Scheduler, Worker, and Webserver. + +# v1.32.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.32.3 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/mwaa/api_op_CreateEnvironment.go b/service/mwaa/api_op_CreateEnvironment.go index 02a86fae593..9209c429716 100644 --- a/service/mwaa/api_op_CreateEnvironment.go +++ b/service/mwaa/api_op_CreateEnvironment.go @@ -103,8 +103,8 @@ type CreateEnvironmentInput struct { // delete the failed environment and create a new one. EndpointManagement types.EndpointManagement - // The environment class type. Valid values: mw1.small , mw1.medium , mw1.large , - // mw1.xlarge , and mw1.2xlarge . For more information, see [Amazon MWAA environment class]. + // The environment class type. Valid values: mw1.micro , mw1.small , mw1.medium , + // mw1.large , mw1.xlarge , and mw1.2xlarge . For more information, see [Amazon MWAA environment class]. // // [Amazon MWAA environment class]: https://docs.aws.amazon.com/mwaa/latest/userguide/environment-class.html EnvironmentClass *string @@ -129,7 +129,8 @@ type CreateEnvironmentInput struct { // rates decrease Amazon MWAA disposes of the additional web servers, and scales // down to the number set in MinxWebserers . // - // Valid values: Accepts between 2 and 5 . Defaults to 2 . + // Valid values: For environments larger than mw1.micro, accepts values from 2 to 5 + // . Defaults to 2 for all environment sizes except mw1.micro, which defaults to 1 . MaxWebservers *int32 // The maximum number of workers that you want to run in your environment. MWAA @@ -147,7 +148,8 @@ type CreateEnvironmentInput struct { // disposes of the additional web servers, and scales down to the number set in // MinxWebserers . // - // Valid values: Accepts between 2 and 5 . Defaults to 2 . + // Valid values: For environments larger than mw1.micro, accepts values from 2 to 5 + // . Defaults to 2 for all environment sizes except mw1.micro, which defaults to 1 . MinWebservers *int32 // The minimum number of workers that you want to run in your environment. MWAA @@ -187,7 +189,8 @@ type CreateEnvironmentInput struct { // The number of Apache Airflow schedulers to run in your environment. Valid // values: // - // - v2 - Accepts between 2 to 5 . Defaults to 2 . + // - v2 - For environments larger than mw1.micro, accepts values from 2 to 5 . + // Defaults to 2 for all environment sizes except mw1.micro, which defaults to 1 . // // - v1 - Accepts 1 . Schedulers *int32 diff --git a/service/mwaa/api_op_UpdateEnvironment.go b/service/mwaa/api_op_UpdateEnvironment.go index 8c73763af4c..b1bb592133b 100644 --- a/service/mwaa/api_op_UpdateEnvironment.go +++ b/service/mwaa/api_op_UpdateEnvironment.go @@ -59,8 +59,8 @@ type UpdateEnvironmentInput struct { // [Adding or updating DAGs]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-folder.html DagS3Path *string - // The environment class type. Valid values: mw1.small , mw1.medium , mw1.large , - // mw1.xlarge , and mw1.2xlarge . For more information, see [Amazon MWAA environment class]. + // The environment class type. Valid values: mw1.micro , mw1.small , mw1.medium , + // mw1.large , mw1.xlarge , and mw1.2xlarge . For more information, see [Amazon MWAA environment class]. // // [Amazon MWAA environment class]: https://docs.aws.amazon.com/mwaa/latest/userguide/environment-class.html EnvironmentClass *string @@ -85,7 +85,8 @@ type UpdateEnvironmentInput struct { // rates decrease Amazon MWAA disposes of the additional web servers, and scales // down to the number set in MinxWebserers . // - // Valid values: Accepts between 2 and 5 . Defaults to 2 . + // Valid values: For environments larger than mw1.micro, accepts values from 2 to 5 + // . Defaults to 2 for all environment sizes except mw1.micro, which defaults to 1 . MaxWebservers *int32 // The maximum number of workers that you want to run in your environment. MWAA @@ -103,7 +104,8 @@ type UpdateEnvironmentInput struct { // disposes of the additional web servers, and scales down to the number set in // MinxWebserers . // - // Valid values: Accepts between 2 and 5 . Defaults to 2 . + // Valid values: For environments larger than mw1.micro, accepts values from 2 to 5 + // . Defaults to 2 for all environment sizes except mw1.micro, which defaults to 1 . MinWebservers *int32 // The minimum number of workers that you want to run in your environment. MWAA diff --git a/service/mwaa/go.mod b/service/mwaa/go.mod index 8b77d1c35c1..5a576abdfe7 100644 --- a/service/mwaa/go.mod +++ b/service/mwaa/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mwaa go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/mwaa/go.sum b/service/mwaa/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/mwaa/go.sum +++ b/service/mwaa/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/mwaa/go_module_metadata.go b/service/mwaa/go_module_metadata.go index 0ad45f9f029..40b28594582 100644 --- a/service/mwaa/go_module_metadata.go +++ b/service/mwaa/go_module_metadata.go @@ -3,4 +3,4 @@ package mwaa // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.32.3" +const goModuleVersion = "1.33.0" diff --git a/service/mwaa/types/types.go b/service/mwaa/types/types.go index fb777fa4e24..22e5111d4a4 100644 --- a/service/mwaa/types/types.go +++ b/service/mwaa/types/types.go @@ -70,8 +70,8 @@ type Environment struct { // CUSTOMER , you must create, and manage, the VPC endpoints in your VPC. EndpointManagement EndpointManagement - // The environment class type. Valid values: mw1.small , mw1.medium , mw1.large , - // mw1.xlarge , and mw1.2xlarge . For more information, see [Amazon MWAA environment class]. + // The environment class type. Valid values: mw1.micro , mw1.small , mw1.medium , + // mw1.large , mw1.xlarge , and mw1.2xlarge . For more information, see [Amazon MWAA environment class]. // // [Amazon MWAA environment class]: https://docs.aws.amazon.com/mwaa/latest/userguide/environment-class.html EnvironmentClass *string @@ -102,7 +102,8 @@ type Environment struct { // rates decrease Amazon MWAA disposes of the additional web servers, and scales // down to the number set in MinxWebserers . // - // Valid values: Accepts between 2 and 5 . Defaults to 2 . + // Valid values: For environments larger than mw1.micro, accepts values from 2 to 5 + // . Defaults to 2 for all environment sizes except mw1.micro, which defaults to 1 . MaxWebservers *int32 // The maximum number of workers that run in your environment. For example, 20 . @@ -116,7 +117,8 @@ type Environment struct { // disposes of the additional web servers, and scales down to the number set in // MinxWebserers . // - // Valid values: Accepts between 2 and 5 . Defaults to 2 . + // Valid values: For environments larger than mw1.micro, accepts values from 2 to 5 + // . Defaults to 2 for all environment sizes except mw1.micro, which defaults to 1 . MinWebservers *int32 // The minimum number of workers that run in your environment. For example, 2 . diff --git a/service/neptune/CHANGELOG.md b/service/neptune/CHANGELOG.md index d558cba4306..1b0df1e45fb 100644 --- a/service/neptune/CHANGELOG.md +++ b/service/neptune/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.35.5 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.35.4 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/neptune/go.mod b/service/neptune/go.mod index 8b329904292..0ef334e5ca3 100644 --- a/service/neptune/go.mod +++ b/service/neptune/go.mod @@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/service/neptune go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/neptune/go.sum b/service/neptune/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/neptune/go.sum +++ b/service/neptune/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/neptune/go_module_metadata.go b/service/neptune/go_module_metadata.go index 291275b6768..532b2d601bc 100644 --- a/service/neptune/go_module_metadata.go +++ b/service/neptune/go_module_metadata.go @@ -3,4 +3,4 @@ package neptune // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.35.4" +const goModuleVersion = "1.35.5" diff --git a/service/neptunedata/CHANGELOG.md b/service/neptunedata/CHANGELOG.md index 0caee5bcb23..db37aba0fe4 100644 --- a/service/neptunedata/CHANGELOG.md +++ b/service/neptunedata/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.9.5 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.9.4 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/neptunedata/go.mod b/service/neptunedata/go.mod index 21a1dd5d299..8c956af9b01 100644 --- a/service/neptunedata/go.mod +++ b/service/neptunedata/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/neptunedata go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/neptunedata/go.sum b/service/neptunedata/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/neptunedata/go.sum +++ b/service/neptunedata/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/neptunedata/go_module_metadata.go b/service/neptunedata/go_module_metadata.go index c0871145789..ebb8d5caf13 100644 --- a/service/neptunedata/go_module_metadata.go +++ b/service/neptunedata/go_module_metadata.go @@ -3,4 +3,4 @@ package neptunedata // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.9.4" +const goModuleVersion = "1.9.5" diff --git a/service/neptunegraph/CHANGELOG.md b/service/neptunegraph/CHANGELOG.md index e7fa9b9029d..8cc9abf3f42 100644 --- a/service/neptunegraph/CHANGELOG.md +++ b/service/neptunegraph/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.14.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.14.3 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/neptunegraph/go.mod b/service/neptunegraph/go.mod index f12243a070d..f4fc3b2c53f 100644 --- a/service/neptunegraph/go.mod +++ b/service/neptunegraph/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/neptunegraph go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/neptunegraph/go.sum b/service/neptunegraph/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/neptunegraph/go.sum +++ b/service/neptunegraph/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/neptunegraph/go_module_metadata.go b/service/neptunegraph/go_module_metadata.go index 6f91c05db60..d7b260e7c2f 100644 --- a/service/neptunegraph/go_module_metadata.go +++ b/service/neptunegraph/go_module_metadata.go @@ -3,4 +3,4 @@ package neptunegraph // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.14.3" +const goModuleVersion = "1.14.4" diff --git a/service/networkfirewall/CHANGELOG.md b/service/networkfirewall/CHANGELOG.md index af711c1603b..50ebfd08886 100644 --- a/service/networkfirewall/CHANGELOG.md +++ b/service/networkfirewall/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.44.3 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.44.2 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/networkfirewall/go.mod b/service/networkfirewall/go.mod index 6179806f147..45c1b27fac7 100644 --- a/service/networkfirewall/go.mod +++ b/service/networkfirewall/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/networkfirewall go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/networkfirewall/go.sum b/service/networkfirewall/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/networkfirewall/go.sum +++ b/service/networkfirewall/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/networkfirewall/go_module_metadata.go b/service/networkfirewall/go_module_metadata.go index 5ce14e6dfff..27faf487546 100644 --- a/service/networkfirewall/go_module_metadata.go +++ b/service/networkfirewall/go_module_metadata.go @@ -3,4 +3,4 @@ package networkfirewall // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.44.2" +const goModuleVersion = "1.44.3" diff --git a/service/networkmanager/CHANGELOG.md b/service/networkmanager/CHANGELOG.md index fe7c84a0dd2..89d15ddcfc3 100644 --- a/service/networkmanager/CHANGELOG.md +++ b/service/networkmanager/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.31.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.31.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/networkmanager/go.mod b/service/networkmanager/go.mod index 294e45a160a..caf7aa951dd 100644 --- a/service/networkmanager/go.mod +++ b/service/networkmanager/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/networkmanager go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/networkmanager/go.sum b/service/networkmanager/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/networkmanager/go.sum +++ b/service/networkmanager/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/networkmanager/go_module_metadata.go b/service/networkmanager/go_module_metadata.go index 9125c312557..b0446259d39 100644 --- a/service/networkmanager/go_module_metadata.go +++ b/service/networkmanager/go_module_metadata.go @@ -3,4 +3,4 @@ package networkmanager // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.31.5" +const goModuleVersion = "1.31.6" diff --git a/service/networkmonitor/CHANGELOG.md b/service/networkmonitor/CHANGELOG.md index 3e25485f11b..d1e8774ae2d 100644 --- a/service/networkmonitor/CHANGELOG.md +++ b/service/networkmonitor/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.7.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.7.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/networkmonitor/go.mod b/service/networkmonitor/go.mod index f543006c9e5..44c1d75195c 100644 --- a/service/networkmonitor/go.mod +++ b/service/networkmonitor/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/networkmonitor go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/networkmonitor/go.sum b/service/networkmonitor/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/networkmonitor/go.sum +++ b/service/networkmonitor/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/networkmonitor/go_module_metadata.go b/service/networkmonitor/go_module_metadata.go index 91a84a819c4..9a768aff4d4 100644 --- a/service/networkmonitor/go_module_metadata.go +++ b/service/networkmonitor/go_module_metadata.go @@ -3,4 +3,4 @@ package networkmonitor // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.7.5" +const goModuleVersion = "1.7.6" diff --git a/service/oam/CHANGELOG.md b/service/oam/CHANGELOG.md index 365095ac244..3c62d4368a6 100644 --- a/service/oam/CHANGELOG.md +++ b/service/oam/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.15.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.15.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/oam/go.mod b/service/oam/go.mod index b2122557079..8b17bc56fb3 100644 --- a/service/oam/go.mod +++ b/service/oam/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/oam go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/oam/go.sum b/service/oam/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/oam/go.sum +++ b/service/oam/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/oam/go_module_metadata.go b/service/oam/go_module_metadata.go index fea9794313b..ac34b92e81f 100644 --- a/service/oam/go_module_metadata.go +++ b/service/oam/go_module_metadata.go @@ -3,4 +3,4 @@ package oam // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.15.5" +const goModuleVersion = "1.15.6" diff --git a/service/omics/CHANGELOG.md b/service/omics/CHANGELOG.md index 4b1d7fcdfb7..f6efbb1d8c3 100644 --- a/service/omics/CHANGELOG.md +++ b/service/omics/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.27.0 (2024-11-20) + +* **Feature**: Enabling call caching feature that allows customers to reuse previously computed results from a set of completed tasks in a new workflow run. + +# v1.26.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/omics/api_op_CreateRunCache.go b/service/omics/api_op_CreateRunCache.go new file mode 100644 index 00000000000..821b217b192 --- /dev/null +++ b/service/omics/api_op_CreateRunCache.go @@ -0,0 +1,282 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package omics + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/omics/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// You can create a run cache to save the task outputs from completed tasks in a +// run for a private workflow. Subsequent runs use the task outputs from the cache, +// rather than computing the task outputs again. You specify an Amazon S3 location +// where HealthOmics saves the cached data. This data must be immediately +// accessible (not in an archived state). +// +// For more information, see [Creating a run cache] in the AWS HealthOmics User Guide. +// +// [Creating a run cache]: https://docs.aws.amazon.com/omics/latest/dev/workflow-cache-create.html +func (c *Client) CreateRunCache(ctx context.Context, params *CreateRunCacheInput, optFns ...func(*Options)) (*CreateRunCacheOutput, error) { + if params == nil { + params = &CreateRunCacheInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateRunCache", params, optFns, c.addOperationCreateRunCacheMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateRunCacheOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateRunCacheInput struct { + + // Specify the S3 location for storing the cached task outputs. This data must be + // immediately accessible (not in an archived state). + // + // This member is required. + CacheS3Location *string + + // A unique request token, to ensure idempotency. If you don't specify a token, + // HealthOmics automatically generates a universally unique identifier (UUID) for + // the request. + // + // This member is required. + RequestId *string + + // Default cache behavior for runs that use this cache. Supported values are: + // + // CACHE_ON_FAILURE : Caches task outputs from completed tasks for runs that fail. + // This setting is useful if you're debugging a workflow that fails after several + // tasks completed successfully. The subsequent run uses the cache outputs for + // previously-completed tasks if the task definition, inputs, and container in ECR + // are identical to the prior run. + // + // CACHE_ALWAYS : Caches task outputs from completed tasks for all runs. This + // setting is useful in development mode, but do not use it in a production + // setting. + // + // If you don't specify a value, the default behavior is CACHE_ON_FAILURE. When + // you start a run that uses this cache, you can override the default cache + // behavior. + // + // For more information, see [Run cache behavior] in the AWS HealthOmics User Guide. + // + // [Run cache behavior]: https://docs.aws.amazon.com/omics/latest/dev/how-run-cache.html#run-cache-behavior + CacheBehavior types.CacheBehavior + + // The AWS account ID of the expected owner of the S3 bucket for the run cache. If + // not provided, your account ID is set as the owner of the bucket. + CacheBucketOwnerId *string + + // Enter a description of the run cache. + Description *string + + // Enter a user-friendly name for the run cache. + Name *string + + // Specify one or more tags to associate with this run cache. + Tags map[string]string + + noSmithyDocumentSerde +} + +type CreateRunCacheOutput struct { + + // Unique resource identifier for the run cache. + Arn *string + + // Identifier for the run cache. + Id *string + + // Run cache status. + Status types.RunCacheStatus + + // The tags associated with this run cache. + Tags map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateRunCacheMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateRunCache{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateRunCache{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateRunCache"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addEndpointPrefix_opCreateRunCacheMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opCreateRunCacheMiddleware(stack, options); err != nil { + return err + } + if err = addOpCreateRunCacheValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateRunCache(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +type endpointPrefix_opCreateRunCacheMiddleware struct { +} + +func (*endpointPrefix_opCreateRunCacheMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opCreateRunCacheMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleFinalize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + req.URL.Host = "workflows-" + req.URL.Host + + return next.HandleFinalize(ctx, in) +} +func addEndpointPrefix_opCreateRunCacheMiddleware(stack *middleware.Stack) error { + return stack.Finalize.Insert(&endpointPrefix_opCreateRunCacheMiddleware{}, "ResolveEndpointV2", middleware.After) +} + +type idempotencyToken_initializeOpCreateRunCache struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateRunCache) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateRunCache) 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.(*CreateRunCacheInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateRunCacheInput ") + } + + if input.RequestId == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.RequestId = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opCreateRunCacheMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateRunCache{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opCreateRunCache(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateRunCache", + } +} diff --git a/service/omics/api_op_DeleteRunCache.go b/service/omics/api_op_DeleteRunCache.go new file mode 100644 index 00000000000..6beafdaf2b9 --- /dev/null +++ b/service/omics/api_op_DeleteRunCache.go @@ -0,0 +1,189 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package omics + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Delete a run cache. This action removes the cache metadata stored in the +// service account, but doesn't delete the data in Amazon S3. You can access the +// cache data in Amazon S3, for inspection or to troubleshoot issues. You can +// remove old cache data using standard S3 Delete operations. +// +// For more information, see [Deleting a run cache] in the AWS HealthOmics User Guide. +// +// [Deleting a run cache]: https://docs.aws.amazon.com/omics/latest/dev/workflow-cache-delete.html +func (c *Client) DeleteRunCache(ctx context.Context, params *DeleteRunCacheInput, optFns ...func(*Options)) (*DeleteRunCacheOutput, error) { + if params == nil { + params = &DeleteRunCacheInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteRunCache", params, optFns, c.addOperationDeleteRunCacheMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteRunCacheOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteRunCacheInput struct { + + // Run cache identifier for the cache you want to delete. + // + // This member is required. + Id *string + + noSmithyDocumentSerde +} + +type DeleteRunCacheOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteRunCacheMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteRunCache{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteRunCache{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteRunCache"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addEndpointPrefix_opDeleteRunCacheMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteRunCacheValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteRunCache(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +type endpointPrefix_opDeleteRunCacheMiddleware struct { +} + +func (*endpointPrefix_opDeleteRunCacheMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opDeleteRunCacheMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleFinalize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + req.URL.Host = "workflows-" + req.URL.Host + + return next.HandleFinalize(ctx, in) +} +func addEndpointPrefix_opDeleteRunCacheMiddleware(stack *middleware.Stack) error { + return stack.Finalize.Insert(&endpointPrefix_opDeleteRunCacheMiddleware{}, "ResolveEndpointV2", middleware.After) +} + +func newServiceMetadataMiddleware_opDeleteRunCache(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteRunCache", + } +} diff --git a/service/omics/api_op_GetRun.go b/service/omics/api_op_GetRun.go index 2c14a78710a..5e75f9b45f9 100644 --- a/service/omics/api_op_GetRun.go +++ b/service/omics/api_op_GetRun.go @@ -19,6 +19,13 @@ import ( // Gets information about a workflow run. // // If a workflow is shared with you, you cannot export information about the run. +// +// HealthOmics stores a fixed number of runs that are available to the console and +// API. If GetRun doesn't return the requested run, you can find run logs for all +// runs in the CloudWatch logs. For more information about viewing the run logs, +// see [CloudWatch logs]in the AWS HealthOmics User Guide. +// +// [CloudWatch logs]: https://docs.aws.amazon.com/omics/latest/dev/cloudwatch-logs.html func (c *Client) GetRun(ctx context.Context, params *GetRunInput, optFns ...func(*Options)) (*GetRunOutput, error) { if params == nil { params = &GetRunInput{} @@ -55,6 +62,12 @@ type GetRunOutput struct { // The run's ARN. Arn *string + // The run cache behavior for the run. + CacheBehavior types.CacheBehavior + + // The run cache associated with the run. + CacheId *string + // When the run was created. CreationTime *time.Time @@ -64,6 +77,9 @@ type GetRunOutput struct { // The run's digest. Digest *string + // The workflow engine version. + EngineVersion *string + // The reason a run has failed. FailureReason *string diff --git a/service/omics/api_op_GetRunCache.go b/service/omics/api_op_GetRunCache.go new file mode 100644 index 00000000000..e3c35a7b4d7 --- /dev/null +++ b/service/omics/api_op_GetRunCache.go @@ -0,0 +1,219 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package omics + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/omics/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Retrieve the details for the specified run cache. +// +// For more information, see [Call caching for HealthOmics runs] in the AWS HealthOmics User Guide. +// +// [Call caching for HealthOmics runs]: https://docs.aws.amazon.com/omics/latest/dev/workflow-call-caching.html +func (c *Client) GetRunCache(ctx context.Context, params *GetRunCacheInput, optFns ...func(*Options)) (*GetRunCacheOutput, error) { + if params == nil { + params = &GetRunCacheInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetRunCache", params, optFns, c.addOperationGetRunCacheMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetRunCacheOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetRunCacheInput struct { + + // The identifier of the run cache to retrieve. + // + // This member is required. + Id *string + + noSmithyDocumentSerde +} + +type GetRunCacheOutput struct { + + // Unique resource identifier for the run cache. + Arn *string + + // The default cache behavior for runs using this cache. + CacheBehavior types.CacheBehavior + + // The identifier of the bucket owner. + CacheBucketOwnerId *string + + // The S3 URI where the cache data is stored. + CacheS3Uri *string + + // Creation time of the run cache (an ISO 8601 formatted string). + CreationTime *time.Time + + // The run cache description. + Description *string + + // The run cache ID. + Id *string + + // The run cache name. + Name *string + + // The run cache status. + Status types.RunCacheStatus + + // The tags associated with the run cache. + Tags map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetRunCacheMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetRunCache{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetRunCache{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetRunCache"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addEndpointPrefix_opGetRunCacheMiddleware(stack); err != nil { + return err + } + if err = addOpGetRunCacheValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetRunCache(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +type endpointPrefix_opGetRunCacheMiddleware struct { +} + +func (*endpointPrefix_opGetRunCacheMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opGetRunCacheMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleFinalize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + req.URL.Host = "workflows-" + req.URL.Host + + return next.HandleFinalize(ctx, in) +} +func addEndpointPrefix_opGetRunCacheMiddleware(stack *middleware.Stack) error { + return stack.Finalize.Insert(&endpointPrefix_opGetRunCacheMiddleware{}, "ResolveEndpointV2", middleware.After) +} + +func newServiceMetadataMiddleware_opGetRunCache(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetRunCache", + } +} diff --git a/service/omics/api_op_GetRunTask.go b/service/omics/api_op_GetRunTask.go index 26c3e6f2087..6c151dd1c31 100644 --- a/service/omics/api_op_GetRunTask.go +++ b/service/omics/api_op_GetRunTask.go @@ -48,6 +48,13 @@ type GetRunTaskInput struct { type GetRunTaskOutput struct { + // Set to true if AWS HealthOmics found a matching entry in the run cache for this + // task. + CacheHit *bool + + // The S3 URI of the cache location. + CacheS3Uri *string + // The task's CPU usage. Cpus *int32 diff --git a/service/omics/api_op_ListRunCaches.go b/service/omics/api_op_ListRunCaches.go new file mode 100644 index 00000000000..19f1c93044b --- /dev/null +++ b/service/omics/api_op_ListRunCaches.go @@ -0,0 +1,282 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package omics + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/omics/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieves a list of your run caches. +func (c *Client) ListRunCaches(ctx context.Context, params *ListRunCachesInput, optFns ...func(*Options)) (*ListRunCachesOutput, error) { + if params == nil { + params = &ListRunCachesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListRunCaches", params, optFns, c.addOperationListRunCachesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListRunCachesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListRunCachesInput struct { + + // The maximum number of results to return. + MaxResults *int32 + + // Optional pagination token returned from a prior call to the ListRunCaches API + // operation. + StartingToken *string + + noSmithyDocumentSerde +} + +type ListRunCachesOutput struct { + + // Details about each run cache in the response. + Items []types.RunCacheListItem + + // Pagination token to retrieve additional run caches. If the response does not + // have a nextToken value, you have reached to the end of the list. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListRunCachesMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListRunCaches{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListRunCaches{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListRunCaches"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addEndpointPrefix_opListRunCachesMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListRunCaches(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +// ListRunCachesPaginatorOptions is the paginator options for ListRunCaches +type ListRunCachesPaginatorOptions 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 +} + +// ListRunCachesPaginator is a paginator for ListRunCaches +type ListRunCachesPaginator struct { + options ListRunCachesPaginatorOptions + client ListRunCachesAPIClient + params *ListRunCachesInput + nextToken *string + firstPage bool +} + +// NewListRunCachesPaginator returns a new ListRunCachesPaginator +func NewListRunCachesPaginator(client ListRunCachesAPIClient, params *ListRunCachesInput, optFns ...func(*ListRunCachesPaginatorOptions)) *ListRunCachesPaginator { + if params == nil { + params = &ListRunCachesInput{} + } + + options := ListRunCachesPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListRunCachesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.StartingToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListRunCachesPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListRunCaches page. +func (p *ListRunCachesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListRunCachesOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.StartingToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + optFns = append([]func(*Options){ + addIsPaginatorUserAgent, + }, optFns...) + result, err := p.client.ListRunCaches(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 +} + +type endpointPrefix_opListRunCachesMiddleware struct { +} + +func (*endpointPrefix_opListRunCachesMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opListRunCachesMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleFinalize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + req.URL.Host = "workflows-" + req.URL.Host + + return next.HandleFinalize(ctx, in) +} +func addEndpointPrefix_opListRunCachesMiddleware(stack *middleware.Stack) error { + return stack.Finalize.Insert(&endpointPrefix_opListRunCachesMiddleware{}, "ResolveEndpointV2", middleware.After) +} + +// ListRunCachesAPIClient is a client that implements the ListRunCaches operation. +type ListRunCachesAPIClient interface { + ListRunCaches(context.Context, *ListRunCachesInput, ...func(*Options)) (*ListRunCachesOutput, error) +} + +var _ ListRunCachesAPIClient = (*Client)(nil) + +func newServiceMetadataMiddleware_opListRunCaches(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListRunCaches", + } +} diff --git a/service/omics/api_op_ListRuns.go b/service/omics/api_op_ListRuns.go index 158d17cab8b..967d92296f1 100644 --- a/service/omics/api_op_ListRuns.go +++ b/service/omics/api_op_ListRuns.go @@ -12,6 +12,13 @@ import ( ) // Retrieves a list of runs. +// +// HealthOmics stores a fixed number of runs that are available to the console and +// API. If the ListRuns response doesn't include specific runs that you expected, +// you can find run logs for all runs in the CloudWatch logs. For more information +// about viewing the run logs, see [CloudWatch logs]in the AWS HealthOmics User Guide. +// +// [CloudWatch logs]: https://docs.aws.amazon.com/omics/latest/dev/cloudwatch-logs.html func (c *Client) ListRuns(ctx context.Context, params *ListRunsInput, optFns ...func(*Options)) (*ListRunsOutput, error) { if params == nil { params = &ListRunsInput{} diff --git a/service/omics/api_op_StartRun.go b/service/omics/api_op_StartRun.go index a4cfb5f8cb4..4d18c611388 100644 --- a/service/omics/api_op_StartRun.go +++ b/service/omics/api_op_StartRun.go @@ -17,10 +17,10 @@ import ( // // StartRun will not support re-run for a workflow that is shared with you. // -// The total number of runs in your account is subject to a quota per Region. To -// avoid needing to delete runs manually, you can set the retention mode to REMOVE -// . Runs with this setting are deleted automatically when the run quoata is -// exceeded. +// HealthOmics stores a fixed number of runs that are available to the console and +// API. By default, HealthOmics doesn't any remove any runs. If HealthOmics reaches +// the maximum number of runs, you must manually remove runs. To have older runs +// removed automatically, set the retention mode to REMOVE . // // By default, the run uses STATIC storage. For STATIC storage, set the // storageCapacity field. You can set the storage type to DYNAMIC. You do not set @@ -57,6 +57,17 @@ type StartRunInput struct { // This member is required. RoleArn *string + // The cache behavior for the run. You specify this value if you want to override + // the default behavior for the cache. You had set the default value when you + // created the cache. For more information, see [Run cache behavior]in the AWS HealthOmics User Guide. + // + // [Run cache behavior]: https://docs.aws.amazon.com/omics/latest/dev/how-run-cache.html#run-cache-behavior + CacheBehavior types.CacheBehavior + + // Identifier of the cache associated with this run. If you don't specify a cache + // ID, no task outputs are cached for this run. + CacheId *string + // A log level for the run. LogLevel types.RunLogLevel @@ -72,7 +83,20 @@ type StartRunInput struct { // A priority for the run. Priority *int32 - // The retention mode for the run. + // The retention mode for the run. The default value is RETAIN. + // + // HealthOmics stores a fixed number of runs that are available to the console and + // API. In the default mode (RETAIN), you need to remove runs manually when the + // number of run exceeds the maximum. If you set the retention mode to REMOVE , + // HealthOmics automatically removes runs (that have mode set to REMOVE) when the + // number of run exceeds the maximum. All run logs are available in CloudWatch + // logs, if you need information about a run that is no longer available to the + // API. + // + // For more information about retention mode, see [Specifying run retention mode] in the AWS HealthOmics User + // Guide. + // + // [Specifying run retention mode]: https://docs.aws.amazon.com/omics/latest/dev/starting-a-run.html RetentionMode types.RunRetentionMode // The run's group ID. @@ -108,7 +132,7 @@ type StartRunInput struct { type StartRunOutput struct { - // The run's ARN. + // Unique resource identifier for the run. Arn *string // The run's ID. diff --git a/service/omics/api_op_UpdateRunCache.go b/service/omics/api_op_UpdateRunCache.go new file mode 100644 index 00000000000..90c72616706 --- /dev/null +++ b/service/omics/api_op_UpdateRunCache.go @@ -0,0 +1,192 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package omics + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/omics/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Update a run cache. +func (c *Client) UpdateRunCache(ctx context.Context, params *UpdateRunCacheInput, optFns ...func(*Options)) (*UpdateRunCacheOutput, error) { + if params == nil { + params = &UpdateRunCacheInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateRunCache", params, optFns, c.addOperationUpdateRunCacheMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateRunCacheOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateRunCacheInput struct { + + // The identifier of the run cache you want to update. + // + // This member is required. + Id *string + + // Update the default run cache behavior. + CacheBehavior types.CacheBehavior + + // Update the run cache description. + Description *string + + // Update the name of the run cache. + Name *string + + noSmithyDocumentSerde +} + +type UpdateRunCacheOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateRunCacheMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateRunCache{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateRunCache{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateRunCache"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addEndpointPrefix_opUpdateRunCacheMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateRunCacheValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateRunCache(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +type endpointPrefix_opUpdateRunCacheMiddleware struct { +} + +func (*endpointPrefix_opUpdateRunCacheMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opUpdateRunCacheMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleFinalize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + req.URL.Host = "workflows-" + req.URL.Host + + return next.HandleFinalize(ctx, in) +} +func addEndpointPrefix_opUpdateRunCacheMiddleware(stack *middleware.Stack) error { + return stack.Finalize.Insert(&endpointPrefix_opUpdateRunCacheMiddleware{}, "ResolveEndpointV2", middleware.After) +} + +func newServiceMetadataMiddleware_opUpdateRunCache(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "UpdateRunCache", + } +} diff --git a/service/omics/deserializers.go b/service/omics/deserializers.go index 8a3b542c4dd..9a4e43e9f63 100644 --- a/service/omics/deserializers.go +++ b/service/omics/deserializers.go @@ -1918,6 +1918,206 @@ func awsRestjson1_deserializeOpDocumentCreateReferenceStoreOutput(v **CreateRefe return nil } +type awsRestjson1_deserializeOpCreateRunCache struct { +} + +func (*awsRestjson1_deserializeOpCreateRunCache) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateRunCache) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorCreateRunCache(response, &metadata) + } + output := &CreateRunCacheOutput{} + 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_deserializeOpDocumentCreateRunCacheOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateRunCache(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return 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("RequestTimeoutException", errorCode): + return awsRestjson1_deserializeErrorRequestTimeoutException(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_deserializeOpDocumentCreateRunCacheOutput(v **CreateRunCacheOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateRunCacheOutput + if *v == nil { + sv = &CreateRunCacheOutput{} + } 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 RunCacheArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RunCacheId to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } + + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RunCacheStatus to be of type string, got %T instead", value) + } + sv.Status = types.RunCacheStatus(jtv) + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + type awsRestjson1_deserializeOpCreateRunGroup struct { } @@ -3610,14 +3810,14 @@ func awsRestjson1_deserializeOpErrorDeleteRun(response *smithyhttp.Response, met } } -type awsRestjson1_deserializeOpDeleteRunGroup struct { +type awsRestjson1_deserializeOpDeleteRunCache struct { } -func (*awsRestjson1_deserializeOpDeleteRunGroup) ID() string { +func (*awsRestjson1_deserializeOpDeleteRunCache) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteRunGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteRunCache) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3635,9 +3835,9 @@ func (m *awsRestjson1_deserializeOpDeleteRunGroup) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteRunGroup(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteRunCache(response, &metadata) } - output := &DeleteRunGroupOutput{} + output := &DeleteRunCacheOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -3650,7 +3850,7 @@ func (m *awsRestjson1_deserializeOpDeleteRunGroup) HandleDeserialize(ctx context return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteRunGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteRunCache(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3725,14 +3925,14 @@ func awsRestjson1_deserializeOpErrorDeleteRunGroup(response *smithyhttp.Response } } -type awsRestjson1_deserializeOpDeleteSequenceStore struct { +type awsRestjson1_deserializeOpDeleteRunGroup struct { } -func (*awsRestjson1_deserializeOpDeleteSequenceStore) ID() string { +func (*awsRestjson1_deserializeOpDeleteRunGroup) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteSequenceStore) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteRunGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3750,16 +3950,22 @@ func (m *awsRestjson1_deserializeOpDeleteSequenceStore) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteSequenceStore(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteRunGroup(response, &metadata) } - output := &DeleteSequenceStoreOutput{} + output := &DeleteRunGroupOutput{} 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), + } + } + span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteSequenceStore(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteRunGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3815,6 +4021,9 @@ func awsRestjson1_deserializeOpErrorDeleteSequenceStore(response *smithyhttp.Res 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) @@ -3831,14 +4040,14 @@ func awsRestjson1_deserializeOpErrorDeleteSequenceStore(response *smithyhttp.Res } } -type awsRestjson1_deserializeOpDeleteShare struct { +type awsRestjson1_deserializeOpDeleteSequenceStore struct { } -func (*awsRestjson1_deserializeOpDeleteShare) ID() string { +func (*awsRestjson1_deserializeOpDeleteSequenceStore) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteShare) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteSequenceStore) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3856,44 +4065,150 @@ func (m *awsRestjson1_deserializeOpDeleteShare) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteShare(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteSequenceStore(response, &metadata) } - output := &DeleteShareOutput{} + output := &DeleteSequenceStoreOutput{} 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_deserializeOpDocumentDeleteShareOutput(&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(), - } - } - span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteShare(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteSequenceStore(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return 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("RequestTimeoutException", errorCode): + return awsRestjson1_deserializeErrorRequestTimeoutException(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_deserializeOpDeleteShare struct { +} + +func (*awsRestjson1_deserializeOpDeleteShare) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteShare) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorDeleteShare(response, &metadata) + } + output := &DeleteShareOutput{} + 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_deserializeOpDocumentDeleteShareOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeleteShare(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7301,6 +7616,24 @@ func awsRestjson1_deserializeOpDocumentGetRunOutput(v **GetRunOutput, value inte sv.Arn = ptr.String(jtv) } + case "cacheBehavior": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CacheBehavior to be of type string, got %T instead", value) + } + sv.CacheBehavior = types.CacheBehavior(jtv) + } + + case "cacheId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NumericIdInArn to be of type string, got %T instead", value) + } + sv.CacheId = ptr.String(jtv) + } + case "creationTime": if value != nil { jtv, ok := value.(string) @@ -7332,6 +7665,15 @@ func awsRestjson1_deserializeOpDocumentGetRunOutput(v **GetRunOutput, value inte sv.Digest = ptr.String(jtv) } + case "engineVersion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EngineVersion to be of type string, got %T instead", value) + } + sv.EngineVersion = ptr.String(jtv) + } + case "failureReason": if value != nil { jtv, ok := value.(string) @@ -7450,120 +7792,378 @@ func awsRestjson1_deserializeOpDocumentGetRunOutput(v **GetRunOutput, value inte sv.RunOutputUri = ptr.String(jtv) } - case "startedBy": + case "startedBy": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RunStartedBy to be of type string, got %T instead", value) + } + sv.StartedBy = ptr.String(jtv) + } + + case "startTime": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RunTimestamp to be of type string, got %T instead", value) + } + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err + } + sv.StartTime = ptr.Time(t) + } + + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RunStatus to be of type string, got %T instead", value) + } + sv.Status = types.RunStatus(jtv) + } + + case "statusMessage": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RunStatusMessage to be of type string, got %T instead", value) + } + sv.StatusMessage = ptr.String(jtv) + } + + case "stopTime": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RunTimestamp to be of type string, got %T instead", value) + } + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err + } + sv.StopTime = ptr.Time(t) + } + + case "storageCapacity": + 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.StorageCapacity = ptr.Int32(int32(i64)) + } + + 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) + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err + } + + case "uuid": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RunUuid to be of type string, got %T instead", value) + } + sv.Uuid = ptr.String(jtv) + } + + case "workflowId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected WorkflowId to be of type string, got %T instead", value) + } + sv.WorkflowId = ptr.String(jtv) + } + + case "workflowOwnerId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected WorkflowOwnerId to be of type string, got %T instead", value) + } + sv.WorkflowOwnerId = ptr.String(jtv) + } + + case "workflowType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected WorkflowType to be of type string, got %T instead", value) + } + sv.WorkflowType = types.WorkflowType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetRunCache struct { +} + +func (*awsRestjson1_deserializeOpGetRunCache) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetRunCache) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorGetRunCache(response, &metadata) + } + output := &GetRunCacheOutput{} + 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_deserializeOpDocumentGetRunCacheOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetRunCache(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return 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("RequestTimeoutException", errorCode): + return awsRestjson1_deserializeErrorRequestTimeoutException(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_deserializeOpDocumentGetRunCacheOutput(v **GetRunCacheOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GetRunCacheOutput + if *v == nil { + sv = &GetRunCacheOutput{} + } 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 RunStartedBy to be of type string, got %T instead", value) + return fmt.Errorf("expected RunCacheArn to be of type string, got %T instead", value) } - sv.StartedBy = ptr.String(jtv) + sv.Arn = ptr.String(jtv) } - case "startTime": + case "cacheBehavior": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected RunTimestamp to be of type string, got %T instead", value) - } - t, err := smithytime.ParseDateTime(jtv) - if err != nil { - return err + return fmt.Errorf("expected CacheBehavior to be of type string, got %T instead", value) } - sv.StartTime = ptr.Time(t) + sv.CacheBehavior = types.CacheBehavior(jtv) } - case "status": + case "cacheBucketOwnerId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected RunStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) } - sv.Status = types.RunStatus(jtv) + sv.CacheBucketOwnerId = ptr.String(jtv) } - case "statusMessage": + case "cacheS3Uri": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected RunStatusMessage to be of type string, got %T instead", value) + return fmt.Errorf("expected S3UriForBucketOrObject to be of type string, got %T instead", value) } - sv.StatusMessage = ptr.String(jtv) + sv.CacheS3Uri = ptr.String(jtv) } - case "stopTime": + case "creationTime": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected RunTimestamp to be of type string, got %T instead", value) + return fmt.Errorf("expected RunCacheTimestamp to be of type string, got %T instead", value) } t, err := smithytime.ParseDateTime(jtv) if err != nil { return err } - sv.StopTime = ptr.Time(t) - } - - case "storageCapacity": - 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.StorageCapacity = ptr.Int32(int32(i64)) + sv.CreationTime = ptr.Time(t) } - case "storageType": + case "description": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected StorageType to be of type string, got %T instead", value) + return fmt.Errorf("expected UserCustomDescription to be of type string, got %T instead", value) } - sv.StorageType = types.StorageType(jtv) - } - - case "tags": - if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { - return err + sv.Description = ptr.String(jtv) } - case "uuid": + case "id": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected RunUuid to be of type string, got %T instead", value) + return fmt.Errorf("expected RunCacheId to be of type string, got %T instead", value) } - sv.Uuid = ptr.String(jtv) + sv.Id = ptr.String(jtv) } - case "workflowId": + case "name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected WorkflowId to be of type string, got %T instead", value) + return fmt.Errorf("expected UserCustomName to be of type string, got %T instead", value) } - sv.WorkflowId = ptr.String(jtv) + sv.Name = ptr.String(jtv) } - case "workflowOwnerId": + case "status": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected WorkflowOwnerId to be of type string, got %T instead", value) + return fmt.Errorf("expected RunCacheStatus to be of type string, got %T instead", value) } - sv.WorkflowOwnerId = ptr.String(jtv) + sv.Status = types.RunCacheStatus(jtv) } - case "workflowType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected WorkflowType to be of type string, got %T instead", value) - } - sv.WorkflowType = types.WorkflowType(jtv) + case "tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err } default: @@ -7999,6 +8599,24 @@ func awsRestjson1_deserializeOpDocumentGetRunTaskOutput(v **GetRunTaskOutput, va for key, value := range shape { switch key { + case "cacheHit": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.CacheHit = ptr.Bool(jtv) + } + + case "cacheS3Uri": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected S3UriForBucketOrObject to be of type string, got %T instead", value) + } + sv.CacheS3Uri = ptr.String(jtv) + } + case "cpus": if value != nil { jtv, ok := value.(json.Number) @@ -11471,7 +12089,189 @@ func awsRestjson1_deserializeOpErrorListReferenceStores(response *smithyhttp.Res } } -func awsRestjson1_deserializeOpDocumentListReferenceStoresOutput(v **ListReferenceStoresOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListReferenceStoresOutput(v **ListReferenceStoresOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListReferenceStoresOutput + if *v == nil { + sv = &ListReferenceStoresOutput{} + } 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 "referenceStores": + if err := awsRestjson1_deserializeDocumentReferenceStoreDetailList(&sv.ReferenceStores, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListRunCaches struct { +} + +func (*awsRestjson1_deserializeOpListRunCaches) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListRunCaches) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorListRunCaches(response, &metadata) + } + output := &ListRunCachesOutput{} + 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_deserializeOpDocumentListRunCachesOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListRunCaches(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return 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("RequestTimeoutException", errorCode): + return awsRestjson1_deserializeErrorRequestTimeoutException(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_deserializeOpDocumentListRunCachesOutput(v **ListRunCachesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11484,29 +12284,29 @@ func awsRestjson1_deserializeOpDocumentListReferenceStoresOutput(v **ListReferen return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListReferenceStoresOutput + var sv *ListRunCachesOutput if *v == nil { - sv = &ListReferenceStoresOutput{} + sv = &ListRunCachesOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "items": + if err := awsRestjson1_deserializeDocumentRunCacheList(&sv.Items, 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) + return fmt.Errorf("expected ListToken to be of type string, got %T instead", value) } sv.NextToken = ptr.String(jtv) } - case "referenceStores": - if err := awsRestjson1_deserializeDocumentReferenceStoreDetailList(&sv.ReferenceStores, value); err != nil { - return err - } - default: _, _ = key, value @@ -15219,6 +16019,121 @@ func awsRestjson1_deserializeOpDocumentUpdateAnnotationStoreVersionOutput(v **Up return nil } +type awsRestjson1_deserializeOpUpdateRunCache struct { +} + +func (*awsRestjson1_deserializeOpUpdateRunCache) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateRunCache) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorUpdateRunCache(response, &metadata) + } + output := &UpdateRunCacheOutput{} + 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), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateRunCache(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return 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("RequestTimeoutException", errorCode): + return awsRestjson1_deserializeErrorRequestTimeoutException(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 + + } +} + type awsRestjson1_deserializeOpUpdateRunGroup struct { } @@ -19459,6 +20374,138 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } +func awsRestjson1_deserializeDocumentRunCacheList(v *[]types.RunCacheListItem, 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.RunCacheListItem + if *v == nil { + cv = []types.RunCacheListItem{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.RunCacheListItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentRunCacheListItem(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentRunCacheListItem(v **types.RunCacheListItem, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.RunCacheListItem + if *v == nil { + sv = &types.RunCacheListItem{} + } 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 RunCacheArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "cacheBehavior": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CacheBehavior to be of type string, got %T instead", value) + } + sv.CacheBehavior = types.CacheBehavior(jtv) + } + + case "cacheS3Uri": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected S3UriForBucketOrObject to be of type string, got %T instead", value) + } + sv.CacheS3Uri = ptr.String(jtv) + } + + case "creationTime": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RunCacheTimestamp 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 "id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RunCacheId 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 UserCustomName 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 RunCacheStatus to be of type string, got %T instead", value) + } + sv.Status = types.RunCacheStatus(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentRunGroupList(v *[]types.RunGroupListItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -20655,6 +21702,24 @@ func awsRestjson1_deserializeDocumentTaskListItem(v **types.TaskListItem, value for key, value := range shape { switch key { + case "cacheHit": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.CacheHit = ptr.Bool(jtv) + } + + case "cacheS3Uri": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected S3UriForBucketOrObject to be of type string, got %T instead", value) + } + sv.CacheS3Uri = ptr.String(jtv) + } + case "cpus": if value != nil { jtv, ok := value.(json.Number) diff --git a/service/omics/generated.json b/service/omics/generated.json index 2b06bb2d046..753e9819457 100644 --- a/service/omics/generated.json +++ b/service/omics/generated.json @@ -20,6 +20,7 @@ "api_op_CreateAnnotationStoreVersion.go", "api_op_CreateMultipartReadSetUpload.go", "api_op_CreateReferenceStore.go", + "api_op_CreateRunCache.go", "api_op_CreateRunGroup.go", "api_op_CreateSequenceStore.go", "api_op_CreateShare.go", @@ -30,6 +31,7 @@ "api_op_DeleteReference.go", "api_op_DeleteReferenceStore.go", "api_op_DeleteRun.go", + "api_op_DeleteRunCache.go", "api_op_DeleteRunGroup.go", "api_op_DeleteSequenceStore.go", "api_op_DeleteShare.go", @@ -48,6 +50,7 @@ "api_op_GetReferenceMetadata.go", "api_op_GetReferenceStore.go", "api_op_GetRun.go", + "api_op_GetRunCache.go", "api_op_GetRunGroup.go", "api_op_GetRunTask.go", "api_op_GetSequenceStore.go", @@ -67,6 +70,7 @@ "api_op_ListReferenceImportJobs.go", "api_op_ListReferenceStores.go", "api_op_ListReferences.go", + "api_op_ListRunCaches.go", "api_op_ListRunGroups.go", "api_op_ListRunTasks.go", "api_op_ListRuns.go", @@ -87,6 +91,7 @@ "api_op_UntagResource.go", "api_op_UpdateAnnotationStore.go", "api_op_UpdateAnnotationStoreVersion.go", + "api_op_UpdateRunCache.go", "api_op_UpdateRunGroup.go", "api_op_UpdateVariantStore.go", "api_op_UpdateWorkflow.go", diff --git a/service/omics/go.mod b/service/omics/go.mod index 8d082b7e897..e20a7e96179 100644 --- a/service/omics/go.mod +++ b/service/omics/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/omics go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/omics/go.sum b/service/omics/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/omics/go.sum +++ b/service/omics/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/omics/go_module_metadata.go b/service/omics/go_module_metadata.go index 5f766367741..f6ad75c67cc 100644 --- a/service/omics/go_module_metadata.go +++ b/service/omics/go_module_metadata.go @@ -3,4 +3,4 @@ package omics // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.5" +const goModuleVersion = "1.27.0" diff --git a/service/omics/serializers.go b/service/omics/serializers.go index 95cccd07556..0ea899d1d18 100644 --- a/service/omics/serializers.go +++ b/service/omics/serializers.go @@ -1061,6 +1061,119 @@ func awsRestjson1_serializeOpDocumentCreateReferenceStoreInput(v *CreateReferenc return nil } +type awsRestjson1_serializeOpCreateRunCache struct { +} + +func (*awsRestjson1_serializeOpCreateRunCache) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateRunCache) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*CreateRunCacheInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/runCache") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, 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_serializeOpDocumentCreateRunCacheInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateRunCacheInput(v *CreateRunCacheInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateRunCacheInput(v *CreateRunCacheInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.CacheBehavior) > 0 { + ok := object.Key("cacheBehavior") + ok.String(string(v.CacheBehavior)) + } + + if v.CacheBucketOwnerId != nil { + ok := object.Key("cacheBucketOwnerId") + ok.String(*v.CacheBucketOwnerId) + } + + if v.CacheS3Location != nil { + ok := object.Key("cacheS3Location") + ok.String(*v.CacheS3Location) + } + + 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.RequestId != nil { + ok := object.Key("requestId") + ok.String(*v.RequestId) + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpCreateRunGroup struct { } @@ -2019,6 +2132,77 @@ func awsRestjson1_serializeOpHttpBindingsDeleteRunInput(v *DeleteRunInput, encod return nil } +type awsRestjson1_serializeOpDeleteRunCache struct { +} + +func (*awsRestjson1_serializeOpDeleteRunCache) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteRunCache) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DeleteRunCacheInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/runCache/{id}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteRunCacheInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteRunCacheInput(v *DeleteRunCacheInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.Id == nil || len(*v.Id) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} + } + if v.Id != nil { + if err := encoder.SetURI("id").String(*v.Id); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpDeleteRunGroup struct { } @@ -3409,6 +3593,77 @@ func awsRestjson1_serializeOpHttpBindingsGetRunInput(v *GetRunInput, encoder *ht return nil } +type awsRestjson1_serializeOpGetRunCache struct { +} + +func (*awsRestjson1_serializeOpGetRunCache) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetRunCache) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*GetRunCacheInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/runCache/{id}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetRunCacheInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetRunCacheInput(v *GetRunCacheInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.Id == nil || len(*v.Id) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} + } + if v.Id != nil { + if err := encoder.SetURI("id").String(*v.Id); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpGetRunGroup struct { } @@ -5153,6 +5408,76 @@ func awsRestjson1_serializeOpDocumentListReferenceStoresInput(v *ListReferenceSt return nil } +type awsRestjson1_serializeOpListRunCaches struct { +} + +func (*awsRestjson1_serializeOpListRunCaches) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListRunCaches) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*ListRunCachesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/runCache") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListRunCachesInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListRunCachesInput(v *ListRunCachesInput, 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.StartingToken != nil { + encoder.SetQuery("startingToken").String(*v.StartingToken) + } + + return nil +} + type awsRestjson1_serializeOpListRunGroups struct { } @@ -6554,6 +6879,16 @@ func awsRestjson1_serializeOpDocumentStartRunInput(v *StartRunInput, value smith object := value.Object() defer object.Close() + if len(v.CacheBehavior) > 0 { + ok := object.Key("cacheBehavior") + ok.String(string(v.CacheBehavior)) + } + + if v.CacheId != nil { + ok := object.Key("cacheId") + ok.String(*v.CacheId) + } + if len(v.LogLevel) > 0 { ok := object.Key("logLevel") ok.String(string(v.LogLevel)) @@ -7116,6 +7451,110 @@ func awsRestjson1_serializeOpDocumentUpdateAnnotationStoreVersionInput(v *Update return nil } +type awsRestjson1_serializeOpUpdateRunCache struct { +} + +func (*awsRestjson1_serializeOpUpdateRunCache) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateRunCache) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*UpdateRunCacheInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/runCache/{id}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateRunCacheInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateRunCacheInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateRunCacheInput(v *UpdateRunCacheInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.Id == nil || len(*v.Id) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member id must not be empty")} + } + if v.Id != nil { + if err := encoder.SetURI("id").String(*v.Id); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateRunCacheInput(v *UpdateRunCacheInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.CacheBehavior) > 0 { + ok := object.Key("cacheBehavior") + ok.String(string(v.CacheBehavior)) + } + + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + if v.Name != nil { + ok := object.Key("name") + ok.String(*v.Name) + } + + return nil +} + type awsRestjson1_serializeOpUpdateRunGroup struct { } diff --git a/service/omics/snapshot/api_op_CreateRunCache.go.snap b/service/omics/snapshot/api_op_CreateRunCache.go.snap new file mode 100644 index 00000000000..02acf2f2243 --- /dev/null +++ b/service/omics/snapshot/api_op_CreateRunCache.go.snap @@ -0,0 +1,43 @@ +CreateRunCache + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + OperationIdempotencyTokenAutoFill + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + EndpointHostPrefix + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/omics/snapshot/api_op_DeleteRunCache.go.snap b/service/omics/snapshot/api_op_DeleteRunCache.go.snap new file mode 100644 index 00000000000..207145119cf --- /dev/null +++ b/service/omics/snapshot/api_op_DeleteRunCache.go.snap @@ -0,0 +1,42 @@ +DeleteRunCache + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + EndpointHostPrefix + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/omics/snapshot/api_op_GetRunCache.go.snap b/service/omics/snapshot/api_op_GetRunCache.go.snap new file mode 100644 index 00000000000..ea50c68332f --- /dev/null +++ b/service/omics/snapshot/api_op_GetRunCache.go.snap @@ -0,0 +1,42 @@ +GetRunCache + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + EndpointHostPrefix + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/omics/snapshot/api_op_ListRunCaches.go.snap b/service/omics/snapshot/api_op_ListRunCaches.go.snap new file mode 100644 index 00000000000..d7600640bec --- /dev/null +++ b/service/omics/snapshot/api_op_ListRunCaches.go.snap @@ -0,0 +1,41 @@ +ListRunCaches + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + EndpointHostPrefix + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/omics/snapshot/api_op_UpdateRunCache.go.snap b/service/omics/snapshot/api_op_UpdateRunCache.go.snap new file mode 100644 index 00000000000..fdfc29fbf5f --- /dev/null +++ b/service/omics/snapshot/api_op_UpdateRunCache.go.snap @@ -0,0 +1,42 @@ +UpdateRunCache + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + EndpointHostPrefix + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/omics/snapshot_test.go b/service/omics/snapshot_test.go index f18d01da5f7..b9fd1a54272 100644 --- a/service/omics/snapshot_test.go +++ b/service/omics/snapshot_test.go @@ -194,6 +194,18 @@ func TestCheckSnapshot_CreateReferenceStore(t *testing.T) { } } +func TestCheckSnapshot_CreateRunCache(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateRunCache(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "CreateRunCache") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_CreateRunGroup(t *testing.T) { svc := New(Options{}) _, err := svc.CreateRunGroup(context.Background(), nil, func(o *Options) { @@ -314,6 +326,18 @@ func TestCheckSnapshot_DeleteRun(t *testing.T) { } } +func TestCheckSnapshot_DeleteRunCache(t *testing.T) { + svc := New(Options{}) + _, err := svc.DeleteRunCache(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "DeleteRunCache") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_DeleteRunGroup(t *testing.T) { svc := New(Options{}) _, err := svc.DeleteRunGroup(context.Background(), nil, func(o *Options) { @@ -530,6 +554,18 @@ func TestCheckSnapshot_GetRun(t *testing.T) { } } +func TestCheckSnapshot_GetRunCache(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetRunCache(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "GetRunCache") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_GetRunGroup(t *testing.T) { svc := New(Options{}) _, err := svc.GetRunGroup(context.Background(), nil, func(o *Options) { @@ -758,6 +794,18 @@ func TestCheckSnapshot_ListReferenceStores(t *testing.T) { } } +func TestCheckSnapshot_ListRunCaches(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListRunCaches(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "ListRunCaches") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_ListRunGroups(t *testing.T) { svc := New(Options{}) _, err := svc.ListRunGroups(context.Background(), nil, func(o *Options) { @@ -998,6 +1046,18 @@ func TestCheckSnapshot_UpdateAnnotationStoreVersion(t *testing.T) { } } +func TestCheckSnapshot_UpdateRunCache(t *testing.T) { + svc := New(Options{}) + _, err := svc.UpdateRunCache(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "UpdateRunCache") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_UpdateRunGroup(t *testing.T) { svc := New(Options{}) _, err := svc.UpdateRunGroup(context.Background(), nil, func(o *Options) { @@ -1177,6 +1237,18 @@ func TestUpdateSnapshot_CreateReferenceStore(t *testing.T) { } } +func TestUpdateSnapshot_CreateRunCache(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateRunCache(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "CreateRunCache") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_CreateRunGroup(t *testing.T) { svc := New(Options{}) _, err := svc.CreateRunGroup(context.Background(), nil, func(o *Options) { @@ -1297,6 +1369,18 @@ func TestUpdateSnapshot_DeleteRun(t *testing.T) { } } +func TestUpdateSnapshot_DeleteRunCache(t *testing.T) { + svc := New(Options{}) + _, err := svc.DeleteRunCache(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "DeleteRunCache") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_DeleteRunGroup(t *testing.T) { svc := New(Options{}) _, err := svc.DeleteRunGroup(context.Background(), nil, func(o *Options) { @@ -1513,6 +1597,18 @@ func TestUpdateSnapshot_GetRun(t *testing.T) { } } +func TestUpdateSnapshot_GetRunCache(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetRunCache(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "GetRunCache") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_GetRunGroup(t *testing.T) { svc := New(Options{}) _, err := svc.GetRunGroup(context.Background(), nil, func(o *Options) { @@ -1741,6 +1837,18 @@ func TestUpdateSnapshot_ListReferenceStores(t *testing.T) { } } +func TestUpdateSnapshot_ListRunCaches(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListRunCaches(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "ListRunCaches") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_ListRunGroups(t *testing.T) { svc := New(Options{}) _, err := svc.ListRunGroups(context.Background(), nil, func(o *Options) { @@ -1981,6 +2089,18 @@ func TestUpdateSnapshot_UpdateAnnotationStoreVersion(t *testing.T) { } } +func TestUpdateSnapshot_UpdateRunCache(t *testing.T) { + svc := New(Options{}) + _, err := svc.UpdateRunCache(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "UpdateRunCache") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_UpdateRunGroup(t *testing.T) { svc := New(Options{}) _, err := svc.UpdateRunGroup(context.Background(), nil, func(o *Options) { diff --git a/service/omics/types/enums.go b/service/omics/types/enums.go index df11f2d50d8..997a13f9fb6 100644 --- a/service/omics/types/enums.go +++ b/service/omics/types/enums.go @@ -57,6 +57,25 @@ func (AnnotationType) Values() []AnnotationType { } } +type CacheBehavior string + +// Enum values for CacheBehavior +const ( + CacheBehaviorCacheOnFailure CacheBehavior = "CACHE_ON_FAILURE" + CacheBehaviorCacheAlways CacheBehavior = "CACHE_ALWAYS" +) + +// Values returns all known values for CacheBehavior. 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 (CacheBehavior) Values() []CacheBehavior { + return []CacheBehavior{ + "CACHE_ON_FAILURE", + "CACHE_ALWAYS", + } +} + type CreationType string // Enum values for CreationType @@ -588,6 +607,27 @@ func (ResourceOwner) Values() []ResourceOwner { } } +type RunCacheStatus string + +// Enum values for RunCacheStatus +const ( + RunCacheStatusActive RunCacheStatus = "ACTIVE" + RunCacheStatusDeleted RunCacheStatus = "DELETED" + RunCacheStatusFailed RunCacheStatus = "FAILED" +) + +// Values returns all known values for RunCacheStatus. 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 (RunCacheStatus) Values() []RunCacheStatus { + return []RunCacheStatus{ + "ACTIVE", + "DELETED", + "FAILED", + } +} + type RunExport string // Enum values for RunExport diff --git a/service/omics/types/types.go b/service/omics/types/types.go index 6f3c2904f8e..9035a22180e 100644 --- a/service/omics/types/types.go +++ b/service/omics/types/types.go @@ -1103,6 +1103,33 @@ type ReferenceStoreFilter struct { noSmithyDocumentSerde } +// List entry for one run cache. +type RunCacheListItem struct { + + // Unique resource identifier for the run cache. + Arn *string + + // Default cache behavior for the run cache. + CacheBehavior CacheBehavior + + // The S3 uri for the run cache data. + CacheS3Uri *string + + // The time that this run cache was created (an ISO 8601 formatted string). + CreationTime *time.Time + + // The identifier for this run cache. + Id *string + + // The name of the run cache. + Name *string + + // The run cache status. + Status RunCacheStatus + + noSmithyDocumentSerde +} + // A run group. type RunGroupListItem struct { @@ -1426,6 +1453,13 @@ func (*StoreOptionsMemberTsvStoreOptions) isStoreOptions() {} // A workflow run task. type TaskListItem struct { + // Set to true if AWS HealthOmics found a matching entry in the run cache for this + // task. + CacheHit *bool + + // The S3 URI of the cache location. + CacheS3Uri *string + // The task's CPU count. Cpus *int32 diff --git a/service/omics/validators.go b/service/omics/validators.go index 8a44f55e908..9cf6ac0191b 100644 --- a/service/omics/validators.go +++ b/service/omics/validators.go @@ -230,6 +230,26 @@ func (m *validateOpCreateReferenceStore) HandleInitialize(ctx context.Context, i return next.HandleInitialize(ctx, in) } +type validateOpCreateRunCache struct { +} + +func (*validateOpCreateRunCache) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateRunCache) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateRunCacheInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateRunCacheInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateRunGroup struct { } @@ -410,6 +430,26 @@ func (m *validateOpDeleteReferenceStore) HandleInitialize(ctx context.Context, i return next.HandleInitialize(ctx, in) } +type validateOpDeleteRunCache struct { +} + +func (*validateOpDeleteRunCache) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteRunCache) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteRunCacheInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteRunCacheInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteRunGroup struct { } @@ -770,6 +810,26 @@ func (m *validateOpGetReferenceStore) HandleInitialize(ctx context.Context, in m return next.HandleInitialize(ctx, in) } +type validateOpGetRunCache struct { +} + +func (*validateOpGetRunCache) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetRunCache) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetRunCacheInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetRunCacheInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetRunGroup struct { } @@ -1390,6 +1450,26 @@ func (m *validateOpUpdateAnnotationStoreVersion) HandleInitialize(ctx context.Co return next.HandleInitialize(ctx, in) } +type validateOpUpdateRunCache struct { +} + +func (*validateOpUpdateRunCache) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateRunCache) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateRunCacheInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateRunCacheInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpUpdateRunGroup struct { } @@ -1514,6 +1594,10 @@ func addOpCreateReferenceStoreValidationMiddleware(stack *middleware.Stack) erro return stack.Initialize.Add(&validateOpCreateReferenceStore{}, middleware.After) } +func addOpCreateRunCacheValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateRunCache{}, middleware.After) +} + func addOpCreateRunGroupValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateRunGroup{}, middleware.After) } @@ -1550,6 +1634,10 @@ func addOpDeleteReferenceStoreValidationMiddleware(stack *middleware.Stack) erro return stack.Initialize.Add(&validateOpDeleteReferenceStore{}, middleware.After) } +func addOpDeleteRunCacheValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteRunCache{}, middleware.After) +} + func addOpDeleteRunGroupValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteRunGroup{}, middleware.After) } @@ -1622,6 +1710,10 @@ func addOpGetReferenceStoreValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetReferenceStore{}, middleware.After) } +func addOpGetRunCacheValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetRunCache{}, middleware.After) +} + func addOpGetRunGroupValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetRunGroup{}, middleware.After) } @@ -1746,6 +1838,10 @@ func addOpUpdateAnnotationStoreVersionValidationMiddleware(stack *middleware.Sta return stack.Initialize.Add(&validateOpUpdateAnnotationStoreVersion{}, middleware.After) } +func addOpUpdateRunCacheValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateRunCache{}, middleware.After) +} + func addOpUpdateRunGroupValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateRunGroup{}, middleware.After) } @@ -2244,6 +2340,24 @@ func validateOpCreateReferenceStoreInput(v *CreateReferenceStoreInput) error { } } +func validateOpCreateRunCacheInput(v *CreateRunCacheInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateRunCacheInput"} + if v.CacheS3Location == nil { + invalidParams.Add(smithy.NewErrParamRequired("CacheS3Location")) + } + if v.RequestId == nil { + invalidParams.Add(smithy.NewErrParamRequired("RequestId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateRunGroupInput(v *CreateRunGroupInput) error { if v == nil { return nil @@ -2398,6 +2512,21 @@ func validateOpDeleteReferenceStoreInput(v *DeleteReferenceStoreInput) error { } } +func validateOpDeleteRunCacheInput(v *DeleteRunCacheInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteRunCacheInput"} + if v.Id == nil { + invalidParams.Add(smithy.NewErrParamRequired("Id")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteRunGroupInput(v *DeleteRunGroupInput) error { if v == nil { return nil @@ -2701,6 +2830,21 @@ func validateOpGetReferenceStoreInput(v *GetReferenceStoreInput) error { } } +func validateOpGetRunCacheInput(v *GetRunCacheInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetRunCacheInput"} + if v.Id == nil { + invalidParams.Add(smithy.NewErrParamRequired("Id")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetRunGroupInput(v *GetRunGroupInput) error { if v == nil { return nil @@ -3247,6 +3391,21 @@ func validateOpUpdateAnnotationStoreVersionInput(v *UpdateAnnotationStoreVersion } } +func validateOpUpdateRunCacheInput(v *UpdateRunCacheInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateRunCacheInput"} + if v.Id == nil { + invalidParams.Add(smithy.NewErrParamRequired("Id")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpUpdateRunGroupInput(v *UpdateRunGroupInput) error { if v == nil { return nil diff --git a/service/opensearch/CHANGELOG.md b/service/opensearch/CHANGELOG.md index 4bdb14f9fa9..1a1c5bdcf1d 100644 --- a/service/opensearch/CHANGELOG.md +++ b/service/opensearch/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.44.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.44.0 (2024-11-11) * **Feature**: Adds Support for new AssociatePackages and DissociatePackages API in Amazon OpenSearch Service that allows association and dissociation operations to be carried out on multiple packages at the same time. diff --git a/service/opensearch/go.mod b/service/opensearch/go.mod index a947b2b2e4e..df31960a0d2 100644 --- a/service/opensearch/go.mod +++ b/service/opensearch/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/opensearch go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/opensearch/go.sum b/service/opensearch/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/opensearch/go.sum +++ b/service/opensearch/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/opensearch/go_module_metadata.go b/service/opensearch/go_module_metadata.go index 3d43642aa48..68ad881db06 100644 --- a/service/opensearch/go_module_metadata.go +++ b/service/opensearch/go_module_metadata.go @@ -3,4 +3,4 @@ package opensearch // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.44.0" +const goModuleVersion = "1.44.1" diff --git a/service/opensearchserverless/CHANGELOG.md b/service/opensearchserverless/CHANGELOG.md index ab357af5e4f..4c6d1d4d01e 100644 --- a/service/opensearchserverless/CHANGELOG.md +++ b/service/opensearchserverless/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.17.3 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.17.2 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/opensearchserverless/go.mod b/service/opensearchserverless/go.mod index 066e47535c1..70a3989f503 100644 --- a/service/opensearchserverless/go.mod +++ b/service/opensearchserverless/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/opensearchserverless go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/opensearchserverless/go.sum b/service/opensearchserverless/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/opensearchserverless/go.sum +++ b/service/opensearchserverless/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/opensearchserverless/go_module_metadata.go b/service/opensearchserverless/go_module_metadata.go index 9900a0eb087..2d807c40ef9 100644 --- a/service/opensearchserverless/go_module_metadata.go +++ b/service/opensearchserverless/go_module_metadata.go @@ -3,4 +3,4 @@ package opensearchserverless // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.17.2" +const goModuleVersion = "1.17.3" diff --git a/service/opsworks/CHANGELOG.md b/service/opsworks/CHANGELOG.md index d170f31603b..1db9af490e4 100644 --- a/service/opsworks/CHANGELOG.md +++ b/service/opsworks/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.26.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/opsworks/go.mod b/service/opsworks/go.mod index dc142cead09..3a6b112d42c 100644 --- a/service/opsworks/go.mod +++ b/service/opsworks/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/opsworks go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/opsworks/go.sum b/service/opsworks/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/opsworks/go.sum +++ b/service/opsworks/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/opsworks/go_module_metadata.go b/service/opsworks/go_module_metadata.go index e7f44502571..c917f461da0 100644 --- a/service/opsworks/go_module_metadata.go +++ b/service/opsworks/go_module_metadata.go @@ -3,4 +3,4 @@ package opsworks // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.5" +const goModuleVersion = "1.26.6" diff --git a/service/opsworkscm/CHANGELOG.md b/service/opsworkscm/CHANGELOG.md index 5d685aea797..5d7acf23712 100644 --- a/service/opsworkscm/CHANGELOG.md +++ b/service/opsworkscm/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/opsworkscm/go.mod b/service/opsworkscm/go.mod index d7de9e90d5f..f24d6b57566 100644 --- a/service/opsworkscm/go.mod +++ b/service/opsworkscm/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/opsworkscm go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/opsworkscm/go.sum b/service/opsworkscm/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/opsworkscm/go.sum +++ b/service/opsworkscm/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/opsworkscm/go_module_metadata.go b/service/opsworkscm/go_module_metadata.go index 44fa628878d..e3e3eb3961d 100644 --- a/service/opsworkscm/go_module_metadata.go +++ b/service/opsworkscm/go_module_metadata.go @@ -3,4 +3,4 @@ package opsworkscm // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.5" +const goModuleVersion = "1.27.6" diff --git a/service/organizations/CHANGELOG.md b/service/organizations/CHANGELOG.md index c8eb365d937..5182e8794d1 100644 --- a/service/organizations/CHANGELOG.md +++ b/service/organizations/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.35.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.35.0 (2024-11-13) * **Feature**: Add support for policy operations on the Resource Control Polices. diff --git a/service/organizations/go.mod b/service/organizations/go.mod index 3ef6eeea509..79798a9f490 100644 --- a/service/organizations/go.mod +++ b/service/organizations/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/organizations go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/organizations/go.sum b/service/organizations/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/organizations/go.sum +++ b/service/organizations/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/organizations/go_module_metadata.go b/service/organizations/go_module_metadata.go index 1a33da74e33..fcfbbb8ff2c 100644 --- a/service/organizations/go_module_metadata.go +++ b/service/organizations/go_module_metadata.go @@ -3,4 +3,4 @@ package organizations // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.35.0" +const goModuleVersion = "1.35.1" diff --git a/service/osis/CHANGELOG.md b/service/osis/CHANGELOG.md index 842afb5e581..88635c4f80b 100644 --- a/service/osis/CHANGELOG.md +++ b/service/osis/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.14.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.14.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/osis/go.mod b/service/osis/go.mod index 4985d4ed6bd..e4297ce3596 100644 --- a/service/osis/go.mod +++ b/service/osis/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/osis go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/osis/go.sum b/service/osis/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/osis/go.sum +++ b/service/osis/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/osis/go_module_metadata.go b/service/osis/go_module_metadata.go index c53dfb6c73e..3ae862bfbf6 100644 --- a/service/osis/go_module_metadata.go +++ b/service/osis/go_module_metadata.go @@ -3,4 +3,4 @@ package osis // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.14.5" +const goModuleVersion = "1.14.6" diff --git a/service/outposts/CHANGELOG.md b/service/outposts/CHANGELOG.md index d3bf2f4cbd2..1b40a9118b4 100644 --- a/service/outposts/CHANGELOG.md +++ b/service/outposts/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.47.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.47.0 (2024-11-15.2) * **Feature**: You can now purchase AWS Outposts rack or server capacity for a 5-year term with one of the following payment options: All Upfront, Partial Upfront, and No Upfront. diff --git a/service/outposts/go.mod b/service/outposts/go.mod index abe9285d45e..dabe89982aa 100644 --- a/service/outposts/go.mod +++ b/service/outposts/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/outposts go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/outposts/go.sum b/service/outposts/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/outposts/go.sum +++ b/service/outposts/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/outposts/go_module_metadata.go b/service/outposts/go_module_metadata.go index d1137b02720..aa97089d17e 100644 --- a/service/outposts/go_module_metadata.go +++ b/service/outposts/go_module_metadata.go @@ -3,4 +3,4 @@ package outposts // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.47.0" +const goModuleVersion = "1.47.1" diff --git a/service/panorama/CHANGELOG.md b/service/panorama/CHANGELOG.md index 8726129ff4c..8acded30c11 100644 --- a/service/panorama/CHANGELOG.md +++ b/service/panorama/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.22.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/panorama/go.mod b/service/panorama/go.mod index c64d1d0b0cc..192de1f1d70 100644 --- a/service/panorama/go.mod +++ b/service/panorama/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/panorama go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/panorama/go.sum b/service/panorama/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/panorama/go.sum +++ b/service/panorama/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/panorama/go_module_metadata.go b/service/panorama/go_module_metadata.go index e1b98e13e77..5ba7805ed32 100644 --- a/service/panorama/go_module_metadata.go +++ b/service/panorama/go_module_metadata.go @@ -3,4 +3,4 @@ package panorama // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.5" +const goModuleVersion = "1.22.6" diff --git a/service/partnercentralselling/CHANGELOG.md b/service/partnercentralselling/CHANGELOG.md index 57d9fcf4dfc..ca42cfe9343 100644 --- a/service/partnercentralselling/CHANGELOG.md +++ b/service/partnercentralselling/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.1.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.1.0 (2024-11-15) * **Feature**: Announcing AWS Partner Central API for Selling: This service launch Introduces new APIs for co-selling opportunity management and related functions. Key features include notifications, a dynamic sandbox for testing, and streamlined validations. diff --git a/service/partnercentralselling/go.mod b/service/partnercentralselling/go.mod index 6b03fe17d1b..03e7f21fe9c 100644 --- a/service/partnercentralselling/go.mod +++ b/service/partnercentralselling/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/partnercentralselling go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/partnercentralselling/go.sum b/service/partnercentralselling/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/partnercentralselling/go.sum +++ b/service/partnercentralselling/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/partnercentralselling/go_module_metadata.go b/service/partnercentralselling/go_module_metadata.go index a1b2ef23efa..ef30a351c2a 100644 --- a/service/partnercentralselling/go_module_metadata.go +++ b/service/partnercentralselling/go_module_metadata.go @@ -3,4 +3,4 @@ package partnercentralselling // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.1.0" +const goModuleVersion = "1.1.1" diff --git a/service/paymentcryptography/CHANGELOG.md b/service/paymentcryptography/CHANGELOG.md index abea0e2ebb2..4f3c6da9eeb 100644 --- a/service/paymentcryptography/CHANGELOG.md +++ b/service/paymentcryptography/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.16.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.16.0 (2024-11-12) * **Feature**: Updated ListAliases API with KeyArn filter. diff --git a/service/paymentcryptography/go.mod b/service/paymentcryptography/go.mod index 97a04e71a8c..badf979f2fe 100644 --- a/service/paymentcryptography/go.mod +++ b/service/paymentcryptography/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/paymentcryptography go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/paymentcryptography/go.sum b/service/paymentcryptography/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/paymentcryptography/go.sum +++ b/service/paymentcryptography/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/paymentcryptography/go_module_metadata.go b/service/paymentcryptography/go_module_metadata.go index df3040725bc..75b2eff45b9 100644 --- a/service/paymentcryptography/go_module_metadata.go +++ b/service/paymentcryptography/go_module_metadata.go @@ -3,4 +3,4 @@ package paymentcryptography // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.16.0" +const goModuleVersion = "1.16.1" diff --git a/service/paymentcryptographydata/CHANGELOG.md b/service/paymentcryptographydata/CHANGELOG.md index 2a6adf4efdd..dc990b3fbab 100644 --- a/service/paymentcryptographydata/CHANGELOG.md +++ b/service/paymentcryptographydata/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.16.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.16.3 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/paymentcryptographydata/go.mod b/service/paymentcryptographydata/go.mod index 0919d5d0e32..b56406653a6 100644 --- a/service/paymentcryptographydata/go.mod +++ b/service/paymentcryptographydata/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/paymentcryptographydata go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/paymentcryptographydata/go.sum b/service/paymentcryptographydata/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/paymentcryptographydata/go.sum +++ b/service/paymentcryptographydata/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/paymentcryptographydata/go_module_metadata.go b/service/paymentcryptographydata/go_module_metadata.go index c8bd777ec49..3b95da28508 100644 --- a/service/paymentcryptographydata/go_module_metadata.go +++ b/service/paymentcryptographydata/go_module_metadata.go @@ -3,4 +3,4 @@ package paymentcryptographydata // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.16.3" +const goModuleVersion = "1.16.4" diff --git a/service/pcaconnectorad/CHANGELOG.md b/service/pcaconnectorad/CHANGELOG.md index d303a5202e2..a525675cd41 100644 --- a/service/pcaconnectorad/CHANGELOG.md +++ b/service/pcaconnectorad/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.9.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.9.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/pcaconnectorad/go.mod b/service/pcaconnectorad/go.mod index 7668800132e..6ffdbef51ab 100644 --- a/service/pcaconnectorad/go.mod +++ b/service/pcaconnectorad/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pcaconnectorad go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pcaconnectorad/go.sum b/service/pcaconnectorad/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/pcaconnectorad/go.sum +++ b/service/pcaconnectorad/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/pcaconnectorad/go_module_metadata.go b/service/pcaconnectorad/go_module_metadata.go index 8a9ebeafee5..aca3d4e707f 100644 --- a/service/pcaconnectorad/go_module_metadata.go +++ b/service/pcaconnectorad/go_module_metadata.go @@ -3,4 +3,4 @@ package pcaconnectorad // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.9.5" +const goModuleVersion = "1.9.6" diff --git a/service/pcaconnectorscep/CHANGELOG.md b/service/pcaconnectorscep/CHANGELOG.md index a23923664a3..a358d9ecef9 100644 --- a/service/pcaconnectorscep/CHANGELOG.md +++ b/service/pcaconnectorscep/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.4.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.4.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/pcaconnectorscep/go.mod b/service/pcaconnectorscep/go.mod index c583766fedb..bebe24b799c 100644 --- a/service/pcaconnectorscep/go.mod +++ b/service/pcaconnectorscep/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pcaconnectorscep go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pcaconnectorscep/go.sum b/service/pcaconnectorscep/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/pcaconnectorscep/go.sum +++ b/service/pcaconnectorscep/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/pcaconnectorscep/go_module_metadata.go b/service/pcaconnectorscep/go_module_metadata.go index 63628a40ddc..fc4ad535b41 100644 --- a/service/pcaconnectorscep/go_module_metadata.go +++ b/service/pcaconnectorscep/go_module_metadata.go @@ -3,4 +3,4 @@ package pcaconnectorscep // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.4.5" +const goModuleVersion = "1.4.6" diff --git a/service/pcs/CHANGELOG.md b/service/pcs/CHANGELOG.md index 4c6ce9857bf..f7c4ac8e8fb 100644 --- a/service/pcs/CHANGELOG.md +++ b/service/pcs/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.2.7 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.2.6 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/pcs/go.mod b/service/pcs/go.mod index 6b15a1ade44..bc5e26e6bad 100644 --- a/service/pcs/go.mod +++ b/service/pcs/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pcs go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pcs/go.sum b/service/pcs/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/pcs/go.sum +++ b/service/pcs/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/pcs/go_module_metadata.go b/service/pcs/go_module_metadata.go index 9251e09d4e7..ee648b337a9 100644 --- a/service/pcs/go_module_metadata.go +++ b/service/pcs/go_module_metadata.go @@ -3,4 +3,4 @@ package pcs // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.2.6" +const goModuleVersion = "1.2.7" diff --git a/service/personalize/CHANGELOG.md b/service/personalize/CHANGELOG.md index ed6ae304cc5..c9e1e5fb85f 100644 --- a/service/personalize/CHANGELOG.md +++ b/service/personalize/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.39.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.39.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/personalize/go.mod b/service/personalize/go.mod index e566efb8121..87dc0d06e47 100644 --- a/service/personalize/go.mod +++ b/service/personalize/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/personalize go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/personalize/go.sum b/service/personalize/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/personalize/go.sum +++ b/service/personalize/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/personalize/go_module_metadata.go b/service/personalize/go_module_metadata.go index 62d491bb554..097f3371119 100644 --- a/service/personalize/go_module_metadata.go +++ b/service/personalize/go_module_metadata.go @@ -3,4 +3,4 @@ package personalize // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.39.5" +const goModuleVersion = "1.39.6" diff --git a/service/personalizeevents/CHANGELOG.md b/service/personalizeevents/CHANGELOG.md index c28a335d8b3..0fa07d379a0 100644 --- a/service/personalizeevents/CHANGELOG.md +++ b/service/personalizeevents/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.25.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/personalizeevents/go.mod b/service/personalizeevents/go.mod index b69196929ba..e72ceef4a48 100644 --- a/service/personalizeevents/go.mod +++ b/service/personalizeevents/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/personalizeevents go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/personalizeevents/go.sum b/service/personalizeevents/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/personalizeevents/go.sum +++ b/service/personalizeevents/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/personalizeevents/go_module_metadata.go b/service/personalizeevents/go_module_metadata.go index 91ac2a09591..a9a034c7aac 100644 --- a/service/personalizeevents/go_module_metadata.go +++ b/service/personalizeevents/go_module_metadata.go @@ -3,4 +3,4 @@ package personalizeevents // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.5" +const goModuleVersion = "1.25.6" diff --git a/service/personalizeruntime/CHANGELOG.md b/service/personalizeruntime/CHANGELOG.md index accab000608..2efc12ed8ce 100644 --- a/service/personalizeruntime/CHANGELOG.md +++ b/service/personalizeruntime/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/personalizeruntime/go.mod b/service/personalizeruntime/go.mod index 2da9da89379..95b207c6d10 100644 --- a/service/personalizeruntime/go.mod +++ b/service/personalizeruntime/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/personalizeruntime go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/personalizeruntime/go.sum b/service/personalizeruntime/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/personalizeruntime/go.sum +++ b/service/personalizeruntime/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/personalizeruntime/go_module_metadata.go b/service/personalizeruntime/go_module_metadata.go index 91613b746fc..cec604705c3 100644 --- a/service/personalizeruntime/go_module_metadata.go +++ b/service/personalizeruntime/go_module_metadata.go @@ -3,4 +3,4 @@ package personalizeruntime // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.5" +const goModuleVersion = "1.27.6" diff --git a/service/pi/CHANGELOG.md b/service/pi/CHANGELOG.md index 631059a6b46..90ba9a93cb6 100644 --- a/service/pi/CHANGELOG.md +++ b/service/pi/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.29.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.29.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/pi/go.mod b/service/pi/go.mod index cca6f8f5c2a..ba03cd91b19 100644 --- a/service/pi/go.mod +++ b/service/pi/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pi go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pi/go.sum b/service/pi/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/pi/go.sum +++ b/service/pi/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/pi/go_module_metadata.go b/service/pi/go_module_metadata.go index 2ee99ea6f3e..554f39c3b5f 100644 --- a/service/pi/go_module_metadata.go +++ b/service/pi/go_module_metadata.go @@ -3,4 +3,4 @@ package pi // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.29.5" +const goModuleVersion = "1.29.6" diff --git a/service/pinpoint/CHANGELOG.md b/service/pinpoint/CHANGELOG.md index fd9ba2bb4d3..f4a01443728 100644 --- a/service/pinpoint/CHANGELOG.md +++ b/service/pinpoint/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.34.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.34.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/pinpoint/go.mod b/service/pinpoint/go.mod index 248a61279b9..dd202c4aaad 100644 --- a/service/pinpoint/go.mod +++ b/service/pinpoint/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pinpoint go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pinpoint/go.sum b/service/pinpoint/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/pinpoint/go.sum +++ b/service/pinpoint/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/pinpoint/go_module_metadata.go b/service/pinpoint/go_module_metadata.go index f3aaa7558c6..db6c153f88f 100644 --- a/service/pinpoint/go_module_metadata.go +++ b/service/pinpoint/go_module_metadata.go @@ -3,4 +3,4 @@ package pinpoint // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.34.5" +const goModuleVersion = "1.34.6" diff --git a/service/pinpointemail/CHANGELOG.md b/service/pinpointemail/CHANGELOG.md index 1b6dfed4e92..ba2fcbab318 100644 --- a/service/pinpointemail/CHANGELOG.md +++ b/service/pinpointemail/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.23.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/pinpointemail/go.mod b/service/pinpointemail/go.mod index ef9f51a3f1b..6486bbd96a0 100644 --- a/service/pinpointemail/go.mod +++ b/service/pinpointemail/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pinpointemail go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pinpointemail/go.sum b/service/pinpointemail/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/pinpointemail/go.sum +++ b/service/pinpointemail/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/pinpointemail/go_module_metadata.go b/service/pinpointemail/go_module_metadata.go index 60517366d59..d53fd75b4b0 100644 --- a/service/pinpointemail/go_module_metadata.go +++ b/service/pinpointemail/go_module_metadata.go @@ -3,4 +3,4 @@ package pinpointemail // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.5" +const goModuleVersion = "1.23.6" diff --git a/service/pinpointsmsvoice/CHANGELOG.md b/service/pinpointsmsvoice/CHANGELOG.md index 24947fc5d66..7707a8351ee 100644 --- a/service/pinpointsmsvoice/CHANGELOG.md +++ b/service/pinpointsmsvoice/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.23.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/pinpointsmsvoice/go.mod b/service/pinpointsmsvoice/go.mod index 5304c0fcbd5..80b815980bf 100644 --- a/service/pinpointsmsvoice/go.mod +++ b/service/pinpointsmsvoice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pinpointsmsvoice go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pinpointsmsvoice/go.sum b/service/pinpointsmsvoice/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/pinpointsmsvoice/go.sum +++ b/service/pinpointsmsvoice/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/pinpointsmsvoice/go_module_metadata.go b/service/pinpointsmsvoice/go_module_metadata.go index 2446ec9f78c..820e59b1fe4 100644 --- a/service/pinpointsmsvoice/go_module_metadata.go +++ b/service/pinpointsmsvoice/go_module_metadata.go @@ -3,4 +3,4 @@ package pinpointsmsvoice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.5" +const goModuleVersion = "1.23.6" diff --git a/service/pinpointsmsvoicev2/CHANGELOG.md b/service/pinpointsmsvoicev2/CHANGELOG.md index ebf14bd3a58..163c6444d70 100644 --- a/service/pinpointsmsvoicev2/CHANGELOG.md +++ b/service/pinpointsmsvoicev2/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.18.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2024-11-15.2) * **Feature**: Use rule overrides to always allow or always block messages to specific phone numbers. Use message feedback to monitor if a customer interacts with your message. diff --git a/service/pinpointsmsvoicev2/go.mod b/service/pinpointsmsvoicev2/go.mod index 1ba4c4babc4..21ce5a92c96 100644 --- a/service/pinpointsmsvoicev2/go.mod +++ b/service/pinpointsmsvoicev2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pinpointsmsvoicev2 go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pinpointsmsvoicev2/go.sum b/service/pinpointsmsvoicev2/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/pinpointsmsvoicev2/go.sum +++ b/service/pinpointsmsvoicev2/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/pinpointsmsvoicev2/go_module_metadata.go b/service/pinpointsmsvoicev2/go_module_metadata.go index ae590e8db05..58ffa037f58 100644 --- a/service/pinpointsmsvoicev2/go_module_metadata.go +++ b/service/pinpointsmsvoicev2/go_module_metadata.go @@ -3,4 +3,4 @@ package pinpointsmsvoicev2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.1" diff --git a/service/pipes/CHANGELOG.md b/service/pipes/CHANGELOG.md index d51d98e76b0..48348d29014 100644 --- a/service/pipes/CHANGELOG.md +++ b/service/pipes/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.18.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.3 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/pipes/go.mod b/service/pipes/go.mod index bc64f757a21..20cd591630f 100644 --- a/service/pipes/go.mod +++ b/service/pipes/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pipes go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pipes/go.sum b/service/pipes/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/pipes/go.sum +++ b/service/pipes/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/pipes/go_module_metadata.go b/service/pipes/go_module_metadata.go index 3207a472887..b785d47f078 100644 --- a/service/pipes/go_module_metadata.go +++ b/service/pipes/go_module_metadata.go @@ -3,4 +3,4 @@ package pipes // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.3" +const goModuleVersion = "1.18.4" diff --git a/service/polly/CHANGELOG.md b/service/polly/CHANGELOG.md index 55b3d9186a2..782481d5b0a 100644 --- a/service/polly/CHANGELOG.md +++ b/service/polly/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.45.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.45.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/polly/go.mod b/service/polly/go.mod index 75ddebc855d..301ee66921d 100644 --- a/service/polly/go.mod +++ b/service/polly/go.mod @@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/service/polly go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/polly/go.sum b/service/polly/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/polly/go.sum +++ b/service/polly/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/polly/go_module_metadata.go b/service/polly/go_module_metadata.go index 1d4b9a0ea00..fe216a36225 100644 --- a/service/polly/go_module_metadata.go +++ b/service/polly/go_module_metadata.go @@ -3,4 +3,4 @@ package polly // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.45.5" +const goModuleVersion = "1.45.6" diff --git a/service/pricing/CHANGELOG.md b/service/pricing/CHANGELOG.md index e338ba5b22f..62a9abe9fb3 100644 --- a/service/pricing/CHANGELOG.md +++ b/service/pricing/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.32.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.32.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/pricing/go.mod b/service/pricing/go.mod index 172008d97d4..d8a7f413a88 100644 --- a/service/pricing/go.mod +++ b/service/pricing/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pricing go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/pricing/go.sum b/service/pricing/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/pricing/go.sum +++ b/service/pricing/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/pricing/go_module_metadata.go b/service/pricing/go_module_metadata.go index f97899ec658..691b2ba5174 100644 --- a/service/pricing/go_module_metadata.go +++ b/service/pricing/go_module_metadata.go @@ -3,4 +3,4 @@ package pricing // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.32.5" +const goModuleVersion = "1.32.6" diff --git a/service/privatenetworks/CHANGELOG.md b/service/privatenetworks/CHANGELOG.md index 36dad739571..119f190c8b7 100644 --- a/service/privatenetworks/CHANGELOG.md +++ b/service/privatenetworks/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.13.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.13.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/privatenetworks/go.mod b/service/privatenetworks/go.mod index 39aeaff67d6..2030b45a22c 100644 --- a/service/privatenetworks/go.mod +++ b/service/privatenetworks/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/privatenetworks go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/privatenetworks/go.sum b/service/privatenetworks/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/privatenetworks/go.sum +++ b/service/privatenetworks/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/privatenetworks/go_module_metadata.go b/service/privatenetworks/go_module_metadata.go index 509a92644e4..f90cedce38e 100644 --- a/service/privatenetworks/go_module_metadata.go +++ b/service/privatenetworks/go_module_metadata.go @@ -3,4 +3,4 @@ package privatenetworks // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.13.5" +const goModuleVersion = "1.13.6" diff --git a/service/proton/CHANGELOG.md b/service/proton/CHANGELOG.md index e0e7a340e49..a328acebebe 100644 --- a/service/proton/CHANGELOG.md +++ b/service/proton/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.33.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.33.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/proton/go.mod b/service/proton/go.mod index b57be95ba15..ac6f2f22293 100644 --- a/service/proton/go.mod +++ b/service/proton/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/proton go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/proton/go.sum b/service/proton/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/proton/go.sum +++ b/service/proton/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/proton/go_module_metadata.go b/service/proton/go_module_metadata.go index 0dc097fb941..a7b4328be6c 100644 --- a/service/proton/go_module_metadata.go +++ b/service/proton/go_module_metadata.go @@ -3,4 +3,4 @@ package proton // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.33.5" +const goModuleVersion = "1.33.6" diff --git a/service/qapps/CHANGELOG.md b/service/qapps/CHANGELOG.md index 21888f91f59..2b14c776f3e 100644 --- a/service/qapps/CHANGELOG.md +++ b/service/qapps/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.4.2 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.4.1 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/qapps/go.mod b/service/qapps/go.mod index a64a91c0a8f..22946c2384b 100644 --- a/service/qapps/go.mod +++ b/service/qapps/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/qapps go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/qapps/go.sum b/service/qapps/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/qapps/go.sum +++ b/service/qapps/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/qapps/go_module_metadata.go b/service/qapps/go_module_metadata.go index d4787013e9c..74fdbcdd7f9 100644 --- a/service/qapps/go_module_metadata.go +++ b/service/qapps/go_module_metadata.go @@ -3,4 +3,4 @@ package qapps // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.4.1" +const goModuleVersion = "1.4.2" diff --git a/service/qbusiness/CHANGELOG.md b/service/qbusiness/CHANGELOG.md index b52cba309bc..0be0494768e 100644 --- a/service/qbusiness/CHANGELOG.md +++ b/service/qbusiness/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.16.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.16.0 (2024-11-08) * **Feature**: Adds S3 path option to pass group member list for PutGroup API. diff --git a/service/qbusiness/go.mod b/service/qbusiness/go.mod index f82ffa0ddc0..f661a987ab3 100644 --- a/service/qbusiness/go.mod +++ b/service/qbusiness/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/qbusiness go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.6 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.7 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/qbusiness/go.sum b/service/qbusiness/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/qbusiness/go.sum +++ b/service/qbusiness/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/qbusiness/go_module_metadata.go b/service/qbusiness/go_module_metadata.go index eacf20fa3af..ca73b46b8a1 100644 --- a/service/qbusiness/go_module_metadata.go +++ b/service/qbusiness/go_module_metadata.go @@ -3,4 +3,4 @@ package qbusiness // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.16.0" +const goModuleVersion = "1.16.1" diff --git a/service/qconnect/CHANGELOG.md b/service/qconnect/CHANGELOG.md index 61029b5cdda..a68c5ad8c10 100644 --- a/service/qconnect/CHANGELOG.md +++ b/service/qconnect/CHANGELOG.md @@ -1,3 +1,9 @@ +# v1.13.0 (2024-11-18) + +* **Feature**: This release introduces MessageTemplate as a resource in Amazon Q in Connect, along with APIs to create, read, search, update, and delete MessageTemplate resources. +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.12.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/qconnect/api_op_ActivateMessageTemplate.go b/service/qconnect/api_op_ActivateMessageTemplate.go new file mode 100644 index 00000000000..22f1f731171 --- /dev/null +++ b/service/qconnect/api_op_ActivateMessageTemplate.go @@ -0,0 +1,183 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package qconnect + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Activates a specific version of the Amazon Q in Connect message template. After +// the version is activated, the previous active version will be deactivated +// automatically. You can use the $ACTIVE_VERSION qualifier later to reference the +// version that is in active status. +func (c *Client) ActivateMessageTemplate(ctx context.Context, params *ActivateMessageTemplateInput, optFns ...func(*Options)) (*ActivateMessageTemplateOutput, error) { + if params == nil { + params = &ActivateMessageTemplateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ActivateMessageTemplate", params, optFns, c.addOperationActivateMessageTemplateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ActivateMessageTemplateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ActivateMessageTemplateInput struct { + + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. + // + // This member is required. + KnowledgeBaseId *string + + // The identifier of the message template. Can be either the ID or the ARN. It + // cannot contain any qualifier. + // + // This member is required. + MessageTemplateId *string + + // The version number of the message template version to activate. + // + // This member is required. + VersionNumber *int64 + + noSmithyDocumentSerde +} + +type ActivateMessageTemplateOutput struct { + + // The Amazon Resource Name (ARN) of the message template. + // + // This member is required. + MessageTemplateArn *string + + // The identifier of the message template. + // + // This member is required. + MessageTemplateId *string + + // The version number of the message template version that is activated. + // + // This member is required. + VersionNumber *int64 + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationActivateMessageTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpActivateMessageTemplate{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpActivateMessageTemplate{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ActivateMessageTemplate"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpActivateMessageTemplateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opActivateMessageTemplate(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opActivateMessageTemplate(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ActivateMessageTemplate", + } +} diff --git a/service/qconnect/api_op_CreateAIAgent.go b/service/qconnect/api_op_CreateAIAgent.go index dae3a93fd8e..4c31f7bf246 100644 --- a/service/qconnect/api_op_CreateAIAgent.go +++ b/service/qconnect/api_op_CreateAIAgent.go @@ -56,8 +56,8 @@ type CreateAIAgentInput struct { VisibilityStatus types.VisibilityStatus // A unique, case-sensitive identifier that you provide to ensure the idempotency - // of the request. If not provided, the AWS SDK populates this field. For more - // information about idempotency, see [Making retries safe with idempotent APIs]. + // of the request. If not provided, the Amazon Web Services SDK populates this + // field. For more information about idempotency, see [Making retries safe with idempotent APIs].. // // [Making retries safe with idempotent APIs]: http://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ ClientToken *string diff --git a/service/qconnect/api_op_CreateAIAgentVersion.go b/service/qconnect/api_op_CreateAIAgentVersion.go index ef7f4f08104..077a9952103 100644 --- a/service/qconnect/api_op_CreateAIAgentVersion.go +++ b/service/qconnect/api_op_CreateAIAgentVersion.go @@ -42,8 +42,8 @@ type CreateAIAgentVersionInput struct { AssistantId *string // A unique, case-sensitive identifier that you provide to ensure the idempotency - // of the request. If not provided, the AWS SDK populates this field. For more - // information about idempotency, see [Making retries safe with idempotent APIs]. + // of the request. If not provided, the Amazon Web Services SDK populates this + // field. For more information about idempotency, see [Making retries safe with idempotent APIs].. // // [Making retries safe with idempotent APIs]: http://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ ClientToken *string diff --git a/service/qconnect/api_op_CreateAIPrompt.go b/service/qconnect/api_op_CreateAIPrompt.go index 7b32620ae80..e53978e9b5f 100644 --- a/service/qconnect/api_op_CreateAIPrompt.go +++ b/service/qconnect/api_op_CreateAIPrompt.go @@ -72,8 +72,8 @@ type CreateAIPromptInput struct { VisibilityStatus types.VisibilityStatus // A unique, case-sensitive identifier that you provide to ensure the idempotency - // of the request. If not provided, the AWS SDK populates this field. For more - // information about idempotency, see [Making retries safe with idempotent APIs]. + // of the request. If not provided, the Amazon Web Services SDK populates this + // field. For more information about idempotency, see [Making retries safe with idempotent APIs].. // // [Making retries safe with idempotent APIs]: http://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ ClientToken *string diff --git a/service/qconnect/api_op_CreateAIPromptVersion.go b/service/qconnect/api_op_CreateAIPromptVersion.go index aabadac1701..1f3d8f477b8 100644 --- a/service/qconnect/api_op_CreateAIPromptVersion.go +++ b/service/qconnect/api_op_CreateAIPromptVersion.go @@ -42,10 +42,10 @@ type CreateAIPromptVersionInput struct { AssistantId *string // A unique, case-sensitive identifier that you provide to ensure the idempotency - // of the request. If not provided, the AWS SDK populates this field. For more - // information about idempotency, see [Making retries safe with idempotent APIs]. + // of the request. If not provided, the Amazon Web Services SDK populates this + // field. For more information about idempotency, see [Making retries safe with idempotent APIs].. // - // [Making retries safe with idempotent APIs]: http://aws.amazon.com/https:/aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ + // [Making retries safe with idempotent APIs]: http://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ ClientToken *string // The time the AI Prompt was last modified. diff --git a/service/qconnect/api_op_CreateAssistant.go b/service/qconnect/api_op_CreateAssistant.go index 437c1ced7fc..aee628b1890 100644 --- a/service/qconnect/api_op_CreateAssistant.go +++ b/service/qconnect/api_op_CreateAssistant.go @@ -43,7 +43,7 @@ type CreateAssistantInput struct { // of the request. If not provided, the Amazon Web Services SDK populates this // field. For more information about idempotency, see [Making retries safe with idempotent APIs]. // - // [Making retries safe with idempotent APIs]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ + // [Making retries safe with idempotent APIs]: http://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ ClientToken *string // The description of the assistant. diff --git a/service/qconnect/api_op_CreateAssistantAssociation.go b/service/qconnect/api_op_CreateAssistantAssociation.go index 95cfa961b23..17b8bddd7c1 100644 --- a/service/qconnect/api_op_CreateAssistantAssociation.go +++ b/service/qconnect/api_op_CreateAssistantAssociation.go @@ -51,7 +51,7 @@ type CreateAssistantAssociationInput struct { // of the request. If not provided, the Amazon Web Services SDK populates this // field. For more information about idempotency, see [Making retries safe with idempotent APIs]. // - // [Making retries safe with idempotent APIs]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ + // [Making retries safe with idempotent APIs]: http://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ ClientToken *string // The tags used to organize, track, or control access for this resource. diff --git a/service/qconnect/api_op_CreateContent.go b/service/qconnect/api_op_CreateContent.go index 171301a9434..6560baab0e3 100644 --- a/service/qconnect/api_op_CreateContent.go +++ b/service/qconnect/api_op_CreateContent.go @@ -58,7 +58,7 @@ type CreateContentInput struct { // of the request. If not provided, the Amazon Web Services SDK populates this // field. For more information about idempotency, see [Making retries safe with idempotent APIs]. // - // [Making retries safe with idempotent APIs]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ + // [Making retries safe with idempotent APIs]: http://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ ClientToken *string // A key/value map to store attributes without affecting tagging or diff --git a/service/qconnect/api_op_CreateContentAssociation.go b/service/qconnect/api_op_CreateContentAssociation.go index 8fd199ff6b8..9994611afbd 100644 --- a/service/qconnect/api_op_CreateContentAssociation.go +++ b/service/qconnect/api_op_CreateContentAssociation.go @@ -73,7 +73,7 @@ type CreateContentAssociationInput struct { // of the request. If not provided, the Amazon Web Services SDK populates this // field. For more information about idempotency, see [Making retries safe with idempotent APIs]. // - // [Making retries safe with idempotent APIs]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ + // [Making retries safe with idempotent APIs]: http://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ ClientToken *string // The tags used to organize, track, or control access for this resource. diff --git a/service/qconnect/api_op_CreateKnowledgeBase.go b/service/qconnect/api_op_CreateKnowledgeBase.go index e602d152447..e8ff4c305cf 100644 --- a/service/qconnect/api_op_CreateKnowledgeBase.go +++ b/service/qconnect/api_op_CreateKnowledgeBase.go @@ -66,7 +66,7 @@ type CreateKnowledgeBaseInput struct { // of the request. If not provided, the Amazon Web Services SDK populates this // field. For more information about idempotency, see [Making retries safe with idempotent APIs]. // - // [Making retries safe with idempotent APIs]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ + // [Making retries safe with idempotent APIs]: http://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ ClientToken *string // The description. @@ -88,7 +88,7 @@ type CreateKnowledgeBaseInput struct { ServerSideEncryptionConfiguration *types.ServerSideEncryptionConfiguration // The source of the knowledge base content. Only set this argument for EXTERNAL - // knowledge bases. + // or Managed knowledge bases. SourceConfiguration types.SourceConfiguration // The tags used to organize, track, or control access for this resource. diff --git a/service/qconnect/api_op_CreateMessageTemplate.go b/service/qconnect/api_op_CreateMessageTemplate.go new file mode 100644 index 00000000000..17747816f97 --- /dev/null +++ b/service/qconnect/api_op_CreateMessageTemplate.go @@ -0,0 +1,240 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package qconnect + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/qconnect/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates an Amazon Q in Connect message template. The name of the message +// template has to be unique for each knowledge base. The channel subtype of the +// message template is immutable and cannot be modified after creation. After the +// message template is created, you can use the $LATEST qualifier to reference the +// created message template. +func (c *Client) CreateMessageTemplate(ctx context.Context, params *CreateMessageTemplateInput, optFns ...func(*Options)) (*CreateMessageTemplateOutput, error) { + if params == nil { + params = &CreateMessageTemplateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateMessageTemplate", params, optFns, c.addOperationCreateMessageTemplateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateMessageTemplateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateMessageTemplateInput struct { + + // The channel subtype this message template applies to. + // + // This member is required. + ChannelSubtype types.ChannelSubtype + + // The content of the message template. + // + // This member is required. + Content types.MessageTemplateContentProvider + + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. + // + // This member is required. + KnowledgeBaseId *string + + // The name of the message template. + // + // This member is required. + Name *string + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. If not provided, the Amazon Web Services SDK populates this + // field. For more information about idempotency, see [Making retries safe with idempotent APIs]. + // + // [Making retries safe with idempotent APIs]: http://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ + ClientToken *string + + // An object that specifies the default values to use for variables in the message + // template. This object contains different categories of key-value pairs. Each key + // defines a variable or placeholder in the message template. The corresponding + // value defines the default value for that variable. + DefaultAttributes *types.MessageTemplateAttributes + + // The description of the message template. + Description *string + + // The configuration information of the grouping of Amazon Q in Connect users. + GroupingConfiguration *types.GroupingConfiguration + + // The language code value for the language in which the quick response is + // written. The supported language codes include de_DE , en_US , es_ES , fr_FR , + // id_ID , it_IT , ja_JP , ko_KR , pt_BR , zh_CN , zh_TW + Language *string + + // The tags used to organize, track, or control access for this resource. + Tags map[string]string + + noSmithyDocumentSerde +} + +type CreateMessageTemplateOutput struct { + + // The message template. + MessageTemplate *types.MessageTemplateData + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateMessageTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateMessageTemplate{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateMessageTemplate{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateMessageTemplate"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addIdempotencyToken_opCreateMessageTemplateMiddleware(stack, options); err != nil { + return err + } + if err = addOpCreateMessageTemplateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateMessageTemplate(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +type idempotencyToken_initializeOpCreateMessageTemplate struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateMessageTemplate) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateMessageTemplate) 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.(*CreateMessageTemplateInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateMessageTemplateInput ") + } + + 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_opCreateMessageTemplateMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateMessageTemplate{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opCreateMessageTemplate(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateMessageTemplate", + } +} diff --git a/service/qconnect/api_op_CreateMessageTemplateAttachment.go b/service/qconnect/api_op_CreateMessageTemplateAttachment.go new file mode 100644 index 00000000000..478dd43a6b6 --- /dev/null +++ b/service/qconnect/api_op_CreateMessageTemplateAttachment.go @@ -0,0 +1,193 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package qconnect + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/qconnect/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Uploads an attachment file to the specified Amazon Q in Connect message +// template. The name of the message template attachment has to be unique for each +// message template referenced by the $LATEST qualifier. The body of the +// attachment file should be encoded using base64 encoding. After the file is +// uploaded, you can use the pre-signed Amazon S3 URL returned in response to +// download the uploaded file. +func (c *Client) CreateMessageTemplateAttachment(ctx context.Context, params *CreateMessageTemplateAttachmentInput, optFns ...func(*Options)) (*CreateMessageTemplateAttachmentOutput, error) { + if params == nil { + params = &CreateMessageTemplateAttachmentInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateMessageTemplateAttachment", params, optFns, c.addOperationCreateMessageTemplateAttachmentMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateMessageTemplateAttachmentOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateMessageTemplateAttachmentInput struct { + + // The body of the attachment file being uploaded. It should be encoded using + // base64 encoding. + // + // This member is required. + Body *string + + // The presentation information for the attachment file. + // + // This member is required. + ContentDisposition types.ContentDisposition + + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. + // + // This member is required. + KnowledgeBaseId *string + + // The identifier of the message template. Can be either the ID or the ARN. It + // cannot contain any qualifier. + // + // This member is required. + MessageTemplateId *string + + // The name of the attachment file being uploaded. The name should include the + // file extension. + // + // This member is required. + Name *string + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. If not provided, the Amazon Web Services SDK populates this + // field. For more information about idempotency, see [Making retries safe with idempotent APIs]. + // + // [Making retries safe with idempotent APIs]: http://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ + ClientToken *string + + noSmithyDocumentSerde +} + +type CreateMessageTemplateAttachmentOutput struct { + + // The message template attachment. + Attachment *types.MessageTemplateAttachment + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateMessageTemplateAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateMessageTemplateAttachment{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateMessageTemplateAttachment{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateMessageTemplateAttachment"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpCreateMessageTemplateAttachmentValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateMessageTemplateAttachment(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateMessageTemplateAttachment(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateMessageTemplateAttachment", + } +} diff --git a/service/qconnect/api_op_CreateMessageTemplateVersion.go b/service/qconnect/api_op_CreateMessageTemplateVersion.go new file mode 100644 index 00000000000..08536f842e9 --- /dev/null +++ b/service/qconnect/api_op_CreateMessageTemplateVersion.go @@ -0,0 +1,182 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package qconnect + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/qconnect/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a new Amazon Q in Connect message template version from the current +// content and configuration of a message template. Versions are immutable and +// monotonically increasing. Once a version is created, you can reference a +// specific version of the message template by passing in +// : as the message template identifier. An +// error is displayed if the supplied messageTemplateContentSha256 is different +// from the messageTemplateContentSha256 of the message template with $LATEST +// qualifier. If multiple CreateMessageTemplateVersion requests are made while the +// message template remains the same, only the first invocation creates a new +// version and the succeeding requests will return the same response as the first +// invocation. +func (c *Client) CreateMessageTemplateVersion(ctx context.Context, params *CreateMessageTemplateVersionInput, optFns ...func(*Options)) (*CreateMessageTemplateVersionOutput, error) { + if params == nil { + params = &CreateMessageTemplateVersionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateMessageTemplateVersion", params, optFns, c.addOperationCreateMessageTemplateVersionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateMessageTemplateVersionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateMessageTemplateVersionInput struct { + + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. + // + // This member is required. + KnowledgeBaseId *string + + // The identifier of the message template. Can be either the ID or the ARN. It + // cannot contain any qualifier. + // + // This member is required. + MessageTemplateId *string + + // The checksum value of the message template content that is referenced by the + // $LATEST qualifier. It can be returned in MessageTemplateData or + // ExtendedMessageTemplateData . It’s calculated by content, language, + // defaultAttributes and Attachments of the message template. If not supplied, the + // message template version will be created based on the message template content + // that is referenced by the $LATEST qualifier by default. + MessageTemplateContentSha256 *string + + noSmithyDocumentSerde +} + +type CreateMessageTemplateVersionOutput struct { + + // The message template. + MessageTemplate *types.ExtendedMessageTemplateData + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateMessageTemplateVersionMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateMessageTemplateVersion{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateMessageTemplateVersion{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateMessageTemplateVersion"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpCreateMessageTemplateVersionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateMessageTemplateVersion(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateMessageTemplateVersion(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateMessageTemplateVersion", + } +} diff --git a/service/qconnect/api_op_CreateQuickResponse.go b/service/qconnect/api_op_CreateQuickResponse.go index e56afcd296a..5a4f47319b2 100644 --- a/service/qconnect/api_op_CreateQuickResponse.go +++ b/service/qconnect/api_op_CreateQuickResponse.go @@ -52,7 +52,7 @@ type CreateQuickResponseInput struct { // of the request. If not provided, the Amazon Web Services SDK populates this // field. For more information about idempotency, see [Making retries safe with idempotent APIs]. // - // [Making retries safe with idempotent APIs]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ + // [Making retries safe with idempotent APIs]: http://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ ClientToken *string // The media type of the quick response content. diff --git a/service/qconnect/api_op_CreateSession.go b/service/qconnect/api_op_CreateSession.go index 26687802c59..c87821f0ce3 100644 --- a/service/qconnect/api_op_CreateSession.go +++ b/service/qconnect/api_op_CreateSession.go @@ -50,7 +50,7 @@ type CreateSessionInput struct { // of the request. If not provided, the Amazon Web Services SDK populates this // field. For more information about idempotency, see [Making retries safe with idempotent APIs]. // - // [Making retries safe with idempotent APIs]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ + // [Making retries safe with idempotent APIs]: http://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ ClientToken *string // The description. diff --git a/service/qconnect/api_op_DeactivateMessageTemplate.go b/service/qconnect/api_op_DeactivateMessageTemplate.go new file mode 100644 index 00000000000..16611652e94 --- /dev/null +++ b/service/qconnect/api_op_DeactivateMessageTemplate.go @@ -0,0 +1,182 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package qconnect + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deactivates a specific version of the Amazon Q in Connect message template . +// After the version is deactivated, you can no longer use the $ACTIVE_VERSION +// qualifier to reference the version in active status. +func (c *Client) DeactivateMessageTemplate(ctx context.Context, params *DeactivateMessageTemplateInput, optFns ...func(*Options)) (*DeactivateMessageTemplateOutput, error) { + if params == nil { + params = &DeactivateMessageTemplateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeactivateMessageTemplate", params, optFns, c.addOperationDeactivateMessageTemplateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeactivateMessageTemplateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeactivateMessageTemplateInput struct { + + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. + // + // This member is required. + KnowledgeBaseId *string + + // The identifier of the message template. Can be either the ID or the ARN. It + // cannot contain any qualifier. + // + // This member is required. + MessageTemplateId *string + + // The version number of the message template version to deactivate. + // + // This member is required. + VersionNumber *int64 + + noSmithyDocumentSerde +} + +type DeactivateMessageTemplateOutput struct { + + // The Amazon Resource Name (ARN) of the message template. + // + // This member is required. + MessageTemplateArn *string + + // The identifier of the message template. + // + // This member is required. + MessageTemplateId *string + + // The version number of the message template version that has been deactivated. + // + // This member is required. + VersionNumber *int64 + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeactivateMessageTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeactivateMessageTemplate{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeactivateMessageTemplate{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeactivateMessageTemplate"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpDeactivateMessageTemplateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeactivateMessageTemplate(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeactivateMessageTemplate(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeactivateMessageTemplate", + } +} diff --git a/service/qconnect/api_op_DeleteMessageTemplate.go b/service/qconnect/api_op_DeleteMessageTemplate.go new file mode 100644 index 00000000000..a14700bc6f2 --- /dev/null +++ b/service/qconnect/api_op_DeleteMessageTemplate.go @@ -0,0 +1,162 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package qconnect + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes an Amazon Q in Connect message template entirely or a specific version +// of the message template if version is supplied in the request. You can provide +// the message template identifier as : to +// delete a specific version of the message template. If it is not supplied, the +// message template and all available versions will be deleted. +func (c *Client) DeleteMessageTemplate(ctx context.Context, params *DeleteMessageTemplateInput, optFns ...func(*Options)) (*DeleteMessageTemplateOutput, error) { + if params == nil { + params = &DeleteMessageTemplateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteMessageTemplate", params, optFns, c.addOperationDeleteMessageTemplateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteMessageTemplateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteMessageTemplateInput struct { + + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. + // + // This member is required. + KnowledgeBaseId *string + + // The identifier of the message template. Can be either the ID or the ARN. + // + // This member is required. + MessageTemplateId *string + + noSmithyDocumentSerde +} + +type DeleteMessageTemplateOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteMessageTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteMessageTemplate{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteMessageTemplate{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteMessageTemplate"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpDeleteMessageTemplateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteMessageTemplate(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteMessageTemplate(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteMessageTemplate", + } +} diff --git a/service/qconnect/api_op_DeleteMessageTemplateAttachment.go b/service/qconnect/api_op_DeleteMessageTemplateAttachment.go new file mode 100644 index 00000000000..06ef71edad0 --- /dev/null +++ b/service/qconnect/api_op_DeleteMessageTemplateAttachment.go @@ -0,0 +1,166 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package qconnect + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes the attachment file from the Amazon Q in Connect message template that +// is referenced by $LATEST qualifier. Attachments on available message template +// versions will remain unchanged. +func (c *Client) DeleteMessageTemplateAttachment(ctx context.Context, params *DeleteMessageTemplateAttachmentInput, optFns ...func(*Options)) (*DeleteMessageTemplateAttachmentOutput, error) { + if params == nil { + params = &DeleteMessageTemplateAttachmentInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteMessageTemplateAttachment", params, optFns, c.addOperationDeleteMessageTemplateAttachmentMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteMessageTemplateAttachmentOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteMessageTemplateAttachmentInput struct { + + // The identifier of the attachment file. + // + // This member is required. + AttachmentId *string + + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. + // + // This member is required. + KnowledgeBaseId *string + + // The identifier of the message template. Can be either the ID or the ARN. It + // cannot contain any qualifier. + // + // This member is required. + MessageTemplateId *string + + noSmithyDocumentSerde +} + +type DeleteMessageTemplateAttachmentOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteMessageTemplateAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteMessageTemplateAttachment{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteMessageTemplateAttachment{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteMessageTemplateAttachment"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpDeleteMessageTemplateAttachmentValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteMessageTemplateAttachment(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteMessageTemplateAttachment(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteMessageTemplateAttachment", + } +} diff --git a/service/qconnect/api_op_GetMessageTemplate.go b/service/qconnect/api_op_GetMessageTemplate.go new file mode 100644 index 00000000000..f75e8e2ca00 --- /dev/null +++ b/service/qconnect/api_op_GetMessageTemplate.go @@ -0,0 +1,167 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package qconnect + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/qconnect/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieves the Amazon Q in Connect message template. The message template +// identifier can contain an optional qualifier, for example, +// : , which is either an actual version number or +// an Amazon Q Connect managed qualifier $ACTIVE_VERSION | $LATEST . If it is not +// supplied, then $LATEST is assumed implicitly. +func (c *Client) GetMessageTemplate(ctx context.Context, params *GetMessageTemplateInput, optFns ...func(*Options)) (*GetMessageTemplateOutput, error) { + if params == nil { + params = &GetMessageTemplateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetMessageTemplate", params, optFns, c.addOperationGetMessageTemplateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetMessageTemplateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetMessageTemplateInput struct { + + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. + // + // This member is required. + KnowledgeBaseId *string + + // The identifier of the message template. Can be either the ID or the ARN. + // + // This member is required. + MessageTemplateId *string + + noSmithyDocumentSerde +} + +type GetMessageTemplateOutput struct { + + // The message template. + MessageTemplate *types.ExtendedMessageTemplateData + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetMessageTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetMessageTemplate{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetMessageTemplate{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetMessageTemplate"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpGetMessageTemplateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetMessageTemplate(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetMessageTemplate(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetMessageTemplate", + } +} diff --git a/service/qconnect/api_op_ListMessageTemplateVersions.go b/service/qconnect/api_op_ListMessageTemplateVersions.go new file mode 100644 index 00000000000..6f8b8fe0e63 --- /dev/null +++ b/service/qconnect/api_op_ListMessageTemplateVersions.go @@ -0,0 +1,273 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package qconnect + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/qconnect/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists all the available versions for the specified Amazon Q in Connect message +// template. +func (c *Client) ListMessageTemplateVersions(ctx context.Context, params *ListMessageTemplateVersionsInput, optFns ...func(*Options)) (*ListMessageTemplateVersionsOutput, error) { + if params == nil { + params = &ListMessageTemplateVersionsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListMessageTemplateVersions", params, optFns, c.addOperationListMessageTemplateVersionsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListMessageTemplateVersionsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListMessageTemplateVersionsInput struct { + + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. + // + // This member is required. + KnowledgeBaseId *string + + // The identifier of the message template. Can be either the ID or the ARN. It + // cannot contain any qualifier. + // + // This member is required. + MessageTemplateId *string + + // The maximum number of results to return per page. + MaxResults *int32 + + // The token for the next set of results. Use the value returned in the previous + // response in the next request to retrieve the next set of results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListMessageTemplateVersionsOutput struct { + + // Summary information about the versions of a message template. + // + // This member is required. + MessageTemplateVersionSummaries []types.MessageTemplateVersionSummary + + // If there are additional results, this is the token for the next set of results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListMessageTemplateVersionsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListMessageTemplateVersions{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListMessageTemplateVersions{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListMessageTemplateVersions"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpListMessageTemplateVersionsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListMessageTemplateVersions(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +// ListMessageTemplateVersionsPaginatorOptions is the paginator options for +// ListMessageTemplateVersions +type ListMessageTemplateVersionsPaginatorOptions struct { + // The maximum number of results to return 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 +} + +// ListMessageTemplateVersionsPaginator is a paginator for +// ListMessageTemplateVersions +type ListMessageTemplateVersionsPaginator struct { + options ListMessageTemplateVersionsPaginatorOptions + client ListMessageTemplateVersionsAPIClient + params *ListMessageTemplateVersionsInput + nextToken *string + firstPage bool +} + +// NewListMessageTemplateVersionsPaginator returns a new +// ListMessageTemplateVersionsPaginator +func NewListMessageTemplateVersionsPaginator(client ListMessageTemplateVersionsAPIClient, params *ListMessageTemplateVersionsInput, optFns ...func(*ListMessageTemplateVersionsPaginatorOptions)) *ListMessageTemplateVersionsPaginator { + if params == nil { + params = &ListMessageTemplateVersionsInput{} + } + + options := ListMessageTemplateVersionsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListMessageTemplateVersionsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListMessageTemplateVersionsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListMessageTemplateVersions page. +func (p *ListMessageTemplateVersionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListMessageTemplateVersionsOutput, 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 + + optFns = append([]func(*Options){ + addIsPaginatorUserAgent, + }, optFns...) + result, err := p.client.ListMessageTemplateVersions(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 +} + +// ListMessageTemplateVersionsAPIClient is a client that implements the +// ListMessageTemplateVersions operation. +type ListMessageTemplateVersionsAPIClient interface { + ListMessageTemplateVersions(context.Context, *ListMessageTemplateVersionsInput, ...func(*Options)) (*ListMessageTemplateVersionsOutput, error) +} + +var _ ListMessageTemplateVersionsAPIClient = (*Client)(nil) + +func newServiceMetadataMiddleware_opListMessageTemplateVersions(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListMessageTemplateVersions", + } +} diff --git a/service/qconnect/api_op_ListMessageTemplates.go b/service/qconnect/api_op_ListMessageTemplates.go new file mode 100644 index 00000000000..97119e2992d --- /dev/null +++ b/service/qconnect/api_op_ListMessageTemplates.go @@ -0,0 +1,265 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package qconnect + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/qconnect/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists all the available Amazon Q in Connect message templates for the specified +// knowledge base. +func (c *Client) ListMessageTemplates(ctx context.Context, params *ListMessageTemplatesInput, optFns ...func(*Options)) (*ListMessageTemplatesOutput, error) { + if params == nil { + params = &ListMessageTemplatesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListMessageTemplates", params, optFns, c.addOperationListMessageTemplatesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListMessageTemplatesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListMessageTemplatesInput struct { + + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. + // + // This member is required. + KnowledgeBaseId *string + + // The maximum number of results to return per page. + MaxResults *int32 + + // The token for the next set of results. Use the value returned in the previous + // response in the next request to retrieve the next set of results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListMessageTemplatesOutput struct { + + // Summary information about the message template. + // + // This member is required. + MessageTemplateSummaries []types.MessageTemplateSummary + + // If there are additional results, this is the token for the next set of results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListMessageTemplatesMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListMessageTemplates{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListMessageTemplates{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListMessageTemplates"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpListMessageTemplatesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListMessageTemplates(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +// ListMessageTemplatesPaginatorOptions is the paginator options for +// ListMessageTemplates +type ListMessageTemplatesPaginatorOptions struct { + // The maximum number of results to return 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 +} + +// ListMessageTemplatesPaginator is a paginator for ListMessageTemplates +type ListMessageTemplatesPaginator struct { + options ListMessageTemplatesPaginatorOptions + client ListMessageTemplatesAPIClient + params *ListMessageTemplatesInput + nextToken *string + firstPage bool +} + +// NewListMessageTemplatesPaginator returns a new ListMessageTemplatesPaginator +func NewListMessageTemplatesPaginator(client ListMessageTemplatesAPIClient, params *ListMessageTemplatesInput, optFns ...func(*ListMessageTemplatesPaginatorOptions)) *ListMessageTemplatesPaginator { + if params == nil { + params = &ListMessageTemplatesInput{} + } + + options := ListMessageTemplatesPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListMessageTemplatesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListMessageTemplatesPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListMessageTemplates page. +func (p *ListMessageTemplatesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListMessageTemplatesOutput, 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 + + optFns = append([]func(*Options){ + addIsPaginatorUserAgent, + }, optFns...) + result, err := p.client.ListMessageTemplates(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 +} + +// ListMessageTemplatesAPIClient is a client that implements the +// ListMessageTemplates operation. +type ListMessageTemplatesAPIClient interface { + ListMessageTemplates(context.Context, *ListMessageTemplatesInput, ...func(*Options)) (*ListMessageTemplatesOutput, error) +} + +var _ ListMessageTemplatesAPIClient = (*Client)(nil) + +func newServiceMetadataMiddleware_opListMessageTemplates(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListMessageTemplates", + } +} diff --git a/service/qconnect/api_op_RenderMessageTemplate.go b/service/qconnect/api_op_RenderMessageTemplate.go new file mode 100644 index 00000000000..3f26d50726e --- /dev/null +++ b/service/qconnect/api_op_RenderMessageTemplate.go @@ -0,0 +1,184 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package qconnect + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/qconnect/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Renders the Amazon Q in Connect message template based on the attribute values +// provided and generates the message content. For any variable present in the +// message template, if the attribute value is neither provided in the attribute +// request parameter nor the default attribute of the message template, the +// rendered message content will keep the variable placeholder as it is and return +// the attribute keys that are missing. +func (c *Client) RenderMessageTemplate(ctx context.Context, params *RenderMessageTemplateInput, optFns ...func(*Options)) (*RenderMessageTemplateOutput, error) { + if params == nil { + params = &RenderMessageTemplateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "RenderMessageTemplate", params, optFns, c.addOperationRenderMessageTemplateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*RenderMessageTemplateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type RenderMessageTemplateInput struct { + + // An object that specifies the values to use for variables in the message + // template. This object contains different categories of key-value pairs. Each key + // defines a variable or placeholder in the message template. The corresponding + // value defines the value for that variable. + // + // This member is required. + Attributes *types.MessageTemplateAttributes + + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. + // + // This member is required. + KnowledgeBaseId *string + + // The identifier of the message template. Can be either the ID or the ARN. + // + // This member is required. + MessageTemplateId *string + + noSmithyDocumentSerde +} + +type RenderMessageTemplateOutput struct { + + // The content of the message template. + // + // This member is required. + Content types.MessageTemplateContentProvider + + // The message template attachments. + Attachments []types.MessageTemplateAttachment + + // The attribute keys that are not resolved. + AttributesNotInterpolated []string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationRenderMessageTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpRenderMessageTemplate{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpRenderMessageTemplate{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "RenderMessageTemplate"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpRenderMessageTemplateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRenderMessageTemplate(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opRenderMessageTemplate(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "RenderMessageTemplate", + } +} diff --git a/service/qconnect/api_op_SearchMessageTemplates.go b/service/qconnect/api_op_SearchMessageTemplates.go new file mode 100644 index 00000000000..e39fb027f73 --- /dev/null +++ b/service/qconnect/api_op_SearchMessageTemplates.go @@ -0,0 +1,270 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package qconnect + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/qconnect/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Searches for Amazon Q in Connect message templates in the specified knowledge +// base. +func (c *Client) SearchMessageTemplates(ctx context.Context, params *SearchMessageTemplatesInput, optFns ...func(*Options)) (*SearchMessageTemplatesOutput, error) { + if params == nil { + params = &SearchMessageTemplatesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "SearchMessageTemplates", params, optFns, c.addOperationSearchMessageTemplatesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*SearchMessageTemplatesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type SearchMessageTemplatesInput struct { + + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. + // + // This member is required. + KnowledgeBaseId *string + + // The search expression for querying the message template. + // + // This member is required. + SearchExpression *types.MessageTemplateSearchExpression + + // The maximum number of results to return per page. + MaxResults *int32 + + // The token for the next set of results. Use the value returned in the previous + // response in the next request to retrieve the next set of results. + NextToken *string + + noSmithyDocumentSerde +} + +type SearchMessageTemplatesOutput struct { + + // The results of the message template search. + // + // This member is required. + Results []types.MessageTemplateSearchResultData + + // If there are additional results, this is the token for the next set of results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationSearchMessageTemplatesMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpSearchMessageTemplates{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpSearchMessageTemplates{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "SearchMessageTemplates"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpSearchMessageTemplatesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opSearchMessageTemplates(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +// SearchMessageTemplatesPaginatorOptions is the paginator options for +// SearchMessageTemplates +type SearchMessageTemplatesPaginatorOptions struct { + // The maximum number of results to return 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 +} + +// SearchMessageTemplatesPaginator is a paginator for SearchMessageTemplates +type SearchMessageTemplatesPaginator struct { + options SearchMessageTemplatesPaginatorOptions + client SearchMessageTemplatesAPIClient + params *SearchMessageTemplatesInput + nextToken *string + firstPage bool +} + +// NewSearchMessageTemplatesPaginator returns a new SearchMessageTemplatesPaginator +func NewSearchMessageTemplatesPaginator(client SearchMessageTemplatesAPIClient, params *SearchMessageTemplatesInput, optFns ...func(*SearchMessageTemplatesPaginatorOptions)) *SearchMessageTemplatesPaginator { + if params == nil { + params = &SearchMessageTemplatesInput{} + } + + options := SearchMessageTemplatesPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &SearchMessageTemplatesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *SearchMessageTemplatesPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next SearchMessageTemplates page. +func (p *SearchMessageTemplatesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*SearchMessageTemplatesOutput, 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 + + optFns = append([]func(*Options){ + addIsPaginatorUserAgent, + }, optFns...) + result, err := p.client.SearchMessageTemplates(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 +} + +// SearchMessageTemplatesAPIClient is a client that implements the +// SearchMessageTemplates operation. +type SearchMessageTemplatesAPIClient interface { + SearchMessageTemplates(context.Context, *SearchMessageTemplatesInput, ...func(*Options)) (*SearchMessageTemplatesOutput, error) +} + +var _ SearchMessageTemplatesAPIClient = (*Client)(nil) + +func newServiceMetadataMiddleware_opSearchMessageTemplates(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "SearchMessageTemplates", + } +} diff --git a/service/qconnect/api_op_UpdateAIAgent.go b/service/qconnect/api_op_UpdateAIAgent.go index 111bf14813e..d367cee7f88 100644 --- a/service/qconnect/api_op_UpdateAIAgent.go +++ b/service/qconnect/api_op_UpdateAIAgent.go @@ -46,8 +46,8 @@ type UpdateAIAgentInput struct { VisibilityStatus types.VisibilityStatus // A unique, case-sensitive identifier that you provide to ensure the idempotency - // of the request. If not provided, the AWS SDK populates this field. For more - // information about idempotency, see [Making retries safe with idempotent APIs]. + // of the request. If not provided, the Amazon Web Services SDK populates this + // field. For more information about idempotency, see [Making retries safe with idempotent APIs].. // // [Making retries safe with idempotent APIs]: http://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ ClientToken *string diff --git a/service/qconnect/api_op_UpdateAIPrompt.go b/service/qconnect/api_op_UpdateAIPrompt.go index a96d1b6c95c..603db7f3549 100644 --- a/service/qconnect/api_op_UpdateAIPrompt.go +++ b/service/qconnect/api_op_UpdateAIPrompt.go @@ -46,10 +46,10 @@ type UpdateAIPromptInput struct { VisibilityStatus types.VisibilityStatus // A unique, case-sensitive identifier that you provide to ensure the idempotency - // of the request. If not provided, the AWS SDK populates this field. For more - // information about idempotency, see [Making retries safe with idempotent APIs]. + // of the request. If not provided, the Amazon Web Services SDK populates this + // field. For more information about idempotency, see [Making retries safe with idempotent APIs].. // - // [Making retries safe with idempotent APIs]: http://aws.amazon.com/https:/aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ + // [Making retries safe with idempotent APIs]: http://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ ClientToken *string // The description of the Amazon Q in Connect AI Prompt. diff --git a/service/qconnect/api_op_UpdateMessageTemplate.go b/service/qconnect/api_op_UpdateMessageTemplate.go new file mode 100644 index 00000000000..289e06e2a4f --- /dev/null +++ b/service/qconnect/api_op_UpdateMessageTemplate.go @@ -0,0 +1,182 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package qconnect + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/qconnect/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates the Amazon Q in Connect message template. Partial update is supported. +// If any field is not supplied, it will remain unchanged for the message template +// that is referenced by the $LATEST qualifier. Any modification will only apply +// to the message template that is referenced by the $LATEST qualifier. The fields +// for all available versions will remain unchanged. +func (c *Client) UpdateMessageTemplate(ctx context.Context, params *UpdateMessageTemplateInput, optFns ...func(*Options)) (*UpdateMessageTemplateOutput, error) { + if params == nil { + params = &UpdateMessageTemplateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateMessageTemplate", params, optFns, c.addOperationUpdateMessageTemplateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateMessageTemplateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateMessageTemplateInput struct { + + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. + // + // This member is required. + KnowledgeBaseId *string + + // The identifier of the message template. Can be either the ID or the ARN. It + // cannot contain any qualifier. + // + // This member is required. + MessageTemplateId *string + + // The content of the message template. + Content types.MessageTemplateContentProvider + + // An object that specifies the default values to use for variables in the message + // template. This object contains different categories of key-value pairs. Each key + // defines a variable or placeholder in the message template. The corresponding + // value defines the default value for that variable. + DefaultAttributes *types.MessageTemplateAttributes + + // The language code value for the language in which the quick response is + // written. The supported language codes include de_DE , en_US , es_ES , fr_FR , + // id_ID , it_IT , ja_JP , ko_KR , pt_BR , zh_CN , zh_TW + Language *string + + noSmithyDocumentSerde +} + +type UpdateMessageTemplateOutput struct { + + // The message template. + MessageTemplate *types.MessageTemplateData + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateMessageTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateMessageTemplate{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateMessageTemplate{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateMessageTemplate"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpUpdateMessageTemplateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateMessageTemplate(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateMessageTemplate(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "UpdateMessageTemplate", + } +} diff --git a/service/qconnect/api_op_UpdateMessageTemplateMetadata.go b/service/qconnect/api_op_UpdateMessageTemplateMetadata.go new file mode 100644 index 00000000000..220479edac3 --- /dev/null +++ b/service/qconnect/api_op_UpdateMessageTemplateMetadata.go @@ -0,0 +1,177 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package qconnect + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/qconnect/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates the Amazon Q in Connect message template metadata. Note that any +// modification to the message template’s name, description and grouping +// configuration will applied to the message template pointed by the $LATEST +// qualifier and all available versions. Partial update is supported. If any field +// is not supplied, it will remain unchanged for the message template. +func (c *Client) UpdateMessageTemplateMetadata(ctx context.Context, params *UpdateMessageTemplateMetadataInput, optFns ...func(*Options)) (*UpdateMessageTemplateMetadataOutput, error) { + if params == nil { + params = &UpdateMessageTemplateMetadataInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateMessageTemplateMetadata", params, optFns, c.addOperationUpdateMessageTemplateMetadataMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateMessageTemplateMetadataOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateMessageTemplateMetadataInput struct { + + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. + // + // This member is required. + KnowledgeBaseId *string + + // The identifier of the message template. Can be either the ID or the ARN. It + // cannot contain any qualifier. + // + // This member is required. + MessageTemplateId *string + + // The description of the message template. + Description *string + + // The configuration information of the grouping of Amazon Q in Connect users. + GroupingConfiguration *types.GroupingConfiguration + + // The name of the message template. + Name *string + + noSmithyDocumentSerde +} + +type UpdateMessageTemplateMetadataOutput struct { + + // The message template. + MessageTemplate *types.MessageTemplateData + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateMessageTemplateMetadataMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateMessageTemplateMetadata{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateMessageTemplateMetadata{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateMessageTemplateMetadata"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpUpdateMessageTemplateMetadataValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateMessageTemplateMetadata(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateMessageTemplateMetadata(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "UpdateMessageTemplateMetadata", + } +} diff --git a/service/qconnect/deserializers.go b/service/qconnect/deserializers.go index 6ade3651ea8..4e6de2a0284 100644 --- a/service/qconnect/deserializers.go +++ b/service/qconnect/deserializers.go @@ -30,6 +30,196 @@ func deserializeS3Expires(v string) (*time.Time, error) { return &t, nil } +type awsRestjson1_deserializeOpActivateMessageTemplate struct { +} + +func (*awsRestjson1_deserializeOpActivateMessageTemplate) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpActivateMessageTemplate) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorActivateMessageTemplate(response, &metadata) + } + output := &ActivateMessageTemplateOutput{} + 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_deserializeOpDocumentActivateMessageTemplateOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorActivateMessageTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(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_deserializeOpDocumentActivateMessageTemplateOutput(v **ActivateMessageTemplateOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ActivateMessageTemplateOutput + if *v == nil { + sv = &ActivateMessageTemplateOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "messageTemplateArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ArnWithQualifier to be of type string, got %T instead", value) + } + sv.MessageTemplateArn = ptr.String(jtv) + } + + case "messageTemplateId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.MessageTemplateId = ptr.String(jtv) + } + + case "versionNumber": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Version to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.VersionNumber = ptr.Int64(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + type awsRestjson1_deserializeOpCreateAIAgent struct { } @@ -1541,14 +1731,14 @@ func awsRestjson1_deserializeOpDocumentCreateKnowledgeBaseOutput(v **CreateKnowl return nil } -type awsRestjson1_deserializeOpCreateQuickResponse struct { +type awsRestjson1_deserializeOpCreateMessageTemplate struct { } -func (*awsRestjson1_deserializeOpCreateQuickResponse) ID() string { +func (*awsRestjson1_deserializeOpCreateMessageTemplate) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpCreateQuickResponse) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreateMessageTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1566,9 +1756,9 @@ func (m *awsRestjson1_deserializeOpCreateQuickResponse) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorCreateQuickResponse(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateMessageTemplate(response, &metadata) } - output := &CreateQuickResponseOutput{} + output := &CreateMessageTemplateOutput{} out.Result = output var buff [1024]byte @@ -1589,7 +1779,7 @@ func (m *awsRestjson1_deserializeOpCreateQuickResponse) HandleDeserialize(ctx co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentCreateQuickResponseOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentCreateMessageTemplateOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1603,7 +1793,7 @@ func (m *awsRestjson1_deserializeOpCreateQuickResponse) HandleDeserialize(ctx co return out, metadata, err } -func awsRestjson1_deserializeOpErrorCreateQuickResponse(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateMessageTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1656,6 +1846,9 @@ func awsRestjson1_deserializeOpErrorCreateQuickResponse(response *smithyhttp.Res 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) @@ -1669,7 +1862,7 @@ func awsRestjson1_deserializeOpErrorCreateQuickResponse(response *smithyhttp.Res } } -func awsRestjson1_deserializeOpDocumentCreateQuickResponseOutput(v **CreateQuickResponseOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentCreateMessageTemplateOutput(v **CreateMessageTemplateOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1682,17 +1875,17 @@ func awsRestjson1_deserializeOpDocumentCreateQuickResponseOutput(v **CreateQuick return fmt.Errorf("unexpected JSON type %v", value) } - var sv *CreateQuickResponseOutput + var sv *CreateMessageTemplateOutput if *v == nil { - sv = &CreateQuickResponseOutput{} + sv = &CreateMessageTemplateOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "quickResponse": - if err := awsRestjson1_deserializeDocumentQuickResponseData(&sv.QuickResponse, value); err != nil { + case "messageTemplate": + if err := awsRestjson1_deserializeDocumentMessageTemplateData(&sv.MessageTemplate, value); err != nil { return err } @@ -1705,14 +1898,14 @@ func awsRestjson1_deserializeOpDocumentCreateQuickResponseOutput(v **CreateQuick return nil } -type awsRestjson1_deserializeOpCreateSession struct { +type awsRestjson1_deserializeOpCreateMessageTemplateAttachment struct { } -func (*awsRestjson1_deserializeOpCreateSession) ID() string { +func (*awsRestjson1_deserializeOpCreateMessageTemplateAttachment) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpCreateSession) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreateMessageTemplateAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1730,9 +1923,9 @@ func (m *awsRestjson1_deserializeOpCreateSession) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorCreateSession(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateMessageTemplateAttachment(response, &metadata) } - output := &CreateSessionOutput{} + output := &CreateMessageTemplateAttachmentOutput{} out.Result = output var buff [1024]byte @@ -1753,7 +1946,7 @@ func (m *awsRestjson1_deserializeOpCreateSession) HandleDeserialize(ctx context. return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentCreateSessionOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentCreateMessageTemplateAttachmentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1767,7 +1960,7 @@ func (m *awsRestjson1_deserializeOpCreateSession) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestjson1_deserializeOpErrorCreateSession(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateMessageTemplateAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1817,6 +2010,12 @@ func awsRestjson1_deserializeOpErrorCreateSession(response *smithyhttp.Response, 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) @@ -1830,7 +2029,7 @@ func awsRestjson1_deserializeOpErrorCreateSession(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentCreateSessionOutput(v **CreateSessionOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentCreateMessageTemplateAttachmentOutput(v **CreateMessageTemplateAttachmentOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1843,17 +2042,17 @@ func awsRestjson1_deserializeOpDocumentCreateSessionOutput(v **CreateSessionOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *CreateSessionOutput + var sv *CreateMessageTemplateAttachmentOutput if *v == nil { - sv = &CreateSessionOutput{} + sv = &CreateMessageTemplateAttachmentOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "session": - if err := awsRestjson1_deserializeDocumentSessionData(&sv.Session, value); err != nil { + case "attachment": + if err := awsRestjson1_deserializeDocumentMessageTemplateAttachment(&sv.Attachment, value); err != nil { return err } @@ -1866,14 +2065,14 @@ func awsRestjson1_deserializeOpDocumentCreateSessionOutput(v **CreateSessionOutp return nil } -type awsRestjson1_deserializeOpDeleteAIAgent struct { +type awsRestjson1_deserializeOpCreateMessageTemplateVersion struct { } -func (*awsRestjson1_deserializeOpDeleteAIAgent) ID() string { +func (*awsRestjson1_deserializeOpCreateMessageTemplateVersion) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteAIAgent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreateMessageTemplateVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1891,16 +2090,44 @@ func (m *awsRestjson1_deserializeOpDeleteAIAgent) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteAIAgent(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateMessageTemplateVersion(response, &metadata) } - output := &DeleteAIAgentOutput{} + output := &CreateMessageTemplateVersionOutput{} 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_deserializeOpDocumentCreateMessageTemplateVersionOutput(&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(), + } + } + span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteAIAgent(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateMessageTemplateVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1944,9 +2171,15 @@ func awsRestjson1_deserializeOpErrorDeleteAIAgent(response *smithyhttp.Response, case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(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) @@ -1963,14 +2196,50 @@ func awsRestjson1_deserializeOpErrorDeleteAIAgent(response *smithyhttp.Response, } } -type awsRestjson1_deserializeOpDeleteAIAgentVersion struct { -} +func awsRestjson1_deserializeOpDocumentCreateMessageTemplateVersionOutput(v **CreateMessageTemplateVersionOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } -func (*awsRestjson1_deserializeOpDeleteAIAgentVersion) ID() string { + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateMessageTemplateVersionOutput + if *v == nil { + sv = &CreateMessageTemplateVersionOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "messageTemplate": + if err := awsRestjson1_deserializeDocumentExtendedMessageTemplateData(&sv.MessageTemplate, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpCreateQuickResponse struct { +} + +func (*awsRestjson1_deserializeOpCreateQuickResponse) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteAIAgentVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreateQuickResponse) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1988,16 +2257,44 @@ func (m *awsRestjson1_deserializeOpDeleteAIAgentVersion) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteAIAgentVersion(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateQuickResponse(response, &metadata) } - output := &DeleteAIAgentVersionOutput{} + output := &CreateQuickResponseOutput{} 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_deserializeOpDocumentCreateQuickResponseOutput(&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(), + } + } + span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteAIAgentVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateQuickResponse(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2047,8 +2344,8 @@ func awsRestjson1_deserializeOpErrorDeleteAIAgentVersion(response *smithyhttp.Re case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) case strings.EqualFold("ValidationException", errorCode): return awsRestjson1_deserializeErrorValidationException(response, errorBody) @@ -2063,14 +2360,50 @@ func awsRestjson1_deserializeOpErrorDeleteAIAgentVersion(response *smithyhttp.Re } } -type awsRestjson1_deserializeOpDeleteAIPrompt struct { +func awsRestjson1_deserializeOpDocumentCreateQuickResponseOutput(v **CreateQuickResponseOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateQuickResponseOutput + if *v == nil { + sv = &CreateQuickResponseOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "quickResponse": + if err := awsRestjson1_deserializeDocumentQuickResponseData(&sv.QuickResponse, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil } -func (*awsRestjson1_deserializeOpDeleteAIPrompt) ID() string { +type awsRestjson1_deserializeOpCreateSession struct { +} + +func (*awsRestjson1_deserializeOpCreateSession) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteAIPrompt) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreateSession) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2088,16 +2421,44 @@ func (m *awsRestjson1_deserializeOpDeleteAIPrompt) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteAIPrompt(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateSession(response, &metadata) } - output := &DeleteAIPromptOutput{} + output := &CreateSessionOutput{} 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_deserializeOpDocumentCreateSessionOutput(&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(), + } + } + span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteAIPrompt(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateSession(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2141,12 +2502,12 @@ func awsRestjson1_deserializeOpErrorDeleteAIPrompt(response *smithyhttp.Response case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(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) @@ -2160,14 +2521,50 @@ func awsRestjson1_deserializeOpErrorDeleteAIPrompt(response *smithyhttp.Response } } -type awsRestjson1_deserializeOpDeleteAIPromptVersion struct { +func awsRestjson1_deserializeOpDocumentCreateSessionOutput(v **CreateSessionOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateSessionOutput + if *v == nil { + sv = &CreateSessionOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "session": + if err := awsRestjson1_deserializeDocumentSessionData(&sv.Session, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil } -func (*awsRestjson1_deserializeOpDeleteAIPromptVersion) ID() string { +type awsRestjson1_deserializeOpDeactivateMessageTemplate struct { +} + +func (*awsRestjson1_deserializeOpDeactivateMessageTemplate) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteAIPromptVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeactivateMessageTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2185,16 +2582,44 @@ func (m *awsRestjson1_deserializeOpDeleteAIPromptVersion) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteAIPromptVersion(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeactivateMessageTemplate(response, &metadata) } - output := &DeleteAIPromptVersionOutput{} + output := &DeactivateMessageTemplateOutput{} 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_deserializeOpDocumentDeactivateMessageTemplateOutput(&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(), + } + } + span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteAIPromptVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeactivateMessageTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2260,41 +2685,103 @@ func awsRestjson1_deserializeOpErrorDeleteAIPromptVersion(response *smithyhttp.R } } -type awsRestjson1_deserializeOpDeleteAssistant struct { -} - -func (*awsRestjson1_deserializeOpDeleteAssistant) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpDeleteAssistant) HandleDeserialize(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_deserializeOpDocumentDeactivateMessageTemplateOutput(v **DeactivateMessageTemplateOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil } - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - 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, awsRestjson1_deserializeOpErrorDeleteAssistant(response, &metadata) + var sv *DeactivateMessageTemplateOutput + if *v == nil { + sv = &DeactivateMessageTemplateOutput{} + } else { + sv = *v } - output := &DeleteAssistantOutput{} - out.Result = output - - span.End() - return out, metadata, err -} -func awsRestjson1_deserializeOpErrorDeleteAssistant(response *smithyhttp.Response, metadata *middleware.Metadata) error { + for key, value := range shape { + switch key { + case "messageTemplateArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ArnWithQualifier to be of type string, got %T instead", value) + } + sv.MessageTemplateArn = ptr.String(jtv) + } + + case "messageTemplateId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.MessageTemplateId = ptr.String(jtv) + } + + case "versionNumber": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Version to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.VersionNumber = ptr.Int64(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpDeleteAIAgent struct { +} + +func (*awsRestjson1_deserializeOpDeleteAIAgent) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteAIAgent) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorDeleteAIAgent(response, &metadata) + } + output := &DeleteAIAgentOutput{} + out.Result = output + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeleteAIAgent(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2341,6 +2828,9 @@ func awsRestjson1_deserializeOpErrorDeleteAssistant(response *smithyhttp.Respons 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) @@ -2354,14 +2844,14 @@ func awsRestjson1_deserializeOpErrorDeleteAssistant(response *smithyhttp.Respons } } -type awsRestjson1_deserializeOpDeleteAssistantAssociation struct { +type awsRestjson1_deserializeOpDeleteAIAgentVersion struct { } -func (*awsRestjson1_deserializeOpDeleteAssistantAssociation) ID() string { +func (*awsRestjson1_deserializeOpDeleteAIAgentVersion) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteAssistantAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteAIAgentVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2379,16 +2869,16 @@ func (m *awsRestjson1_deserializeOpDeleteAssistantAssociation) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteAssistantAssociation(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteAIAgentVersion(response, &metadata) } - output := &DeleteAssistantAssociationOutput{} + output := &DeleteAIAgentVersionOutput{} out.Result = output span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteAssistantAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteAIAgentVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2432,9 +2922,15 @@ func awsRestjson1_deserializeOpErrorDeleteAssistantAssociation(response *smithyh case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(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) @@ -2448,14 +2944,14 @@ func awsRestjson1_deserializeOpErrorDeleteAssistantAssociation(response *smithyh } } -type awsRestjson1_deserializeOpDeleteContent struct { +type awsRestjson1_deserializeOpDeleteAIPrompt struct { } -func (*awsRestjson1_deserializeOpDeleteContent) ID() string { +func (*awsRestjson1_deserializeOpDeleteAIPrompt) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteContent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteAIPrompt) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2473,16 +2969,16 @@ func (m *awsRestjson1_deserializeOpDeleteContent) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteContent(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteAIPrompt(response, &metadata) } - output := &DeleteContentOutput{} + output := &DeleteAIPromptOutput{} out.Result = output span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteContent(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteAIPrompt(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2529,6 +3025,9 @@ func awsRestjson1_deserializeOpErrorDeleteContent(response *smithyhttp.Response, 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) @@ -2542,14 +3041,14 @@ func awsRestjson1_deserializeOpErrorDeleteContent(response *smithyhttp.Response, } } -type awsRestjson1_deserializeOpDeleteContentAssociation struct { +type awsRestjson1_deserializeOpDeleteAIPromptVersion struct { } -func (*awsRestjson1_deserializeOpDeleteContentAssociation) ID() string { +func (*awsRestjson1_deserializeOpDeleteAIPromptVersion) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteContentAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteAIPromptVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2567,16 +3066,16 @@ func (m *awsRestjson1_deserializeOpDeleteContentAssociation) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteContentAssociation(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteAIPromptVersion(response, &metadata) } - output := &DeleteContentAssociationOutput{} + output := &DeleteAIPromptVersionOutput{} out.Result = output span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteContentAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteAIPromptVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2620,9 +3119,15 @@ func awsRestjson1_deserializeOpErrorDeleteContentAssociation(response *smithyhtt case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(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) @@ -2636,14 +3141,14 @@ func awsRestjson1_deserializeOpErrorDeleteContentAssociation(response *smithyhtt } } -type awsRestjson1_deserializeOpDeleteImportJob struct { +type awsRestjson1_deserializeOpDeleteAssistant struct { } -func (*awsRestjson1_deserializeOpDeleteImportJob) ID() string { +func (*awsRestjson1_deserializeOpDeleteAssistant) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteImportJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteAssistant) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2661,16 +3166,16 @@ func (m *awsRestjson1_deserializeOpDeleteImportJob) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteImportJob(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteAssistant(response, &metadata) } - output := &DeleteImportJobOutput{} + output := &DeleteAssistantOutput{} out.Result = output span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteImportJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteAssistant(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2714,9 +3219,6 @@ func awsRestjson1_deserializeOpErrorDeleteImportJob(response *smithyhttp.Respons case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -2733,14 +3235,14 @@ func awsRestjson1_deserializeOpErrorDeleteImportJob(response *smithyhttp.Respons } } -type awsRestjson1_deserializeOpDeleteKnowledgeBase struct { +type awsRestjson1_deserializeOpDeleteAssistantAssociation struct { } -func (*awsRestjson1_deserializeOpDeleteKnowledgeBase) ID() string { +func (*awsRestjson1_deserializeOpDeleteAssistantAssociation) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteKnowledgeBase) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteAssistantAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2758,16 +3260,16 @@ func (m *awsRestjson1_deserializeOpDeleteKnowledgeBase) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteKnowledgeBase(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteAssistantAssociation(response, &metadata) } - output := &DeleteKnowledgeBaseOutput{} + output := &DeleteAssistantAssociationOutput{} out.Result = output span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteKnowledgeBase(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteAssistantAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2811,9 +3313,6 @@ func awsRestjson1_deserializeOpErrorDeleteKnowledgeBase(response *smithyhttp.Res case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -2830,14 +3329,14 @@ func awsRestjson1_deserializeOpErrorDeleteKnowledgeBase(response *smithyhttp.Res } } -type awsRestjson1_deserializeOpDeleteQuickResponse struct { +type awsRestjson1_deserializeOpDeleteContent struct { } -func (*awsRestjson1_deserializeOpDeleteQuickResponse) ID() string { +func (*awsRestjson1_deserializeOpDeleteContent) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteQuickResponse) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteContent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2855,16 +3354,16 @@ func (m *awsRestjson1_deserializeOpDeleteQuickResponse) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteQuickResponse(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteContent(response, &metadata) } - output := &DeleteQuickResponseOutput{} + output := &DeleteContentOutput{} out.Result = output span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteQuickResponse(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteContent(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2924,14 +3423,14 @@ func awsRestjson1_deserializeOpErrorDeleteQuickResponse(response *smithyhttp.Res } } -type awsRestjson1_deserializeOpGetAIAgent struct { +type awsRestjson1_deserializeOpDeleteContentAssociation struct { } -func (*awsRestjson1_deserializeOpGetAIAgent) ID() string { +func (*awsRestjson1_deserializeOpDeleteContentAssociation) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetAIAgent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteContentAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2949,44 +3448,16 @@ func (m *awsRestjson1_deserializeOpGetAIAgent) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetAIAgent(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteContentAssociation(response, &metadata) } - output := &GetAIAgentOutput{} + output := &DeleteContentAssociationOutput{} 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_deserializeOpDocumentGetAIAgentOutput(&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(), - } - } - span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetAIAgent(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteContentAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3033,9 +3504,6 @@ func awsRestjson1_deserializeOpErrorGetAIAgent(response *smithyhttp.Response, me 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) @@ -3049,118 +3517,41 @@ func awsRestjson1_deserializeOpErrorGetAIAgent(response *smithyhttp.Response, me } } -func awsRestjson1_deserializeOpDocumentGetAIAgentOutput(v **GetAIAgentOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil +type awsRestjson1_deserializeOpDeleteImportJob struct { +} + +func (*awsRestjson1_deserializeOpDeleteImportJob) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteImportJob) HandleDeserialize(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 } - shape, ok := value.(map[string]interface{}) + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + response, ok := out.RawResponse.(*smithyhttp.Response) if !ok { - return fmt.Errorf("unexpected JSON type %v", value) + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} } - var sv *GetAIAgentOutput - if *v == nil { - sv = &GetAIAgentOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "aiAgent": - if err := awsRestjson1_deserializeDocumentAIAgentData(&sv.AiAgent, value); err != nil { - return err - } - - case "versionNumber": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Version to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.VersionNumber = ptr.Int64(i64) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpGetAIPrompt struct { -} - -func (*awsRestjson1_deserializeOpGetAIPrompt) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpGetAIPrompt) HandleDeserialize(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 - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - 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_deserializeOpErrorGetAIPrompt(response, &metadata) - } - output := &GetAIPromptOutput{} - 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_deserializeOpDocumentGetAIPromptOutput(&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(), - } + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorDeleteImportJob(response, &metadata) } + output := &DeleteImportJobOutput{} + out.Result = output span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetAIPrompt(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteImportJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3204,12 +3595,12 @@ func awsRestjson1_deserializeOpErrorGetAIPrompt(response *smithyhttp.Response, m case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(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) @@ -3223,63 +3614,14 @@ func awsRestjson1_deserializeOpErrorGetAIPrompt(response *smithyhttp.Response, m } } -func awsRestjson1_deserializeOpDocumentGetAIPromptOutput(v **GetAIPromptOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetAIPromptOutput - if *v == nil { - sv = &GetAIPromptOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "aiPrompt": - if err := awsRestjson1_deserializeDocumentAIPromptData(&sv.AiPrompt, value); err != nil { - return err - } - - case "versionNumber": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Version to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.VersionNumber = ptr.Int64(i64) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpGetAssistant struct { +type awsRestjson1_deserializeOpDeleteKnowledgeBase struct { } -func (*awsRestjson1_deserializeOpGetAssistant) ID() string { +func (*awsRestjson1_deserializeOpDeleteKnowledgeBase) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetAssistant) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteKnowledgeBase) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3297,44 +3639,16 @@ func (m *awsRestjson1_deserializeOpGetAssistant) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetAssistant(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteKnowledgeBase(response, &metadata) } - output := &GetAssistantOutput{} + output := &DeleteKnowledgeBaseOutput{} 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_deserializeOpDocumentGetAssistantOutput(&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(), - } - } - span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetAssistant(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteKnowledgeBase(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3378,6 +3692,9 @@ func awsRestjson1_deserializeOpErrorGetAssistant(response *smithyhttp.Response, case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -3394,50 +3711,14 @@ func awsRestjson1_deserializeOpErrorGetAssistant(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentGetAssistantOutput(v **GetAssistantOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetAssistantOutput - if *v == nil { - sv = &GetAssistantOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "assistant": - if err := awsRestjson1_deserializeDocumentAssistantData(&sv.Assistant, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpGetAssistantAssociation struct { +type awsRestjson1_deserializeOpDeleteMessageTemplate struct { } -func (*awsRestjson1_deserializeOpGetAssistantAssociation) ID() string { +func (*awsRestjson1_deserializeOpDeleteMessageTemplate) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetAssistantAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteMessageTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3455,44 +3736,16 @@ func (m *awsRestjson1_deserializeOpGetAssistantAssociation) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetAssistantAssociation(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteMessageTemplate(response, &metadata) } - output := &GetAssistantAssociationOutput{} + output := &DeleteMessageTemplateOutput{} 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_deserializeOpDocumentGetAssistantAssociationOutput(&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(), - } - } - span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetAssistantAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteMessageTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3536,9 +3789,15 @@ func awsRestjson1_deserializeOpErrorGetAssistantAssociation(response *smithyhttp case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(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) @@ -3552,50 +3811,14 @@ func awsRestjson1_deserializeOpErrorGetAssistantAssociation(response *smithyhttp } } -func awsRestjson1_deserializeOpDocumentGetAssistantAssociationOutput(v **GetAssistantAssociationOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetAssistantAssociationOutput - if *v == nil { - sv = &GetAssistantAssociationOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "assistantAssociation": - if err := awsRestjson1_deserializeDocumentAssistantAssociationData(&sv.AssistantAssociation, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpGetContent struct { +type awsRestjson1_deserializeOpDeleteMessageTemplateAttachment struct { } -func (*awsRestjson1_deserializeOpGetContent) ID() string { +func (*awsRestjson1_deserializeOpDeleteMessageTemplateAttachment) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetContent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteMessageTemplateAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3613,44 +3836,16 @@ func (m *awsRestjson1_deserializeOpGetContent) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetContent(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteMessageTemplateAttachment(response, &metadata) } - output := &GetContentOutput{} + output := &DeleteMessageTemplateAttachmentOutput{} 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_deserializeOpDocumentGetContentOutput(&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(), - } - } - span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetContent(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteMessageTemplateAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3694,9 +3889,15 @@ func awsRestjson1_deserializeOpErrorGetContent(response *smithyhttp.Response, me case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(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) @@ -3710,50 +3911,14 @@ func awsRestjson1_deserializeOpErrorGetContent(response *smithyhttp.Response, me } } -func awsRestjson1_deserializeOpDocumentGetContentOutput(v **GetContentOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetContentOutput - if *v == nil { - sv = &GetContentOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "content": - if err := awsRestjson1_deserializeDocumentContentData(&sv.Content, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpGetContentAssociation struct { +type awsRestjson1_deserializeOpDeleteQuickResponse struct { } -func (*awsRestjson1_deserializeOpGetContentAssociation) ID() string { +func (*awsRestjson1_deserializeOpDeleteQuickResponse) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetContentAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteQuickResponse) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3771,44 +3936,16 @@ func (m *awsRestjson1_deserializeOpGetContentAssociation) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetContentAssociation(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteQuickResponse(response, &metadata) } - output := &GetContentAssociationOutput{} + output := &DeleteQuickResponseOutput{} 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_deserializeOpDocumentGetContentAssociationOutput(&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(), - } - } - span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetContentAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteQuickResponse(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3868,50 +4005,14 @@ func awsRestjson1_deserializeOpErrorGetContentAssociation(response *smithyhttp.R } } -func awsRestjson1_deserializeOpDocumentGetContentAssociationOutput(v **GetContentAssociationOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetContentAssociationOutput - if *v == nil { - sv = &GetContentAssociationOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "contentAssociation": - if err := awsRestjson1_deserializeDocumentContentAssociationData(&sv.ContentAssociation, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpGetContentSummary struct { +type awsRestjson1_deserializeOpGetAIAgent struct { } -func (*awsRestjson1_deserializeOpGetContentSummary) ID() string { +func (*awsRestjson1_deserializeOpGetAIAgent) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetContentSummary) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetAIAgent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3929,9 +4030,9 @@ func (m *awsRestjson1_deserializeOpGetContentSummary) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetContentSummary(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetAIAgent(response, &metadata) } - output := &GetContentSummaryOutput{} + output := &GetAIAgentOutput{} out.Result = output var buff [1024]byte @@ -3952,7 +4053,7 @@ func (m *awsRestjson1_deserializeOpGetContentSummary) HandleDeserialize(ctx cont return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetContentSummaryOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetAIAgentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3966,7 +4067,7 @@ func (m *awsRestjson1_deserializeOpGetContentSummary) HandleDeserialize(ctx cont return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetContentSummary(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetAIAgent(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4013,6 +4114,9 @@ func awsRestjson1_deserializeOpErrorGetContentSummary(response *smithyhttp.Respo 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) @@ -4026,7 +4130,7 @@ func awsRestjson1_deserializeOpErrorGetContentSummary(response *smithyhttp.Respo } } -func awsRestjson1_deserializeOpDocumentGetContentSummaryOutput(v **GetContentSummaryOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetAIAgentOutput(v **GetAIAgentOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4039,20 +4143,33 @@ func awsRestjson1_deserializeOpDocumentGetContentSummaryOutput(v **GetContentSum return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetContentSummaryOutput + var sv *GetAIAgentOutput if *v == nil { - sv = &GetContentSummaryOutput{} + sv = &GetAIAgentOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "contentSummary": - if err := awsRestjson1_deserializeDocumentContentSummary(&sv.ContentSummary, value); err != nil { + case "aiAgent": + if err := awsRestjson1_deserializeDocumentAIAgentData(&sv.AiAgent, value); err != nil { return err } + case "versionNumber": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Version to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.VersionNumber = ptr.Int64(i64) + } + default: _, _ = key, value @@ -4062,14 +4179,14 @@ func awsRestjson1_deserializeOpDocumentGetContentSummaryOutput(v **GetContentSum return nil } -type awsRestjson1_deserializeOpGetImportJob struct { +type awsRestjson1_deserializeOpGetAIPrompt struct { } -func (*awsRestjson1_deserializeOpGetImportJob) ID() string { +func (*awsRestjson1_deserializeOpGetAIPrompt) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetImportJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetAIPrompt) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4087,9 +4204,9 @@ func (m *awsRestjson1_deserializeOpGetImportJob) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetImportJob(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetAIPrompt(response, &metadata) } - output := &GetImportJobOutput{} + output := &GetAIPromptOutput{} out.Result = output var buff [1024]byte @@ -4110,7 +4227,7 @@ func (m *awsRestjson1_deserializeOpGetImportJob) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetImportJobOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetAIPromptOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4124,7 +4241,7 @@ func (m *awsRestjson1_deserializeOpGetImportJob) HandleDeserialize(ctx context.C return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetImportJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetAIPrompt(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4171,6 +4288,9 @@ func awsRestjson1_deserializeOpErrorGetImportJob(response *smithyhttp.Response, 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) @@ -4184,7 +4304,7 @@ func awsRestjson1_deserializeOpErrorGetImportJob(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentGetImportJobOutput(v **GetImportJobOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetAIPromptOutput(v **GetAIPromptOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4197,22 +4317,35 @@ func awsRestjson1_deserializeOpDocumentGetImportJobOutput(v **GetImportJobOutput return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetImportJobOutput + var sv *GetAIPromptOutput if *v == nil { - sv = &GetImportJobOutput{} + sv = &GetAIPromptOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "importJob": - if err := awsRestjson1_deserializeDocumentImportJobData(&sv.ImportJob, value); err != nil { + case "aiPrompt": + if err := awsRestjson1_deserializeDocumentAIPromptData(&sv.AiPrompt, value); err != nil { return err } - default: - _, _ = key, value + case "versionNumber": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Version to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.VersionNumber = ptr.Int64(i64) + } + + default: + _, _ = key, value } } @@ -4220,14 +4353,14 @@ func awsRestjson1_deserializeOpDocumentGetImportJobOutput(v **GetImportJobOutput return nil } -type awsRestjson1_deserializeOpGetKnowledgeBase struct { +type awsRestjson1_deserializeOpGetAssistant struct { } -func (*awsRestjson1_deserializeOpGetKnowledgeBase) ID() string { +func (*awsRestjson1_deserializeOpGetAssistant) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetKnowledgeBase) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetAssistant) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4245,9 +4378,9 @@ func (m *awsRestjson1_deserializeOpGetKnowledgeBase) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetKnowledgeBase(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetAssistant(response, &metadata) } - output := &GetKnowledgeBaseOutput{} + output := &GetAssistantOutput{} out.Result = output var buff [1024]byte @@ -4268,7 +4401,7 @@ func (m *awsRestjson1_deserializeOpGetKnowledgeBase) HandleDeserialize(ctx conte return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetKnowledgeBaseOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetAssistantOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4282,7 +4415,7 @@ func (m *awsRestjson1_deserializeOpGetKnowledgeBase) HandleDeserialize(ctx conte return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetKnowledgeBase(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetAssistant(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4342,7 +4475,7 @@ func awsRestjson1_deserializeOpErrorGetKnowledgeBase(response *smithyhttp.Respon } } -func awsRestjson1_deserializeOpDocumentGetKnowledgeBaseOutput(v **GetKnowledgeBaseOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetAssistantOutput(v **GetAssistantOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4355,17 +4488,17 @@ func awsRestjson1_deserializeOpDocumentGetKnowledgeBaseOutput(v **GetKnowledgeBa return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetKnowledgeBaseOutput + var sv *GetAssistantOutput if *v == nil { - sv = &GetKnowledgeBaseOutput{} + sv = &GetAssistantOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "knowledgeBase": - if err := awsRestjson1_deserializeDocumentKnowledgeBaseData(&sv.KnowledgeBase, value); err != nil { + case "assistant": + if err := awsRestjson1_deserializeDocumentAssistantData(&sv.Assistant, value); err != nil { return err } @@ -4378,14 +4511,14 @@ func awsRestjson1_deserializeOpDocumentGetKnowledgeBaseOutput(v **GetKnowledgeBa return nil } -type awsRestjson1_deserializeOpGetQuickResponse struct { +type awsRestjson1_deserializeOpGetAssistantAssociation struct { } -func (*awsRestjson1_deserializeOpGetQuickResponse) ID() string { +func (*awsRestjson1_deserializeOpGetAssistantAssociation) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetQuickResponse) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetAssistantAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4403,9 +4536,9 @@ func (m *awsRestjson1_deserializeOpGetQuickResponse) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetQuickResponse(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetAssistantAssociation(response, &metadata) } - output := &GetQuickResponseOutput{} + output := &GetAssistantAssociationOutput{} out.Result = output var buff [1024]byte @@ -4426,7 +4559,7 @@ func (m *awsRestjson1_deserializeOpGetQuickResponse) HandleDeserialize(ctx conte return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetQuickResponseOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetAssistantAssociationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4440,7 +4573,7 @@ func (m *awsRestjson1_deserializeOpGetQuickResponse) HandleDeserialize(ctx conte return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetQuickResponse(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetAssistantAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4500,7 +4633,7 @@ func awsRestjson1_deserializeOpErrorGetQuickResponse(response *smithyhttp.Respon } } -func awsRestjson1_deserializeOpDocumentGetQuickResponseOutput(v **GetQuickResponseOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetAssistantAssociationOutput(v **GetAssistantAssociationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4513,17 +4646,17 @@ func awsRestjson1_deserializeOpDocumentGetQuickResponseOutput(v **GetQuickRespon return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetQuickResponseOutput + var sv *GetAssistantAssociationOutput if *v == nil { - sv = &GetQuickResponseOutput{} + sv = &GetAssistantAssociationOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "quickResponse": - if err := awsRestjson1_deserializeDocumentQuickResponseData(&sv.QuickResponse, value); err != nil { + case "assistantAssociation": + if err := awsRestjson1_deserializeDocumentAssistantAssociationData(&sv.AssistantAssociation, value); err != nil { return err } @@ -4536,14 +4669,14 @@ func awsRestjson1_deserializeOpDocumentGetQuickResponseOutput(v **GetQuickRespon return nil } -type awsRestjson1_deserializeOpGetRecommendations struct { +type awsRestjson1_deserializeOpGetContent struct { } -func (*awsRestjson1_deserializeOpGetRecommendations) ID() string { +func (*awsRestjson1_deserializeOpGetContent) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetRecommendations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetContent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4561,9 +4694,9 @@ func (m *awsRestjson1_deserializeOpGetRecommendations) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetRecommendations(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetContent(response, &metadata) } - output := &GetRecommendationsOutput{} + output := &GetContentOutput{} out.Result = output var buff [1024]byte @@ -4584,7 +4717,7 @@ func (m *awsRestjson1_deserializeOpGetRecommendations) HandleDeserialize(ctx con return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetRecommendationsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetContentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4598,7 +4731,7 @@ func (m *awsRestjson1_deserializeOpGetRecommendations) HandleDeserialize(ctx con return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetRecommendations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetContent(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4658,7 +4791,7 @@ func awsRestjson1_deserializeOpErrorGetRecommendations(response *smithyhttp.Resp } } -func awsRestjson1_deserializeOpDocumentGetRecommendationsOutput(v **GetRecommendationsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetContentOutput(v **GetContentOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4671,22 +4804,17 @@ func awsRestjson1_deserializeOpDocumentGetRecommendationsOutput(v **GetRecommend return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetRecommendationsOutput + var sv *GetContentOutput if *v == nil { - sv = &GetRecommendationsOutput{} + sv = &GetContentOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "recommendations": - if err := awsRestjson1_deserializeDocumentRecommendationList(&sv.Recommendations, value); err != nil { - return err - } - - case "triggers": - if err := awsRestjson1_deserializeDocumentRecommendationTriggerList(&sv.Triggers, value); err != nil { + case "content": + if err := awsRestjson1_deserializeDocumentContentData(&sv.Content, value); err != nil { return err } @@ -4699,14 +4827,14 @@ func awsRestjson1_deserializeOpDocumentGetRecommendationsOutput(v **GetRecommend return nil } -type awsRestjson1_deserializeOpGetSession struct { +type awsRestjson1_deserializeOpGetContentAssociation struct { } -func (*awsRestjson1_deserializeOpGetSession) ID() string { +func (*awsRestjson1_deserializeOpGetContentAssociation) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetSession) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetContentAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4724,9 +4852,9 @@ func (m *awsRestjson1_deserializeOpGetSession) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetSession(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetContentAssociation(response, &metadata) } - output := &GetSessionOutput{} + output := &GetContentAssociationOutput{} out.Result = output var buff [1024]byte @@ -4747,7 +4875,7 @@ func (m *awsRestjson1_deserializeOpGetSession) HandleDeserialize(ctx context.Con return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetSessionOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetContentAssociationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4761,7 +4889,7 @@ func (m *awsRestjson1_deserializeOpGetSession) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetSession(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetContentAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4821,7 +4949,7 @@ func awsRestjson1_deserializeOpErrorGetSession(response *smithyhttp.Response, me } } -func awsRestjson1_deserializeOpDocumentGetSessionOutput(v **GetSessionOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetContentAssociationOutput(v **GetContentAssociationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4834,17 +4962,17 @@ func awsRestjson1_deserializeOpDocumentGetSessionOutput(v **GetSessionOutput, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetSessionOutput + var sv *GetContentAssociationOutput if *v == nil { - sv = &GetSessionOutput{} + sv = &GetContentAssociationOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "session": - if err := awsRestjson1_deserializeDocumentSessionData(&sv.Session, value); err != nil { + case "contentAssociation": + if err := awsRestjson1_deserializeDocumentContentAssociationData(&sv.ContentAssociation, value); err != nil { return err } @@ -4857,14 +4985,14 @@ func awsRestjson1_deserializeOpDocumentGetSessionOutput(v **GetSessionOutput, va return nil } -type awsRestjson1_deserializeOpListAIAgents struct { +type awsRestjson1_deserializeOpGetContentSummary struct { } -func (*awsRestjson1_deserializeOpListAIAgents) ID() string { +func (*awsRestjson1_deserializeOpGetContentSummary) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListAIAgents) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetContentSummary) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4882,9 +5010,9 @@ func (m *awsRestjson1_deserializeOpListAIAgents) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListAIAgents(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetContentSummary(response, &metadata) } - output := &ListAIAgentsOutput{} + output := &GetContentSummaryOutput{} out.Result = output var buff [1024]byte @@ -4905,7 +5033,7 @@ func (m *awsRestjson1_deserializeOpListAIAgents) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListAIAgentsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetContentSummaryOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4919,7 +5047,7 @@ func (m *awsRestjson1_deserializeOpListAIAgents) HandleDeserialize(ctx context.C return out, metadata, err } -func awsRestjson1_deserializeOpErrorListAIAgents(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetContentSummary(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4966,9 +5094,6 @@ func awsRestjson1_deserializeOpErrorListAIAgents(response *smithyhttp.Response, 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) @@ -4982,7 +5107,7 @@ func awsRestjson1_deserializeOpErrorListAIAgents(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentListAIAgentsOutput(v **ListAIAgentsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetContentSummaryOutput(v **GetContentSummaryOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4995,29 +5120,20 @@ func awsRestjson1_deserializeOpDocumentListAIAgentsOutput(v **ListAIAgentsOutput return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListAIAgentsOutput + var sv *GetContentSummaryOutput if *v == nil { - sv = &ListAIAgentsOutput{} + sv = &GetContentSummaryOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "aiAgentSummaries": - if err := awsRestjson1_deserializeDocumentAIAgentSummaryList(&sv.AiAgentSummaries, value); err != nil { + case "contentSummary": + if err := awsRestjson1_deserializeDocumentContentSummary(&sv.ContentSummary, 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 @@ -5027,14 +5143,14 @@ func awsRestjson1_deserializeOpDocumentListAIAgentsOutput(v **ListAIAgentsOutput return nil } -type awsRestjson1_deserializeOpListAIAgentVersions struct { +type awsRestjson1_deserializeOpGetImportJob struct { } -func (*awsRestjson1_deserializeOpListAIAgentVersions) ID() string { +func (*awsRestjson1_deserializeOpGetImportJob) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListAIAgentVersions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetImportJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5052,9 +5168,9 @@ func (m *awsRestjson1_deserializeOpListAIAgentVersions) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListAIAgentVersions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetImportJob(response, &metadata) } - output := &ListAIAgentVersionsOutput{} + output := &GetImportJobOutput{} out.Result = output var buff [1024]byte @@ -5075,7 +5191,7 @@ func (m *awsRestjson1_deserializeOpListAIAgentVersions) HandleDeserialize(ctx co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListAIAgentVersionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetImportJobOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5089,7 +5205,7 @@ func (m *awsRestjson1_deserializeOpListAIAgentVersions) HandleDeserialize(ctx co return out, metadata, err } -func awsRestjson1_deserializeOpErrorListAIAgentVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetImportJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5136,9 +5252,6 @@ func awsRestjson1_deserializeOpErrorListAIAgentVersions(response *smithyhttp.Res 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) @@ -5152,7 +5265,7 @@ func awsRestjson1_deserializeOpErrorListAIAgentVersions(response *smithyhttp.Res } } -func awsRestjson1_deserializeOpDocumentListAIAgentVersionsOutput(v **ListAIAgentVersionsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetImportJobOutput(v **GetImportJobOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5165,29 +5278,20 @@ func awsRestjson1_deserializeOpDocumentListAIAgentVersionsOutput(v **ListAIAgent return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListAIAgentVersionsOutput + var sv *GetImportJobOutput if *v == nil { - sv = &ListAIAgentVersionsOutput{} + sv = &GetImportJobOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "aiAgentVersionSummaries": - if err := awsRestjson1_deserializeDocumentAIAgentVersionSummariesList(&sv.AiAgentVersionSummaries, value); err != nil { + case "importJob": + if err := awsRestjson1_deserializeDocumentImportJobData(&sv.ImportJob, 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 @@ -5197,14 +5301,14 @@ func awsRestjson1_deserializeOpDocumentListAIAgentVersionsOutput(v **ListAIAgent return nil } -type awsRestjson1_deserializeOpListAIPrompts struct { +type awsRestjson1_deserializeOpGetKnowledgeBase struct { } -func (*awsRestjson1_deserializeOpListAIPrompts) ID() string { +func (*awsRestjson1_deserializeOpGetKnowledgeBase) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListAIPrompts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetKnowledgeBase) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5222,9 +5326,9 @@ func (m *awsRestjson1_deserializeOpListAIPrompts) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListAIPrompts(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetKnowledgeBase(response, &metadata) } - output := &ListAIPromptsOutput{} + output := &GetKnowledgeBaseOutput{} out.Result = output var buff [1024]byte @@ -5245,7 +5349,7 @@ func (m *awsRestjson1_deserializeOpListAIPrompts) HandleDeserialize(ctx context. return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListAIPromptsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetKnowledgeBaseOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5259,7 +5363,7 @@ func (m *awsRestjson1_deserializeOpListAIPrompts) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestjson1_deserializeOpErrorListAIPrompts(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetKnowledgeBase(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5306,9 +5410,6 @@ func awsRestjson1_deserializeOpErrorListAIPrompts(response *smithyhttp.Response, 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) @@ -5322,7 +5423,7 @@ func awsRestjson1_deserializeOpErrorListAIPrompts(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentListAIPromptsOutput(v **ListAIPromptsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetKnowledgeBaseOutput(v **GetKnowledgeBaseOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5335,29 +5436,20 @@ func awsRestjson1_deserializeOpDocumentListAIPromptsOutput(v **ListAIPromptsOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListAIPromptsOutput + var sv *GetKnowledgeBaseOutput if *v == nil { - sv = &ListAIPromptsOutput{} + sv = &GetKnowledgeBaseOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "aiPromptSummaries": - if err := awsRestjson1_deserializeDocumentAIPromptSummaryList(&sv.AiPromptSummaries, value); err != nil { + case "knowledgeBase": + if err := awsRestjson1_deserializeDocumentKnowledgeBaseData(&sv.KnowledgeBase, 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 @@ -5367,14 +5459,14 @@ func awsRestjson1_deserializeOpDocumentListAIPromptsOutput(v **ListAIPromptsOutp return nil } -type awsRestjson1_deserializeOpListAIPromptVersions struct { +type awsRestjson1_deserializeOpGetMessageTemplate struct { } -func (*awsRestjson1_deserializeOpListAIPromptVersions) ID() string { +func (*awsRestjson1_deserializeOpGetMessageTemplate) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListAIPromptVersions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetMessageTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5392,9 +5484,9 @@ func (m *awsRestjson1_deserializeOpListAIPromptVersions) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListAIPromptVersions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetMessageTemplate(response, &metadata) } - output := &ListAIPromptVersionsOutput{} + output := &GetMessageTemplateOutput{} out.Result = output var buff [1024]byte @@ -5415,7 +5507,7 @@ func (m *awsRestjson1_deserializeOpListAIPromptVersions) HandleDeserialize(ctx c return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListAIPromptVersionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetMessageTemplateOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5429,7 +5521,7 @@ func (m *awsRestjson1_deserializeOpListAIPromptVersions) HandleDeserialize(ctx c return out, metadata, err } -func awsRestjson1_deserializeOpErrorListAIPromptVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetMessageTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5492,7 +5584,7 @@ func awsRestjson1_deserializeOpErrorListAIPromptVersions(response *smithyhttp.Re } } -func awsRestjson1_deserializeOpDocumentListAIPromptVersionsOutput(v **ListAIPromptVersionsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetMessageTemplateOutput(v **GetMessageTemplateOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5505,29 +5597,20 @@ func awsRestjson1_deserializeOpDocumentListAIPromptVersionsOutput(v **ListAIProm return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListAIPromptVersionsOutput + var sv *GetMessageTemplateOutput if *v == nil { - sv = &ListAIPromptVersionsOutput{} + sv = &GetMessageTemplateOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "aiPromptVersionSummaries": - if err := awsRestjson1_deserializeDocumentAIPromptVersionSummariesList(&sv.AiPromptVersionSummaries, value); err != nil { + case "messageTemplate": + if err := awsRestjson1_deserializeDocumentExtendedMessageTemplateData(&sv.MessageTemplate, 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 @@ -5537,14 +5620,14 @@ func awsRestjson1_deserializeOpDocumentListAIPromptVersionsOutput(v **ListAIProm return nil } -type awsRestjson1_deserializeOpListAssistantAssociations struct { +type awsRestjson1_deserializeOpGetQuickResponse struct { } -func (*awsRestjson1_deserializeOpListAssistantAssociations) ID() string { +func (*awsRestjson1_deserializeOpGetQuickResponse) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListAssistantAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetQuickResponse) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5562,9 +5645,9 @@ func (m *awsRestjson1_deserializeOpListAssistantAssociations) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListAssistantAssociations(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetQuickResponse(response, &metadata) } - output := &ListAssistantAssociationsOutput{} + output := &GetQuickResponseOutput{} out.Result = output var buff [1024]byte @@ -5585,7 +5668,7 @@ func (m *awsRestjson1_deserializeOpListAssistantAssociations) HandleDeserialize( return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListAssistantAssociationsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetQuickResponseOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5599,7 +5682,7 @@ func (m *awsRestjson1_deserializeOpListAssistantAssociations) HandleDeserialize( return out, metadata, err } -func awsRestjson1_deserializeOpErrorListAssistantAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetQuickResponse(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5659,7 +5742,7 @@ func awsRestjson1_deserializeOpErrorListAssistantAssociations(response *smithyht } } -func awsRestjson1_deserializeOpDocumentListAssistantAssociationsOutput(v **ListAssistantAssociationsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetQuickResponseOutput(v **GetQuickResponseOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5672,29 +5755,20 @@ func awsRestjson1_deserializeOpDocumentListAssistantAssociationsOutput(v **ListA return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListAssistantAssociationsOutput + var sv *GetQuickResponseOutput if *v == nil { - sv = &ListAssistantAssociationsOutput{} + sv = &GetQuickResponseOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "assistantAssociationSummaries": - if err := awsRestjson1_deserializeDocumentAssistantAssociationSummaryList(&sv.AssistantAssociationSummaries, value); err != nil { + case "quickResponse": + if err := awsRestjson1_deserializeDocumentQuickResponseData(&sv.QuickResponse, 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 @@ -5704,14 +5778,14 @@ func awsRestjson1_deserializeOpDocumentListAssistantAssociationsOutput(v **ListA return nil } -type awsRestjson1_deserializeOpListAssistants struct { +type awsRestjson1_deserializeOpGetRecommendations struct { } -func (*awsRestjson1_deserializeOpListAssistants) ID() string { +func (*awsRestjson1_deserializeOpGetRecommendations) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListAssistants) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetRecommendations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5729,9 +5803,9 @@ func (m *awsRestjson1_deserializeOpListAssistants) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListAssistants(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetRecommendations(response, &metadata) } - output := &ListAssistantsOutput{} + output := &GetRecommendationsOutput{} out.Result = output var buff [1024]byte @@ -5752,7 +5826,7 @@ func (m *awsRestjson1_deserializeOpListAssistants) HandleDeserialize(ctx context return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListAssistantsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetRecommendationsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5766,7 +5840,7 @@ func (m *awsRestjson1_deserializeOpListAssistants) HandleDeserialize(ctx context return out, metadata, err } -func awsRestjson1_deserializeOpErrorListAssistants(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetRecommendations(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5810,6 +5884,9 @@ func awsRestjson1_deserializeOpErrorListAssistants(response *smithyhttp.Response case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ValidationException", errorCode): return awsRestjson1_deserializeErrorValidationException(response, errorBody) @@ -5823,7 +5900,7 @@ func awsRestjson1_deserializeOpErrorListAssistants(response *smithyhttp.Response } } -func awsRestjson1_deserializeOpDocumentListAssistantsOutput(v **ListAssistantsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetRecommendationsOutput(v **GetRecommendationsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5836,27 +5913,23 @@ func awsRestjson1_deserializeOpDocumentListAssistantsOutput(v **ListAssistantsOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListAssistantsOutput + var sv *GetRecommendationsOutput if *v == nil { - sv = &ListAssistantsOutput{} + sv = &GetRecommendationsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "assistantSummaries": - if err := awsRestjson1_deserializeDocumentAssistantList(&sv.AssistantSummaries, value); err != nil { + case "recommendations": + if err := awsRestjson1_deserializeDocumentRecommendationList(&sv.Recommendations, 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) + case "triggers": + if err := awsRestjson1_deserializeDocumentRecommendationTriggerList(&sv.Triggers, value); err != nil { + return err } default: @@ -5868,14 +5941,14 @@ func awsRestjson1_deserializeOpDocumentListAssistantsOutput(v **ListAssistantsOu return nil } -type awsRestjson1_deserializeOpListContentAssociations struct { +type awsRestjson1_deserializeOpGetSession struct { } -func (*awsRestjson1_deserializeOpListContentAssociations) ID() string { +func (*awsRestjson1_deserializeOpGetSession) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListContentAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetSession) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5893,9 +5966,9 @@ func (m *awsRestjson1_deserializeOpListContentAssociations) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListContentAssociations(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetSession(response, &metadata) } - output := &ListContentAssociationsOutput{} + output := &GetSessionOutput{} out.Result = output var buff [1024]byte @@ -5916,7 +5989,7 @@ func (m *awsRestjson1_deserializeOpListContentAssociations) HandleDeserialize(ct return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListContentAssociationsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetSessionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5930,7 +6003,7 @@ func (m *awsRestjson1_deserializeOpListContentAssociations) HandleDeserialize(ct return out, metadata, err } -func awsRestjson1_deserializeOpErrorListContentAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetSession(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5990,7 +6063,7 @@ func awsRestjson1_deserializeOpErrorListContentAssociations(response *smithyhttp } } -func awsRestjson1_deserializeOpDocumentListContentAssociationsOutput(v **ListContentAssociationsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetSessionOutput(v **GetSessionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6003,29 +6076,20 @@ func awsRestjson1_deserializeOpDocumentListContentAssociationsOutput(v **ListCon return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListContentAssociationsOutput + var sv *GetSessionOutput if *v == nil { - sv = &ListContentAssociationsOutput{} + sv = &GetSessionOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "contentAssociationSummaries": - if err := awsRestjson1_deserializeDocumentContentAssociationSummaryList(&sv.ContentAssociationSummaries, value); err != nil { + case "session": + if err := awsRestjson1_deserializeDocumentSessionData(&sv.Session, 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 @@ -6035,14 +6099,14 @@ func awsRestjson1_deserializeOpDocumentListContentAssociationsOutput(v **ListCon return nil } -type awsRestjson1_deserializeOpListContents struct { +type awsRestjson1_deserializeOpListAIAgents struct { } -func (*awsRestjson1_deserializeOpListContents) ID() string { +func (*awsRestjson1_deserializeOpListAIAgents) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListContents) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListAIAgents) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6060,9 +6124,9 @@ func (m *awsRestjson1_deserializeOpListContents) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListContents(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListAIAgents(response, &metadata) } - output := &ListContentsOutput{} + output := &ListAIAgentsOutput{} out.Result = output var buff [1024]byte @@ -6083,7 +6147,7 @@ func (m *awsRestjson1_deserializeOpListContents) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListContentsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListAIAgentsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6097,7 +6161,7 @@ func (m *awsRestjson1_deserializeOpListContents) HandleDeserialize(ctx context.C return out, metadata, err } -func awsRestjson1_deserializeOpErrorListContents(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListAIAgents(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6144,6 +6208,9 @@ func awsRestjson1_deserializeOpErrorListContents(response *smithyhttp.Response, 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) @@ -6157,7 +6224,7 @@ func awsRestjson1_deserializeOpErrorListContents(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentListContentsOutput(v **ListContentsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListAIAgentsOutput(v **ListAIAgentsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6170,17 +6237,17 @@ func awsRestjson1_deserializeOpDocumentListContentsOutput(v **ListContentsOutput return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListContentsOutput + var sv *ListAIAgentsOutput if *v == nil { - sv = &ListContentsOutput{} + sv = &ListAIAgentsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "contentSummaries": - if err := awsRestjson1_deserializeDocumentContentSummaryList(&sv.ContentSummaries, value); err != nil { + case "aiAgentSummaries": + if err := awsRestjson1_deserializeDocumentAIAgentSummaryList(&sv.AiAgentSummaries, value); err != nil { return err } @@ -6202,14 +6269,14 @@ func awsRestjson1_deserializeOpDocumentListContentsOutput(v **ListContentsOutput return nil } -type awsRestjson1_deserializeOpListImportJobs struct { +type awsRestjson1_deserializeOpListAIAgentVersions struct { } -func (*awsRestjson1_deserializeOpListImportJobs) ID() string { +func (*awsRestjson1_deserializeOpListAIAgentVersions) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListImportJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListAIAgentVersions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6227,9 +6294,9 @@ func (m *awsRestjson1_deserializeOpListImportJobs) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListImportJobs(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListAIAgentVersions(response, &metadata) } - output := &ListImportJobsOutput{} + output := &ListAIAgentVersionsOutput{} out.Result = output var buff [1024]byte @@ -6250,7 +6317,7 @@ func (m *awsRestjson1_deserializeOpListImportJobs) HandleDeserialize(ctx context return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListImportJobsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListAIAgentVersionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6264,7 +6331,7 @@ func (m *awsRestjson1_deserializeOpListImportJobs) HandleDeserialize(ctx context return out, metadata, err } -func awsRestjson1_deserializeOpErrorListImportJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListAIAgentVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6308,6 +6375,12 @@ func awsRestjson1_deserializeOpErrorListImportJobs(response *smithyhttp.Response case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(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) @@ -6321,7 +6394,7 @@ func awsRestjson1_deserializeOpErrorListImportJobs(response *smithyhttp.Response } } -func awsRestjson1_deserializeOpDocumentListImportJobsOutput(v **ListImportJobsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListAIAgentVersionsOutput(v **ListAIAgentVersionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6334,17 +6407,17 @@ func awsRestjson1_deserializeOpDocumentListImportJobsOutput(v **ListImportJobsOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListImportJobsOutput + var sv *ListAIAgentVersionsOutput if *v == nil { - sv = &ListImportJobsOutput{} + sv = &ListAIAgentVersionsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "importJobSummaries": - if err := awsRestjson1_deserializeDocumentImportJobList(&sv.ImportJobSummaries, value); err != nil { + case "aiAgentVersionSummaries": + if err := awsRestjson1_deserializeDocumentAIAgentVersionSummariesList(&sv.AiAgentVersionSummaries, value); err != nil { return err } @@ -6352,7 +6425,7 @@ func awsRestjson1_deserializeOpDocumentListImportJobsOutput(v **ListImportJobsOu if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NonEmptyString 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) } @@ -6366,14 +6439,14 @@ func awsRestjson1_deserializeOpDocumentListImportJobsOutput(v **ListImportJobsOu return nil } -type awsRestjson1_deserializeOpListKnowledgeBases struct { +type awsRestjson1_deserializeOpListAIPrompts struct { } -func (*awsRestjson1_deserializeOpListKnowledgeBases) ID() string { +func (*awsRestjson1_deserializeOpListAIPrompts) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListKnowledgeBases) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListAIPrompts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6391,9 +6464,9 @@ func (m *awsRestjson1_deserializeOpListKnowledgeBases) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListKnowledgeBases(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListAIPrompts(response, &metadata) } - output := &ListKnowledgeBasesOutput{} + output := &ListAIPromptsOutput{} out.Result = output var buff [1024]byte @@ -6414,7 +6487,7 @@ func (m *awsRestjson1_deserializeOpListKnowledgeBases) HandleDeserialize(ctx con return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListKnowledgeBasesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListAIPromptsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6428,7 +6501,7 @@ func (m *awsRestjson1_deserializeOpListKnowledgeBases) HandleDeserialize(ctx con return out, metadata, err } -func awsRestjson1_deserializeOpErrorListKnowledgeBases(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListAIPrompts(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6472,6 +6545,12 @@ func awsRestjson1_deserializeOpErrorListKnowledgeBases(response *smithyhttp.Resp case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(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) @@ -6485,7 +6564,7 @@ func awsRestjson1_deserializeOpErrorListKnowledgeBases(response *smithyhttp.Resp } } -func awsRestjson1_deserializeOpDocumentListKnowledgeBasesOutput(v **ListKnowledgeBasesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListAIPromptsOutput(v **ListAIPromptsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6498,17 +6577,17 @@ func awsRestjson1_deserializeOpDocumentListKnowledgeBasesOutput(v **ListKnowledg return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListKnowledgeBasesOutput + var sv *ListAIPromptsOutput if *v == nil { - sv = &ListKnowledgeBasesOutput{} + sv = &ListAIPromptsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "knowledgeBaseSummaries": - if err := awsRestjson1_deserializeDocumentKnowledgeBaseList(&sv.KnowledgeBaseSummaries, value); err != nil { + case "aiPromptSummaries": + if err := awsRestjson1_deserializeDocumentAIPromptSummaryList(&sv.AiPromptSummaries, value); err != nil { return err } @@ -6516,7 +6595,7 @@ func awsRestjson1_deserializeOpDocumentListKnowledgeBasesOutput(v **ListKnowledg if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NonEmptyString 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) } @@ -6530,14 +6609,14 @@ func awsRestjson1_deserializeOpDocumentListKnowledgeBasesOutput(v **ListKnowledg return nil } -type awsRestjson1_deserializeOpListQuickResponses struct { +type awsRestjson1_deserializeOpListAIPromptVersions struct { } -func (*awsRestjson1_deserializeOpListQuickResponses) ID() string { +func (*awsRestjson1_deserializeOpListAIPromptVersions) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListQuickResponses) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListAIPromptVersions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6555,9 +6634,9 @@ func (m *awsRestjson1_deserializeOpListQuickResponses) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListQuickResponses(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListAIPromptVersions(response, &metadata) } - output := &ListQuickResponsesOutput{} + output := &ListAIPromptVersionsOutput{} out.Result = output var buff [1024]byte @@ -6578,7 +6657,7 @@ func (m *awsRestjson1_deserializeOpListQuickResponses) HandleDeserialize(ctx con return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListQuickResponsesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListAIPromptVersionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6592,7 +6671,7 @@ func (m *awsRestjson1_deserializeOpListQuickResponses) HandleDeserialize(ctx con return out, metadata, err } -func awsRestjson1_deserializeOpErrorListQuickResponses(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListAIPromptVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6639,6 +6718,9 @@ func awsRestjson1_deserializeOpErrorListQuickResponses(response *smithyhttp.Resp 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) @@ -6652,7 +6734,7 @@ func awsRestjson1_deserializeOpErrorListQuickResponses(response *smithyhttp.Resp } } -func awsRestjson1_deserializeOpDocumentListQuickResponsesOutput(v **ListQuickResponsesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListAIPromptVersionsOutput(v **ListAIPromptVersionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6665,29 +6747,29 @@ func awsRestjson1_deserializeOpDocumentListQuickResponsesOutput(v **ListQuickRes return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListQuickResponsesOutput + var sv *ListAIPromptVersionsOutput if *v == nil { - sv = &ListQuickResponsesOutput{} + sv = &ListAIPromptVersionsOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "aiPromptVersionSummaries": + if err := awsRestjson1_deserializeDocumentAIPromptVersionSummariesList(&sv.AiPromptVersionSummaries, value); err != nil { + return err + } + case "nextToken": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NonEmptyString 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) } - case "quickResponseSummaries": - if err := awsRestjson1_deserializeDocumentQuickResponseSummaryList(&sv.QuickResponseSummaries, value); err != nil { - return err - } - default: _, _ = key, value @@ -6697,14 +6779,14 @@ func awsRestjson1_deserializeOpDocumentListQuickResponsesOutput(v **ListQuickRes return nil } -type awsRestjson1_deserializeOpListTagsForResource struct { +type awsRestjson1_deserializeOpListAssistantAssociations struct { } -func (*awsRestjson1_deserializeOpListTagsForResource) ID() string { +func (*awsRestjson1_deserializeOpListAssistantAssociations) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListAssistantAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6722,9 +6804,9 @@ func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListTagsForResource(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListAssistantAssociations(response, &metadata) } - output := &ListTagsForResourceOutput{} + output := &ListAssistantAssociationsOutput{} out.Result = output var buff [1024]byte @@ -6745,7 +6827,7 @@ func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListAssistantAssociationsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6759,7 +6841,7 @@ func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx co return out, metadata, err } -func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListAssistantAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6800,9 +6882,15 @@ func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Res } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -6813,7 +6901,7 @@ func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Res } } -func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListAssistantAssociationsOutput(v **ListAssistantAssociationsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6826,37 +6914,46 @@ func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListTagsForResourceOutput + var sv *ListAssistantAssociationsOutput if *v == nil { - sv = &ListTagsForResourceOutput{} + sv = &ListAssistantAssociationsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + case "assistantAssociationSummaries": + if err := awsRestjson1_deserializeDocumentAssistantAssociationSummaryList(&sv.AssistantAssociationSummaries, value); err != nil { return err } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} + 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) + } -type awsRestjson1_deserializeOpNotifyRecommendationsReceived struct { + default: + _, _ = key, value + + } + } + *v = sv + return nil } -func (*awsRestjson1_deserializeOpNotifyRecommendationsReceived) ID() string { +type awsRestjson1_deserializeOpListAssistants struct { +} + +func (*awsRestjson1_deserializeOpListAssistants) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpNotifyRecommendationsReceived) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListAssistants) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6874,9 +6971,9 @@ func (m *awsRestjson1_deserializeOpNotifyRecommendationsReceived) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorNotifyRecommendationsReceived(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListAssistants(response, &metadata) } - output := &NotifyRecommendationsReceivedOutput{} + output := &ListAssistantsOutput{} out.Result = output var buff [1024]byte @@ -6897,7 +6994,7 @@ func (m *awsRestjson1_deserializeOpNotifyRecommendationsReceived) HandleDeserial return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentNotifyRecommendationsReceivedOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListAssistantsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6911,7 +7008,7 @@ func (m *awsRestjson1_deserializeOpNotifyRecommendationsReceived) HandleDeserial return out, metadata, err } -func awsRestjson1_deserializeOpErrorNotifyRecommendationsReceived(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListAssistants(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6955,9 +7052,6 @@ func awsRestjson1_deserializeOpErrorNotifyRecommendationsReceived(response *smit case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ValidationException", errorCode): return awsRestjson1_deserializeErrorValidationException(response, errorBody) @@ -6971,7 +7065,7 @@ func awsRestjson1_deserializeOpErrorNotifyRecommendationsReceived(response *smit } } -func awsRestjson1_deserializeOpDocumentNotifyRecommendationsReceivedOutput(v **NotifyRecommendationsReceivedOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListAssistantsOutput(v **ListAssistantsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6984,23 +7078,27 @@ func awsRestjson1_deserializeOpDocumentNotifyRecommendationsReceivedOutput(v **N return fmt.Errorf("unexpected JSON type %v", value) } - var sv *NotifyRecommendationsReceivedOutput + var sv *ListAssistantsOutput if *v == nil { - sv = &NotifyRecommendationsReceivedOutput{} + sv = &ListAssistantsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "errors": - if err := awsRestjson1_deserializeDocumentNotifyRecommendationsReceivedErrorList(&sv.Errors, value); err != nil { + case "assistantSummaries": + if err := awsRestjson1_deserializeDocumentAssistantList(&sv.AssistantSummaries, value); err != nil { return err } - case "recommendationIds": - if err := awsRestjson1_deserializeDocumentRecommendationIdList(&sv.RecommendationIds, 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: @@ -7012,14 +7110,14 @@ func awsRestjson1_deserializeOpDocumentNotifyRecommendationsReceivedOutput(v **N return nil } -type awsRestjson1_deserializeOpPutFeedback struct { +type awsRestjson1_deserializeOpListContentAssociations struct { } -func (*awsRestjson1_deserializeOpPutFeedback) ID() string { +func (*awsRestjson1_deserializeOpListContentAssociations) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpPutFeedback) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListContentAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7037,9 +7135,9 @@ func (m *awsRestjson1_deserializeOpPutFeedback) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorPutFeedback(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListContentAssociations(response, &metadata) } - output := &PutFeedbackOutput{} + output := &ListContentAssociationsOutput{} out.Result = output var buff [1024]byte @@ -7060,7 +7158,7 @@ func (m *awsRestjson1_deserializeOpPutFeedback) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentPutFeedbackOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListContentAssociationsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7074,7 +7172,7 @@ func (m *awsRestjson1_deserializeOpPutFeedback) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsRestjson1_deserializeOpErrorPutFeedback(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListContentAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7134,7 +7232,7 @@ func awsRestjson1_deserializeOpErrorPutFeedback(response *smithyhttp.Response, m } } -func awsRestjson1_deserializeOpDocumentPutFeedbackOutput(v **PutFeedbackOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListContentAssociationsOutput(v **ListContentAssociationsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7147,54 +7245,27 @@ func awsRestjson1_deserializeOpDocumentPutFeedbackOutput(v **PutFeedbackOutput, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *PutFeedbackOutput + var sv *ListContentAssociationsOutput if *v == nil { - sv = &PutFeedbackOutput{} + sv = &ListContentAssociationsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "assistantArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected UuidOrArn to be of type string, got %T instead", value) - } - sv.AssistantArn = ptr.String(jtv) - } - - case "assistantId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) - } - sv.AssistantId = ptr.String(jtv) - } - - case "contentFeedback": - if err := awsRestjson1_deserializeDocumentContentFeedbackData(&sv.ContentFeedback, value); err != nil { + case "contentAssociationSummaries": + if err := awsRestjson1_deserializeDocumentContentAssociationSummaryList(&sv.ContentAssociationSummaries, value); err != nil { return err } - case "targetId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) - } - sv.TargetId = ptr.String(jtv) - } - - case "targetType": + case "nextToken": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TargetType to be of type string, got %T instead", value) + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.TargetType = types.TargetType(jtv) + sv.NextToken = ptr.String(jtv) } default: @@ -7206,14 +7277,14 @@ func awsRestjson1_deserializeOpDocumentPutFeedbackOutput(v **PutFeedbackOutput, return nil } -type awsRestjson1_deserializeOpQueryAssistant struct { +type awsRestjson1_deserializeOpListContents struct { } -func (*awsRestjson1_deserializeOpQueryAssistant) ID() string { +func (*awsRestjson1_deserializeOpListContents) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpQueryAssistant) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListContents) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7231,9 +7302,9 @@ func (m *awsRestjson1_deserializeOpQueryAssistant) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorQueryAssistant(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListContents(response, &metadata) } - output := &QueryAssistantOutput{} + output := &ListContentsOutput{} out.Result = output var buff [1024]byte @@ -7254,7 +7325,7 @@ func (m *awsRestjson1_deserializeOpQueryAssistant) HandleDeserialize(ctx context return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentQueryAssistantOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListContentsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7268,7 +7339,7 @@ func (m *awsRestjson1_deserializeOpQueryAssistant) HandleDeserialize(ctx context return out, metadata, err } -func awsRestjson1_deserializeOpErrorQueryAssistant(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListContents(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7312,9 +7383,6 @@ func awsRestjson1_deserializeOpErrorQueryAssistant(response *smithyhttp.Response case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("RequestTimeoutException", errorCode): - return awsRestjson1_deserializeErrorRequestTimeoutException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -7331,7 +7399,7 @@ func awsRestjson1_deserializeOpErrorQueryAssistant(response *smithyhttp.Response } } -func awsRestjson1_deserializeOpDocumentQueryAssistantOutput(v **QueryAssistantOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListContentsOutput(v **ListContentsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7344,15 +7412,20 @@ func awsRestjson1_deserializeOpDocumentQueryAssistantOutput(v **QueryAssistantOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *QueryAssistantOutput + var sv *ListContentsOutput if *v == nil { - sv = &QueryAssistantOutput{} + sv = &ListContentsOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "contentSummaries": + if err := awsRestjson1_deserializeDocumentContentSummaryList(&sv.ContentSummaries, value); err != nil { + return err + } + case "nextToken": if value != nil { jtv, ok := value.(string) @@ -7362,11 +7435,6 @@ func awsRestjson1_deserializeOpDocumentQueryAssistantOutput(v **QueryAssistantOu sv.NextToken = ptr.String(jtv) } - case "results": - if err := awsRestjson1_deserializeDocumentQueryResultsList(&sv.Results, value); err != nil { - return err - } - default: _, _ = key, value @@ -7376,14 +7444,14 @@ func awsRestjson1_deserializeOpDocumentQueryAssistantOutput(v **QueryAssistantOu return nil } -type awsRestjson1_deserializeOpRemoveAssistantAIAgent struct { +type awsRestjson1_deserializeOpListImportJobs struct { } -func (*awsRestjson1_deserializeOpRemoveAssistantAIAgent) ID() string { +func (*awsRestjson1_deserializeOpListImportJobs) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpRemoveAssistantAIAgent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListImportJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7401,16 +7469,44 @@ func (m *awsRestjson1_deserializeOpRemoveAssistantAIAgent) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorRemoveAssistantAIAgent(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListImportJobs(response, &metadata) } - output := &RemoveAssistantAIAgentOutput{} + output := &ListImportJobsOutput{} 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_deserializeOpDocumentListImportJobsOutput(&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(), + } + } + span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorRemoveAssistantAIAgent(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListImportJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7454,12 +7550,6 @@ func awsRestjson1_deserializeOpErrorRemoveAssistantAIAgent(response *smithyhttp. case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(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) @@ -7473,14 +7563,59 @@ func awsRestjson1_deserializeOpErrorRemoveAssistantAIAgent(response *smithyhttp. } } -type awsRestjson1_deserializeOpRemoveKnowledgeBaseTemplateUri struct { +func awsRestjson1_deserializeOpDocumentListImportJobsOutput(v **ListImportJobsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListImportJobsOutput + if *v == nil { + sv = &ListImportJobsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "importJobSummaries": + if err := awsRestjson1_deserializeDocumentImportJobList(&sv.ImportJobSummaries, value); err != nil { + return err + } + + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil } -func (*awsRestjson1_deserializeOpRemoveKnowledgeBaseTemplateUri) ID() string { +type awsRestjson1_deserializeOpListKnowledgeBases struct { +} + +func (*awsRestjson1_deserializeOpListKnowledgeBases) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpRemoveKnowledgeBaseTemplateUri) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListKnowledgeBases) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7498,21 +7633,49 @@ func (m *awsRestjson1_deserializeOpRemoveKnowledgeBaseTemplateUri) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorRemoveKnowledgeBaseTemplateUri(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListKnowledgeBases(response, &metadata) } - output := &RemoveKnowledgeBaseTemplateUriOutput{} + output := &ListKnowledgeBasesOutput{} out.Result = output - span.End() - return out, metadata, err -} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) -func awsRestjson1_deserializeOpErrorRemoveKnowledgeBaseTemplateUri(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.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()) + 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_deserializeOpDocumentListKnowledgeBasesOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListKnowledgeBases(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.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 @@ -7551,9 +7714,6 @@ func awsRestjson1_deserializeOpErrorRemoveKnowledgeBaseTemplateUri(response *smi case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ValidationException", errorCode): return awsRestjson1_deserializeErrorValidationException(response, errorBody) @@ -7567,14 +7727,59 @@ func awsRestjson1_deserializeOpErrorRemoveKnowledgeBaseTemplateUri(response *smi } } -type awsRestjson1_deserializeOpSearchContent struct { +func awsRestjson1_deserializeOpDocumentListKnowledgeBasesOutput(v **ListKnowledgeBasesOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListKnowledgeBasesOutput + if *v == nil { + sv = &ListKnowledgeBasesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "knowledgeBaseSummaries": + if err := awsRestjson1_deserializeDocumentKnowledgeBaseList(&sv.KnowledgeBaseSummaries, value); err != nil { + return err + } + + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil } -func (*awsRestjson1_deserializeOpSearchContent) ID() string { +type awsRestjson1_deserializeOpListMessageTemplates struct { +} + +func (*awsRestjson1_deserializeOpListMessageTemplates) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpSearchContent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListMessageTemplates) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7592,9 +7797,9 @@ func (m *awsRestjson1_deserializeOpSearchContent) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorSearchContent(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListMessageTemplates(response, &metadata) } - output := &SearchContentOutput{} + output := &ListMessageTemplatesOutput{} out.Result = output var buff [1024]byte @@ -7615,7 +7820,7 @@ func (m *awsRestjson1_deserializeOpSearchContent) HandleDeserialize(ctx context. return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentSearchContentOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListMessageTemplatesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7629,7 +7834,7 @@ func (m *awsRestjson1_deserializeOpSearchContent) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestjson1_deserializeOpErrorSearchContent(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListMessageTemplates(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7676,6 +7881,9 @@ func awsRestjson1_deserializeOpErrorSearchContent(response *smithyhttp.Response, 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) @@ -7689,7 +7897,7 @@ func awsRestjson1_deserializeOpErrorSearchContent(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentSearchContentOutput(v **SearchContentOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListMessageTemplatesOutput(v **ListMessageTemplatesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7702,17 +7910,17 @@ func awsRestjson1_deserializeOpDocumentSearchContentOutput(v **SearchContentOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *SearchContentOutput + var sv *ListMessageTemplatesOutput if *v == nil { - sv = &SearchContentOutput{} + sv = &ListMessageTemplatesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "contentSummaries": - if err := awsRestjson1_deserializeDocumentContentSummaryList(&sv.ContentSummaries, value); err != nil { + case "messageTemplateSummaries": + if err := awsRestjson1_deserializeDocumentMessageTemplateSummaryList(&sv.MessageTemplateSummaries, value); err != nil { return err } @@ -7734,14 +7942,14 @@ func awsRestjson1_deserializeOpDocumentSearchContentOutput(v **SearchContentOutp return nil } -type awsRestjson1_deserializeOpSearchQuickResponses struct { +type awsRestjson1_deserializeOpListMessageTemplateVersions struct { } -func (*awsRestjson1_deserializeOpSearchQuickResponses) ID() string { +func (*awsRestjson1_deserializeOpListMessageTemplateVersions) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpSearchQuickResponses) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListMessageTemplateVersions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7759,9 +7967,9 @@ func (m *awsRestjson1_deserializeOpSearchQuickResponses) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorSearchQuickResponses(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListMessageTemplateVersions(response, &metadata) } - output := &SearchQuickResponsesOutput{} + output := &ListMessageTemplateVersionsOutput{} out.Result = output var buff [1024]byte @@ -7782,7 +7990,7 @@ func (m *awsRestjson1_deserializeOpSearchQuickResponses) HandleDeserialize(ctx c return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentSearchQuickResponsesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListMessageTemplateVersionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7796,7 +8004,7 @@ func (m *awsRestjson1_deserializeOpSearchQuickResponses) HandleDeserialize(ctx c return out, metadata, err } -func awsRestjson1_deserializeOpErrorSearchQuickResponses(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListMessageTemplateVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7840,12 +8048,12 @@ func awsRestjson1_deserializeOpErrorSearchQuickResponses(response *smithyhttp.Re case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("RequestTimeoutException", errorCode): - return awsRestjson1_deserializeErrorRequestTimeoutException(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) @@ -7859,7 +8067,7 @@ func awsRestjson1_deserializeOpErrorSearchQuickResponses(response *smithyhttp.Re } } -func awsRestjson1_deserializeOpDocumentSearchQuickResponsesOutput(v **SearchQuickResponsesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListMessageTemplateVersionsOutput(v **ListMessageTemplateVersionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7872,29 +8080,29 @@ func awsRestjson1_deserializeOpDocumentSearchQuickResponsesOutput(v **SearchQuic return fmt.Errorf("unexpected JSON type %v", value) } - var sv *SearchQuickResponsesOutput + var sv *ListMessageTemplateVersionsOutput if *v == nil { - sv = &SearchQuickResponsesOutput{} + sv = &ListMessageTemplateVersionsOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "messageTemplateVersionSummaries": + if err := awsRestjson1_deserializeDocumentMessageTemplateVersionSummaryList(&sv.MessageTemplateVersionSummaries, value); err != nil { + return err + } + case "nextToken": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NonEmptyString 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) } - case "results": - if err := awsRestjson1_deserializeDocumentQuickResponseSearchResultsList(&sv.Results, value); err != nil { - return err - } - default: _, _ = key, value @@ -7904,14 +8112,14 @@ func awsRestjson1_deserializeOpDocumentSearchQuickResponsesOutput(v **SearchQuic return nil } -type awsRestjson1_deserializeOpSearchSessions struct { +type awsRestjson1_deserializeOpListQuickResponses struct { } -func (*awsRestjson1_deserializeOpSearchSessions) ID() string { +func (*awsRestjson1_deserializeOpListQuickResponses) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpSearchSessions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListQuickResponses) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7929,9 +8137,9 @@ func (m *awsRestjson1_deserializeOpSearchSessions) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorSearchSessions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListQuickResponses(response, &metadata) } - output := &SearchSessionsOutput{} + output := &ListQuickResponsesOutput{} out.Result = output var buff [1024]byte @@ -7952,7 +8160,7 @@ func (m *awsRestjson1_deserializeOpSearchSessions) HandleDeserialize(ctx context return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentSearchSessionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListQuickResponsesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7966,7 +8174,7 @@ func (m *awsRestjson1_deserializeOpSearchSessions) HandleDeserialize(ctx context return out, metadata, err } -func awsRestjson1_deserializeOpErrorSearchSessions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListQuickResponses(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -8026,7 +8234,7 @@ func awsRestjson1_deserializeOpErrorSearchSessions(response *smithyhttp.Response } } -func awsRestjson1_deserializeOpDocumentSearchSessionsOutput(v **SearchSessionsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListQuickResponsesOutput(v **ListQuickResponsesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8039,9 +8247,9 @@ func awsRestjson1_deserializeOpDocumentSearchSessionsOutput(v **SearchSessionsOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *SearchSessionsOutput + var sv *ListQuickResponsesOutput if *v == nil { - sv = &SearchSessionsOutput{} + sv = &ListQuickResponsesOutput{} } else { sv = *v } @@ -8052,13 +8260,13 @@ func awsRestjson1_deserializeOpDocumentSearchSessionsOutput(v **SearchSessionsOu 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 NonEmptyString to be of type string, got %T instead", value) } sv.NextToken = ptr.String(jtv) } - case "sessionSummaries": - if err := awsRestjson1_deserializeDocumentSessionSummaries(&sv.SessionSummaries, value); err != nil { + case "quickResponseSummaries": + if err := awsRestjson1_deserializeDocumentQuickResponseSummaryList(&sv.QuickResponseSummaries, value); err != nil { return err } @@ -8071,14 +8279,14 @@ func awsRestjson1_deserializeOpDocumentSearchSessionsOutput(v **SearchSessionsOu return nil } -type awsRestjson1_deserializeOpStartContentUpload struct { +type awsRestjson1_deserializeOpListTagsForResource struct { } -func (*awsRestjson1_deserializeOpStartContentUpload) ID() string { +func (*awsRestjson1_deserializeOpListTagsForResource) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpStartContentUpload) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -8096,9 +8304,9 @@ func (m *awsRestjson1_deserializeOpStartContentUpload) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorStartContentUpload(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListTagsForResource(response, &metadata) } - output := &StartContentUploadOutput{} + output := &ListTagsForResourceOutput{} out.Result = output var buff [1024]byte @@ -8119,7 +8327,7 @@ func (m *awsRestjson1_deserializeOpStartContentUpload) HandleDeserialize(ctx con return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentStartContentUploadOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8133,7 +8341,7 @@ func (m *awsRestjson1_deserializeOpStartContentUpload) HandleDeserialize(ctx con return out, metadata, err } -func awsRestjson1_deserializeOpErrorStartContentUpload(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -8174,15 +8382,9 @@ func awsRestjson1_deserializeOpErrorStartContentUpload(response *smithyhttp.Resp } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -8193,7 +8395,7 @@ func awsRestjson1_deserializeOpErrorStartContentUpload(response *smithyhttp.Resp } } -func awsRestjson1_deserializeOpDocumentStartContentUploadOutput(v **StartContentUploadOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8206,54 +8408,20 @@ func awsRestjson1_deserializeOpDocumentStartContentUploadOutput(v **StartContent return fmt.Errorf("unexpected JSON type %v", value) } - var sv *StartContentUploadOutput + var sv *ListTagsForResourceOutput if *v == nil { - sv = &StartContentUploadOutput{} + sv = &ListTagsForResourceOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "headersToInclude": - if err := awsRestjson1_deserializeDocumentHeaders(&sv.HeadersToInclude, value); err != nil { + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { return err } - case "uploadId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected UploadId to be of type string, got %T instead", value) - } - sv.UploadId = ptr.String(jtv) - } - - case "url": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Url to be of type string, got %T instead", value) - } - sv.Url = ptr.String(jtv) - } - - case "urlExpiry": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.UrlExpiry = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - default: _, _ = key, value @@ -8263,14 +8431,14 @@ func awsRestjson1_deserializeOpDocumentStartContentUploadOutput(v **StartContent return nil } -type awsRestjson1_deserializeOpStartImportJob struct { +type awsRestjson1_deserializeOpNotifyRecommendationsReceived struct { } -func (*awsRestjson1_deserializeOpStartImportJob) ID() string { +func (*awsRestjson1_deserializeOpNotifyRecommendationsReceived) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpStartImportJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpNotifyRecommendationsReceived) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -8288,9 +8456,9 @@ func (m *awsRestjson1_deserializeOpStartImportJob) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorStartImportJob(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorNotifyRecommendationsReceived(response, &metadata) } - output := &StartImportJobOutput{} + output := &NotifyRecommendationsReceivedOutput{} out.Result = output var buff [1024]byte @@ -8311,7 +8479,7 @@ func (m *awsRestjson1_deserializeOpStartImportJob) HandleDeserialize(ctx context return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentStartImportJobOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentNotifyRecommendationsReceivedOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8325,7 +8493,7 @@ func (m *awsRestjson1_deserializeOpStartImportJob) HandleDeserialize(ctx context return out, metadata, err } -func awsRestjson1_deserializeOpErrorStartImportJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorNotifyRecommendationsReceived(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -8369,15 +8537,9 @@ func awsRestjson1_deserializeOpErrorStartImportJob(response *smithyhttp.Response case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(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("ValidationException", errorCode): return awsRestjson1_deserializeErrorValidationException(response, errorBody) @@ -8391,7 +8553,7 @@ func awsRestjson1_deserializeOpErrorStartImportJob(response *smithyhttp.Response } } -func awsRestjson1_deserializeOpDocumentStartImportJobOutput(v **StartImportJobOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentNotifyRecommendationsReceivedOutput(v **NotifyRecommendationsReceivedOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8404,17 +8566,22 @@ func awsRestjson1_deserializeOpDocumentStartImportJobOutput(v **StartImportJobOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *StartImportJobOutput + var sv *NotifyRecommendationsReceivedOutput if *v == nil { - sv = &StartImportJobOutput{} + sv = &NotifyRecommendationsReceivedOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "importJob": - if err := awsRestjson1_deserializeDocumentImportJobData(&sv.ImportJob, value); err != nil { + case "errors": + if err := awsRestjson1_deserializeDocumentNotifyRecommendationsReceivedErrorList(&sv.Errors, value); err != nil { + return err + } + + case "recommendationIds": + if err := awsRestjson1_deserializeDocumentRecommendationIdList(&sv.RecommendationIds, value); err != nil { return err } @@ -8427,14 +8594,14 @@ func awsRestjson1_deserializeOpDocumentStartImportJobOutput(v **StartImportJobOu return nil } -type awsRestjson1_deserializeOpTagResource struct { +type awsRestjson1_deserializeOpPutFeedback struct { } -func (*awsRestjson1_deserializeOpTagResource) ID() string { +func (*awsRestjson1_deserializeOpPutFeedback) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpPutFeedback) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -8452,16 +8619,44 @@ func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorTagResource(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorPutFeedback(response, &metadata) } - output := &TagResourceOutput{} + output := &PutFeedbackOutput{} 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_deserializeOpDocumentPutFeedbackOutput(&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(), + } + } + span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorPutFeedback(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -8502,11 +8697,14 @@ func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, m } 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) + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -8518,102 +8716,86 @@ func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, m } } -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 +func awsRestjson1_deserializeOpDocumentPutFeedbackOutput(v **PutFeedbackOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + if value == nil { + return nil } - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUntagResource(response, &metadata) + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) } - output := &UntagResourceOutput{} - out.Result = output - - span.End() - 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)} + var sv *PutFeedbackOutput + if *v == nil { + sv = &PutFeedbackOutput{} + } else { + sv = *v } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - errorCode := "UnknownError" - errorMessage := errorCode + for key, value := range shape { + switch key { + case "assistantArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UuidOrArn to be of type string, got %T instead", value) + } + sv.AssistantArn = ptr.String(jtv) + } - headerCode := response.Header.Get("X-Amzn-ErrorType") - if len(headerCode) != 0 { - errorCode = restjson.SanitizeErrorCode(headerCode) - } + case "assistantId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.AssistantId = ptr.String(jtv) + } - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + case "contentFeedback": + if err := awsRestjson1_deserializeDocumentContentFeedbackData(&sv.ContentFeedback, value); err != nil { + return err + } - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - jsonCode, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } + case "targetId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.TargetId = ptr.String(jtv) + } - errorBody.Seek(0, io.SeekStart) - if len(headerCode) == 0 && len(jsonCode) != 0 { - errorCode = restjson.SanitizeErrorCode(jsonCode) - } - if len(message) != 0 { - errorMessage = message - } + case "targetType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TargetType to be of type string, got %T instead", value) + } + sv.TargetType = types.TargetType(jtv) + } - switch { - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + default: + _, _ = key, value - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, } - return genericError - } + *v = sv + return nil } -type awsRestjson1_deserializeOpUpdateAIAgent struct { +type awsRestjson1_deserializeOpQueryAssistant struct { } -func (*awsRestjson1_deserializeOpUpdateAIAgent) ID() string { +func (*awsRestjson1_deserializeOpQueryAssistant) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateAIAgent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpQueryAssistant) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -8631,9 +8813,9 @@ func (m *awsRestjson1_deserializeOpUpdateAIAgent) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateAIAgent(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorQueryAssistant(response, &metadata) } - output := &UpdateAIAgentOutput{} + output := &QueryAssistantOutput{} out.Result = output var buff [1024]byte @@ -8654,7 +8836,7 @@ func (m *awsRestjson1_deserializeOpUpdateAIAgent) HandleDeserialize(ctx context. return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateAIAgentOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentQueryAssistantOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8668,7 +8850,7 @@ func (m *awsRestjson1_deserializeOpUpdateAIAgent) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateAIAgent(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorQueryAssistant(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -8712,15 +8894,12 @@ func awsRestjson1_deserializeOpErrorUpdateAIAgent(response *smithyhttp.Response, case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("RequestTimeoutException", errorCode): + return awsRestjson1_deserializeErrorRequestTimeoutException(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) @@ -8734,7 +8913,7 @@ func awsRestjson1_deserializeOpErrorUpdateAIAgent(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentUpdateAIAgentOutput(v **UpdateAIAgentOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentQueryAssistantOutput(v **QueryAssistantOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8747,17 +8926,26 @@ func awsRestjson1_deserializeOpDocumentUpdateAIAgentOutput(v **UpdateAIAgentOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateAIAgentOutput + var sv *QueryAssistantOutput if *v == nil { - sv = &UpdateAIAgentOutput{} + sv = &QueryAssistantOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "aiAgent": - if err := awsRestjson1_deserializeDocumentAIAgentData(&sv.AiAgent, value); err != nil { + 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 "results": + if err := awsRestjson1_deserializeDocumentQueryResultsList(&sv.Results, value); err != nil { return err } @@ -8770,14 +8958,14 @@ func awsRestjson1_deserializeOpDocumentUpdateAIAgentOutput(v **UpdateAIAgentOutp return nil } -type awsRestjson1_deserializeOpUpdateAIPrompt struct { +type awsRestjson1_deserializeOpRemoveAssistantAIAgent struct { } -func (*awsRestjson1_deserializeOpUpdateAIPrompt) ID() string { +func (*awsRestjson1_deserializeOpRemoveAssistantAIAgent) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateAIPrompt) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpRemoveAssistantAIAgent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -8795,44 +8983,16 @@ func (m *awsRestjson1_deserializeOpUpdateAIPrompt) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateAIPrompt(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorRemoveAssistantAIAgent(response, &metadata) } - output := &UpdateAIPromptOutput{} + output := &RemoveAssistantAIAgentOutput{} 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_deserializeOpDocumentUpdateAIPromptOutput(&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(), - } - } - span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateAIPrompt(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorRemoveAssistantAIAgent(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -8876,9 +9036,6 @@ func awsRestjson1_deserializeOpErrorUpdateAIPrompt(response *smithyhttp.Response case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -8898,50 +9055,14 @@ func awsRestjson1_deserializeOpErrorUpdateAIPrompt(response *smithyhttp.Response } } -func awsRestjson1_deserializeOpDocumentUpdateAIPromptOutput(v **UpdateAIPromptOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateAIPromptOutput - if *v == nil { - sv = &UpdateAIPromptOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "aiPrompt": - if err := awsRestjson1_deserializeDocumentAIPromptData(&sv.AiPrompt, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpUpdateAssistantAIAgent struct { +type awsRestjson1_deserializeOpRemoveKnowledgeBaseTemplateUri struct { } -func (*awsRestjson1_deserializeOpUpdateAssistantAIAgent) ID() string { +func (*awsRestjson1_deserializeOpRemoveKnowledgeBaseTemplateUri) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateAssistantAIAgent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpRemoveKnowledgeBaseTemplateUri) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -8959,44 +9080,16 @@ func (m *awsRestjson1_deserializeOpUpdateAssistantAIAgent) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateAssistantAIAgent(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorRemoveKnowledgeBaseTemplateUri(response, &metadata) } - output := &UpdateAssistantAIAgentOutput{} + output := &RemoveKnowledgeBaseTemplateUriOutput{} 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_deserializeOpDocumentUpdateAssistantAIAgentOutput(&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(), - } - } - span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateAssistantAIAgent(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorRemoveKnowledgeBaseTemplateUri(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -9043,9 +9136,6 @@ func awsRestjson1_deserializeOpErrorUpdateAssistantAIAgent(response *smithyhttp. 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) @@ -9059,50 +9149,14 @@ func awsRestjson1_deserializeOpErrorUpdateAssistantAIAgent(response *smithyhttp. } } -func awsRestjson1_deserializeOpDocumentUpdateAssistantAIAgentOutput(v **UpdateAssistantAIAgentOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *UpdateAssistantAIAgentOutput - if *v == nil { - sv = &UpdateAssistantAIAgentOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "assistant": - if err := awsRestjson1_deserializeDocumentAssistantData(&sv.Assistant, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpUpdateContent struct { +type awsRestjson1_deserializeOpRenderMessageTemplate struct { } -func (*awsRestjson1_deserializeOpUpdateContent) ID() string { +func (*awsRestjson1_deserializeOpRenderMessageTemplate) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateContent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpRenderMessageTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -9120,9 +9174,9 @@ func (m *awsRestjson1_deserializeOpUpdateContent) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateContent(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorRenderMessageTemplate(response, &metadata) } - output := &UpdateContentOutput{} + output := &RenderMessageTemplateOutput{} out.Result = output var buff [1024]byte @@ -9143,7 +9197,7 @@ func (m *awsRestjson1_deserializeOpUpdateContent) HandleDeserialize(ctx context. return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateContentOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentRenderMessageTemplateOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9157,7 +9211,7 @@ func (m *awsRestjson1_deserializeOpUpdateContent) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateContent(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorRenderMessageTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -9201,12 +9255,12 @@ func awsRestjson1_deserializeOpErrorUpdateContent(response *smithyhttp.Response, case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(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("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("ValidationException", errorCode): return awsRestjson1_deserializeErrorValidationException(response, errorBody) @@ -9220,7 +9274,7 @@ func awsRestjson1_deserializeOpErrorUpdateContent(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentUpdateContentOutput(v **UpdateContentOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentRenderMessageTemplateOutput(v **RenderMessageTemplateOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9233,17 +9287,27 @@ func awsRestjson1_deserializeOpDocumentUpdateContentOutput(v **UpdateContentOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateContentOutput + var sv *RenderMessageTemplateOutput if *v == nil { - sv = &UpdateContentOutput{} + sv = &RenderMessageTemplateOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "attachments": + if err := awsRestjson1_deserializeDocumentMessageTemplateAttachmentList(&sv.Attachments, value); err != nil { + return err + } + + case "attributesNotInterpolated": + if err := awsRestjson1_deserializeDocumentMessageTemplateAttributeKeyList(&sv.AttributesNotInterpolated, value); err != nil { + return err + } + case "content": - if err := awsRestjson1_deserializeDocumentContentData(&sv.Content, value); err != nil { + if err := awsRestjson1_deserializeDocumentMessageTemplateContentProvider(&sv.Content, value); err != nil { return err } @@ -9256,14 +9320,14 @@ func awsRestjson1_deserializeOpDocumentUpdateContentOutput(v **UpdateContentOutp return nil } -type awsRestjson1_deserializeOpUpdateKnowledgeBaseTemplateUri struct { +type awsRestjson1_deserializeOpSearchContent struct { } -func (*awsRestjson1_deserializeOpUpdateKnowledgeBaseTemplateUri) ID() string { +func (*awsRestjson1_deserializeOpSearchContent) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateKnowledgeBaseTemplateUri) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpSearchContent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -9281,9 +9345,9 @@ func (m *awsRestjson1_deserializeOpUpdateKnowledgeBaseTemplateUri) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateKnowledgeBaseTemplateUri(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorSearchContent(response, &metadata) } - output := &UpdateKnowledgeBaseTemplateUriOutput{} + output := &SearchContentOutput{} out.Result = output var buff [1024]byte @@ -9304,7 +9368,7 @@ func (m *awsRestjson1_deserializeOpUpdateKnowledgeBaseTemplateUri) HandleDeseria return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateKnowledgeBaseTemplateUriOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentSearchContentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9318,7 +9382,7 @@ func (m *awsRestjson1_deserializeOpUpdateKnowledgeBaseTemplateUri) HandleDeseria return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateKnowledgeBaseTemplateUri(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorSearchContent(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -9378,7 +9442,7 @@ func awsRestjson1_deserializeOpErrorUpdateKnowledgeBaseTemplateUri(response *smi } } -func awsRestjson1_deserializeOpDocumentUpdateKnowledgeBaseTemplateUriOutput(v **UpdateKnowledgeBaseTemplateUriOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentSearchContentOutput(v **SearchContentOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9391,20 +9455,29 @@ func awsRestjson1_deserializeOpDocumentUpdateKnowledgeBaseTemplateUriOutput(v ** return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateKnowledgeBaseTemplateUriOutput + var sv *SearchContentOutput if *v == nil { - sv = &UpdateKnowledgeBaseTemplateUriOutput{} + sv = &SearchContentOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "knowledgeBase": - if err := awsRestjson1_deserializeDocumentKnowledgeBaseData(&sv.KnowledgeBase, value); err != nil { + case "contentSummaries": + if err := awsRestjson1_deserializeDocumentContentSummaryList(&sv.ContentSummaries, 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 @@ -9414,14 +9487,14 @@ func awsRestjson1_deserializeOpDocumentUpdateKnowledgeBaseTemplateUriOutput(v ** return nil } -type awsRestjson1_deserializeOpUpdateQuickResponse struct { +type awsRestjson1_deserializeOpSearchMessageTemplates struct { } -func (*awsRestjson1_deserializeOpUpdateQuickResponse) ID() string { +func (*awsRestjson1_deserializeOpSearchMessageTemplates) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateQuickResponse) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpSearchMessageTemplates) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -9439,9 +9512,9 @@ func (m *awsRestjson1_deserializeOpUpdateQuickResponse) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateQuickResponse(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorSearchMessageTemplates(response, &metadata) } - output := &UpdateQuickResponseOutput{} + output := &SearchMessageTemplatesOutput{} out.Result = output var buff [1024]byte @@ -9462,7 +9535,7 @@ func (m *awsRestjson1_deserializeOpUpdateQuickResponse) HandleDeserialize(ctx co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateQuickResponseOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentSearchMessageTemplatesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9476,7 +9549,7 @@ func (m *awsRestjson1_deserializeOpUpdateQuickResponse) HandleDeserialize(ctx co return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateQuickResponse(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorSearchMessageTemplates(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -9520,15 +9593,12 @@ func awsRestjson1_deserializeOpErrorUpdateQuickResponse(response *smithyhttp.Res case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(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("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("ValidationException", errorCode): return awsRestjson1_deserializeErrorValidationException(response, errorBody) @@ -9542,7 +9612,7 @@ func awsRestjson1_deserializeOpErrorUpdateQuickResponse(response *smithyhttp.Res } } -func awsRestjson1_deserializeOpDocumentUpdateQuickResponseOutput(v **UpdateQuickResponseOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentSearchMessageTemplatesOutput(v **SearchMessageTemplatesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9555,17 +9625,26 @@ func awsRestjson1_deserializeOpDocumentUpdateQuickResponseOutput(v **UpdateQuick return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateQuickResponseOutput + var sv *SearchMessageTemplatesOutput if *v == nil { - sv = &UpdateQuickResponseOutput{} + sv = &SearchMessageTemplatesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "quickResponse": - if err := awsRestjson1_deserializeDocumentQuickResponseData(&sv.QuickResponse, value); err != nil { + 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 "results": + if err := awsRestjson1_deserializeDocumentMessageTemplateSearchResultsList(&sv.Results, value); err != nil { return err } @@ -9578,14 +9657,14 @@ func awsRestjson1_deserializeOpDocumentUpdateQuickResponseOutput(v **UpdateQuick return nil } -type awsRestjson1_deserializeOpUpdateSession struct { +type awsRestjson1_deserializeOpSearchQuickResponses struct { } -func (*awsRestjson1_deserializeOpUpdateSession) ID() string { +func (*awsRestjson1_deserializeOpSearchQuickResponses) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateSession) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpSearchQuickResponses) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -9603,9 +9682,9 @@ func (m *awsRestjson1_deserializeOpUpdateSession) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateSession(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorSearchQuickResponses(response, &metadata) } - output := &UpdateSessionOutput{} + output := &SearchQuickResponsesOutput{} out.Result = output var buff [1024]byte @@ -9626,7 +9705,7 @@ func (m *awsRestjson1_deserializeOpUpdateSession) HandleDeserialize(ctx context. return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateSessionOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentSearchQuickResponsesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9640,7 +9719,7 @@ func (m *awsRestjson1_deserializeOpUpdateSession) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateSession(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorSearchQuickResponses(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -9684,6 +9763,9 @@ func awsRestjson1_deserializeOpErrorUpdateSession(response *smithyhttp.Response, case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("RequestTimeoutException", errorCode): + return awsRestjson1_deserializeErrorRequestTimeoutException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -9700,7 +9782,7 @@ func awsRestjson1_deserializeOpErrorUpdateSession(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentUpdateSessionOutput(v **UpdateSessionOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentSearchQuickResponsesOutput(v **SearchQuickResponsesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9713,17 +9795,26 @@ func awsRestjson1_deserializeOpDocumentUpdateSessionOutput(v **UpdateSessionOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateSessionOutput + var sv *SearchQuickResponsesOutput if *v == nil { - sv = &UpdateSessionOutput{} + sv = &SearchQuickResponsesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "session": - if err := awsRestjson1_deserializeDocumentSessionData(&sv.Session, value); err != nil { + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "results": + if err := awsRestjson1_deserializeDocumentQuickResponseSearchResultsList(&sv.Results, value); err != nil { return err } @@ -9736,14 +9827,14 @@ func awsRestjson1_deserializeOpDocumentUpdateSessionOutput(v **UpdateSessionOutp return nil } -type awsRestjson1_deserializeOpUpdateSessionData struct { +type awsRestjson1_deserializeOpSearchSessions struct { } -func (*awsRestjson1_deserializeOpUpdateSessionData) ID() string { +func (*awsRestjson1_deserializeOpSearchSessions) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateSessionData) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpSearchSessions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -9761,9 +9852,9 @@ func (m *awsRestjson1_deserializeOpUpdateSessionData) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateSessionData(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorSearchSessions(response, &metadata) } - output := &UpdateSessionDataOutput{} + output := &SearchSessionsOutput{} out.Result = output var buff [1024]byte @@ -9784,7 +9875,7 @@ func (m *awsRestjson1_deserializeOpUpdateSessionData) HandleDeserialize(ctx cont return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateSessionDataOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentSearchSessionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9798,7 +9889,7 @@ func (m *awsRestjson1_deserializeOpUpdateSessionData) HandleDeserialize(ctx cont return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateSessionData(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorSearchSessions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -9858,7 +9949,7 @@ func awsRestjson1_deserializeOpErrorUpdateSessionData(response *smithyhttp.Respo } } -func awsRestjson1_deserializeOpDocumentUpdateSessionDataOutput(v **UpdateSessionDataOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentSearchSessionsOutput(v **SearchSessionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9871,45 +9962,27 @@ func awsRestjson1_deserializeOpDocumentUpdateSessionDataOutput(v **UpdateSession return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateSessionDataOutput + var sv *SearchSessionsOutput if *v == nil { - sv = &UpdateSessionDataOutput{} + sv = &SearchSessionsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "data": - if err := awsRestjson1_deserializeDocumentRuntimeSessionDataList(&sv.Data, value); err != nil { - return err - } - - case "namespace": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SessionDataNamespace to be of type string, got %T instead", value) - } - sv.Namespace = types.SessionDataNamespace(jtv) - } - - case "sessionArn": + case "nextToken": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } - sv.SessionArn = ptr.String(jtv) + sv.NextToken = ptr.String(jtv) } - case "sessionId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) - } - sv.SessionId = ptr.String(jtv) + case "sessionSummaries": + if err := awsRestjson1_deserializeDocumentSessionSummaries(&sv.SessionSummaries, value); err != nil { + return err } default: @@ -9921,12 +9994,41 @@ func awsRestjson1_deserializeOpDocumentUpdateSessionDataOutput(v **UpdateSession return nil } -func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.AccessDeniedException{} +type awsRestjson1_deserializeOpStartContentUpload struct { +} + +func (*awsRestjson1_deserializeOpStartContentUpload) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpStartContentUpload) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorStartContentUpload(response, &metadata) + } + output := &StartContentUploadOutput{} + 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{} @@ -9937,36 +10039,46 @@ func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Res Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape) - + err = awsRestjson1_deserializeOpDocumentStartContentUploadOutput(&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 err } - errorBody.Seek(0, io.SeekStart) - - return output + span.End() + return out, metadata, err } -func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ConflictException{} +func awsRestjson1_deserializeOpErrorStartContentUpload(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -9976,65 +10088,139 @@ func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Respons return err } - err := awsRestjson1_deserializeDocumentConflictException(&output, shape) + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - return err + return genericError + } +} - errorBody.Seek(0, io.SeekStart) +func awsRestjson1_deserializeOpDocumentStartContentUploadOutput(v **StartContentUploadOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - return output -} + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } -func awsRestjson1_deserializeErrorPreconditionFailedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.PreconditionFailedException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + var sv *StartContentUploadOutput + if *v == nil { + sv = &StartContentUploadOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "headersToInclude": + if err := awsRestjson1_deserializeDocumentHeaders(&sv.HeadersToInclude, value); err != nil { + return err + } + + case "uploadId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UploadId to be of type string, got %T instead", value) + } + sv.UploadId = ptr.String(jtv) + } + + case "url": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Url to be of type string, got %T instead", value) + } + sv.Url = ptr.String(jtv) + } + + case "urlExpiry": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UrlExpiry = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value - 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 } + *v = sv + return nil +} - err := awsRestjson1_deserializeDocumentPreconditionFailedException(&output, shape) +type awsRestjson1_deserializeOpStartImportJob struct { +} + +func (*awsRestjson1_deserializeOpStartImportJob) ID() string { + return "OperationDeserializer" +} +func (m *awsRestjson1_deserializeOpStartImportJob) HandleDeserialize(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) + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } - return output -} + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorStartImportJob(response, &metadata) + } + output := &StartImportJobOutput{} + out.Result = output -func awsRestjson1_deserializeErrorRequestTimeoutException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.RequestTimeoutException{} 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{} @@ -10045,83 +10231,45 @@ func awsRestjson1_deserializeErrorRequestTimeoutException(response *smithyhttp.R Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - err := awsRestjson1_deserializeDocumentRequestTimeoutException(&output, shape) - + err = awsRestjson1_deserializeOpDocumentStartImportJobOutput(&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 err } - errorBody.Seek(0, io.SeekStart) - - return output + span.End() + return out, metadata, err } -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 +func awsRestjson1_deserializeOpErrorStartImportJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.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()) - err := awsRestjson1_deserializeDocumentResourceNotFoundException(&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 + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) } - 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) - + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10133,119 +10281,40 @@ func awsRestjson1_deserializeErrorServiceQuotaExceededException(response *smithy } 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 + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) } - - 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 + if len(message) != 0 { + errorMessage = message } - err := awsRestjson1_deserializeDocumentTooManyTagsException(&output, shape) + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(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(), - } - return err - } + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) - errorBody.Seek(0, io.SeekStart) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - return output -} + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) -func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ValidationException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(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(), + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - return err - } - - err := awsRestjson1_deserializeDocumentValidationException(&output, shape) + return genericError - if err != nil { - var snapshot 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 { +func awsRestjson1_deserializeOpDocumentStartImportJobOutput(v **StartImportJobOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10258,22 +10327,18 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AccessDeniedException + var sv *StartImportJobOutput if *v == nil { - sv = &types.AccessDeniedException{} + sv = &StartImportJobOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "message", "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) + case "importJob": + if err := awsRestjson1_deserializeDocumentImportJobData(&sv.ImportJob, value); err != nil { + return err } default: @@ -10285,57 +10350,4040 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie return nil } -func awsRestjson1_deserializeDocumentAIAgentConfiguration(v *types.AIAgentConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - 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 } - shape, ok := value.(map[string]interface{}) + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + response, ok := out.RawResponse.(*smithyhttp.Response) if !ok { - return fmt.Errorf("unexpected JSON type %v", value) + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} } - var uv types.AIAgentConfiguration -loop: - for key, value := range shape { - if value == nil { - continue - } - switch key { - case "answerRecommendationAIAgentConfiguration": - var mv types.AnswerRecommendationAIAgentConfiguration - destAddr := &mv - if err := awsRestjson1_deserializeDocumentAnswerRecommendationAIAgentConfiguration(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.AIAgentConfigurationMemberAnswerRecommendationAIAgentConfiguration{Value: mv} - break loop + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorTagResource(response, &metadata) + } + output := &TagResourceOutput{} + out.Result = output - case "manualSearchAIAgentConfiguration": - var mv types.ManualSearchAIAgentConfiguration - destAddr := &mv - if err := awsRestjson1_deserializeDocumentManualSearchAIAgentConfiguration(&destAddr, value); err != nil { - return err - } + span.End() + 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 + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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 + + span.End() + 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 + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpUpdateAIAgent struct { +} + +func (*awsRestjson1_deserializeOpUpdateAIAgent) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateAIAgent) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorUpdateAIAgent(response, &metadata) + } + output := &UpdateAIAgentOutput{} + 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_deserializeOpDocumentUpdateAIAgentOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateAIAgent(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(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_deserializeOpDocumentUpdateAIAgentOutput(v **UpdateAIAgentOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateAIAgentOutput + if *v == nil { + sv = &UpdateAIAgentOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "aiAgent": + if err := awsRestjson1_deserializeDocumentAIAgentData(&sv.AiAgent, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateAIPrompt struct { +} + +func (*awsRestjson1_deserializeOpUpdateAIPrompt) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateAIPrompt) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorUpdateAIPrompt(response, &metadata) + } + output := &UpdateAIPromptOutput{} + 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_deserializeOpDocumentUpdateAIPromptOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateAIPrompt(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(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_deserializeOpDocumentUpdateAIPromptOutput(v **UpdateAIPromptOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateAIPromptOutput + if *v == nil { + sv = &UpdateAIPromptOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "aiPrompt": + if err := awsRestjson1_deserializeDocumentAIPromptData(&sv.AiPrompt, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateAssistantAIAgent struct { +} + +func (*awsRestjson1_deserializeOpUpdateAssistantAIAgent) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateAssistantAIAgent) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorUpdateAssistantAIAgent(response, &metadata) + } + output := &UpdateAssistantAIAgentOutput{} + 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_deserializeOpDocumentUpdateAssistantAIAgentOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateAssistantAIAgent(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(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_deserializeOpDocumentUpdateAssistantAIAgentOutput(v **UpdateAssistantAIAgentOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateAssistantAIAgentOutput + if *v == nil { + sv = &UpdateAssistantAIAgentOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "assistant": + if err := awsRestjson1_deserializeDocumentAssistantData(&sv.Assistant, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateContent struct { +} + +func (*awsRestjson1_deserializeOpUpdateContent) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateContent) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorUpdateContent(response, &metadata) + } + output := &UpdateContentOutput{} + 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_deserializeOpDocumentUpdateContentOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateContent(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(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("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateContentOutput(v **UpdateContentOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateContentOutput + if *v == nil { + sv = &UpdateContentOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "content": + if err := awsRestjson1_deserializeDocumentContentData(&sv.Content, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateKnowledgeBaseTemplateUri struct { +} + +func (*awsRestjson1_deserializeOpUpdateKnowledgeBaseTemplateUri) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateKnowledgeBaseTemplateUri) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorUpdateKnowledgeBaseTemplateUri(response, &metadata) + } + output := &UpdateKnowledgeBaseTemplateUriOutput{} + 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_deserializeOpDocumentUpdateKnowledgeBaseTemplateUriOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateKnowledgeBaseTemplateUri(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateKnowledgeBaseTemplateUriOutput(v **UpdateKnowledgeBaseTemplateUriOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateKnowledgeBaseTemplateUriOutput + if *v == nil { + sv = &UpdateKnowledgeBaseTemplateUriOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "knowledgeBase": + if err := awsRestjson1_deserializeDocumentKnowledgeBaseData(&sv.KnowledgeBase, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateMessageTemplate struct { +} + +func (*awsRestjson1_deserializeOpUpdateMessageTemplate) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateMessageTemplate) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorUpdateMessageTemplate(response, &metadata) + } + output := &UpdateMessageTemplateOutput{} + 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_deserializeOpDocumentUpdateMessageTemplateOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateMessageTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(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_deserializeOpDocumentUpdateMessageTemplateOutput(v **UpdateMessageTemplateOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateMessageTemplateOutput + if *v == nil { + sv = &UpdateMessageTemplateOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "messageTemplate": + if err := awsRestjson1_deserializeDocumentMessageTemplateData(&sv.MessageTemplate, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateMessageTemplateMetadata struct { +} + +func (*awsRestjson1_deserializeOpUpdateMessageTemplateMetadata) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateMessageTemplateMetadata) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorUpdateMessageTemplateMetadata(response, &metadata) + } + output := &UpdateMessageTemplateMetadataOutput{} + 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_deserializeOpDocumentUpdateMessageTemplateMetadataOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateMessageTemplateMetadata(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(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_deserializeOpDocumentUpdateMessageTemplateMetadataOutput(v **UpdateMessageTemplateMetadataOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateMessageTemplateMetadataOutput + if *v == nil { + sv = &UpdateMessageTemplateMetadataOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "messageTemplate": + if err := awsRestjson1_deserializeDocumentMessageTemplateData(&sv.MessageTemplate, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateQuickResponse struct { +} + +func (*awsRestjson1_deserializeOpUpdateQuickResponse) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateQuickResponse) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorUpdateQuickResponse(response, &metadata) + } + output := &UpdateQuickResponseOutput{} + 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_deserializeOpDocumentUpdateQuickResponseOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateQuickResponse(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(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("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateQuickResponseOutput(v **UpdateQuickResponseOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateQuickResponseOutput + if *v == nil { + sv = &UpdateQuickResponseOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "quickResponse": + if err := awsRestjson1_deserializeDocumentQuickResponseData(&sv.QuickResponse, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateSession struct { +} + +func (*awsRestjson1_deserializeOpUpdateSession) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateSession) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorUpdateSession(response, &metadata) + } + output := &UpdateSessionOutput{} + 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_deserializeOpDocumentUpdateSessionOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateSession(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateSessionOutput(v **UpdateSessionOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateSessionOutput + if *v == nil { + sv = &UpdateSessionOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "session": + if err := awsRestjson1_deserializeDocumentSessionData(&sv.Session, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateSessionData struct { +} + +func (*awsRestjson1_deserializeOpUpdateSessionData) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateSessionData) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorUpdateSessionData(response, &metadata) + } + output := &UpdateSessionDataOutput{} + 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_deserializeOpDocumentUpdateSessionDataOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateSessionData(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateSessionDataOutput(v **UpdateSessionDataOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateSessionDataOutput + if *v == nil { + sv = &UpdateSessionDataOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "data": + if err := awsRestjson1_deserializeDocumentRuntimeSessionDataList(&sv.Data, value); err != nil { + return err + } + + case "namespace": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SessionDataNamespace to be of type string, got %T instead", value) + } + sv.Namespace = types.SessionDataNamespace(jtv) + } + + case "sessionArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.SessionArn = ptr.String(jtv) + } + + case "sessionId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.SessionId = 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_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_deserializeErrorPreconditionFailedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.PreconditionFailedException{} + 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_deserializeDocumentPreconditionFailedException(&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_deserializeErrorRequestTimeoutException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.RequestTimeoutException{} + 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_deserializeDocumentRequestTimeoutException(&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", "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 awsRestjson1_deserializeDocumentAgentAttributes(v **types.AgentAttributes, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AgentAttributes + if *v == nil { + sv = &types.AgentAttributes{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "firstName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.FirstName = ptr.String(jtv) + } + + case "lastName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.LastName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAIAgentConfiguration(v *types.AIAgentConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var uv types.AIAgentConfiguration +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "answerRecommendationAIAgentConfiguration": + var mv types.AnswerRecommendationAIAgentConfiguration + destAddr := &mv + if err := awsRestjson1_deserializeDocumentAnswerRecommendationAIAgentConfiguration(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.AIAgentConfigurationMemberAnswerRecommendationAIAgentConfiguration{Value: mv} + break loop + + case "manualSearchAIAgentConfiguration": + var mv types.ManualSearchAIAgentConfiguration + destAddr := &mv + if err := awsRestjson1_deserializeDocumentManualSearchAIAgentConfiguration(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.AIAgentConfigurationMemberManualSearchAIAgentConfiguration{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + +func awsRestjson1_deserializeDocumentAIAgentConfigurationData(v **types.AIAgentConfigurationData, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AIAgentConfigurationData + if *v == nil { + sv = &types.AIAgentConfigurationData{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "aiAgentId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UuidWithQualifier to be of type string, got %T instead", value) + } + sv.AiAgentId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAIAgentConfigurationMap(v *map[string]types.AIAgentConfigurationData, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %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.AIAgentConfigurationData + if *v == nil { + mv = map[string]types.AIAgentConfigurationData{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal types.AIAgentConfigurationData + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentAIAgentConfigurationData(&destAddr, value); err != nil { + return err + } + parsedVal = *destAddr + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentAIAgentData(v **types.AIAgentData, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AIAgentData + if *v == nil { + sv = &types.AIAgentData{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "aiAgentArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.AiAgentArn = ptr.String(jtv) + } + + case "aiAgentId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.AiAgentId = ptr.String(jtv) + } + + case "assistantArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.AssistantArn = ptr.String(jtv) + } + + case "assistantId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.AssistantId = ptr.String(jtv) + } + + case "configuration": + if err := awsRestjson1_deserializeDocumentAIAgentConfiguration(&sv.Configuration, value); err != nil { + return err + } + + 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 "modifiedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.ModifiedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp 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 "origin": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Origin to be of type string, got %T instead", value) + } + sv.Origin = types.Origin(jtv) + } + + 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 "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AIAgentType to be of type string, got %T instead", value) + } + sv.Type = types.AIAgentType(jtv) + } + + case "visibilityStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VisibilityStatus to be of type string, got %T instead", value) + } + sv.VisibilityStatus = types.VisibilityStatus(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAIAgentSummary(v **types.AIAgentSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AIAgentSummary + if *v == nil { + sv = &types.AIAgentSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "aiAgentArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.AiAgentArn = ptr.String(jtv) + } + + case "aiAgentId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.AiAgentId = ptr.String(jtv) + } + + case "assistantArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.AssistantArn = ptr.String(jtv) + } + + case "assistantId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.AssistantId = ptr.String(jtv) + } + + case "configuration": + if err := awsRestjson1_deserializeDocumentAIAgentConfiguration(&sv.Configuration, value); err != nil { + return err + } + + 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 "modifiedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.ModifiedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp 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 "origin": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Origin to be of type string, got %T instead", value) + } + sv.Origin = types.Origin(jtv) + } + + 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 "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AIAgentType to be of type string, got %T instead", value) + } + sv.Type = types.AIAgentType(jtv) + } + + case "visibilityStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VisibilityStatus to be of type string, got %T instead", value) + } + sv.VisibilityStatus = types.VisibilityStatus(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAIAgentSummaryList(v *[]types.AIAgentSummary, 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.AIAgentSummary + if *v == nil { + cv = []types.AIAgentSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AIAgentSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentAIAgentSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAIAgentVersionSummariesList(v *[]types.AIAgentVersionSummary, 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.AIAgentVersionSummary + if *v == nil { + cv = []types.AIAgentVersionSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AIAgentVersionSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentAIAgentVersionSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAIAgentVersionSummary(v **types.AIAgentVersionSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AIAgentVersionSummary + if *v == nil { + sv = &types.AIAgentVersionSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "aiAgentSummary": + if err := awsRestjson1_deserializeDocumentAIAgentSummary(&sv.AiAgentSummary, value); err != nil { + return err + } + + case "versionNumber": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Version to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.VersionNumber = ptr.Int64(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAIPromptData(v **types.AIPromptData, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AIPromptData + if *v == nil { + sv = &types.AIPromptData{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "aiPromptArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.AiPromptArn = ptr.String(jtv) + } + + case "aiPromptId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.AiPromptId = ptr.String(jtv) + } + + case "apiFormat": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AIPromptAPIFormat to be of type string, got %T instead", value) + } + sv.ApiFormat = types.AIPromptAPIFormat(jtv) + } + + case "assistantArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.AssistantArn = ptr.String(jtv) + } + + case "assistantId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.AssistantId = 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 "modelId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AIPromptModelIdentifier to be of type string, got %T instead", value) + } + sv.ModelId = ptr.String(jtv) + } + + case "modifiedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.ModifiedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp 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 "origin": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Origin to be of type string, got %T instead", value) + } + sv.Origin = types.Origin(jtv) + } + + 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 "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + case "templateConfiguration": + if err := awsRestjson1_deserializeDocumentAIPromptTemplateConfiguration(&sv.TemplateConfiguration, value); err != nil { + return err + } + + case "templateType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AIPromptTemplateType to be of type string, got %T instead", value) + } + sv.TemplateType = types.AIPromptTemplateType(jtv) + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AIPromptType to be of type string, got %T instead", value) + } + sv.Type = types.AIPromptType(jtv) + } + + case "visibilityStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VisibilityStatus to be of type string, got %T instead", value) + } + sv.VisibilityStatus = types.VisibilityStatus(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAIPromptSummary(v **types.AIPromptSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AIPromptSummary + if *v == nil { + sv = &types.AIPromptSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "aiPromptArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.AiPromptArn = ptr.String(jtv) + } + + case "aiPromptId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.AiPromptId = ptr.String(jtv) + } + + case "apiFormat": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AIPromptAPIFormat to be of type string, got %T instead", value) + } + sv.ApiFormat = types.AIPromptAPIFormat(jtv) + } + + case "assistantArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.AssistantArn = ptr.String(jtv) + } + + case "assistantId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.AssistantId = 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 "modelId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AIPromptModelIdentifier to be of type string, got %T instead", value) + } + sv.ModelId = ptr.String(jtv) + } + + case "modifiedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.ModifiedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp 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 "origin": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Origin to be of type string, got %T instead", value) + } + sv.Origin = types.Origin(jtv) + } + + 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 "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + case "templateType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AIPromptTemplateType to be of type string, got %T instead", value) + } + sv.TemplateType = types.AIPromptTemplateType(jtv) + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AIPromptType to be of type string, got %T instead", value) + } + sv.Type = types.AIPromptType(jtv) + } + + case "visibilityStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VisibilityStatus to be of type string, got %T instead", value) + } + sv.VisibilityStatus = types.VisibilityStatus(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAIPromptSummaryList(v *[]types.AIPromptSummary, 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.AIPromptSummary + if *v == nil { + cv = []types.AIPromptSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AIPromptSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentAIPromptSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAIPromptTemplateConfiguration(v *types.AIPromptTemplateConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var uv types.AIPromptTemplateConfiguration +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "textFullAIPromptEditTemplateConfiguration": + var mv types.TextFullAIPromptEditTemplateConfiguration + destAddr := &mv + if err := awsRestjson1_deserializeDocumentTextFullAIPromptEditTemplateConfiguration(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.AIPromptTemplateConfigurationMemberTextFullAIPromptEditTemplateConfiguration{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + +func awsRestjson1_deserializeDocumentAIPromptVersionSummariesList(v *[]types.AIPromptVersionSummary, 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.AIPromptVersionSummary + if *v == nil { + cv = []types.AIPromptVersionSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AIPromptVersionSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentAIPromptVersionSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAIPromptVersionSummary(v **types.AIPromptVersionSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AIPromptVersionSummary + if *v == nil { + sv = &types.AIPromptVersionSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "aiPromptSummary": + if err := awsRestjson1_deserializeDocumentAIPromptSummary(&sv.AiPromptSummary, value); err != nil { + return err + } + + case "versionNumber": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Version to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.VersionNumber = ptr.Int64(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAmazonConnectGuideAssociationData(v **types.AmazonConnectGuideAssociationData, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AmazonConnectGuideAssociationData + if *v == nil { + sv = &types.AmazonConnectGuideAssociationData{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "flowId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GenericArn to be of type string, got %T instead", value) + } + sv.FlowId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAndConditions(v *[]types.TagCondition, 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.TagCondition + if *v == nil { + cv = []types.TagCondition{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.TagCondition + destAddr := &col + if err := awsRestjson1_deserializeDocumentTagCondition(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAnswerRecommendationAIAgentConfiguration(v **types.AnswerRecommendationAIAgentConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AnswerRecommendationAIAgentConfiguration + if *v == nil { + sv = &types.AnswerRecommendationAIAgentConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "answerGenerationAIPromptId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UuidWithQualifier to be of type string, got %T instead", value) + } + sv.AnswerGenerationAIPromptId = ptr.String(jtv) + } + + case "associationConfigurations": + if err := awsRestjson1_deserializeDocumentAssociationConfigurationList(&sv.AssociationConfigurations, value); err != nil { + return err + } + + case "intentLabelingGenerationAIPromptId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UuidWithQualifier to be of type string, got %T instead", value) + } + sv.IntentLabelingGenerationAIPromptId = ptr.String(jtv) + } + + case "queryReformulationAIPromptId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UuidWithQualifier to be of type string, got %T instead", value) + } + sv.QueryReformulationAIPromptId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAppIntegrationsConfiguration(v **types.AppIntegrationsConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AppIntegrationsConfiguration + if *v == nil { + sv = &types.AppIntegrationsConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "appIntegrationArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GenericArn to be of type string, got %T instead", value) + } + sv.AppIntegrationArn = ptr.String(jtv) + } + + case "objectFields": + if err := awsRestjson1_deserializeDocumentObjectFieldsList(&sv.ObjectFields, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAssistantAssociationData(v **types.AssistantAssociationData, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AssistantAssociationData + if *v == nil { + sv = &types.AssistantAssociationData{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "assistantArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.AssistantArn = ptr.String(jtv) + } + + case "assistantAssociationArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.AssistantAssociationArn = ptr.String(jtv) + } + + case "assistantAssociationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.AssistantAssociationId = ptr.String(jtv) + } + + case "assistantId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.AssistantId = ptr.String(jtv) + } + + case "associationData": + if err := awsRestjson1_deserializeDocumentAssistantAssociationOutputData(&sv.AssociationData, value); err != nil { + return err + } + + case "associationType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AssociationType to be of type string, got %T instead", value) + } + sv.AssociationType = types.AssociationType(jtv) + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAssistantAssociationOutputData(v *types.AssistantAssociationOutputData, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var uv types.AssistantAssociationOutputData +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "knowledgeBaseAssociation": + var mv types.KnowledgeBaseAssociationData + destAddr := &mv + if err := awsRestjson1_deserializeDocumentKnowledgeBaseAssociationData(&destAddr, value); err != nil { + return err + } mv = *destAddr - uv = &types.AIAgentConfigurationMemberManualSearchAIAgentConfiguration{Value: mv} + uv = &types.AssistantAssociationOutputDataMemberKnowledgeBaseAssociation{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} break loop + } + } + *v = uv + return nil +} + +func awsRestjson1_deserializeDocumentAssistantAssociationSummary(v **types.AssistantAssociationSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AssistantAssociationSummary + if *v == nil { + sv = &types.AssistantAssociationSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "assistantArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.AssistantArn = ptr.String(jtv) + } + + case "assistantAssociationArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.AssistantAssociationArn = ptr.String(jtv) + } + + case "assistantAssociationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.AssistantAssociationId = ptr.String(jtv) + } + + case "assistantId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.AssistantId = ptr.String(jtv) + } + + case "associationData": + if err := awsRestjson1_deserializeDocumentAssistantAssociationOutputData(&sv.AssociationData, value); err != nil { + return err + } + + case "associationType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AssociationType to be of type string, got %T instead", value) + } + sv.AssociationType = types.AssociationType(jtv) + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAssistantAssociationSummaryList(v *[]types.AssistantAssociationSummary, 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.AssistantAssociationSummary + if *v == nil { + cv = []types.AssistantAssociationSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AssistantAssociationSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentAssistantAssociationSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAssistantCapabilityConfiguration(v **types.AssistantCapabilityConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AssistantCapabilityConfiguration + if *v == nil { + sv = &types.AssistantCapabilityConfiguration{} + } 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 AssistantCapabilityType to be of type string, got %T instead", value) + } + sv.Type = types.AssistantCapabilityType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAssistantData(v **types.AssistantData, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AssistantData + if *v == nil { + sv = &types.AssistantData{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "aiAgentConfiguration": + if err := awsRestjson1_deserializeDocumentAIAgentConfigurationMap(&sv.AiAgentConfiguration, value); err != nil { + return err + } + + case "assistantArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.AssistantArn = ptr.String(jtv) + } + + case "assistantId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.AssistantId = ptr.String(jtv) + } + + case "capabilityConfiguration": + if err := awsRestjson1_deserializeDocumentAssistantCapabilityConfiguration(&sv.CapabilityConfiguration, value); err != nil { + return err + } + + 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 "integrationConfiguration": + if err := awsRestjson1_deserializeDocumentAssistantIntegrationConfiguration(&sv.IntegrationConfiguration, value); err != nil { + return err + } + + 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 "serverSideEncryptionConfiguration": + if err := awsRestjson1_deserializeDocumentServerSideEncryptionConfiguration(&sv.ServerSideEncryptionConfiguration, value); err != nil { + return err + } + + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AssistantStatus to be of type string, got %T instead", value) + } + sv.Status = types.AssistantStatus(jtv) + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AssistantType to be of type string, got %T instead", value) + } + sv.Type = types.AssistantType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAssistantIntegrationConfiguration(v **types.AssistantIntegrationConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AssistantIntegrationConfiguration + if *v == nil { + sv = &types.AssistantIntegrationConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "topicIntegrationArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GenericArn to be of type string, got %T instead", value) + } + sv.TopicIntegrationArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAssistantList(v *[]types.AssistantSummary, 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.AssistantSummary + if *v == nil { + cv = []types.AssistantSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AssistantSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentAssistantSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAssistantSummary(v **types.AssistantSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AssistantSummary + if *v == nil { + sv = &types.AssistantSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "aiAgentConfiguration": + if err := awsRestjson1_deserializeDocumentAIAgentConfigurationMap(&sv.AiAgentConfiguration, value); err != nil { + return err + } + + case "assistantArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.AssistantArn = ptr.String(jtv) + } + + case "assistantId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.AssistantId = ptr.String(jtv) + } + + case "capabilityConfiguration": + if err := awsRestjson1_deserializeDocumentAssistantCapabilityConfiguration(&sv.CapabilityConfiguration, value); err != nil { + return err + } + + 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 "integrationConfiguration": + if err := awsRestjson1_deserializeDocumentAssistantIntegrationConfiguration(&sv.IntegrationConfiguration, value); err != nil { + return err + } + + 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 "serverSideEncryptionConfiguration": + if err := awsRestjson1_deserializeDocumentServerSideEncryptionConfiguration(&sv.ServerSideEncryptionConfiguration, value); err != nil { + return err + } + + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AssistantStatus to be of type string, got %T instead", value) + } + sv.Status = types.AssistantStatus(jtv) + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AssistantType to be of type string, got %T instead", value) + } + sv.Type = types.AssistantType(jtv) + } + default: - uv = &types.UnknownUnionMember{Tag: key} - break loop + _, _ = key, value } } - *v = uv + *v = sv return nil } -func awsRestjson1_deserializeDocumentAIAgentConfigurationData(v **types.AIAgentConfigurationData, value interface{}) error { +func awsRestjson1_deserializeDocumentAssociationConfiguration(v **types.AssociationConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10348,22 +14396,36 @@ func awsRestjson1_deserializeDocumentAIAgentConfigurationData(v **types.AIAgentC return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AIAgentConfigurationData + var sv *types.AssociationConfiguration if *v == nil { - sv = &types.AIAgentConfigurationData{} + sv = &types.AssociationConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "aiAgentId": + case "associationConfigurationData": + if err := awsRestjson1_deserializeDocumentAssociationConfigurationData(&sv.AssociationConfigurationData, value); err != nil { + return err + } + + case "associationId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected UuidWithQualifier to be of type string, got %T instead", value) + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) } - sv.AiAgentId = ptr.String(jtv) + sv.AssociationId = ptr.String(jtv) + } + + case "associationType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AIAgentAssociationConfigurationType to be of type string, got %T instead", value) + } + sv.AssociationType = types.AIAgentAssociationConfigurationType(jtv) } default: @@ -10375,7 +14437,7 @@ func awsRestjson1_deserializeDocumentAIAgentConfigurationData(v **types.AIAgentC return nil } -func awsRestjson1_deserializeDocumentAIAgentConfigurationMap(v *map[string]types.AIAgentConfigurationData, value interface{}) error { +func awsRestjson1_deserializeDocumentAssociationConfigurationData(v *types.AssociationConfigurationData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10388,29 +14450,68 @@ func awsRestjson1_deserializeDocumentAIAgentConfigurationMap(v *map[string]types return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]types.AIAgentConfigurationData + var uv types.AssociationConfigurationData +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "knowledgeBaseAssociationConfigurationData": + var mv types.KnowledgeBaseAssociationConfigurationData + destAddr := &mv + if err := awsRestjson1_deserializeDocumentKnowledgeBaseAssociationConfigurationData(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.AssociationConfigurationDataMemberKnowledgeBaseAssociationConfigurationData{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + +func awsRestjson1_deserializeDocumentAssociationConfigurationList(v *[]types.AssociationConfiguration, 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.AssociationConfiguration if *v == nil { - mv = map[string]types.AIAgentConfigurationData{} + cv = []types.AssociationConfiguration{} } else { - mv = *v + cv = *v } - for key, value := range shape { - var parsedVal types.AIAgentConfigurationData - mapVar := parsedVal - destAddr := &mapVar - if err := awsRestjson1_deserializeDocumentAIAgentConfigurationData(&destAddr, value); err != nil { + for _, value := range shape { + var col types.AssociationConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentAssociationConfiguration(&destAddr, value); err != nil { return err } - parsedVal = *destAddr - mv[key] = parsedVal + col = *destAddr + cv = append(cv, col) } - *v = mv + *v = cv return nil } -func awsRestjson1_deserializeDocumentAIAgentData(v **types.AIAgentData, value interface{}) error { +func awsRestjson1_deserializeDocumentBedrockFoundationModelConfigurationForParsing(v **types.BedrockFoundationModelConfigurationForParsing, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10423,129 +14524,118 @@ func awsRestjson1_deserializeDocumentAIAgentData(v **types.AIAgentData, value in return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AIAgentData + var sv *types.BedrockFoundationModelConfigurationForParsing if *v == nil { - sv = &types.AIAgentData{} + sv = &types.BedrockFoundationModelConfigurationForParsing{} } else { sv = *v } for key, value := range shape { switch key { - case "aiAgentArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.AiAgentArn = ptr.String(jtv) - } - - case "aiAgentId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) - } - sv.AiAgentId = ptr.String(jtv) - } - - case "assistantArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.AssistantArn = ptr.String(jtv) - } - - case "assistantId": + case "modelArn": 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 BedrockModelArnForParsing to be of type string, got %T instead", value) } - sv.AssistantId = ptr.String(jtv) + sv.ModelArn = ptr.String(jtv) } - case "configuration": - if err := awsRestjson1_deserializeDocumentAIAgentConfiguration(&sv.Configuration, value); err != nil { + case "parsingPrompt": + if err := awsRestjson1_deserializeDocumentParsingPrompt(&sv.ParsingPrompt, value); err != nil { return err } - 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) - } + default: + _, _ = key, value - case "modifiedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.ModifiedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentChannels(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + 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 + } - 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) + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Channel to be of type string, got %T instead", value) } + col = jtv + } + cv = append(cv, col) - case "origin": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Origin to be of type string, got %T instead", value) - } - sv.Origin = types.Origin(jtv) - } + } + *v = cv + return nil +} - case "status": +func awsRestjson1_deserializeDocumentChunkingConfiguration(v **types.ChunkingConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.ChunkingConfiguration + if *v == nil { + sv = &types.ChunkingConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "chunkingStrategy": 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 ChunkingStrategy to be of type string, got %T instead", value) } - sv.Status = types.Status(jtv) + sv.ChunkingStrategy = types.ChunkingStrategy(jtv) } - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + case "fixedSizeChunkingConfiguration": + if err := awsRestjson1_deserializeDocumentFixedSizeChunkingConfiguration(&sv.FixedSizeChunkingConfiguration, value); err != nil { return err } - case "type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AIAgentType to be of type string, got %T instead", value) - } - sv.Type = types.AIAgentType(jtv) + case "hierarchicalChunkingConfiguration": + if err := awsRestjson1_deserializeDocumentHierarchicalChunkingConfiguration(&sv.HierarchicalChunkingConfiguration, value); err != nil { + return err } - case "visibilityStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected VisibilityStatus to be of type string, got %T instead", value) - } - sv.VisibilityStatus = types.VisibilityStatus(jtv) + case "semanticChunkingConfiguration": + if err := awsRestjson1_deserializeDocumentSemanticChunkingConfiguration(&sv.SemanticChunkingConfiguration, value); err != nil { + return err } default: @@ -10557,7 +14647,7 @@ func awsRestjson1_deserializeDocumentAIAgentData(v **types.AIAgentData, value in return nil } -func awsRestjson1_deserializeDocumentAIAgentSummary(v **types.AIAgentSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentCitationSpan(v **types.CitationSpan, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10570,129 +14660,119 @@ func awsRestjson1_deserializeDocumentAIAgentSummary(v **types.AIAgentSummary, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AIAgentSummary + var sv *types.CitationSpan if *v == nil { - sv = &types.AIAgentSummary{} + sv = &types.CitationSpan{} } else { sv = *v } for key, value := range shape { switch key { - case "aiAgentArn": + case "beginOffsetInclusive": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected CitationSpanOffset to be json.Number, got %T instead", value) } - sv.AiAgentArn = ptr.String(jtv) - } - - case "aiAgentId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + i64, err := jtv.Int64() + if err != nil { + return err } - sv.AiAgentId = ptr.String(jtv) + sv.BeginOffsetInclusive = int32(i64) } - case "assistantArn": + case "endOffsetExclusive": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected CitationSpanOffset to be json.Number, got %T instead", value) } - sv.AssistantArn = ptr.String(jtv) - } - - case "assistantId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + i64, err := jtv.Int64() + if err != nil { + return err } - sv.AssistantId = ptr.String(jtv) + sv.EndOffsetExclusive = int32(i64) } - case "configuration": - if err := awsRestjson1_deserializeDocumentAIAgentConfiguration(&sv.Configuration, value); err != nil { - return err - } + default: + _, _ = key, 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) - } + } + } + *v = sv + return nil +} - case "modifiedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.ModifiedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) +func awsRestjson1_deserializeDocumentConfiguration(v *types.Configuration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - } + var uv types.Configuration +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "connectConfiguration": + var mv types.ConnectConfiguration + destAddr := &mv + if err := awsRestjson1_deserializeDocumentConnectConfiguration(&destAddr, value); err != nil { + return err } + mv = *destAddr + uv = &types.ConfigurationMemberConnectConfiguration{Value: mv} + break loop - 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) - } + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop - case "origin": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Origin to be of type string, got %T instead", value) - } - sv.Origin = types.Origin(jtv) - } + } + } + *v = uv + return nil +} - 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) - } +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 + } - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err - } + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - case "type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AIAgentType to be of type string, got %T instead", value) - } - sv.Type = types.AIAgentType(jtv) - } + var sv *types.ConflictException + if *v == nil { + sv = &types.ConflictException{} + } else { + sv = *v + } - case "visibilityStatus": + for key, value := range shape { + switch key { + case "message", "Message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected VisibilityStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VisibilityStatus = types.VisibilityStatus(jtv) + sv.Message = ptr.String(jtv) } default: @@ -10704,7 +14784,7 @@ func awsRestjson1_deserializeDocumentAIAgentSummary(v **types.AIAgentSummary, va return nil } -func awsRestjson1_deserializeDocumentAIAgentSummaryList(v *[]types.AIAgentSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentConnectConfiguration(v **types.ConnectConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10712,33 +14792,39 @@ func awsRestjson1_deserializeDocumentAIAgentSummaryList(v *[]types.AIAgentSummar 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.AIAgentSummary + var sv *types.ConnectConfiguration if *v == nil { - cv = []types.AIAgentSummary{} + sv = &types.ConnectConfiguration{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.AIAgentSummary - destAddr := &col - if err := awsRestjson1_deserializeDocumentAIAgentSummary(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "instanceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.InstanceId = ptr.String(jtv) + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentAIAgentVersionSummariesList(v *[]types.AIAgentVersionSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentContactAttributeKeys(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10751,20 +14837,22 @@ func awsRestjson1_deserializeDocumentAIAgentVersionSummariesList(v *[]types.AIAg return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.AIAgentVersionSummary + var cv []string if *v == nil { - cv = []types.AIAgentVersionSummary{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col types.AIAgentVersionSummary - destAddr := &col - if err := awsRestjson1_deserializeDocumentAIAgentVersionSummary(&destAddr, value); err != nil { - return err + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ContactAttributeKey to be of type string, got %T instead", value) + } + col = jtv } - col = *destAddr cv = append(cv, col) } @@ -10772,7 +14860,7 @@ func awsRestjson1_deserializeDocumentAIAgentVersionSummariesList(v *[]types.AIAg return nil } -func awsRestjson1_deserializeDocumentAIAgentVersionSummary(v **types.AIAgentVersionSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentContentAssociationContents(v *types.ContentAssociationContents, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10785,43 +14873,34 @@ func awsRestjson1_deserializeDocumentAIAgentVersionSummary(v **types.AIAgentVers return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AIAgentVersionSummary - if *v == nil { - sv = &types.AIAgentVersionSummary{} - } else { - sv = *v - } - + var uv types.ContentAssociationContents +loop: for key, value := range shape { + if value == nil { + continue + } switch key { - case "aiAgentSummary": - if err := awsRestjson1_deserializeDocumentAIAgentSummary(&sv.AiAgentSummary, value); err != nil { + case "amazonConnectGuideAssociation": + var mv types.AmazonConnectGuideAssociationData + destAddr := &mv + if err := awsRestjson1_deserializeDocumentAmazonConnectGuideAssociationData(&destAddr, value); err != nil { return err } - - case "versionNumber": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Version to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.VersionNumber = ptr.Int64(i64) - } + mv = *destAddr + uv = &types.ContentAssociationContentsMemberAmazonConnectGuideAssociation{Value: mv} + break loop default: - _, _ = key, value + uv = &types.UnknownUnionMember{Tag: key} + break loop } } - *v = sv + *v = uv return nil } -func awsRestjson1_deserializeDocumentAIPromptData(v **types.AIPromptData, value interface{}) error { +func awsRestjson1_deserializeDocumentContentAssociationData(v **types.ContentAssociationData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10834,119 +14913,81 @@ func awsRestjson1_deserializeDocumentAIPromptData(v **types.AIPromptData, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AIPromptData + var sv *types.ContentAssociationData if *v == nil { - sv = &types.AIPromptData{} + sv = &types.ContentAssociationData{} } else { sv = *v } for key, value := range shape { switch key { - case "aiPromptArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.AiPromptArn = ptr.String(jtv) + case "associationData": + if err := awsRestjson1_deserializeDocumentContentAssociationContents(&sv.AssociationData, value); err != nil { + return err } - case "aiPromptId": + case "associationType": 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 ContentAssociationType to be of type string, got %T instead", value) } - sv.AiPromptId = ptr.String(jtv) + sv.AssociationType = types.ContentAssociationType(jtv) } - case "apiFormat": + case "contentArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AIPromptAPIFormat to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ApiFormat = types.AIPromptAPIFormat(jtv) + sv.ContentArn = ptr.String(jtv) } - case "assistantArn": + case "contentAssociationArn": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AssistantArn = ptr.String(jtv) + sv.ContentAssociationArn = ptr.String(jtv) } - case "assistantId": + case "contentAssociationId": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) } - sv.AssistantId = 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 "modelId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AIPromptModelIdentifier to be of type string, got %T instead", value) - } - sv.ModelId = ptr.String(jtv) - } - - case "modifiedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.ModifiedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } + sv.ContentAssociationId = ptr.String(jtv) } - case "name": + case "contentId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Name to be of type string, got %T instead", value) + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.ContentId = ptr.String(jtv) } - case "origin": + case "knowledgeBaseArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Origin to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Origin = types.Origin(jtv) + sv.KnowledgeBaseArn = ptr.String(jtv) } - case "status": + case "knowledgeBaseId": 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 Uuid to be of type string, got %T instead", value) } - sv.Status = types.Status(jtv) + sv.KnowledgeBaseId = ptr.String(jtv) } case "tags": @@ -10954,38 +14995,6 @@ func awsRestjson1_deserializeDocumentAIPromptData(v **types.AIPromptData, value return err } - case "templateConfiguration": - if err := awsRestjson1_deserializeDocumentAIPromptTemplateConfiguration(&sv.TemplateConfiguration, value); err != nil { - return err - } - - case "templateType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AIPromptTemplateType to be of type string, got %T instead", value) - } - sv.TemplateType = types.AIPromptTemplateType(jtv) - } - - case "type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AIPromptType to be of type string, got %T instead", value) - } - sv.Type = types.AIPromptType(jtv) - } - - case "visibilityStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected VisibilityStatus to be of type string, got %T instead", value) - } - sv.VisibilityStatus = types.VisibilityStatus(jtv) - } - default: _, _ = key, value @@ -10995,7 +15004,7 @@ func awsRestjson1_deserializeDocumentAIPromptData(v **types.AIPromptData, value return nil } -func awsRestjson1_deserializeDocumentAIPromptSummary(v **types.AIPromptSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentContentAssociationSummary(v **types.ContentAssociationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11008,119 +15017,81 @@ func awsRestjson1_deserializeDocumentAIPromptSummary(v **types.AIPromptSummary, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AIPromptSummary + var sv *types.ContentAssociationSummary if *v == nil { - sv = &types.AIPromptSummary{} + sv = &types.ContentAssociationSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "aiPromptArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.AiPromptArn = ptr.String(jtv) - } - - case "aiPromptId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) - } - sv.AiPromptId = ptr.String(jtv) - } - - case "apiFormat": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AIPromptAPIFormat to be of type string, got %T instead", value) - } - sv.ApiFormat = types.AIPromptAPIFormat(jtv) + case "associationData": + if err := awsRestjson1_deserializeDocumentContentAssociationContents(&sv.AssociationData, value); err != nil { + return err } - case "assistantArn": + case "associationType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected ContentAssociationType to be of type string, got %T instead", value) } - sv.AssistantArn = ptr.String(jtv) + sv.AssociationType = types.ContentAssociationType(jtv) } - case "assistantId": + case "contentArn": 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 Arn to be of type string, got %T instead", value) } - sv.AssistantId = ptr.String(jtv) + sv.ContentArn = ptr.String(jtv) } - case "description": + case "contentAssociationArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Description to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Description = ptr.String(jtv) + sv.ContentAssociationArn = ptr.String(jtv) } - case "modelId": + case "contentAssociationId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AIPromptModelIdentifier to be of type string, got %T instead", value) - } - sv.ModelId = ptr.String(jtv) - } - - case "modifiedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.ModifiedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) } + sv.ContentAssociationId = ptr.String(jtv) } - case "name": + case "contentId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Name to be of type string, got %T instead", value) + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.ContentId = ptr.String(jtv) } - case "origin": + case "knowledgeBaseArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Origin to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Origin = types.Origin(jtv) + sv.KnowledgeBaseArn = ptr.String(jtv) } - case "status": + case "knowledgeBaseId": 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 Uuid to be of type string, got %T instead", value) } - sv.Status = types.Status(jtv) + sv.KnowledgeBaseId = ptr.String(jtv) } case "tags": @@ -11128,33 +15099,6 @@ func awsRestjson1_deserializeDocumentAIPromptSummary(v **types.AIPromptSummary, return err } - case "templateType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AIPromptTemplateType to be of type string, got %T instead", value) - } - sv.TemplateType = types.AIPromptTemplateType(jtv) - } - - case "type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AIPromptType to be of type string, got %T instead", value) - } - sv.Type = types.AIPromptType(jtv) - } - - case "visibilityStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected VisibilityStatus to be of type string, got %T instead", value) - } - sv.VisibilityStatus = types.VisibilityStatus(jtv) - } - default: _, _ = key, value @@ -11164,7 +15108,7 @@ func awsRestjson1_deserializeDocumentAIPromptSummary(v **types.AIPromptSummary, return nil } -func awsRestjson1_deserializeDocumentAIPromptSummaryList(v *[]types.AIPromptSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentContentAssociationSummaryList(v *[]types.ContentAssociationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11177,17 +15121,17 @@ func awsRestjson1_deserializeDocumentAIPromptSummaryList(v *[]types.AIPromptSumm return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.AIPromptSummary + var cv []types.ContentAssociationSummary if *v == nil { - cv = []types.AIPromptSummary{} + cv = []types.ContentAssociationSummary{} } else { cv = *v } for _, value := range shape { - var col types.AIPromptSummary + var col types.ContentAssociationSummary destAddr := &col - if err := awsRestjson1_deserializeDocumentAIPromptSummary(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentContentAssociationSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -11198,7 +15142,7 @@ func awsRestjson1_deserializeDocumentAIPromptSummaryList(v *[]types.AIPromptSumm return nil } -func awsRestjson1_deserializeDocumentAIPromptTemplateConfiguration(v *types.AIPromptTemplateConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentContentData(v **types.ContentData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11211,105 +15155,138 @@ func awsRestjson1_deserializeDocumentAIPromptTemplateConfiguration(v *types.AIPr return fmt.Errorf("unexpected JSON type %v", value) } - var uv types.AIPromptTemplateConfiguration -loop: + var sv *types.ContentData + if *v == nil { + sv = &types.ContentData{} + } else { + sv = *v + } + for key, value := range shape { - if value == nil { - continue - } switch key { - case "textFullAIPromptEditTemplateConfiguration": - var mv types.TextFullAIPromptEditTemplateConfiguration - destAddr := &mv - if err := awsRestjson1_deserializeDocumentTextFullAIPromptEditTemplateConfiguration(&destAddr, value); err != nil { - return err + case "contentArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.ContentArn = ptr.String(jtv) } - mv = *destAddr - uv = &types.AIPromptTemplateConfigurationMemberTextFullAIPromptEditTemplateConfiguration{Value: mv} - break loop - - default: - uv = &types.UnknownUnionMember{Tag: key} - break loop - } - } - *v = uv - return nil -} + case "contentId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.ContentId = ptr.String(jtv) + } -func awsRestjson1_deserializeDocumentAIPromptVersionSummariesList(v *[]types.AIPromptVersionSummary, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + 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) + } - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "knowledgeBaseArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.KnowledgeBaseArn = ptr.String(jtv) + } - var cv []types.AIPromptVersionSummary - if *v == nil { - cv = []types.AIPromptVersionSummary{} - } else { - cv = *v - } + case "knowledgeBaseId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.KnowledgeBaseId = ptr.String(jtv) + } - for _, value := range shape { - var col types.AIPromptVersionSummary - destAddr := &col - if err := awsRestjson1_deserializeDocumentAIPromptVersionSummary(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + case "linkOutUri": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uri to be of type string, got %T instead", value) + } + sv.LinkOutUri = ptr.String(jtv) + } - } - *v = cv - return nil -} + case "metadata": + if err := awsRestjson1_deserializeDocumentContentMetadata(&sv.Metadata, value); err != nil { + return err + } -func awsRestjson1_deserializeDocumentAIPromptVersionSummary(v **types.AIPromptVersionSummary, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + 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) + } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "revisionId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.RevisionId = ptr.String(jtv) + } - var sv *types.AIPromptVersionSummary - if *v == nil { - sv = &types.AIPromptVersionSummary{} - } else { - sv = *v - } + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ContentStatus to be of type string, got %T instead", value) + } + sv.Status = types.ContentStatus(jtv) + } - for key, value := range shape { - switch key { - case "aiPromptSummary": - if err := awsRestjson1_deserializeDocumentAIPromptSummary(&sv.AiPromptSummary, value); err != nil { + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { return err } - case "versionNumber": + case "title": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ContentTitle to be of type string, got %T instead", value) + } + sv.Title = ptr.String(jtv) + } + + case "url": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Version to be json.Number, got %T instead", value) + return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - i64, err := jtv.Int64() - if err != nil { - return err + sv.Url = ptr.String(jtv) + } + + case "urlExpiry": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UrlExpiry = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } - sv.VersionNumber = ptr.Int64(i64) } default: @@ -11321,7 +15298,7 @@ func awsRestjson1_deserializeDocumentAIPromptVersionSummary(v **types.AIPromptVe return nil } -func awsRestjson1_deserializeDocumentAmazonConnectGuideAssociationData(v **types.AmazonConnectGuideAssociationData, value interface{}) error { +func awsRestjson1_deserializeDocumentContentDataDetails(v **types.ContentDataDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11334,22 +15311,23 @@ func awsRestjson1_deserializeDocumentAmazonConnectGuideAssociationData(v **types return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AmazonConnectGuideAssociationData + var sv *types.ContentDataDetails if *v == nil { - sv = &types.AmazonConnectGuideAssociationData{} + sv = &types.ContentDataDetails{} } else { sv = *v } for key, value := range shape { switch key { - case "flowId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected GenericArn to be of type string, got %T instead", value) - } - sv.FlowId = ptr.String(jtv) + case "rankingData": + if err := awsRestjson1_deserializeDocumentRankingData(&sv.RankingData, value); err != nil { + return err + } + + case "textData": + if err := awsRestjson1_deserializeDocumentTextData(&sv.TextData, value); err != nil { + return err } default: @@ -11361,41 +15339,7 @@ func awsRestjson1_deserializeDocumentAmazonConnectGuideAssociationData(v **types return nil } -func awsRestjson1_deserializeDocumentAndConditions(v *[]types.TagCondition, 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.TagCondition - if *v == nil { - cv = []types.TagCondition{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.TagCondition - destAddr := &col - if err := awsRestjson1_deserializeDocumentTagCondition(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentAnswerRecommendationAIAgentConfiguration(v **types.AnswerRecommendationAIAgentConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentContentFeedbackData(v *types.ContentFeedbackData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11408,57 +15352,34 @@ func awsRestjson1_deserializeDocumentAnswerRecommendationAIAgentConfiguration(v return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AnswerRecommendationAIAgentConfiguration - if *v == nil { - sv = &types.AnswerRecommendationAIAgentConfiguration{} - } else { - sv = *v - } - + var uv types.ContentFeedbackData +loop: for key, value := range shape { + if value == nil { + continue + } switch key { - case "answerGenerationAIPromptId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected UuidWithQualifier to be of type string, got %T instead", value) - } - sv.AnswerGenerationAIPromptId = ptr.String(jtv) - } - - case "associationConfigurations": - if err := awsRestjson1_deserializeDocumentAssociationConfigurationList(&sv.AssociationConfigurations, value); err != nil { + case "generativeContentFeedbackData": + var mv types.GenerativeContentFeedbackData + destAddr := &mv + if err := awsRestjson1_deserializeDocumentGenerativeContentFeedbackData(&destAddr, value); err != nil { return err } - - case "intentLabelingGenerationAIPromptId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected UuidWithQualifier to be of type string, got %T instead", value) - } - sv.IntentLabelingGenerationAIPromptId = ptr.String(jtv) - } - - case "queryReformulationAIPromptId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected UuidWithQualifier to be of type string, got %T instead", value) - } - sv.QueryReformulationAIPromptId = ptr.String(jtv) - } + mv = *destAddr + uv = &types.ContentFeedbackDataMemberGenerativeContentFeedbackData{Value: mv} + break loop default: - _, _ = key, value + uv = &types.UnknownUnionMember{Tag: key} + break loop } } - *v = sv + *v = uv return nil } -func awsRestjson1_deserializeDocumentAppIntegrationsConfiguration(v **types.AppIntegrationsConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentContentMetadata(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11471,39 +15392,30 @@ func awsRestjson1_deserializeDocumentAppIntegrationsConfiguration(v **types.AppI return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AppIntegrationsConfiguration + var mv map[string]string if *v == nil { - sv = &types.AppIntegrationsConfiguration{} + mv = map[string]string{} } else { - sv = *v + mv = *v } for key, value := range shape { - switch key { - case "appIntegrationArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected GenericArn to be of type string, got %T instead", value) - } - sv.AppIntegrationArn = ptr.String(jtv) - } - - case "objectFields": - if err := awsRestjson1_deserializeDocumentObjectFieldsList(&sv.ObjectFields, value); err != nil { - return err + var parsedVal string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - - default: - _, _ = key, value - + parsedVal = jtv } + mv[key] = parsedVal + } - *v = sv + *v = mv return nil } -func awsRestjson1_deserializeDocumentAssistantAssociationData(v **types.AssistantAssociationData, value interface{}) error { +func awsRestjson1_deserializeDocumentContentReference(v **types.ContentReference, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11516,120 +15428,79 @@ func awsRestjson1_deserializeDocumentAssistantAssociationData(v **types.Assistan return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AssistantAssociationData + var sv *types.ContentReference if *v == nil { - sv = &types.AssistantAssociationData{} + sv = &types.ContentReference{} } else { sv = *v } for key, value := range shape { switch key { - case "assistantArn": + case "contentArn": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AssistantArn = ptr.String(jtv) + sv.ContentArn = ptr.String(jtv) } - case "assistantAssociationArn": + case "contentId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) } - sv.AssistantAssociationArn = ptr.String(jtv) + sv.ContentId = ptr.String(jtv) } - case "assistantAssociationId": + case "knowledgeBaseArn": 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 Arn to be of type string, got %T instead", value) } - sv.AssistantAssociationId = ptr.String(jtv) + sv.KnowledgeBaseArn = ptr.String(jtv) } - case "assistantId": + case "knowledgeBaseId": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) } - sv.AssistantId = ptr.String(jtv) - } - - case "associationData": - if err := awsRestjson1_deserializeDocumentAssistantAssociationOutputData(&sv.AssociationData, value); err != nil { - return err + sv.KnowledgeBaseId = ptr.String(jtv) } - case "associationType": + case "referenceType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AssociationType to be of type string, got %T instead", value) + return fmt.Errorf("expected ReferenceType to be of type string, got %T instead", value) } - sv.AssociationType = types.AssociationType(jtv) - } - - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentAssistantAssociationOutputData(v *types.AssistantAssociationOutputData, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var uv types.AssistantAssociationOutputData -loop: - for key, value := range shape { - if value == nil { - continue - } - switch key { - case "knowledgeBaseAssociation": - var mv types.KnowledgeBaseAssociationData - destAddr := &mv - if err := awsRestjson1_deserializeDocumentKnowledgeBaseAssociationData(&destAddr, value); err != nil { - return err + sv.ReferenceType = types.ReferenceType(jtv) + } + + case "sourceURL": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.SourceURL = ptr.String(jtv) } - mv = *destAddr - uv = &types.AssistantAssociationOutputDataMemberKnowledgeBaseAssociation{Value: mv} - break loop default: - uv = &types.UnknownUnionMember{Tag: key} - break loop + _, _ = key, value } } - *v = uv + *v = sv return nil } -func awsRestjson1_deserializeDocumentAssistantAssociationSummary(v **types.AssistantAssociationSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentContentSummary(v **types.ContentSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11642,63 +15513,90 @@ func awsRestjson1_deserializeDocumentAssistantAssociationSummary(v **types.Assis return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AssistantAssociationSummary + var sv *types.ContentSummary if *v == nil { - sv = &types.AssistantAssociationSummary{} + sv = &types.ContentSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "assistantArn": + case "contentArn": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AssistantArn = ptr.String(jtv) + sv.ContentArn = ptr.String(jtv) } - case "assistantAssociationArn": + case "contentId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) } - sv.AssistantAssociationArn = ptr.String(jtv) + sv.ContentId = ptr.String(jtv) } - case "assistantAssociationId": + case "contentType": 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 ContentType to be of type string, got %T instead", value) } - sv.AssistantAssociationId = ptr.String(jtv) + sv.ContentType = ptr.String(jtv) } - case "assistantId": + case "knowledgeBaseArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.KnowledgeBaseArn = ptr.String(jtv) + } + + case "knowledgeBaseId": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) } - sv.AssistantId = ptr.String(jtv) + sv.KnowledgeBaseId = ptr.String(jtv) } - case "associationData": - if err := awsRestjson1_deserializeDocumentAssistantAssociationOutputData(&sv.AssociationData, value); err != nil { + case "metadata": + if err := awsRestjson1_deserializeDocumentContentMetadata(&sv.Metadata, value); err != nil { return err } - case "associationType": + case "name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AssociationType to be of type string, got %T instead", value) + return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.AssociationType = types.AssociationType(jtv) + sv.Name = ptr.String(jtv) + } + + case "revisionId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.RevisionId = ptr.String(jtv) + } + + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ContentStatus to be of type string, got %T instead", value) + } + sv.Status = types.ContentStatus(jtv) } case "tags": @@ -11706,6 +15604,15 @@ func awsRestjson1_deserializeDocumentAssistantAssociationSummary(v **types.Assis return err } + case "title": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ContentTitle to be of type string, got %T instead", value) + } + sv.Title = ptr.String(jtv) + } + default: _, _ = key, value @@ -11715,7 +15622,7 @@ func awsRestjson1_deserializeDocumentAssistantAssociationSummary(v **types.Assis return nil } -func awsRestjson1_deserializeDocumentAssistantAssociationSummaryList(v *[]types.AssistantAssociationSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentContentSummaryList(v *[]types.ContentSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11728,17 +15635,17 @@ func awsRestjson1_deserializeDocumentAssistantAssociationSummaryList(v *[]types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.AssistantAssociationSummary + var cv []types.ContentSummary if *v == nil { - cv = []types.AssistantAssociationSummary{} + cv = []types.ContentSummary{} } else { cv = *v } for _, value := range shape { - var col types.AssistantAssociationSummary + var col types.ContentSummary destAddr := &col - if err := awsRestjson1_deserializeDocumentAssistantAssociationSummary(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentContentSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -11749,7 +15656,7 @@ func awsRestjson1_deserializeDocumentAssistantAssociationSummaryList(v *[]types. return nil } -func awsRestjson1_deserializeDocumentAssistantCapabilityConfiguration(v **types.AssistantCapabilityConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentCustomAttributes(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11762,34 +15669,30 @@ func awsRestjson1_deserializeDocumentAssistantCapabilityConfiguration(v **types. return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AssistantCapabilityConfiguration + var mv map[string]string if *v == nil { - sv = &types.AssistantCapabilityConfiguration{} + mv = map[string]string{} } else { - sv = *v + mv = *v } for key, value := range shape { - switch key { - case "type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AssistantCapabilityType to be of type string, got %T instead", value) - } - sv.Type = types.AssistantCapabilityType(jtv) + var parsedVal string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) } - - default: - _, _ = key, value - + parsedVal = jtv } + mv[key] = parsedVal + } - *v = sv + *v = mv return nil } -func awsRestjson1_deserializeDocumentAssistantData(v **types.AssistantData, value interface{}) error { +func awsRestjson1_deserializeDocumentCustomerProfileAttributes(v **types.CustomerProfileAttributes, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11802,330 +15705,531 @@ func awsRestjson1_deserializeDocumentAssistantData(v **types.AssistantData, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AssistantData + var sv *types.CustomerProfileAttributes if *v == nil { - sv = &types.AssistantData{} + sv = &types.CustomerProfileAttributes{} } else { sv = *v } for key, value := range shape { switch key { - case "aiAgentConfiguration": - if err := awsRestjson1_deserializeDocumentAIAgentConfigurationMap(&sv.AiAgentConfiguration, value); err != nil { - return err + case "accountNumber": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.AccountNumber = ptr.String(jtv) + } + + case "additionalInformation": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.AdditionalInformation = ptr.String(jtv) + } + + case "address1": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.Address1 = ptr.String(jtv) + } + + case "address2": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.Address2 = ptr.String(jtv) + } + + case "address3": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.Address3 = ptr.String(jtv) + } + + case "address4": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.Address4 = ptr.String(jtv) + } + + case "billingAddress1": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.BillingAddress1 = ptr.String(jtv) + } + + case "billingAddress2": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.BillingAddress2 = ptr.String(jtv) + } + + case "billingAddress3": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.BillingAddress3 = ptr.String(jtv) + } + + case "billingAddress4": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.BillingAddress4 = ptr.String(jtv) + } + + case "billingCity": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.BillingCity = ptr.String(jtv) + } + + case "billingCountry": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.BillingCountry = ptr.String(jtv) + } + + case "billingCounty": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.BillingCounty = ptr.String(jtv) + } + + case "billingPostalCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.BillingPostalCode = ptr.String(jtv) + } + + case "billingProvince": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.BillingProvince = ptr.String(jtv) + } + + case "billingState": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.BillingState = ptr.String(jtv) + } + + case "birthDate": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.BirthDate = ptr.String(jtv) + } + + case "businessEmailAddress": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.BusinessEmailAddress = ptr.String(jtv) + } + + case "businessName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.BusinessName = ptr.String(jtv) + } + + case "businessPhoneNumber": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.BusinessPhoneNumber = ptr.String(jtv) + } + + case "city": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.City = ptr.String(jtv) } - case "assistantArn": + case "country": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) } - sv.AssistantArn = ptr.String(jtv) + sv.Country = ptr.String(jtv) } - case "assistantId": + case "county": 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 MessageTemplateAttributeValue to be of type string, got %T instead", value) } - sv.AssistantId = ptr.String(jtv) + sv.County = ptr.String(jtv) } - case "capabilityConfiguration": - if err := awsRestjson1_deserializeDocumentAssistantCapabilityConfiguration(&sv.CapabilityConfiguration, value); err != nil { + case "custom": + if err := awsRestjson1_deserializeDocumentCustomAttributes(&sv.Custom, value); err != nil { return err } - case "description": + case "emailAddress": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Description to be of type string, got %T instead", value) + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) } - sv.Description = ptr.String(jtv) + sv.EmailAddress = ptr.String(jtv) } - case "integrationConfiguration": - if err := awsRestjson1_deserializeDocumentAssistantIntegrationConfiguration(&sv.IntegrationConfiguration, value); err != nil { - return err + case "firstName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.FirstName = ptr.String(jtv) } - case "name": + case "gender": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Name to be of type string, got %T instead", value) + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.Gender = ptr.String(jtv) } - case "serverSideEncryptionConfiguration": - if err := awsRestjson1_deserializeDocumentServerSideEncryptionConfiguration(&sv.ServerSideEncryptionConfiguration, value); err != nil { - return err + case "homePhoneNumber": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.HomePhoneNumber = ptr.String(jtv) } - case "status": + case "lastName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AssistantStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) } - sv.Status = types.AssistantStatus(jtv) + sv.LastName = ptr.String(jtv) } - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err + case "mailingAddress1": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.MailingAddress1 = ptr.String(jtv) } - case "type": + case "mailingAddress2": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AssistantType to be of type string, got %T instead", value) + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) } - sv.Type = types.AssistantType(jtv) + sv.MailingAddress2 = ptr.String(jtv) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentAssistantIntegrationConfiguration(v **types.AssistantIntegrationConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", 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.AssistantIntegrationConfiguration - if *v == nil { - sv = &types.AssistantIntegrationConfiguration{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "topicIntegrationArn": + case "mailingAddress3": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected GenericArn to be of type string, got %T instead", value) + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) } - sv.TopicIntegrationArn = ptr.String(jtv) + sv.MailingAddress3 = ptr.String(jtv) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentAssistantList(v *[]types.AssistantSummary, 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) - } + case "mailingAddress4": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.MailingAddress4 = ptr.String(jtv) + } - var cv []types.AssistantSummary - if *v == nil { - cv = []types.AssistantSummary{} - } else { - cv = *v - } + case "mailingCity": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.MailingCity = ptr.String(jtv) + } - for _, value := range shape { - var col types.AssistantSummary - destAddr := &col - if err := awsRestjson1_deserializeDocumentAssistantSummary(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + case "mailingCountry": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.MailingCountry = ptr.String(jtv) + } - } - *v = cv - return nil -} + case "mailingCounty": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.MailingCounty = ptr.String(jtv) + } -func awsRestjson1_deserializeDocumentAssistantSummary(v **types.AssistantSummary, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "mailingPostalCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.MailingPostalCode = ptr.String(jtv) + } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "mailingProvince": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.MailingProvince = ptr.String(jtv) + } - var sv *types.AssistantSummary - if *v == nil { - sv = &types.AssistantSummary{} - } else { - sv = *v - } + case "mailingState": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.MailingState = ptr.String(jtv) + } - for key, value := range shape { - switch key { - case "aiAgentConfiguration": - if err := awsRestjson1_deserializeDocumentAIAgentConfigurationMap(&sv.AiAgentConfiguration, value); err != nil { - return err + case "middleName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.MiddleName = ptr.String(jtv) } - case "assistantArn": + case "mobilePhoneNumber": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) } - sv.AssistantArn = ptr.String(jtv) + sv.MobilePhoneNumber = ptr.String(jtv) } - case "assistantId": + case "partyType": 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 MessageTemplateAttributeValue to be of type string, got %T instead", value) } - sv.AssistantId = ptr.String(jtv) + sv.PartyType = ptr.String(jtv) } - case "capabilityConfiguration": - if err := awsRestjson1_deserializeDocumentAssistantCapabilityConfiguration(&sv.CapabilityConfiguration, value); err != nil { - return err + case "phoneNumber": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.PhoneNumber = ptr.String(jtv) } - case "description": + case "postalCode": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Description to be of type string, got %T instead", value) + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) } - sv.Description = ptr.String(jtv) + sv.PostalCode = ptr.String(jtv) } - case "integrationConfiguration": - if err := awsRestjson1_deserializeDocumentAssistantIntegrationConfiguration(&sv.IntegrationConfiguration, value); err != nil { - return err + case "profileARN": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.ProfileARN = ptr.String(jtv) } - case "name": + case "profileId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Name to be of type string, got %T instead", value) + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.ProfileId = ptr.String(jtv) } - case "serverSideEncryptionConfiguration": - if err := awsRestjson1_deserializeDocumentServerSideEncryptionConfiguration(&sv.ServerSideEncryptionConfiguration, value); err != nil { - return err + case "province": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.Province = ptr.String(jtv) } - case "status": + case "shippingAddress1": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AssistantStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) } - sv.Status = types.AssistantStatus(jtv) + sv.ShippingAddress1 = ptr.String(jtv) } - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err + case "shippingAddress2": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.ShippingAddress2 = ptr.String(jtv) } - case "type": + case "shippingAddress3": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AssistantType to be of type string, got %T instead", value) + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) } - sv.Type = types.AssistantType(jtv) + sv.ShippingAddress3 = ptr.String(jtv) } - default: - _, _ = key, value + case "shippingAddress4": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.ShippingAddress4 = ptr.String(jtv) + } - } - } - *v = sv - return nil -} + case "shippingCity": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.ShippingCity = ptr.String(jtv) + } -func awsRestjson1_deserializeDocumentAssociationConfiguration(v **types.AssociationConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "shippingCountry": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.ShippingCountry = ptr.String(jtv) + } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "shippingCounty": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.ShippingCounty = ptr.String(jtv) + } - var sv *types.AssociationConfiguration - if *v == nil { - sv = &types.AssociationConfiguration{} - } else { - sv = *v - } + case "shippingPostalCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.ShippingPostalCode = ptr.String(jtv) + } - for key, value := range shape { - switch key { - case "associationConfigurationData": - if err := awsRestjson1_deserializeDocumentAssociationConfigurationData(&sv.AssociationConfigurationData, value); err != nil { - return err + case "shippingProvince": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.ShippingProvince = ptr.String(jtv) } - case "associationId": + case "shippingState": 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 MessageTemplateAttributeValue to be of type string, got %T instead", value) } - sv.AssociationId = ptr.String(jtv) + sv.ShippingState = ptr.String(jtv) } - case "associationType": + case "state": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AIAgentAssociationConfigurationType to be of type string, got %T instead", value) + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) } - sv.AssociationType = types.AIAgentAssociationConfigurationType(jtv) + sv.State = ptr.String(jtv) } default: @@ -12137,7 +16241,7 @@ func awsRestjson1_deserializeDocumentAssociationConfiguration(v **types.Associat return nil } -func awsRestjson1_deserializeDocumentAssociationConfigurationData(v *types.AssociationConfigurationData, value interface{}) error { +func awsRestjson1_deserializeDocumentDataDetails(v *types.DataDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12150,68 +16254,64 @@ func awsRestjson1_deserializeDocumentAssociationConfigurationData(v *types.Assoc return fmt.Errorf("unexpected JSON type %v", value) } - var uv types.AssociationConfigurationData + var uv types.DataDetails loop: for key, value := range shape { if value == nil { continue } switch key { - case "knowledgeBaseAssociationConfigurationData": - var mv types.KnowledgeBaseAssociationConfigurationData + case "contentData": + var mv types.ContentDataDetails destAddr := &mv - if err := awsRestjson1_deserializeDocumentKnowledgeBaseAssociationConfigurationData(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentContentDataDetails(&destAddr, value); err != nil { return err } mv = *destAddr - uv = &types.AssociationConfigurationDataMemberKnowledgeBaseAssociationConfigurationData{Value: mv} + uv = &types.DataDetailsMemberContentData{Value: mv} break loop - default: - uv = &types.UnknownUnionMember{Tag: key} + case "generativeData": + var mv types.GenerativeDataDetails + destAddr := &mv + if err := awsRestjson1_deserializeDocumentGenerativeDataDetails(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.DataDetailsMemberGenerativeData{Value: mv} break loop - } - } - *v = uv - return nil -} - -func awsRestjson1_deserializeDocumentAssociationConfigurationList(v *[]types.AssociationConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "intentDetectedData": + var mv types.IntentDetectedDataDetails + destAddr := &mv + if err := awsRestjson1_deserializeDocumentIntentDetectedDataDetails(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.DataDetailsMemberIntentDetectedData{Value: mv} + break loop - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "sourceContentData": + var mv types.SourceContentDataDetails + destAddr := &mv + if err := awsRestjson1_deserializeDocumentSourceContentDataDetails(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.DataDetailsMemberSourceContentData{Value: mv} + break loop - var cv []types.AssociationConfiguration - if *v == nil { - cv = []types.AssociationConfiguration{} - } else { - cv = *v - } + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop - for _, value := range shape { - var col types.AssociationConfiguration - destAddr := &col - if err := awsRestjson1_deserializeDocumentAssociationConfiguration(&destAddr, value); err != nil { - return err } - col = *destAddr - cv = append(cv, col) - } - *v = cv + *v = uv return nil } -func awsRestjson1_deserializeDocumentBedrockFoundationModelConfigurationForParsing(v **types.BedrockFoundationModelConfigurationForParsing, value interface{}) error { +func awsRestjson1_deserializeDocumentDataReference(v *types.DataReference, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12224,75 +16324,44 @@ func awsRestjson1_deserializeDocumentBedrockFoundationModelConfigurationForParsi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BedrockFoundationModelConfigurationForParsing - if *v == nil { - sv = &types.BedrockFoundationModelConfigurationForParsing{} - } else { - sv = *v - } - + var uv types.DataReference +loop: for key, value := range shape { + if value == nil { + continue + } switch key { - case "modelArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BedrockModelArnForParsing to be of type string, got %T instead", value) - } - sv.ModelArn = ptr.String(jtv) + case "contentReference": + var mv types.ContentReference + destAddr := &mv + if err := awsRestjson1_deserializeDocumentContentReference(&destAddr, value); err != nil { + return err } + mv = *destAddr + uv = &types.DataReferenceMemberContentReference{Value: mv} + break loop - case "parsingPrompt": - if err := awsRestjson1_deserializeDocumentParsingPrompt(&sv.ParsingPrompt, value); err != nil { + case "generativeReference": + var mv types.GenerativeReference + destAddr := &mv + if err := awsRestjson1_deserializeDocumentGenerativeReference(&destAddr, value); err != nil { return err } + mv = *destAddr + uv = &types.DataReferenceMemberGenerativeReference{Value: mv} + break loop default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentChannels(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 - } + uv = &types.UnknownUnionMember{Tag: key} + break loop - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Channel to be of type string, got %T instead", value) - } - col = jtv } - cv = append(cv, col) - } - *v = cv + *v = uv return nil } -func awsRestjson1_deserializeDocumentChunkingConfiguration(v **types.ChunkingConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSummary(v **types.DataSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12305,36 +16374,22 @@ func awsRestjson1_deserializeDocumentChunkingConfiguration(v **types.ChunkingCon return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ChunkingConfiguration + var sv *types.DataSummary if *v == nil { - sv = &types.ChunkingConfiguration{} + sv = &types.DataSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "chunkingStrategy": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ChunkingStrategy to be of type string, got %T instead", value) - } - sv.ChunkingStrategy = types.ChunkingStrategy(jtv) - } - - case "fixedSizeChunkingConfiguration": - if err := awsRestjson1_deserializeDocumentFixedSizeChunkingConfiguration(&sv.FixedSizeChunkingConfiguration, value); err != nil { - return err - } - - case "hierarchicalChunkingConfiguration": - if err := awsRestjson1_deserializeDocumentHierarchicalChunkingConfiguration(&sv.HierarchicalChunkingConfiguration, value); err != nil { + case "details": + if err := awsRestjson1_deserializeDocumentDataDetails(&sv.Details, value); err != nil { return err } - case "semanticChunkingConfiguration": - if err := awsRestjson1_deserializeDocumentSemanticChunkingConfiguration(&sv.SemanticChunkingConfiguration, value); err != nil { + case "reference": + if err := awsRestjson1_deserializeDocumentDataReference(&sv.Reference, value); err != nil { return err } @@ -12347,7 +16402,7 @@ func awsRestjson1_deserializeDocumentChunkingConfiguration(v **types.ChunkingCon return nil } -func awsRestjson1_deserializeDocumentCitationSpan(v **types.CitationSpan, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSummaryList(v *[]types.DataSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12355,56 +16410,33 @@ func awsRestjson1_deserializeDocumentCitationSpan(v **types.CitationSpan, value 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.CitationSpan + var cv []types.DataSummary if *v == nil { - sv = &types.CitationSpan{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "beginOffsetInclusive": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected CitationSpanOffset to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.BeginOffsetInclusive = int32(i64) - } - - case "endOffsetExclusive": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected CitationSpanOffset to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.EndOffsetExclusive = int32(i64) - } - - default: - _, _ = key, value + cv = []types.DataSummary{} + } else { + cv = *v + } + for _, value := range shape { + var col types.DataSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataSummary(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentConfiguration(v *types.Configuration, value interface{}) error { +func awsRestjson1_deserializeDocumentDocument(v **types.Document, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12417,34 +16449,40 @@ func awsRestjson1_deserializeDocumentConfiguration(v *types.Configuration, value return fmt.Errorf("unexpected JSON type %v", value) } - var uv types.Configuration -loop: + var sv *types.Document + if *v == nil { + sv = &types.Document{} + } else { + sv = *v + } + for key, value := range shape { - if value == nil { - continue - } switch key { - case "connectConfiguration": - var mv types.ConnectConfiguration - destAddr := &mv - if err := awsRestjson1_deserializeDocumentConnectConfiguration(&destAddr, value); err != nil { + case "contentReference": + if err := awsRestjson1_deserializeDocumentContentReference(&sv.ContentReference, value); err != nil { + return err + } + + case "excerpt": + if err := awsRestjson1_deserializeDocumentDocumentText(&sv.Excerpt, value); err != nil { + return err + } + + case "title": + if err := awsRestjson1_deserializeDocumentDocumentText(&sv.Title, value); err != nil { return err } - mv = *destAddr - uv = &types.ConfigurationMemberConnectConfiguration{Value: mv} - break loop default: - uv = &types.UnknownUnionMember{Tag: key} - break loop + _, _ = key, value } } - *v = uv + *v = sv return nil } -func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictException, value interface{}) error { +func awsRestjson1_deserializeDocumentDocumentText(v **types.DocumentText, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12457,22 +16495,27 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConflictException + var sv *types.DocumentText if *v == nil { - sv = &types.ConflictException{} + sv = &types.DocumentText{} } else { sv = *v } for key, value := range shape { switch key { - case "message", "Message": + case "highlights": + if err := awsRestjson1_deserializeDocumentHighlights(&sv.Highlights, value); err != nil { + return err + } + + case "text": 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 SensitiveString to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.Text = ptr.String(jtv) } default: @@ -12484,7 +16527,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti return nil } -func awsRestjson1_deserializeDocumentConnectConfiguration(v **types.ConnectConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentEmailHeader(v **types.EmailHeader, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12497,22 +16540,31 @@ func awsRestjson1_deserializeDocumentConnectConfiguration(v **types.ConnectConfi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConnectConfiguration + var sv *types.EmailHeader if *v == nil { - sv = &types.ConnectConfiguration{} + sv = &types.EmailHeader{} } else { sv = *v } for key, value := range shape { switch key { - case "instanceId": + case "name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + return fmt.Errorf("expected EmailHeaderKey to be of type string, got %T instead", value) } - sv.InstanceId = ptr.String(jtv) + sv.Name = ptr.String(jtv) + } + + case "value": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EmailHeaderValue to be of type string, got %T instead", value) + } + sv.Value = ptr.String(jtv) } default: @@ -12524,7 +16576,7 @@ func awsRestjson1_deserializeDocumentConnectConfiguration(v **types.ConnectConfi return nil } -func awsRestjson1_deserializeDocumentContactAttributeKeys(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentEmailHeaders(v *[]types.EmailHeader, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12537,22 +16589,20 @@ func awsRestjson1_deserializeDocumentContactAttributeKeys(v *[]string, value int return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var cv []types.EmailHeader if *v == nil { - cv = []string{} + cv = []types.EmailHeader{} } else { cv = *v } for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ContactAttributeKey to be of type string, got %T instead", value) - } - col = jtv + var col types.EmailHeader + destAddr := &col + if err := awsRestjson1_deserializeDocumentEmailHeader(&destAddr, value); err != nil { + return err } + col = *destAddr cv = append(cv, col) } @@ -12560,7 +16610,7 @@ func awsRestjson1_deserializeDocumentContactAttributeKeys(v *[]string, value int return nil } -func awsRestjson1_deserializeDocumentContentAssociationContents(v *types.ContentAssociationContents, value interface{}) error { +func awsRestjson1_deserializeDocumentEmailMessageTemplateContent(v **types.EmailMessageTemplateContent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12573,34 +16623,85 @@ func awsRestjson1_deserializeDocumentContentAssociationContents(v *types.Content return fmt.Errorf("unexpected JSON type %v", value) } - var uv types.ContentAssociationContents -loop: + var sv *types.EmailMessageTemplateContent + if *v == nil { + sv = &types.EmailMessageTemplateContent{} + } else { + sv = *v + } + for key, value := range shape { - if value == nil { - continue + switch key { + case "body": + if err := awsRestjson1_deserializeDocumentEmailMessageTemplateContentBody(&sv.Body, value); err != nil { + return err + } + + case "headers": + if err := awsRestjson1_deserializeDocumentEmailHeaders(&sv.Headers, value); err != nil { + return err + } + + case "subject": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyUnlimitedString to be of type string, got %T instead", value) + } + sv.Subject = ptr.String(jtv) + } + + default: + _, _ = key, value + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentEmailMessageTemplateContentBody(v **types.EmailMessageTemplateContentBody, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.EmailMessageTemplateContentBody + if *v == nil { + sv = &types.EmailMessageTemplateContentBody{} + } else { + sv = *v + } + + for key, value := range shape { switch key { - case "amazonConnectGuideAssociation": - var mv types.AmazonConnectGuideAssociationData - destAddr := &mv - if err := awsRestjson1_deserializeDocumentAmazonConnectGuideAssociationData(&destAddr, value); err != nil { + case "html": + if err := awsRestjson1_deserializeDocumentMessageTemplateBodyContentProvider(&sv.Html, value); err != nil { + return err + } + + case "plainText": + if err := awsRestjson1_deserializeDocumentMessageTemplateBodyContentProvider(&sv.PlainText, value); err != nil { return err } - mv = *destAddr - uv = &types.ContentAssociationContentsMemberAmazonConnectGuideAssociation{Value: mv} - break loop default: - uv = &types.UnknownUnionMember{Tag: key} - break loop + _, _ = key, value } } - *v = uv + *v = sv return nil } -func awsRestjson1_deserializeDocumentContentAssociationData(v **types.ContentAssociationData, value interface{}) error { +func awsRestjson1_deserializeDocumentExtendedMessageTemplateData(v **types.ExtendedMessageTemplateData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12613,63 +16714,78 @@ func awsRestjson1_deserializeDocumentContentAssociationData(v **types.ContentAss return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ContentAssociationData + var sv *types.ExtendedMessageTemplateData if *v == nil { - sv = &types.ContentAssociationData{} + sv = &types.ExtendedMessageTemplateData{} } else { sv = *v } for key, value := range shape { switch key { - case "associationData": - if err := awsRestjson1_deserializeDocumentContentAssociationContents(&sv.AssociationData, value); err != nil { + case "attachments": + if err := awsRestjson1_deserializeDocumentMessageTemplateAttachmentList(&sv.Attachments, value); err != nil { return err } - case "associationType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ContentAssociationType to be of type string, got %T instead", value) - } - sv.AssociationType = types.ContentAssociationType(jtv) + case "attributeTypes": + if err := awsRestjson1_deserializeDocumentMessageTemplateAttributeTypeList(&sv.AttributeTypes, value); err != nil { + return err } - case "contentArn": + case "channelSubtype": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected ChannelSubtype to be of type string, got %T instead", value) } - sv.ContentArn = ptr.String(jtv) + sv.ChannelSubtype = types.ChannelSubtype(jtv) } - case "contentAssociationArn": + case "content": + if err := awsRestjson1_deserializeDocumentMessageTemplateContentProvider(&sv.Content, value); err != nil { + return err + } + + case "createdTime": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.ContentAssociationArn = ptr.String(jtv) + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(t) } - case "contentAssociationId": + case "defaultAttributes": + if err := awsRestjson1_deserializeDocumentMessageTemplateAttributes(&sv.DefaultAttributes, value); err != nil { + return err + } + + case "description": 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 Description to be of type string, got %T instead", value) } - sv.ContentAssociationId = ptr.String(jtv) + sv.Description = ptr.String(jtv) } - case "contentId": + case "groupingConfiguration": + if err := awsRestjson1_deserializeDocumentGroupingConfiguration(&sv.GroupingConfiguration, value); err != nil { + return err + } + + case "isActive": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ContentId = ptr.String(jtv) + sv.IsActive = ptr.Bool(jtv) } case "knowledgeBaseArn": @@ -12690,115 +16806,136 @@ func awsRestjson1_deserializeDocumentContentAssociationData(v **types.ContentAss sv.KnowledgeBaseId = ptr.String(jtv) } - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentContentAssociationSummary(v **types.ContentAssociationSummary, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", 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.ContentAssociationSummary - if *v == nil { - sv = &types.ContentAssociationSummary{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "associationData": - if err := awsRestjson1_deserializeDocumentContentAssociationContents(&sv.AssociationData, value); err != nil { - return err + case "language": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LanguageCode to be of type string, got %T instead", value) + } + sv.Language = ptr.String(jtv) } - case "associationType": + case "lastModifiedBy": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ContentAssociationType to be of type string, got %T instead", value) + return fmt.Errorf("expected GenericArn to be of type string, got %T instead", value) } - sv.AssociationType = types.ContentAssociationType(jtv) + sv.LastModifiedBy = ptr.String(jtv) } - case "contentArn": + case "lastModifiedTime": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.ContentArn = ptr.String(jtv) + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err + } + sv.LastModifiedTime = ptr.Time(t) } - case "contentAssociationArn": + case "messageTemplateArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected ArnWithQualifier to be of type string, got %T instead", value) } - sv.ContentAssociationArn = ptr.String(jtv) + sv.MessageTemplateArn = ptr.String(jtv) } - case "contentAssociationId": + case "messageTemplateContentSha256": 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 MessageTemplateContentSha256 to be of type string, got %T instead", value) } - sv.ContentAssociationId = ptr.String(jtv) + sv.MessageTemplateContentSha256 = ptr.String(jtv) } - case "contentId": + case "messageTemplateId": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) } - sv.ContentId = ptr.String(jtv) + sv.MessageTemplateId = ptr.String(jtv) } - case "knowledgeBaseArn": + case "name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.KnowledgeBaseArn = ptr.String(jtv) + sv.Name = ptr.String(jtv) } - case "knowledgeBaseId": + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + case "versionNumber": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + return fmt.Errorf("expected Version to be json.Number, got %T instead", value) } - sv.KnowledgeBaseId = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.VersionNumber = ptr.Int64(i64) } - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentExternalSourceConfiguration(v **types.ExternalSourceConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.ExternalSourceConfiguration + if *v == nil { + sv = &types.ExternalSourceConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "configuration": + if err := awsRestjson1_deserializeDocumentConfiguration(&sv.Configuration, value); err != nil { return err } + case "source": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExternalSource to be of type string, got %T instead", value) + } + sv.Source = types.ExternalSource(jtv) + } + default: _, _ = key, value @@ -12808,7 +16945,7 @@ func awsRestjson1_deserializeDocumentContentAssociationSummary(v **types.Content return nil } -func awsRestjson1_deserializeDocumentContentAssociationSummaryList(v *[]types.ContentAssociationSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentFailureReason(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12821,20 +16958,22 @@ func awsRestjson1_deserializeDocumentContentAssociationSummaryList(v *[]types.Co return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ContentAssociationSummary + var cv []string if *v == nil { - cv = []types.ContentAssociationSummary{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col types.ContentAssociationSummary - destAddr := &col - if err := awsRestjson1_deserializeDocumentContentAssociationSummary(&destAddr, value); err != nil { - return err + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + col = jtv } - col = *destAddr cv = append(cv, col) } @@ -12842,7 +16981,7 @@ func awsRestjson1_deserializeDocumentContentAssociationSummaryList(v *[]types.Co return nil } -func awsRestjson1_deserializeDocumentContentData(v **types.ContentData, value interface{}) error { +func awsRestjson1_deserializeDocumentFixedSizeChunkingConfiguration(v **types.FixedSizeChunkingConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12855,138 +16994,178 @@ func awsRestjson1_deserializeDocumentContentData(v **types.ContentData, value in return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ContentData + var sv *types.FixedSizeChunkingConfiguration if *v == nil { - sv = &types.ContentData{} + sv = &types.FixedSizeChunkingConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "contentArn": + case "maxTokens": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) } - sv.ContentArn = ptr.String(jtv) - } - - case "contentId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + i64, err := jtv.Int64() + if err != nil { + return err } - sv.ContentId = ptr.String(jtv) + sv.MaxTokens = ptr.Int32(int32(i64)) } - case "contentType": + case "overlapPercentage": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected ContentType to be of type string, got %T instead", value) + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) } - sv.ContentType = ptr.String(jtv) - } - - case "knowledgeBaseArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + i64, err := jtv.Int64() + if err != nil { + return err } - sv.KnowledgeBaseArn = ptr.String(jtv) + sv.OverlapPercentage = ptr.Int32(int32(i64)) } - case "knowledgeBaseId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) - } - sv.KnowledgeBaseId = ptr.String(jtv) - } + default: + _, _ = key, value - case "linkOutUri": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Uri to be of type string, got %T instead", value) - } - sv.LinkOutUri = ptr.String(jtv) - } + } + } + *v = sv + return nil +} - case "metadata": - if err := awsRestjson1_deserializeDocumentContentMetadata(&sv.Metadata, value); err != nil { - return err - } +func awsRestjson1_deserializeDocumentGenerativeContentFeedbackData(v **types.GenerativeContentFeedbackData, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - case "name": + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.GenerativeContentFeedbackData + if *v == nil { + sv = &types.GenerativeContentFeedbackData{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "relevance": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Name to be of type string, got %T instead", value) + return fmt.Errorf("expected Relevance to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.Relevance = types.Relevance(jtv) } - case "revisionId": + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentGenerativeDataDetails(v **types.GenerativeDataDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.GenerativeDataDetails + if *v == nil { + sv = &types.GenerativeDataDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "completion": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) } - sv.RevisionId = ptr.String(jtv) + sv.Completion = ptr.String(jtv) } - case "status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ContentStatus to be of type string, got %T instead", value) - } - sv.Status = types.ContentStatus(jtv) + case "rankingData": + if err := awsRestjson1_deserializeDocumentRankingData(&sv.RankingData, value); err != nil { + return err } - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + case "references": + if err := awsRestjson1_deserializeDocumentDataSummaryList(&sv.References, value); err != nil { return err } - case "title": + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentGenerativeReference(v **types.GenerativeReference, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.GenerativeReference + if *v == nil { + sv = &types.GenerativeReference{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "generationId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ContentTitle to be of type string, got %T instead", value) + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) } - sv.Title = ptr.String(jtv) + sv.GenerationId = ptr.String(jtv) } - case "url": + case "modelId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Url to be of type string, got %T instead", value) - } - sv.Url = ptr.String(jtv) - } - - case "urlExpiry": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.UrlExpiry = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + return fmt.Errorf("expected LlmModelId to be of type string, got %T instead", value) } + sv.ModelId = ptr.String(jtv) } default: @@ -12998,7 +17177,7 @@ func awsRestjson1_deserializeDocumentContentData(v **types.ContentData, value in return nil } -func awsRestjson1_deserializeDocumentContentDataDetails(v **types.ContentDataDetails, value interface{}) error { +func awsRestjson1_deserializeDocumentGroupingConfiguration(v **types.GroupingConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13011,22 +17190,26 @@ func awsRestjson1_deserializeDocumentContentDataDetails(v **types.ContentDataDet return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ContentDataDetails + var sv *types.GroupingConfiguration if *v == nil { - sv = &types.ContentDataDetails{} + sv = &types.GroupingConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "rankingData": - if err := awsRestjson1_deserializeDocumentRankingData(&sv.RankingData, value); err != nil { - return err + case "criteria": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GroupingCriteria to be of type string, got %T instead", value) + } + sv.Criteria = ptr.String(jtv) } - case "textData": - if err := awsRestjson1_deserializeDocumentTextData(&sv.TextData, value); err != nil { + case "values": + if err := awsRestjson1_deserializeDocumentGroupingValues(&sv.Values, value); err != nil { return err } @@ -13039,7 +17222,7 @@ func awsRestjson1_deserializeDocumentContentDataDetails(v **types.ContentDataDet return nil } -func awsRestjson1_deserializeDocumentContentFeedbackData(v *types.ContentFeedbackData, value interface{}) error { +func awsRestjson1_deserializeDocumentGroupingValues(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13047,39 +17230,35 @@ func awsRestjson1_deserializeDocumentContentFeedbackData(v *types.ContentFeedbac return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var uv types.ContentFeedbackData -loop: - for key, value := range shape { - if value == nil { - continue - } - switch key { - case "generativeContentFeedbackData": - var mv types.GenerativeContentFeedbackData - destAddr := &mv - if err := awsRestjson1_deserializeDocumentGenerativeContentFeedbackData(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.ContentFeedbackDataMemberGenerativeContentFeedbackData{Value: mv} - break loop - - default: - uv = &types.UnknownUnionMember{Tag: key} - break loop + 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 GroupingValue to be of type string, got %T instead", value) + } + col = jtv } + cv = append(cv, col) + } - *v = uv + *v = cv return nil } -func awsRestjson1_deserializeDocumentContentMetadata(v *map[string]string, value interface{}) error { +func awsRestjson1_deserializeDocumentHeaders(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13115,7 +17294,7 @@ func awsRestjson1_deserializeDocumentContentMetadata(v *map[string]string, value return nil } -func awsRestjson1_deserializeDocumentContentReference(v **types.ContentReference, value interface{}) error { +func awsRestjson1_deserializeDocumentHierarchicalChunkingConfiguration(v **types.HierarchicalChunkingConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13128,67 +17307,166 @@ func awsRestjson1_deserializeDocumentContentReference(v **types.ContentReference return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ContentReference + var sv *types.HierarchicalChunkingConfiguration if *v == nil { - sv = &types.ContentReference{} + sv = &types.HierarchicalChunkingConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "contentArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.ContentArn = ptr.String(jtv) + case "levelConfigurations": + if err := awsRestjson1_deserializeDocumentHierarchicalChunkingLevelConfigurations(&sv.LevelConfigurations, value); err != nil { + return err } - case "contentId": + case "overlapTokens": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) } - sv.ContentId = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.OverlapTokens = ptr.Int32(int32(i64)) } - case "knowledgeBaseArn": + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentHierarchicalChunkingLevelConfiguration(v **types.HierarchicalChunkingLevelConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.HierarchicalChunkingLevelConfiguration + if *v == nil { + sv = &types.HierarchicalChunkingLevelConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "maxTokens": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) } - sv.KnowledgeBaseArn = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaxTokens = ptr.Int32(int32(i64)) } - case "knowledgeBaseId": + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentHierarchicalChunkingLevelConfigurations(v *[]types.HierarchicalChunkingLevelConfiguration, 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.HierarchicalChunkingLevelConfiguration + if *v == nil { + cv = []types.HierarchicalChunkingLevelConfiguration{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.HierarchicalChunkingLevelConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentHierarchicalChunkingLevelConfiguration(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentHighlight(v **types.Highlight, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.Highlight + if *v == nil { + sv = &types.Highlight{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "beginOffsetInclusive": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + return fmt.Errorf("expected HighlightOffset to be json.Number, got %T instead", value) } - sv.KnowledgeBaseId = ptr.String(jtv) - } - - case "referenceType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ReferenceType to be of type string, got %T instead", value) + i64, err := jtv.Int64() + if err != nil { + return err } - sv.ReferenceType = types.ReferenceType(jtv) + sv.BeginOffsetInclusive = int32(i64) } - case "sourceURL": + case "endOffsetExclusive": 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 HighlightOffset to be json.Number, got %T instead", value) } - sv.SourceURL = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.EndOffsetExclusive = int32(i64) } default: @@ -13200,7 +17478,41 @@ func awsRestjson1_deserializeDocumentContentReference(v **types.ContentReference return nil } -func awsRestjson1_deserializeDocumentContentSummary(v **types.ContentSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentHighlights(v *[]types.Highlight, 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.Highlight + if *v == nil { + cv = []types.Highlight{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Highlight + destAddr := &col + if err := awsRestjson1_deserializeDocumentHighlight(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentImportJobData(v **types.ImportJobData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13213,40 +17525,61 @@ func awsRestjson1_deserializeDocumentContentSummary(v **types.ContentSummary, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ContentSummary + var sv *types.ImportJobData if *v == nil { - sv = &types.ContentSummary{} + sv = &types.ImportJobData{} } else { sv = *v } for key, value := range shape { switch key { - case "contentArn": + case "createdTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "externalSourceConfiguration": + if err := awsRestjson1_deserializeDocumentExternalSourceConfiguration(&sv.ExternalSourceConfiguration, value); err != nil { + return err + } + + case "failedRecordReport": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.ContentArn = ptr.String(jtv) + sv.FailedRecordReport = ptr.String(jtv) } - case "contentId": + case "importJobId": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) } - sv.ContentId = ptr.String(jtv) + sv.ImportJobId = ptr.String(jtv) } - case "contentType": + case "importJobType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ContentType to be of type string, got %T instead", value) + return fmt.Errorf("expected ImportJobType to be of type string, got %T instead", value) } - sv.ContentType = ptr.String(jtv) + sv.ImportJobType = types.ImportJobType(jtv) } case "knowledgeBaseArn": @@ -13267,166 +17600,80 @@ func awsRestjson1_deserializeDocumentContentSummary(v **types.ContentSummary, va sv.KnowledgeBaseId = 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 "metadata": if err := awsRestjson1_deserializeDocumentContentMetadata(&sv.Metadata, value); err != nil { return err } - case "name": + case "status": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Name to be of type string, got %T instead", value) + return fmt.Errorf("expected ImportJobStatus to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.Status = types.ImportJobStatus(jtv) } - case "revisionId": + case "uploadId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + return fmt.Errorf("expected UploadId to be of type string, got %T instead", value) } - sv.RevisionId = ptr.String(jtv) + sv.UploadId = ptr.String(jtv) } - case "status": + case "url": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ContentStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.Status = types.ContentStatus(jtv) - } - - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err + sv.Url = ptr.String(jtv) } - case "title": + case "urlExpiry": if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ContentTitle to be of type string, got %T instead", value) - } - sv.Title = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentContentSummaryList(v *[]types.ContentSummary, 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.ContentSummary - if *v == nil { - cv = []types.ContentSummary{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.ContentSummary - destAddr := &col - if err := awsRestjson1_deserializeDocumentContentSummary(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentDataDetails(v *types.DataDetails, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var uv types.DataDetails -loop: - for key, value := range shape { - if value == nil { - continue - } - switch key { - case "contentData": - var mv types.ContentDataDetails - destAddr := &mv - if err := awsRestjson1_deserializeDocumentContentDataDetails(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.DataDetailsMemberContentData{Value: mv} - break loop - - case "generativeData": - var mv types.GenerativeDataDetails - destAddr := &mv - if err := awsRestjson1_deserializeDocumentGenerativeDataDetails(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.DataDetailsMemberGenerativeData{Value: mv} - break loop - - case "intentDetectedData": - var mv types.IntentDetectedDataDetails - destAddr := &mv - if err := awsRestjson1_deserializeDocumentIntentDetectedDataDetails(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.DataDetailsMemberIntentDetectedData{Value: mv} - break loop + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UrlExpiry = ptr.Time(smithytime.ParseEpochSeconds(f64)) - case "sourceContentData": - var mv types.SourceContentDataDetails - destAddr := &mv - if err := awsRestjson1_deserializeDocumentSourceContentDataDetails(&destAddr, value); err != nil { - return err + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } } - mv = *destAddr - uv = &types.DataDetailsMemberSourceContentData{Value: mv} - break loop default: - uv = &types.UnknownUnionMember{Tag: key} - break loop + _, _ = key, value } } - *v = uv + *v = sv return nil } -func awsRestjson1_deserializeDocumentDataReference(v *types.DataReference, value interface{}) error { +func awsRestjson1_deserializeDocumentImportJobList(v *[]types.ImportJobSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13434,49 +17681,33 @@ func awsRestjson1_deserializeDocumentDataReference(v *types.DataReference, value return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var uv types.DataReference -loop: - for key, value := range shape { - if value == nil { - continue - } - switch key { - case "contentReference": - var mv types.ContentReference - destAddr := &mv - if err := awsRestjson1_deserializeDocumentContentReference(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.DataReferenceMemberContentReference{Value: mv} - break loop - - case "generativeReference": - var mv types.GenerativeReference - destAddr := &mv - if err := awsRestjson1_deserializeDocumentGenerativeReference(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.DataReferenceMemberGenerativeReference{Value: mv} - break loop - - default: - uv = &types.UnknownUnionMember{Tag: key} - break loop + var cv []types.ImportJobSummary + if *v == nil { + cv = []types.ImportJobSummary{} + } else { + cv = *v + } + for _, value := range shape { + var col types.ImportJobSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentImportJobSummary(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = uv + *v = cv return nil } -func awsRestjson1_deserializeDocumentDataSummary(v **types.DataSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentImportJobSummary(v **types.ImportJobSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13489,25 +17720,111 @@ func awsRestjson1_deserializeDocumentDataSummary(v **types.DataSummary, value in return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataSummary + var sv *types.ImportJobSummary if *v == nil { - sv = &types.DataSummary{} + sv = &types.ImportJobSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "details": - if err := awsRestjson1_deserializeDocumentDataDetails(&sv.Details, value); err != nil { + case "createdTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "externalSourceConfiguration": + if err := awsRestjson1_deserializeDocumentExternalSourceConfiguration(&sv.ExternalSourceConfiguration, value); err != nil { return err } - case "reference": - if err := awsRestjson1_deserializeDocumentDataReference(&sv.Reference, value); err != nil { + case "importJobId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.ImportJobId = ptr.String(jtv) + } + + case "importJobType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ImportJobType to be of type string, got %T instead", value) + } + sv.ImportJobType = types.ImportJobType(jtv) + } + + case "knowledgeBaseArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.KnowledgeBaseArn = ptr.String(jtv) + } + + case "knowledgeBaseId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.KnowledgeBaseId = 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 "metadata": + if err := awsRestjson1_deserializeDocumentContentMetadata(&sv.Metadata, value); err != nil { return err } + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ImportJobStatus to be of type string, got %T instead", value) + } + sv.Status = types.ImportJobStatus(jtv) + } + + case "uploadId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UploadId to be of type string, got %T instead", value) + } + sv.UploadId = ptr.String(jtv) + } + default: _, _ = key, value @@ -13517,7 +17834,7 @@ func awsRestjson1_deserializeDocumentDataSummary(v **types.DataSummary, value in return nil } -func awsRestjson1_deserializeDocumentDataSummaryList(v *[]types.DataSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentIntentDetectedDataDetails(v **types.IntentDetectedDataDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13525,33 +17842,48 @@ func awsRestjson1_deserializeDocumentDataSummaryList(v *[]types.DataSummary, val 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.DataSummary + var sv *types.IntentDetectedDataDetails if *v == nil { - cv = []types.DataSummary{} + sv = &types.IntentDetectedDataDetails{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.DataSummary - destAddr := &col - if err := awsRestjson1_deserializeDocumentDataSummary(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "intent": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) + } + sv.Intent = ptr.String(jtv) + } + + case "intentId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.IntentId = ptr.String(jtv) + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentDocument(v **types.Document, value interface{}) error { +func awsRestjson1_deserializeDocumentKnowledgeBaseAssociationConfigurationData(v **types.KnowledgeBaseAssociationConfigurationData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13564,28 +17896,40 @@ func awsRestjson1_deserializeDocumentDocument(v **types.Document, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Document + var sv *types.KnowledgeBaseAssociationConfigurationData if *v == nil { - sv = &types.Document{} + sv = &types.KnowledgeBaseAssociationConfigurationData{} } else { sv = *v } for key, value := range shape { switch key { - case "contentReference": - if err := awsRestjson1_deserializeDocumentContentReference(&sv.ContentReference, value); err != nil { + case "contentTagFilter": + if err := awsRestjson1_deserializeDocumentTagFilter(&sv.ContentTagFilter, value); err != nil { return err } - case "excerpt": - if err := awsRestjson1_deserializeDocumentDocumentText(&sv.Excerpt, 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 "title": - if err := awsRestjson1_deserializeDocumentDocumentText(&sv.Title, value); err != nil { - return err + case "overrideKnowledgeBaseSearchType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected KnowledgeBaseSearchType to be of type string, got %T instead", value) + } + sv.OverrideKnowledgeBaseSearchType = types.KnowledgeBaseSearchType(jtv) } default: @@ -13597,7 +17941,7 @@ func awsRestjson1_deserializeDocumentDocument(v **types.Document, value interfac return nil } -func awsRestjson1_deserializeDocumentDocumentText(v **types.DocumentText, value interface{}) error { +func awsRestjson1_deserializeDocumentKnowledgeBaseAssociationData(v **types.KnowledgeBaseAssociationData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13610,27 +17954,31 @@ func awsRestjson1_deserializeDocumentDocumentText(v **types.DocumentText, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DocumentText + var sv *types.KnowledgeBaseAssociationData if *v == nil { - sv = &types.DocumentText{} + sv = &types.KnowledgeBaseAssociationData{} } else { sv = *v } for key, value := range shape { switch key { - case "highlights": - if err := awsRestjson1_deserializeDocumentHighlights(&sv.Highlights, value); err != nil { - return err + case "knowledgeBaseArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.KnowledgeBaseArn = ptr.String(jtv) } - case "text": + case "knowledgeBaseId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) } - sv.Text = ptr.String(jtv) + sv.KnowledgeBaseId = ptr.String(jtv) } default: @@ -13642,7 +17990,7 @@ func awsRestjson1_deserializeDocumentDocumentText(v **types.DocumentText, value return nil } -func awsRestjson1_deserializeDocumentExternalSourceConfiguration(v **types.ExternalSourceConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentKnowledgeBaseData(v **types.KnowledgeBaseData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13655,27 +18003,122 @@ func awsRestjson1_deserializeDocumentExternalSourceConfiguration(v **types.Exter return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ExternalSourceConfiguration + var sv *types.KnowledgeBaseData if *v == nil { - sv = &types.ExternalSourceConfiguration{} + sv = &types.KnowledgeBaseData{} } else { sv = *v } for key, value := range shape { switch key { - case "configuration": - if err := awsRestjson1_deserializeDocumentConfiguration(&sv.Configuration, value); err != nil { + 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 "ingestionFailureReasons": + if err := awsRestjson1_deserializeDocumentFailureReason(&sv.IngestionFailureReasons, value); err != nil { return err } - case "source": + case "ingestionStatus": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ExternalSource to be of type string, got %T instead", value) + return fmt.Errorf("expected SyncStatus to be of type string, got %T instead", value) } - sv.Source = types.ExternalSource(jtv) + sv.IngestionStatus = types.SyncStatus(jtv) + } + + case "knowledgeBaseArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.KnowledgeBaseArn = ptr.String(jtv) + } + + case "knowledgeBaseId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.KnowledgeBaseId = ptr.String(jtv) + } + + case "knowledgeBaseType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected KnowledgeBaseType to be of type string, got %T instead", value) + } + sv.KnowledgeBaseType = types.KnowledgeBaseType(jtv) + } + + case "lastContentModificationTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastContentModificationTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp 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 "renderingConfiguration": + if err := awsRestjson1_deserializeDocumentRenderingConfiguration(&sv.RenderingConfiguration, value); err != nil { + return err + } + + case "serverSideEncryptionConfiguration": + if err := awsRestjson1_deserializeDocumentServerSideEncryptionConfiguration(&sv.ServerSideEncryptionConfiguration, value); err != nil { + return err + } + + case "sourceConfiguration": + if err := awsRestjson1_deserializeDocumentSourceConfiguration(&sv.SourceConfiguration, value); err != nil { + return err + } + + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected KnowledgeBaseStatus to be of type string, got %T instead", value) + } + sv.Status = types.KnowledgeBaseStatus(jtv) + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + case "vectorIngestionConfiguration": + if err := awsRestjson1_deserializeDocumentVectorIngestionConfiguration(&sv.VectorIngestionConfiguration, value); err != nil { + return err } default: @@ -13687,7 +18130,7 @@ func awsRestjson1_deserializeDocumentExternalSourceConfiguration(v **types.Exter return nil } -func awsRestjson1_deserializeDocumentFailureReason(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentKnowledgeBaseList(v *[]types.KnowledgeBaseSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13700,22 +18143,20 @@ func awsRestjson1_deserializeDocumentFailureReason(v *[]string, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var cv []types.KnowledgeBaseSummary if *v == nil { - cv = []string{} + cv = []types.KnowledgeBaseSummary{} } else { cv = *v } for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - col = jtv + var col types.KnowledgeBaseSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentKnowledgeBaseSummary(&destAddr, value); err != nil { + return err } + col = *destAddr cv = append(cv, col) } @@ -13723,7 +18164,7 @@ func awsRestjson1_deserializeDocumentFailureReason(v *[]string, value interface{ return nil } -func awsRestjson1_deserializeDocumentFixedSizeChunkingConfiguration(v **types.FixedSizeChunkingConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentKnowledgeBaseSummary(v **types.KnowledgeBaseSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13736,39 +18177,92 @@ func awsRestjson1_deserializeDocumentFixedSizeChunkingConfiguration(v **types.Fi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FixedSizeChunkingConfiguration + var sv *types.KnowledgeBaseSummary if *v == nil { - sv = &types.FixedSizeChunkingConfiguration{} + sv = &types.KnowledgeBaseSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "maxTokens": + case "description": 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) + return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - i64, err := jtv.Int64() - if err != nil { - return err + sv.Description = ptr.String(jtv) + } + + case "knowledgeBaseArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.MaxTokens = ptr.Int32(int32(i64)) + sv.KnowledgeBaseArn = ptr.String(jtv) } - case "overlapPercentage": + case "knowledgeBaseId": 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) + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) } - i64, err := jtv.Int64() - if err != nil { - return err + sv.KnowledgeBaseId = ptr.String(jtv) + } + + case "knowledgeBaseType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected KnowledgeBaseType to be of type string, got %T instead", value) } - sv.OverlapPercentage = ptr.Int32(int32(i64)) + sv.KnowledgeBaseType = types.KnowledgeBaseType(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 "renderingConfiguration": + if err := awsRestjson1_deserializeDocumentRenderingConfiguration(&sv.RenderingConfiguration, value); err != nil { + return err + } + + case "serverSideEncryptionConfiguration": + if err := awsRestjson1_deserializeDocumentServerSideEncryptionConfiguration(&sv.ServerSideEncryptionConfiguration, value); err != nil { + return err + } + + case "sourceConfiguration": + if err := awsRestjson1_deserializeDocumentSourceConfiguration(&sv.SourceConfiguration, value); err != nil { + return err + } + + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected KnowledgeBaseStatus to be of type string, got %T instead", value) + } + sv.Status = types.KnowledgeBaseStatus(jtv) + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + case "vectorIngestionConfiguration": + if err := awsRestjson1_deserializeDocumentVectorIngestionConfiguration(&sv.VectorIngestionConfiguration, value); err != nil { + return err } default: @@ -13780,7 +18274,7 @@ func awsRestjson1_deserializeDocumentFixedSizeChunkingConfiguration(v **types.Fi return nil } -func awsRestjson1_deserializeDocumentGenerativeContentFeedbackData(v **types.GenerativeContentFeedbackData, value interface{}) error { +func awsRestjson1_deserializeDocumentManagedSourceConfiguration(v *types.ManagedSourceConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13793,34 +18287,34 @@ func awsRestjson1_deserializeDocumentGenerativeContentFeedbackData(v **types.Gen return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GenerativeContentFeedbackData - if *v == nil { - sv = &types.GenerativeContentFeedbackData{} - } else { - sv = *v - } - + var uv types.ManagedSourceConfiguration +loop: for key, value := range shape { + if value == nil { + continue + } switch key { - case "relevance": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Relevance to be of type string, got %T instead", value) - } - sv.Relevance = types.Relevance(jtv) + case "webCrawlerConfiguration": + var mv types.WebCrawlerConfiguration + destAddr := &mv + if err := awsRestjson1_deserializeDocumentWebCrawlerConfiguration(&destAddr, value); err != nil { + return err } + mv = *destAddr + uv = &types.ManagedSourceConfigurationMemberWebCrawlerConfiguration{Value: mv} + break loop default: - _, _ = key, value + uv = &types.UnknownUnionMember{Tag: key} + break loop } } - *v = sv + *v = uv return nil } -func awsRestjson1_deserializeDocumentGenerativeDataDetails(v **types.GenerativeDataDetails, value interface{}) error { +func awsRestjson1_deserializeDocumentManualSearchAIAgentConfiguration(v **types.ManualSearchAIAgentConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13833,31 +18327,26 @@ func awsRestjson1_deserializeDocumentGenerativeDataDetails(v **types.GenerativeD return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GenerativeDataDetails + var sv *types.ManualSearchAIAgentConfiguration if *v == nil { - sv = &types.GenerativeDataDetails{} + sv = &types.ManualSearchAIAgentConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "completion": + case "answerGenerationAIPromptId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) + return fmt.Errorf("expected UuidWithQualifier to be of type string, got %T instead", value) } - sv.Completion = ptr.String(jtv) - } - - case "rankingData": - if err := awsRestjson1_deserializeDocumentRankingData(&sv.RankingData, value); err != nil { - return err + sv.AnswerGenerationAIPromptId = ptr.String(jtv) } - case "references": - if err := awsRestjson1_deserializeDocumentDataSummaryList(&sv.References, value); err != nil { + case "associationConfigurations": + if err := awsRestjson1_deserializeDocumentAssociationConfigurationList(&sv.AssociationConfigurations, value); err != nil { return err } @@ -13870,7 +18359,7 @@ func awsRestjson1_deserializeDocumentGenerativeDataDetails(v **types.GenerativeD return nil } -func awsRestjson1_deserializeDocumentGenerativeReference(v **types.GenerativeReference, value interface{}) error { +func awsRestjson1_deserializeDocumentMessageTemplateAttachment(v **types.MessageTemplateAttachment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13883,76 +18372,75 @@ func awsRestjson1_deserializeDocumentGenerativeReference(v **types.GenerativeRef return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GenerativeReference + var sv *types.MessageTemplateAttachment if *v == nil { - sv = &types.GenerativeReference{} + sv = &types.MessageTemplateAttachment{} } else { sv = *v } for key, value := range shape { switch key { - case "generationId": + case "attachmentId": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) } - sv.GenerationId = ptr.String(jtv) + sv.AttachmentId = ptr.String(jtv) } - case "modelId": + case "contentDisposition": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected LlmModelId to be of type string, got %T instead", value) + return fmt.Errorf("expected ContentDisposition to be of type string, got %T instead", value) } - sv.ModelId = ptr.String(jtv) + sv.ContentDisposition = types.ContentDisposition(jtv) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentGroupingConfiguration(v **types.GroupingConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of 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 "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AttachmentFileName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } - var sv *types.GroupingConfiguration - if *v == nil { - sv = &types.GroupingConfiguration{} - } else { - sv = *v - } + case "uploadedTime": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) + } + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err + } + sv.UploadedTime = ptr.Time(t) + } - for key, value := range shape { - switch key { - case "criteria": + case "url": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected GroupingCriteria to be of type string, got %T instead", value) + return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.Criteria = ptr.String(jtv) + sv.Url = ptr.String(jtv) } - case "values": - if err := awsRestjson1_deserializeDocumentGroupingValues(&sv.Values, value); err != nil { - return err + case "urlExpiry": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) + } + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err + } + sv.UrlExpiry = ptr.Time(t) } default: @@ -13964,7 +18452,7 @@ func awsRestjson1_deserializeDocumentGroupingConfiguration(v **types.GroupingCon return nil } -func awsRestjson1_deserializeDocumentGroupingValues(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentMessageTemplateAttachmentList(v *[]types.MessageTemplateAttachment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13977,22 +18465,20 @@ func awsRestjson1_deserializeDocumentGroupingValues(v *[]string, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var cv []types.MessageTemplateAttachment if *v == nil { - cv = []string{} + cv = []types.MessageTemplateAttachment{} } else { cv = *v } for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected GroupingValue to be of type string, got %T instead", value) - } - col = jtv + var col types.MessageTemplateAttachment + destAddr := &col + if err := awsRestjson1_deserializeDocumentMessageTemplateAttachment(&destAddr, value); err != nil { + return err } + col = *destAddr cv = append(cv, col) } @@ -14000,7 +18486,7 @@ func awsRestjson1_deserializeDocumentGroupingValues(v *[]string, value interface return nil } -func awsRestjson1_deserializeDocumentHeaders(v *map[string]string, value interface{}) error { +func awsRestjson1_deserializeDocumentMessageTemplateAttributeKeyList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14008,35 +18494,35 @@ func awsRestjson1_deserializeDocumentHeaders(v *map[string]string, value interfa return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]string + var cv []string if *v == nil { - mv = map[string]string{} + cv = []string{} } else { - mv = *v + cv = *v } - for key, value := range shape { - var parsedVal string + for _, value := range shape { + var col string if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + return fmt.Errorf("expected MessageTemplateAttributeKey to be of type string, got %T instead", value) } - parsedVal = jtv + col = jtv } - mv[key] = parsedVal + cv = append(cv, col) } - *v = mv + *v = cv return nil } -func awsRestjson1_deserializeDocumentHierarchicalChunkingConfiguration(v **types.HierarchicalChunkingConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentMessageTemplateAttributes(v **types.MessageTemplateAttributes, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14049,75 +18535,33 @@ func awsRestjson1_deserializeDocumentHierarchicalChunkingConfiguration(v **types return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.HierarchicalChunkingConfiguration + var sv *types.MessageTemplateAttributes if *v == nil { - sv = &types.HierarchicalChunkingConfiguration{} + sv = &types.MessageTemplateAttributes{} } else { sv = *v } for key, value := range shape { switch key { - case "levelConfigurations": - if err := awsRestjson1_deserializeDocumentHierarchicalChunkingLevelConfigurations(&sv.LevelConfigurations, value); err != nil { + case "agentAttributes": + if err := awsRestjson1_deserializeDocumentAgentAttributes(&sv.AgentAttributes, value); err != nil { return err } - case "overlapTokens": - 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.OverlapTokens = ptr.Int32(int32(i64)) + case "customAttributes": + if err := awsRestjson1_deserializeDocumentCustomAttributes(&sv.CustomAttributes, value); err != nil { + return err } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentHierarchicalChunkingLevelConfiguration(v **types.HierarchicalChunkingLevelConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", 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.HierarchicalChunkingLevelConfiguration - if *v == nil { - sv = &types.HierarchicalChunkingLevelConfiguration{} - } else { - sv = *v - } + case "customerProfileAttributes": + if err := awsRestjson1_deserializeDocumentCustomerProfileAttributes(&sv.CustomerProfileAttributes, value); err != nil { + return err + } - for key, value := range shape { - switch key { - case "maxTokens": - 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.MaxTokens = ptr.Int32(int32(i64)) + case "systemAttributes": + if err := awsRestjson1_deserializeDocumentSystemAttributes(&sv.SystemAttributes, value); err != nil { + return err } default: @@ -14129,7 +18573,7 @@ func awsRestjson1_deserializeDocumentHierarchicalChunkingLevelConfiguration(v ** return nil } -func awsRestjson1_deserializeDocumentHierarchicalChunkingLevelConfigurations(v *[]types.HierarchicalChunkingLevelConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentMessageTemplateAttributeTypeList(v *[]types.MessageTemplateAttributeType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14142,20 +18586,22 @@ func awsRestjson1_deserializeDocumentHierarchicalChunkingLevelConfigurations(v * return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.HierarchicalChunkingLevelConfiguration + var cv []types.MessageTemplateAttributeType if *v == nil { - cv = []types.HierarchicalChunkingLevelConfiguration{} + cv = []types.MessageTemplateAttributeType{} } else { cv = *v } for _, value := range shape { - var col types.HierarchicalChunkingLevelConfiguration - destAddr := &col - if err := awsRestjson1_deserializeDocumentHierarchicalChunkingLevelConfiguration(&destAddr, value); err != nil { - return err + var col types.MessageTemplateAttributeType + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeType to be of type string, got %T instead", value) + } + col = types.MessageTemplateAttributeType(jtv) } - col = *destAddr cv = append(cv, col) } @@ -14163,7 +18609,7 @@ func awsRestjson1_deserializeDocumentHierarchicalChunkingLevelConfigurations(v * return nil } -func awsRestjson1_deserializeDocumentHighlight(v **types.Highlight, value interface{}) error { +func awsRestjson1_deserializeDocumentMessageTemplateBodyContentProvider(v *types.MessageTemplateBodyContentProvider, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14176,51 +18622,36 @@ func awsRestjson1_deserializeDocumentHighlight(v **types.Highlight, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Highlight - if *v == nil { - sv = &types.Highlight{} - } else { - sv = *v - } - + var uv types.MessageTemplateBodyContentProvider +loop: for key, value := range shape { + if value == nil { + continue + } switch key { - case "beginOffsetInclusive": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected HighlightOffset to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.BeginOffsetInclusive = int32(i64) - } - - case "endOffsetExclusive": + case "content": + var mv string if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected HighlightOffset to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected NonEmptyUnlimitedString to be of type string, got %T instead", value) } - sv.EndOffsetExclusive = int32(i64) + mv = jtv } + uv = &types.MessageTemplateBodyContentProviderMemberContent{Value: mv} + break loop default: - _, _ = key, value + uv = &types.UnknownUnionMember{Tag: key} + break loop } } - *v = sv + *v = uv return nil } -func awsRestjson1_deserializeDocumentHighlights(v *[]types.Highlight, value interface{}) error { +func awsRestjson1_deserializeDocumentMessageTemplateContentProvider(v *types.MessageTemplateContentProvider, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14228,33 +18659,49 @@ func awsRestjson1_deserializeDocumentHighlights(v *[]types.Highlight, value inte 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.Highlight - if *v == nil { - cv = []types.Highlight{} - } else { - cv = *v + return fmt.Errorf("unexpected JSON type %v", value) } - for _, value := range shape { - var col types.Highlight - destAddr := &col - if err := awsRestjson1_deserializeDocumentHighlight(&destAddr, value); err != nil { - return err + var uv types.MessageTemplateContentProvider +loop: + for key, value := range shape { + if value == nil { + continue } - col = *destAddr - cv = append(cv, col) + switch key { + case "email": + var mv types.EmailMessageTemplateContent + destAddr := &mv + if err := awsRestjson1_deserializeDocumentEmailMessageTemplateContent(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.MessageTemplateContentProviderMemberEmail{Value: mv} + break loop + + case "sms": + var mv types.SMSMessageTemplateContent + destAddr := &mv + if err := awsRestjson1_deserializeDocumentSMSMessageTemplateContent(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.MessageTemplateContentProviderMemberSms{Value: mv} + break loop + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } } - *v = cv + *v = uv return nil } -func awsRestjson1_deserializeDocumentImportJobData(v **types.ImportJobData, value interface{}) error { +func awsRestjson1_deserializeDocumentMessageTemplateData(v **types.MessageTemplateData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14267,61 +18714,64 @@ func awsRestjson1_deserializeDocumentImportJobData(v **types.ImportJobData, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ImportJobData + var sv *types.MessageTemplateData if *v == nil { - sv = &types.ImportJobData{} + sv = &types.MessageTemplateData{} } else { sv = *v } for key, value := range shape { switch key { - case "createdTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "externalSourceConfiguration": - if err := awsRestjson1_deserializeDocumentExternalSourceConfiguration(&sv.ExternalSourceConfiguration, value); err != nil { + case "attributeTypes": + if err := awsRestjson1_deserializeDocumentMessageTemplateAttributeTypeList(&sv.AttributeTypes, value); err != nil { return err } - case "failedRecordReport": + case "channelSubtype": 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 ChannelSubtype to be of type string, got %T instead", value) } - sv.FailedRecordReport = ptr.String(jtv) + sv.ChannelSubtype = types.ChannelSubtype(jtv) } - case "importJobId": + case "content": + if err := awsRestjson1_deserializeDocumentMessageTemplateContentProvider(&sv.Content, value); err != nil { + return err + } + + case "createdTime": 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 Timestamp to be of type string, got %T instead", value) } - sv.ImportJobId = ptr.String(jtv) + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(t) } - case "importJobType": + case "defaultAttributes": + if err := awsRestjson1_deserializeDocumentMessageTemplateAttributes(&sv.DefaultAttributes, value); err != nil { + return err + } + + case "description": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ImportJobType to be of type string, got %T instead", value) + return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.ImportJobType = types.ImportJobType(jtv) + sv.Description = ptr.String(jtv) + } + + case "groupingConfiguration": + if err := awsRestjson1_deserializeDocumentGroupingConfiguration(&sv.GroupingConfiguration, value); err != nil { + return err } case "knowledgeBaseArn": @@ -14342,68 +18792,76 @@ func awsRestjson1_deserializeDocumentImportJobData(v **types.ImportJobData, valu sv.KnowledgeBaseId = ptr.String(jtv) } - case "lastModifiedTime": + case "language": 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) - + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LanguageCode to be of type string, got %T instead", value) } + sv.Language = ptr.String(jtv) } - case "metadata": - if err := awsRestjson1_deserializeDocumentContentMetadata(&sv.Metadata, value); err != nil { - return err + case "lastModifiedBy": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GenericArn to be of type string, got %T instead", value) + } + sv.LastModifiedBy = ptr.String(jtv) } - case "status": + case "lastModifiedTime": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ImportJobStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.Status = types.ImportJobStatus(jtv) + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err + } + sv.LastModifiedTime = ptr.Time(t) } - case "uploadId": + case "messageTemplateArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected UploadId to be of type string, got %T instead", value) + return fmt.Errorf("expected ArnWithQualifier to be of type string, got %T instead", value) } - sv.UploadId = ptr.String(jtv) + sv.MessageTemplateArn = ptr.String(jtv) } - case "url": + case "messageTemplateContentSha256": 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 MessageTemplateContentSha256 to be of type string, got %T instead", value) } - sv.Url = ptr.String(jtv) + sv.MessageTemplateContentSha256 = ptr.String(jtv) } - case "urlExpiry": + case "messageTemplateId": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.UrlExpiry = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.MessageTemplateId = 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 "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err } default: @@ -14415,41 +18873,7 @@ func awsRestjson1_deserializeDocumentImportJobData(v **types.ImportJobData, valu return nil } -func awsRestjson1_deserializeDocumentImportJobList(v *[]types.ImportJobSummary, 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.ImportJobSummary - if *v == nil { - cv = []types.ImportJobSummary{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.ImportJobSummary - destAddr := &col - if err := awsRestjson1_deserializeDocumentImportJobSummary(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentImportJobSummary(v **types.ImportJobSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentMessageTemplateSearchResultData(v **types.MessageTemplateSearchResultData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14462,52 +18886,58 @@ func awsRestjson1_deserializeDocumentImportJobSummary(v **types.ImportJobSummary return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ImportJobSummary + var sv *types.MessageTemplateSearchResultData if *v == nil { - sv = &types.ImportJobSummary{} + sv = &types.MessageTemplateSearchResultData{} } else { sv = *v } for key, value := range shape { switch key { - case "createdTime": + case "channelSubtype": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ChannelSubtype to be of type string, got %T instead", value) } + sv.ChannelSubtype = types.ChannelSubtype(jtv) } - case "externalSourceConfiguration": - if err := awsRestjson1_deserializeDocumentExternalSourceConfiguration(&sv.ExternalSourceConfiguration, value); err != nil { - return err + case "createdTime": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) + } + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(t) } - case "importJobId": + case "description": 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 Description to be of type string, got %T instead", value) } - sv.ImportJobId = ptr.String(jtv) + sv.Description = ptr.String(jtv) } - case "importJobType": + case "groupingConfiguration": + if err := awsRestjson1_deserializeDocumentGroupingConfiguration(&sv.GroupingConfiguration, value); err != nil { + return err + } + + case "isActive": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected ImportJobType to be of type string, got %T instead", value) + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ImportJobType = types.ImportJobType(jtv) + sv.IsActive = ptr.Bool(jtv) } case "knowledgeBaseArn": @@ -14528,150 +18958,80 @@ func awsRestjson1_deserializeDocumentImportJobSummary(v **types.ImportJobSummary sv.KnowledgeBaseId = ptr.String(jtv) } - case "lastModifiedTime": + case "language": 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) - + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LanguageCode to be of type string, got %T instead", value) } + sv.Language = ptr.String(jtv) } - case "metadata": - if err := awsRestjson1_deserializeDocumentContentMetadata(&sv.Metadata, value); err != nil { - return err + case "lastModifiedBy": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GenericArn to be of type string, got %T instead", value) + } + sv.LastModifiedBy = ptr.String(jtv) } - case "status": + case "lastModifiedTime": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ImportJobStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) } - sv.Status = types.ImportJobStatus(jtv) + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err + } + sv.LastModifiedTime = ptr.Time(t) } - case "uploadId": + case "messageTemplateArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected UploadId to be of type string, got %T instead", value) + return fmt.Errorf("expected ArnWithQualifier to be of type string, got %T instead", value) } - sv.UploadId = ptr.String(jtv) + sv.MessageTemplateArn = ptr.String(jtv) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentIntentDetectedDataDetails(v **types.IntentDetectedDataDetails, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", 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.IntentDetectedDataDetails - if *v == nil { - sv = &types.IntentDetectedDataDetails{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "intent": + case "messageTemplateId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) } - sv.Intent = ptr.String(jtv) + sv.MessageTemplateId = ptr.String(jtv) } - case "intentId": + case "name": 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 Name to be of type string, got %T instead", value) } - sv.IntentId = ptr.String(jtv) + sv.Name = ptr.String(jtv) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentKnowledgeBaseAssociationConfigurationData(v **types.KnowledgeBaseAssociationConfigurationData, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", 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.KnowledgeBaseAssociationConfigurationData - if *v == nil { - sv = &types.KnowledgeBaseAssociationConfigurationData{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "contentTagFilter": - if err := awsRestjson1_deserializeDocumentTagFilter(&sv.ContentTagFilter, value); err != nil { + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { return err } - case "maxResults": + case "versionNumber": if value != nil { jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected MaxResults to be json.Number, got %T instead", value) + return fmt.Errorf("expected Version to be json.Number, got %T instead", value) } i64, err := jtv.Int64() if err != nil { return err } - sv.MaxResults = ptr.Int32(int32(i64)) - } - - case "overrideKnowledgeBaseSearchType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected KnowledgeBaseSearchType to be of type string, got %T instead", value) - } - sv.OverrideKnowledgeBaseSearchType = types.KnowledgeBaseSearchType(jtv) + sv.VersionNumber = ptr.Int64(i64) } default: @@ -14683,7 +19043,7 @@ func awsRestjson1_deserializeDocumentKnowledgeBaseAssociationConfigurationData(v return nil } -func awsRestjson1_deserializeDocumentKnowledgeBaseAssociationData(v **types.KnowledgeBaseAssociationData, value interface{}) error { +func awsRestjson1_deserializeDocumentMessageTemplateSearchResultsList(v *[]types.MessageTemplateSearchResultData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14691,48 +19051,33 @@ func awsRestjson1_deserializeDocumentKnowledgeBaseAssociationData(v **types.Know 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.KnowledgeBaseAssociationData + var cv []types.MessageTemplateSearchResultData if *v == nil { - sv = &types.KnowledgeBaseAssociationData{} + cv = []types.MessageTemplateSearchResultData{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "knowledgeBaseArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.KnowledgeBaseArn = ptr.String(jtv) - } - - case "knowledgeBaseId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) - } - sv.KnowledgeBaseId = ptr.String(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.MessageTemplateSearchResultData + destAddr := &col + if err := awsRestjson1_deserializeDocumentMessageTemplateSearchResultData(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentKnowledgeBaseData(v **types.KnowledgeBaseData, value interface{}) error { +func awsRestjson1_deserializeDocumentMessageTemplateSummary(v **types.MessageTemplateSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14745,36 +19090,57 @@ func awsRestjson1_deserializeDocumentKnowledgeBaseData(v **types.KnowledgeBaseDa return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.KnowledgeBaseData + var sv *types.MessageTemplateSummary if *v == nil { - sv = &types.KnowledgeBaseData{} + sv = &types.MessageTemplateSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "description": + case "activeVersionNumber": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Version to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ActiveVersionNumber = ptr.Int64(i64) + } + + case "channelSubtype": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Description to be of type string, got %T instead", value) + return fmt.Errorf("expected ChannelSubtype to be of type string, got %T instead", value) } - sv.Description = ptr.String(jtv) + sv.ChannelSubtype = types.ChannelSubtype(jtv) } - case "ingestionFailureReasons": - if err := awsRestjson1_deserializeDocumentFailureReason(&sv.IngestionFailureReasons, value); err != nil { - return err + case "createdTime": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) + } + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(t) } - case "ingestionStatus": + case "description": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SyncStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected Description to be of type string, got %T instead", value) } - sv.IngestionStatus = types.SyncStatus(jtv) + sv.Description = ptr.String(jtv) } case "knowledgeBaseArn": @@ -14795,62 +19161,53 @@ func awsRestjson1_deserializeDocumentKnowledgeBaseData(v **types.KnowledgeBaseDa sv.KnowledgeBaseId = ptr.String(jtv) } - case "knowledgeBaseType": + case "lastModifiedBy": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected KnowledgeBaseType to be of type string, got %T instead", value) + return fmt.Errorf("expected GenericArn to be of type string, got %T instead", value) } - sv.KnowledgeBaseType = types.KnowledgeBaseType(jtv) + sv.LastModifiedBy = ptr.String(jtv) } - case "lastContentModificationTime": + case "lastModifiedTime": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastContentModificationTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) + } + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err } + sv.LastModifiedTime = ptr.Time(t) } - case "name": + case "messageTemplateArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Name to be of type string, got %T instead", value) + return fmt.Errorf("expected ArnWithQualifier to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) - } - - case "renderingConfiguration": - if err := awsRestjson1_deserializeDocumentRenderingConfiguration(&sv.RenderingConfiguration, value); err != nil { - return err - } - - case "serverSideEncryptionConfiguration": - if err := awsRestjson1_deserializeDocumentServerSideEncryptionConfiguration(&sv.ServerSideEncryptionConfiguration, value); err != nil { - return err + sv.MessageTemplateArn = ptr.String(jtv) } - case "sourceConfiguration": - if err := awsRestjson1_deserializeDocumentSourceConfiguration(&sv.SourceConfiguration, value); err != nil { - return err + case "messageTemplateId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.MessageTemplateId = ptr.String(jtv) } - case "status": + case "name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected KnowledgeBaseStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected Name to be of type string, got %T instead", value) } - sv.Status = types.KnowledgeBaseStatus(jtv) + sv.Name = ptr.String(jtv) } case "tags": @@ -14858,11 +19215,6 @@ func awsRestjson1_deserializeDocumentKnowledgeBaseData(v **types.KnowledgeBaseDa return err } - case "vectorIngestionConfiguration": - if err := awsRestjson1_deserializeDocumentVectorIngestionConfiguration(&sv.VectorIngestionConfiguration, value); err != nil { - return err - } - default: _, _ = key, value @@ -14872,7 +19224,7 @@ func awsRestjson1_deserializeDocumentKnowledgeBaseData(v **types.KnowledgeBaseDa return nil } -func awsRestjson1_deserializeDocumentKnowledgeBaseList(v *[]types.KnowledgeBaseSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentMessageTemplateSummaryList(v *[]types.MessageTemplateSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14885,17 +19237,17 @@ func awsRestjson1_deserializeDocumentKnowledgeBaseList(v *[]types.KnowledgeBaseS return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.KnowledgeBaseSummary + var cv []types.MessageTemplateSummary if *v == nil { - cv = []types.KnowledgeBaseSummary{} + cv = []types.MessageTemplateSummary{} } else { cv = *v } for _, value := range shape { - var col types.KnowledgeBaseSummary + var col types.MessageTemplateSummary destAddr := &col - if err := awsRestjson1_deserializeDocumentKnowledgeBaseSummary(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentMessageTemplateSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -14906,7 +19258,7 @@ func awsRestjson1_deserializeDocumentKnowledgeBaseList(v *[]types.KnowledgeBaseS return nil } -func awsRestjson1_deserializeDocumentKnowledgeBaseSummary(v **types.KnowledgeBaseSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentMessageTemplateVersionSummary(v **types.MessageTemplateVersionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14919,22 +19271,31 @@ func awsRestjson1_deserializeDocumentKnowledgeBaseSummary(v **types.KnowledgeBas return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.KnowledgeBaseSummary + var sv *types.MessageTemplateVersionSummary if *v == nil { - sv = &types.KnowledgeBaseSummary{} + sv = &types.MessageTemplateVersionSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "description": + case "channelSubtype": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Description to be of type string, got %T instead", value) + return fmt.Errorf("expected ChannelSubtype to be of type string, got %T instead", value) } - sv.Description = ptr.String(jtv) + sv.ChannelSubtype = types.ChannelSubtype(jtv) + } + + case "isActive": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.IsActive = ptr.Bool(jtv) } case "knowledgeBaseArn": @@ -14950,18 +19311,27 @@ func awsRestjson1_deserializeDocumentKnowledgeBaseSummary(v **types.KnowledgeBas 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 Uuid to be of type string, got %T instead", value) + } + sv.KnowledgeBaseId = ptr.String(jtv) + } + + case "messageTemplateArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ArnWithQualifier to be of type string, got %T instead", value) } - sv.KnowledgeBaseId = ptr.String(jtv) + sv.MessageTemplateArn = ptr.String(jtv) } - case "knowledgeBaseType": + case "messageTemplateId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected KnowledgeBaseType to be of type string, got %T instead", value) + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) } - sv.KnowledgeBaseType = types.KnowledgeBaseType(jtv) + sv.MessageTemplateId = ptr.String(jtv) } case "name": @@ -14973,38 +19343,17 @@ func awsRestjson1_deserializeDocumentKnowledgeBaseSummary(v **types.KnowledgeBas sv.Name = ptr.String(jtv) } - case "renderingConfiguration": - if err := awsRestjson1_deserializeDocumentRenderingConfiguration(&sv.RenderingConfiguration, value); err != nil { - return err - } - - case "serverSideEncryptionConfiguration": - if err := awsRestjson1_deserializeDocumentServerSideEncryptionConfiguration(&sv.ServerSideEncryptionConfiguration, value); err != nil { - return err - } - - case "sourceConfiguration": - if err := awsRestjson1_deserializeDocumentSourceConfiguration(&sv.SourceConfiguration, value); err != nil { - return err - } - - case "status": + case "versionNumber": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected KnowledgeBaseStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected Version to be json.Number, got %T instead", value) } - sv.Status = types.KnowledgeBaseStatus(jtv) - } - - case "tags": - if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err - } - - case "vectorIngestionConfiguration": - if err := awsRestjson1_deserializeDocumentVectorIngestionConfiguration(&sv.VectorIngestionConfiguration, value); err != nil { - return err + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.VersionNumber = ptr.Int64(i64) } default: @@ -15016,47 +19365,7 @@ func awsRestjson1_deserializeDocumentKnowledgeBaseSummary(v **types.KnowledgeBas return nil } -func awsRestjson1_deserializeDocumentManagedSourceConfiguration(v *types.ManagedSourceConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var uv types.ManagedSourceConfiguration -loop: - for key, value := range shape { - if value == nil { - continue - } - switch key { - case "webCrawlerConfiguration": - var mv types.WebCrawlerConfiguration - destAddr := &mv - if err := awsRestjson1_deserializeDocumentWebCrawlerConfiguration(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.ManagedSourceConfigurationMemberWebCrawlerConfiguration{Value: mv} - break loop - - default: - uv = &types.UnknownUnionMember{Tag: key} - break loop - - } - } - *v = uv - return nil -} - -func awsRestjson1_deserializeDocumentManualSearchAIAgentConfiguration(v **types.ManualSearchAIAgentConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentMessageTemplateVersionSummaryList(v *[]types.MessageTemplateVersionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15064,40 +19373,29 @@ func awsRestjson1_deserializeDocumentManualSearchAIAgentConfiguration(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.ManualSearchAIAgentConfiguration + var cv []types.MessageTemplateVersionSummary if *v == nil { - sv = &types.ManualSearchAIAgentConfiguration{} + cv = []types.MessageTemplateVersionSummary{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "answerGenerationAIPromptId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected UuidWithQualifier to be of type string, got %T instead", value) - } - sv.AnswerGenerationAIPromptId = ptr.String(jtv) - } - - case "associationConfigurations": - if err := awsRestjson1_deserializeDocumentAssociationConfigurationList(&sv.AssociationConfigurations, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.MessageTemplateVersionSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentMessageTemplateVersionSummary(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } @@ -17388,6 +21686,78 @@ func awsRestjson1_deserializeDocumentSessionSummary(v **types.SessionSummary, va return nil } +func awsRestjson1_deserializeDocumentSMSMessageTemplateContent(v **types.SMSMessageTemplateContent, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.SMSMessageTemplateContent + if *v == nil { + sv = &types.SMSMessageTemplateContent{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "body": + if err := awsRestjson1_deserializeDocumentSMSMessageTemplateContentBody(&sv.Body, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentSMSMessageTemplateContentBody(v **types.SMSMessageTemplateContentBody, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.SMSMessageTemplateContentBody + if *v == nil { + sv = &types.SMSMessageTemplateContentBody{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "plainText": + if err := awsRestjson1_deserializeDocumentMessageTemplateBodyContentProvider(&sv.PlainText, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentSourceConfiguration(v *types.SourceConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -17500,6 +21870,96 @@ func awsRestjson1_deserializeDocumentSourceContentDataDetails(v **types.SourceCo return nil } +func awsRestjson1_deserializeDocumentSystemAttributes(v **types.SystemAttributes, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.SystemAttributes + if *v == nil { + sv = &types.SystemAttributes{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "customerEndpoint": + if err := awsRestjson1_deserializeDocumentSystemEndpointAttributes(&sv.CustomerEndpoint, value); err != nil { + return err + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "systemEndpoint": + if err := awsRestjson1_deserializeDocumentSystemEndpointAttributes(&sv.SystemEndpoint, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentSystemEndpointAttributes(v **types.SystemEndpointAttributes, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.SystemEndpointAttributes + if *v == nil { + sv = &types.SystemEndpointAttributes{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "address": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageTemplateAttributeValue to be of type string, got %T instead", value) + } + sv.Address = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentTagCondition(v **types.TagCondition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/qconnect/generated.json b/service/qconnect/generated.json index b3b323051b8..8a4af3ab42e 100644 --- a/service/qconnect/generated.json +++ b/service/qconnect/generated.json @@ -8,6 +8,7 @@ "files": [ "api_client.go", "api_client_test.go", + "api_op_ActivateMessageTemplate.go", "api_op_CreateAIAgent.go", "api_op_CreateAIAgentVersion.go", "api_op_CreateAIPrompt.go", @@ -17,8 +18,12 @@ "api_op_CreateContent.go", "api_op_CreateContentAssociation.go", "api_op_CreateKnowledgeBase.go", + "api_op_CreateMessageTemplate.go", + "api_op_CreateMessageTemplateAttachment.go", + "api_op_CreateMessageTemplateVersion.go", "api_op_CreateQuickResponse.go", "api_op_CreateSession.go", + "api_op_DeactivateMessageTemplate.go", "api_op_DeleteAIAgent.go", "api_op_DeleteAIAgentVersion.go", "api_op_DeleteAIPrompt.go", @@ -29,6 +34,8 @@ "api_op_DeleteContentAssociation.go", "api_op_DeleteImportJob.go", "api_op_DeleteKnowledgeBase.go", + "api_op_DeleteMessageTemplate.go", + "api_op_DeleteMessageTemplateAttachment.go", "api_op_DeleteQuickResponse.go", "api_op_GetAIAgent.go", "api_op_GetAIPrompt.go", @@ -39,6 +46,7 @@ "api_op_GetContentSummary.go", "api_op_GetImportJob.go", "api_op_GetKnowledgeBase.go", + "api_op_GetMessageTemplate.go", "api_op_GetQuickResponse.go", "api_op_GetRecommendations.go", "api_op_GetSession.go", @@ -52,6 +60,8 @@ "api_op_ListContents.go", "api_op_ListImportJobs.go", "api_op_ListKnowledgeBases.go", + "api_op_ListMessageTemplateVersions.go", + "api_op_ListMessageTemplates.go", "api_op_ListQuickResponses.go", "api_op_ListTagsForResource.go", "api_op_NotifyRecommendationsReceived.go", @@ -59,7 +69,9 @@ "api_op_QueryAssistant.go", "api_op_RemoveAssistantAIAgent.go", "api_op_RemoveKnowledgeBaseTemplateUri.go", + "api_op_RenderMessageTemplate.go", "api_op_SearchContent.go", + "api_op_SearchMessageTemplates.go", "api_op_SearchQuickResponses.go", "api_op_SearchSessions.go", "api_op_StartContentUpload.go", @@ -71,6 +83,8 @@ "api_op_UpdateAssistantAIAgent.go", "api_op_UpdateContent.go", "api_op_UpdateKnowledgeBaseTemplateUri.go", + "api_op_UpdateMessageTemplate.go", + "api_op_UpdateMessageTemplateMetadata.go", "api_op_UpdateQuickResponse.go", "api_op_UpdateSession.go", "api_op_UpdateSessionData.go", diff --git a/service/qconnect/go.mod b/service/qconnect/go.mod index c889a5392c1..c37ab8b9b39 100644 --- a/service/qconnect/go.mod +++ b/service/qconnect/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/qconnect go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/qconnect/go.sum b/service/qconnect/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/qconnect/go.sum +++ b/service/qconnect/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/qconnect/go_module_metadata.go b/service/qconnect/go_module_metadata.go index f280ef1a0d7..a6c88972245 100644 --- a/service/qconnect/go_module_metadata.go +++ b/service/qconnect/go_module_metadata.go @@ -3,4 +3,4 @@ package qconnect // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.12.5" +const goModuleVersion = "1.13.0" diff --git a/service/qconnect/serializers.go b/service/qconnect/serializers.go index 1df602708db..9f7d482eaf3 100644 --- a/service/qconnect/serializers.go +++ b/service/qconnect/serializers.go @@ -16,6 +16,109 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +type awsRestjson1_serializeOpActivateMessageTemplate struct { +} + +func (*awsRestjson1_serializeOpActivateMessageTemplate) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpActivateMessageTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*ActivateMessageTemplateInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/activate") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsActivateMessageTemplateInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentActivateMessageTemplateInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsActivateMessageTemplateInput(v *ActivateMessageTemplateInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.KnowledgeBaseId == nil || len(*v.KnowledgeBaseId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member knowledgeBaseId must not be empty")} + } + if v.KnowledgeBaseId != nil { + if err := encoder.SetURI("knowledgeBaseId").String(*v.KnowledgeBaseId); err != nil { + return err + } + } + + if v.MessageTemplateId == nil || len(*v.MessageTemplateId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member messageTemplateId must not be empty")} + } + if v.MessageTemplateId != nil { + if err := encoder.SetURI("messageTemplateId").String(*v.MessageTemplateId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentActivateMessageTemplateInput(v *ActivateMessageTemplateInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.VersionNumber != nil { + ok := object.Key("versionNumber") + ok.Long(*v.VersionNumber) + } + + return nil +} + type awsRestjson1_serializeOpCreateAIAgent struct { } @@ -1107,14 +1210,14 @@ func awsRestjson1_serializeOpDocumentCreateKnowledgeBaseInput(v *CreateKnowledge return nil } -type awsRestjson1_serializeOpCreateQuickResponse struct { +type awsRestjson1_serializeOpCreateMessageTemplate struct { } -func (*awsRestjson1_serializeOpCreateQuickResponse) ID() string { +func (*awsRestjson1_serializeOpCreateMessageTemplate) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpCreateQuickResponse) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpCreateMessageTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -1126,13 +1229,13 @@ func (m *awsRestjson1_serializeOpCreateQuickResponse) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateQuickResponseInput) + input, ok := in.Parameters.(*CreateMessageTemplateInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/quickResponses") + opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/messageTemplates") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" @@ -1148,14 +1251,14 @@ func (m *awsRestjson1_serializeOpCreateQuickResponse) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsCreateQuickResponseInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsCreateMessageTemplateInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentCreateQuickResponseInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentCreateMessageTemplateInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1172,7 +1275,7 @@ func (m *awsRestjson1_serializeOpCreateQuickResponse) HandleSerialize(ctx contex span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsCreateQuickResponseInput(v *CreateQuickResponseInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsCreateMessageTemplateInput(v *CreateMessageTemplateInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -1189,15 +1292,13 @@ func awsRestjson1_serializeOpHttpBindingsCreateQuickResponseInput(v *CreateQuick return nil } -func awsRestjson1_serializeOpDocumentCreateQuickResponseInput(v *CreateQuickResponseInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentCreateMessageTemplateInput(v *CreateMessageTemplateInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Channels != nil { - ok := object.Key("channels") - if err := awsRestjson1_serializeDocumentChannels(v.Channels, ok); err != nil { - return err - } + if len(v.ChannelSubtype) > 0 { + ok := object.Key("channelSubtype") + ok.String(string(v.ChannelSubtype)) } if v.ClientToken != nil { @@ -1207,14 +1308,16 @@ func awsRestjson1_serializeOpDocumentCreateQuickResponseInput(v *CreateQuickResp if v.Content != nil { ok := object.Key("content") - if err := awsRestjson1_serializeDocumentQuickResponseDataProvider(v.Content, ok); err != nil { + if err := awsRestjson1_serializeDocumentMessageTemplateContentProvider(v.Content, ok); err != nil { return err } } - if v.ContentType != nil { - ok := object.Key("contentType") - ok.String(*v.ContentType) + if v.DefaultAttributes != nil { + ok := object.Key("defaultAttributes") + if err := awsRestjson1_serializeDocumentMessageTemplateAttributes(v.DefaultAttributes, ok); err != nil { + return err + } } if v.Description != nil { @@ -1229,11 +1332,6 @@ func awsRestjson1_serializeOpDocumentCreateQuickResponseInput(v *CreateQuickResp } } - if v.IsActive != nil { - ok := object.Key("isActive") - ok.Boolean(*v.IsActive) - } - if v.Language != nil { ok := object.Key("language") ok.String(*v.Language) @@ -1244,11 +1342,6 @@ func awsRestjson1_serializeOpDocumentCreateQuickResponseInput(v *CreateQuickResp ok.String(*v.Name) } - if v.ShortcutKey != nil { - ok := object.Key("shortcutKey") - ok.String(*v.ShortcutKey) - } - if v.Tags != nil { ok := object.Key("tags") if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil { @@ -1259,14 +1352,14 @@ func awsRestjson1_serializeOpDocumentCreateQuickResponseInput(v *CreateQuickResp return nil } -type awsRestjson1_serializeOpCreateSession struct { +type awsRestjson1_serializeOpCreateMessageTemplateAttachment struct { } -func (*awsRestjson1_serializeOpCreateSession) ID() string { +func (*awsRestjson1_serializeOpCreateMessageTemplateAttachment) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpCreateSession) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpCreateMessageTemplateAttachment) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -1278,13 +1371,13 @@ func (m *awsRestjson1_serializeOpCreateSession) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateSessionInput) + input, ok := in.Parameters.(*CreateMessageTemplateAttachmentInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/assistants/{assistantId}/sessions") + opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/attachments") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" @@ -1300,14 +1393,14 @@ func (m *awsRestjson1_serializeOpCreateSession) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsCreateSessionInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsCreateMessageTemplateAttachmentInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentCreateSessionInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentCreateMessageTemplateAttachmentInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1324,16 +1417,25 @@ func (m *awsRestjson1_serializeOpCreateSession) HandleSerialize(ctx context.Cont span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsCreateSessionInput(v *CreateSessionInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsCreateMessageTemplateAttachmentInput(v *CreateMessageTemplateAttachmentInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AssistantId == nil || len(*v.AssistantId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member assistantId must not be empty")} + if v.KnowledgeBaseId == nil || len(*v.KnowledgeBaseId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member knowledgeBaseId must not be empty")} } - if v.AssistantId != nil { - if err := encoder.SetURI("assistantId").String(*v.AssistantId); err != nil { + if v.KnowledgeBaseId != nil { + if err := encoder.SetURI("knowledgeBaseId").String(*v.KnowledgeBaseId); err != nil { + return err + } + } + + if v.MessageTemplateId == nil || len(*v.MessageTemplateId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member messageTemplateId must not be empty")} + } + if v.MessageTemplateId != nil { + if err := encoder.SetURI("messageTemplateId").String(*v.MessageTemplateId); err != nil { return err } } @@ -1341,15 +1443,13 @@ func awsRestjson1_serializeOpHttpBindingsCreateSessionInput(v *CreateSessionInpu return nil } -func awsRestjson1_serializeOpDocumentCreateSessionInput(v *CreateSessionInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentCreateMessageTemplateAttachmentInput(v *CreateMessageTemplateAttachmentInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.AiAgentConfiguration != nil { - ok := object.Key("aiAgentConfiguration") - if err := awsRestjson1_serializeDocumentAIAgentConfigurationMap(v.AiAgentConfiguration, ok); err != nil { - return err - } + if v.Body != nil { + ok := object.Key("body") + ok.String(*v.Body) } if v.ClientToken != nil { @@ -1357,9 +1457,9 @@ func awsRestjson1_serializeOpDocumentCreateSessionInput(v *CreateSessionInput, v ok.String(*v.ClientToken) } - if v.Description != nil { - ok := object.Key("description") - ok.String(*v.Description) + if len(v.ContentDisposition) > 0 { + ok := object.Key("contentDisposition") + ok.String(string(v.ContentDisposition)) } if v.Name != nil { @@ -1367,31 +1467,17 @@ func awsRestjson1_serializeOpDocumentCreateSessionInput(v *CreateSessionInput, v ok.String(*v.Name) } - if v.TagFilter != nil { - ok := object.Key("tagFilter") - if err := awsRestjson1_serializeDocumentTagFilter(v.TagFilter, ok); err != nil { - return err - } - } - - if v.Tags != nil { - ok := object.Key("tags") - if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil { - return err - } - } - return nil } -type awsRestjson1_serializeOpDeleteAIAgent struct { +type awsRestjson1_serializeOpCreateMessageTemplateVersion struct { } -func (*awsRestjson1_serializeOpDeleteAIAgent) ID() string { +func (*awsRestjson1_serializeOpCreateMessageTemplateVersion) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpDeleteAIAgent) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpCreateMessageTemplateVersion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -1403,16 +1489,16 @@ func (m *awsRestjson1_serializeOpDeleteAIAgent) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteAIAgentInput) + input, ok := in.Parameters.(*CreateMessageTemplateVersionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/assistants/{assistantId}/aiagents/{aiAgentId}") + opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/versions") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "DELETE" + request.Method = "POST" var restEncoder *httpbinding.Encoder if request.URL.RawPath == "" { restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) @@ -1425,7 +1511,18 @@ func (m *awsRestjson1_serializeOpDeleteAIAgent) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsDeleteAIAgentInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsCreateMessageTemplateVersionInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateMessageTemplateVersionInput(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} } @@ -1438,25 +1535,25 @@ func (m *awsRestjson1_serializeOpDeleteAIAgent) HandleSerialize(ctx context.Cont span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsDeleteAIAgentInput(v *DeleteAIAgentInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsCreateMessageTemplateVersionInput(v *CreateMessageTemplateVersionInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AiAgentId == nil || len(*v.AiAgentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member aiAgentId must not be empty")} + if v.KnowledgeBaseId == nil || len(*v.KnowledgeBaseId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member knowledgeBaseId must not be empty")} } - if v.AiAgentId != nil { - if err := encoder.SetURI("aiAgentId").String(*v.AiAgentId); err != nil { + if v.KnowledgeBaseId != nil { + if err := encoder.SetURI("knowledgeBaseId").String(*v.KnowledgeBaseId); err != nil { return err } } - if v.AssistantId == nil || len(*v.AssistantId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member assistantId must not be empty")} + if v.MessageTemplateId == nil || len(*v.MessageTemplateId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member messageTemplateId must not be empty")} } - if v.AssistantId != nil { - if err := encoder.SetURI("assistantId").String(*v.AssistantId); err != nil { + if v.MessageTemplateId != nil { + if err := encoder.SetURI("messageTemplateId").String(*v.MessageTemplateId); err != nil { return err } } @@ -1464,14 +1561,26 @@ func awsRestjson1_serializeOpHttpBindingsDeleteAIAgentInput(v *DeleteAIAgentInpu return nil } -type awsRestjson1_serializeOpDeleteAIAgentVersion struct { +func awsRestjson1_serializeOpDocumentCreateMessageTemplateVersionInput(v *CreateMessageTemplateVersionInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.MessageTemplateContentSha256 != nil { + ok := object.Key("messageTemplateContentSha256") + ok.String(*v.MessageTemplateContentSha256) + } + + return nil } -func (*awsRestjson1_serializeOpDeleteAIAgentVersion) ID() string { +type awsRestjson1_serializeOpCreateQuickResponse struct { +} + +func (*awsRestjson1_serializeOpCreateQuickResponse) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpDeleteAIAgentVersion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpCreateQuickResponse) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -1483,16 +1592,16 @@ func (m *awsRestjson1_serializeOpDeleteAIAgentVersion) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteAIAgentVersionInput) + input, ok := in.Parameters.(*CreateQuickResponseInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/assistants/{assistantId}/aiagents/{aiAgentId}/versions/{versionNumber}") + opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/quickResponses") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "DELETE" + request.Method = "POST" var restEncoder *httpbinding.Encoder if request.URL.RawPath == "" { restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) @@ -1505,7 +1614,18 @@ func (m *awsRestjson1_serializeOpDeleteAIAgentVersion) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsDeleteAIAgentVersionInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsCreateQuickResponseInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateQuickResponseInput(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} } @@ -1518,31 +1638,480 @@ func (m *awsRestjson1_serializeOpDeleteAIAgentVersion) HandleSerialize(ctx conte span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsDeleteAIAgentVersionInput(v *DeleteAIAgentVersionInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsCreateQuickResponseInput(v *CreateQuickResponseInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AiAgentId == nil || len(*v.AiAgentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member aiAgentId must not be empty")} + if v.KnowledgeBaseId == nil || len(*v.KnowledgeBaseId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member knowledgeBaseId must not be empty")} } - if v.AiAgentId != nil { - if err := encoder.SetURI("aiAgentId").String(*v.AiAgentId); err != nil { + if v.KnowledgeBaseId != nil { + if err := encoder.SetURI("knowledgeBaseId").String(*v.KnowledgeBaseId); err != nil { return err } } - if v.AssistantId == nil || len(*v.AssistantId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member assistantId must not be empty")} - } - if v.AssistantId != nil { - if err := encoder.SetURI("assistantId").String(*v.AssistantId); err != nil { + return nil +} + +func awsRestjson1_serializeOpDocumentCreateQuickResponseInput(v *CreateQuickResponseInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Channels != nil { + ok := object.Key("channels") + if err := awsRestjson1_serializeDocumentChannels(v.Channels, ok); err != nil { return err } } - if v.VersionNumber == nil { - return &smithy.SerializationError{Err: fmt.Errorf("input member versionNumber must not be empty")} + if v.ClientToken != nil { + ok := object.Key("clientToken") + ok.String(*v.ClientToken) + } + + if v.Content != nil { + ok := object.Key("content") + if err := awsRestjson1_serializeDocumentQuickResponseDataProvider(v.Content, ok); err != nil { + return err + } + } + + if v.ContentType != nil { + ok := object.Key("contentType") + ok.String(*v.ContentType) + } + + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + if v.GroupingConfiguration != nil { + ok := object.Key("groupingConfiguration") + if err := awsRestjson1_serializeDocumentGroupingConfiguration(v.GroupingConfiguration, ok); err != nil { + return err + } + } + + if v.IsActive != nil { + ok := object.Key("isActive") + ok.Boolean(*v.IsActive) + } + + if v.Language != nil { + ok := object.Key("language") + ok.String(*v.Language) + } + + if v.Name != nil { + ok := object.Key("name") + ok.String(*v.Name) + } + + if v.ShortcutKey != nil { + ok := object.Key("shortcutKey") + ok.String(*v.ShortcutKey) + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpCreateSession struct { +} + +func (*awsRestjson1_serializeOpCreateSession) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateSession) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*CreateSessionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/assistants/{assistantId}/sessions") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsCreateSessionInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateSessionInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateSessionInput(v *CreateSessionInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AssistantId == nil || len(*v.AssistantId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member assistantId must not be empty")} + } + if v.AssistantId != nil { + if err := encoder.SetURI("assistantId").String(*v.AssistantId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateSessionInput(v *CreateSessionInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AiAgentConfiguration != nil { + ok := object.Key("aiAgentConfiguration") + if err := awsRestjson1_serializeDocumentAIAgentConfigurationMap(v.AiAgentConfiguration, ok); err != nil { + return err + } + } + + if v.ClientToken != nil { + ok := object.Key("clientToken") + ok.String(*v.ClientToken) + } + + 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.TagFilter != nil { + ok := object.Key("tagFilter") + if err := awsRestjson1_serializeDocumentTagFilter(v.TagFilter, ok); err != nil { + return err + } + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeactivateMessageTemplate struct { +} + +func (*awsRestjson1_serializeOpDeactivateMessageTemplate) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeactivateMessageTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DeactivateMessageTemplateInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/deactivate") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeactivateMessageTemplateInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentDeactivateMessageTemplateInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeactivateMessageTemplateInput(v *DeactivateMessageTemplateInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.KnowledgeBaseId == nil || len(*v.KnowledgeBaseId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member knowledgeBaseId must not be empty")} + } + if v.KnowledgeBaseId != nil { + if err := encoder.SetURI("knowledgeBaseId").String(*v.KnowledgeBaseId); err != nil { + return err + } + } + + if v.MessageTemplateId == nil || len(*v.MessageTemplateId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member messageTemplateId must not be empty")} + } + if v.MessageTemplateId != nil { + if err := encoder.SetURI("messageTemplateId").String(*v.MessageTemplateId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentDeactivateMessageTemplateInput(v *DeactivateMessageTemplateInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.VersionNumber != nil { + ok := object.Key("versionNumber") + ok.Long(*v.VersionNumber) + } + + return nil +} + +type awsRestjson1_serializeOpDeleteAIAgent struct { +} + +func (*awsRestjson1_serializeOpDeleteAIAgent) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteAIAgent) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DeleteAIAgentInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/assistants/{assistantId}/aiagents/{aiAgentId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteAIAgentInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteAIAgentInput(v *DeleteAIAgentInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AiAgentId == nil || len(*v.AiAgentId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member aiAgentId must not be empty")} + } + if v.AiAgentId != nil { + if err := encoder.SetURI("aiAgentId").String(*v.AiAgentId); err != nil { + return err + } + } + + if v.AssistantId == nil || len(*v.AssistantId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member assistantId must not be empty")} + } + if v.AssistantId != nil { + if err := encoder.SetURI("assistantId").String(*v.AssistantId); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteAIAgentVersion struct { +} + +func (*awsRestjson1_serializeOpDeleteAIAgentVersion) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteAIAgentVersion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DeleteAIAgentVersionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/assistants/{assistantId}/aiagents/{aiAgentId}/versions/{versionNumber}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteAIAgentVersionInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteAIAgentVersionInput(v *DeleteAIAgentVersionInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AiAgentId == nil || len(*v.AiAgentId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member aiAgentId must not be empty")} + } + if v.AiAgentId != nil { + if err := encoder.SetURI("aiAgentId").String(*v.AiAgentId); err != nil { + return err + } + } + + if v.AssistantId == nil || len(*v.AssistantId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member assistantId must not be empty")} + } + if v.AssistantId != nil { + if err := encoder.SetURI("assistantId").String(*v.AssistantId); err != nil { + return err + } + } + + if v.VersionNumber == nil { + return &smithy.SerializationError{Err: fmt.Errorf("input member versionNumber must not be empty")} } if v.VersionNumber != nil { if err := encoder.SetURI("versionNumber").Long(*v.VersionNumber); err != nil { @@ -2101,20 +2670,171 @@ func awsRestjson1_serializeOpHttpBindingsDeleteImportJobInput(v *DeleteImportJob return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ImportJobId == nil || len(*v.ImportJobId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member importJobId must not be empty")} + if v.ImportJobId == nil || len(*v.ImportJobId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member importJobId must not be empty")} + } + if v.ImportJobId != nil { + if err := encoder.SetURI("importJobId").String(*v.ImportJobId); err != nil { + return err + } + } + + if v.KnowledgeBaseId == nil || len(*v.KnowledgeBaseId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member knowledgeBaseId must not be empty")} + } + if v.KnowledgeBaseId != nil { + if err := encoder.SetURI("knowledgeBaseId").String(*v.KnowledgeBaseId); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteKnowledgeBase struct { +} + +func (*awsRestjson1_serializeOpDeleteKnowledgeBase) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteKnowledgeBase) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DeleteKnowledgeBaseInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteKnowledgeBaseInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteKnowledgeBaseInput(v *DeleteKnowledgeBaseInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.KnowledgeBaseId == nil || len(*v.KnowledgeBaseId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member knowledgeBaseId must not be empty")} + } + if v.KnowledgeBaseId != nil { + if err := encoder.SetURI("knowledgeBaseId").String(*v.KnowledgeBaseId); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteMessageTemplate struct { +} + +func (*awsRestjson1_serializeOpDeleteMessageTemplate) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteMessageTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DeleteMessageTemplateInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteMessageTemplateInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteMessageTemplateInput(v *DeleteMessageTemplateInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.KnowledgeBaseId == nil || len(*v.KnowledgeBaseId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member knowledgeBaseId must not be empty")} } - if v.ImportJobId != nil { - if err := encoder.SetURI("importJobId").String(*v.ImportJobId); err != nil { + if v.KnowledgeBaseId != nil { + if err := encoder.SetURI("knowledgeBaseId").String(*v.KnowledgeBaseId); err != nil { return err } } - if v.KnowledgeBaseId == nil || len(*v.KnowledgeBaseId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member knowledgeBaseId must not be empty")} + if v.MessageTemplateId == nil || len(*v.MessageTemplateId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member messageTemplateId must not be empty")} } - if v.KnowledgeBaseId != nil { - if err := encoder.SetURI("knowledgeBaseId").String(*v.KnowledgeBaseId); err != nil { + if v.MessageTemplateId != nil { + if err := encoder.SetURI("messageTemplateId").String(*v.MessageTemplateId); err != nil { return err } } @@ -2122,14 +2842,14 @@ func awsRestjson1_serializeOpHttpBindingsDeleteImportJobInput(v *DeleteImportJob return nil } -type awsRestjson1_serializeOpDeleteKnowledgeBase struct { +type awsRestjson1_serializeOpDeleteMessageTemplateAttachment struct { } -func (*awsRestjson1_serializeOpDeleteKnowledgeBase) ID() string { +func (*awsRestjson1_serializeOpDeleteMessageTemplateAttachment) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpDeleteKnowledgeBase) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDeleteMessageTemplateAttachment) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -2141,13 +2861,13 @@ func (m *awsRestjson1_serializeOpDeleteKnowledgeBase) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteKnowledgeBaseInput) + input, ok := in.Parameters.(*DeleteMessageTemplateAttachmentInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}") + opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/attachments/{attachmentId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" @@ -2163,7 +2883,7 @@ func (m *awsRestjson1_serializeOpDeleteKnowledgeBase) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsDeleteKnowledgeBaseInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsDeleteMessageTemplateAttachmentInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2176,11 +2896,20 @@ func (m *awsRestjson1_serializeOpDeleteKnowledgeBase) HandleSerialize(ctx contex span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsDeleteKnowledgeBaseInput(v *DeleteKnowledgeBaseInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsDeleteMessageTemplateAttachmentInput(v *DeleteMessageTemplateAttachmentInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } + if v.AttachmentId == nil || len(*v.AttachmentId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member attachmentId must not be empty")} + } + if v.AttachmentId != nil { + if err := encoder.SetURI("attachmentId").String(*v.AttachmentId); err != nil { + return err + } + } + if v.KnowledgeBaseId == nil || len(*v.KnowledgeBaseId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member knowledgeBaseId must not be empty")} } @@ -2190,6 +2919,15 @@ func awsRestjson1_serializeOpHttpBindingsDeleteKnowledgeBaseInput(v *DeleteKnowl } } + if v.MessageTemplateId == nil || len(*v.MessageTemplateId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member messageTemplateId must not be empty")} + } + if v.MessageTemplateId != nil { + if err := encoder.SetURI("messageTemplateId").String(*v.MessageTemplateId); err != nil { + return err + } + } + return nil } @@ -2984,6 +3722,86 @@ func awsRestjson1_serializeOpHttpBindingsGetKnowledgeBaseInput(v *GetKnowledgeBa return nil } +type awsRestjson1_serializeOpGetMessageTemplate struct { +} + +func (*awsRestjson1_serializeOpGetMessageTemplate) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetMessageTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*GetMessageTemplateInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetMessageTemplateInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetMessageTemplateInput(v *GetMessageTemplateInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.KnowledgeBaseId == nil || len(*v.KnowledgeBaseId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member knowledgeBaseId must not be empty")} + } + if v.KnowledgeBaseId != nil { + if err := encoder.SetURI("knowledgeBaseId").String(*v.KnowledgeBaseId); err != nil { + return err + } + } + + if v.MessageTemplateId == nil || len(*v.MessageTemplateId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member messageTemplateId must not be empty")} + } + if v.MessageTemplateId != nil { + if err := encoder.SetURI("messageTemplateId").String(*v.MessageTemplateId); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpGetQuickResponse struct { } @@ -3664,11 +4482,169 @@ func awsRestjson1_serializeOpHttpBindingsListAssistantAssociationsInput(v *ListA type awsRestjson1_serializeOpListAssistants struct { } -func (*awsRestjson1_serializeOpListAssistants) ID() string { +func (*awsRestjson1_serializeOpListAssistants) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListAssistants) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*ListAssistantsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/assistants") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListAssistantsInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListAssistantsInput(v *ListAssistantsInput, 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_serializeOpListContentAssociations struct { +} + +func (*awsRestjson1_serializeOpListContentAssociations) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListContentAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*ListContentAssociationsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/associations") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListContentAssociationsInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListContentAssociationsInput(v *ListContentAssociationsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ContentId == nil || len(*v.ContentId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member contentId must not be empty")} + } + if v.ContentId != nil { + if err := encoder.SetURI("contentId").String(*v.ContentId); err != nil { + return err + } + } + + if v.KnowledgeBaseId == nil || len(*v.KnowledgeBaseId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member knowledgeBaseId must not be empty")} + } + if v.KnowledgeBaseId != nil { + if err := encoder.SetURI("knowledgeBaseId").String(*v.KnowledgeBaseId); err != nil { + return err + } + } + + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + return nil +} + +type awsRestjson1_serializeOpListContents struct { +} + +func (*awsRestjson1_serializeOpListContents) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListAssistants) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListContents) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -3680,13 +4656,13 @@ func (m *awsRestjson1_serializeOpListAssistants) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListAssistantsInput) + input, ok := in.Parameters.(*ListContentsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/assistants") + opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/contents") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -3702,7 +4678,7 @@ func (m *awsRestjson1_serializeOpListAssistants) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListAssistantsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListContentsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3715,11 +4691,20 @@ func (m *awsRestjson1_serializeOpListAssistants) HandleSerialize(ctx context.Con span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListAssistantsInput(v *ListAssistantsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListContentsInput(v *ListContentsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } + if v.KnowledgeBaseId == nil || len(*v.KnowledgeBaseId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member knowledgeBaseId must not be empty")} + } + if v.KnowledgeBaseId != nil { + if err := encoder.SetURI("knowledgeBaseId").String(*v.KnowledgeBaseId); err != nil { + return err + } + } + if v.MaxResults != nil { encoder.SetQuery("maxResults").Integer(*v.MaxResults) } @@ -3731,14 +4716,14 @@ func awsRestjson1_serializeOpHttpBindingsListAssistantsInput(v *ListAssistantsIn return nil } -type awsRestjson1_serializeOpListContentAssociations struct { +type awsRestjson1_serializeOpListImportJobs struct { } -func (*awsRestjson1_serializeOpListContentAssociations) ID() string { +func (*awsRestjson1_serializeOpListImportJobs) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListContentAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListImportJobs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -3750,13 +4735,13 @@ func (m *awsRestjson1_serializeOpListContentAssociations) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListContentAssociationsInput) + input, ok := in.Parameters.(*ListImportJobsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/associations") + opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/importJobs") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -3772,7 +4757,7 @@ func (m *awsRestjson1_serializeOpListContentAssociations) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListContentAssociationsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListImportJobsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3785,20 +4770,11 @@ func (m *awsRestjson1_serializeOpListContentAssociations) HandleSerialize(ctx co span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListContentAssociationsInput(v *ListContentAssociationsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListImportJobsInput(v *ListImportJobsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ContentId == nil || len(*v.ContentId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member contentId must not be empty")} - } - if v.ContentId != nil { - if err := encoder.SetURI("contentId").String(*v.ContentId); err != nil { - return err - } - } - if v.KnowledgeBaseId == nil || len(*v.KnowledgeBaseId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member knowledgeBaseId must not be empty")} } @@ -3819,14 +4795,14 @@ func awsRestjson1_serializeOpHttpBindingsListContentAssociationsInput(v *ListCon return nil } -type awsRestjson1_serializeOpListContents struct { +type awsRestjson1_serializeOpListKnowledgeBases struct { } -func (*awsRestjson1_serializeOpListContents) ID() string { +func (*awsRestjson1_serializeOpListKnowledgeBases) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListContents) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListKnowledgeBases) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -3838,13 +4814,13 @@ func (m *awsRestjson1_serializeOpListContents) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListContentsInput) + input, ok := in.Parameters.(*ListKnowledgeBasesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/contents") + opPath, opQuery := httpbinding.SplitURI("/knowledgeBases") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -3860,7 +4836,7 @@ func (m *awsRestjson1_serializeOpListContents) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListContentsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListKnowledgeBasesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3873,20 +4849,11 @@ func (m *awsRestjson1_serializeOpListContents) HandleSerialize(ctx context.Conte span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListContentsInput(v *ListContentsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListKnowledgeBasesInput(v *ListKnowledgeBasesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.KnowledgeBaseId == nil || len(*v.KnowledgeBaseId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member knowledgeBaseId must not be empty")} - } - if v.KnowledgeBaseId != nil { - if err := encoder.SetURI("knowledgeBaseId").String(*v.KnowledgeBaseId); err != nil { - return err - } - } - if v.MaxResults != nil { encoder.SetQuery("maxResults").Integer(*v.MaxResults) } @@ -3898,14 +4865,14 @@ func awsRestjson1_serializeOpHttpBindingsListContentsInput(v *ListContentsInput, return nil } -type awsRestjson1_serializeOpListImportJobs struct { +type awsRestjson1_serializeOpListMessageTemplates struct { } -func (*awsRestjson1_serializeOpListImportJobs) ID() string { +func (*awsRestjson1_serializeOpListMessageTemplates) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListImportJobs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListMessageTemplates) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -3917,13 +4884,13 @@ func (m *awsRestjson1_serializeOpListImportJobs) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListImportJobsInput) + input, ok := in.Parameters.(*ListMessageTemplatesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/importJobs") + opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/messageTemplates") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -3939,7 +4906,7 @@ func (m *awsRestjson1_serializeOpListImportJobs) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListImportJobsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListMessageTemplatesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3952,7 +4919,7 @@ func (m *awsRestjson1_serializeOpListImportJobs) HandleSerialize(ctx context.Con span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListImportJobsInput(v *ListImportJobsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListMessageTemplatesInput(v *ListMessageTemplatesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -3977,14 +4944,14 @@ func awsRestjson1_serializeOpHttpBindingsListImportJobsInput(v *ListImportJobsIn return nil } -type awsRestjson1_serializeOpListKnowledgeBases struct { +type awsRestjson1_serializeOpListMessageTemplateVersions struct { } -func (*awsRestjson1_serializeOpListKnowledgeBases) ID() string { +func (*awsRestjson1_serializeOpListMessageTemplateVersions) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListKnowledgeBases) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListMessageTemplateVersions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -3996,13 +4963,13 @@ func (m *awsRestjson1_serializeOpListKnowledgeBases) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListKnowledgeBasesInput) + input, ok := in.Parameters.(*ListMessageTemplateVersionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/knowledgeBases") + opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/versions") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -4018,7 +4985,7 @@ func (m *awsRestjson1_serializeOpListKnowledgeBases) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListKnowledgeBasesInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListMessageTemplateVersionsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -4031,15 +4998,33 @@ func (m *awsRestjson1_serializeOpListKnowledgeBases) HandleSerialize(ctx context span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListKnowledgeBasesInput(v *ListKnowledgeBasesInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListMessageTemplateVersionsInput(v *ListMessageTemplateVersionsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } + if v.KnowledgeBaseId == nil || len(*v.KnowledgeBaseId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member knowledgeBaseId must not be empty")} + } + if v.KnowledgeBaseId != nil { + if err := encoder.SetURI("knowledgeBaseId").String(*v.KnowledgeBaseId); err != nil { + return err + } + } + if v.MaxResults != nil { encoder.SetQuery("maxResults").Integer(*v.MaxResults) } + if v.MessageTemplateId == nil || len(*v.MessageTemplateId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member messageTemplateId must not be empty")} + } + if v.MessageTemplateId != nil { + if err := encoder.SetURI("messageTemplateId").String(*v.MessageTemplateId); err != nil { + return err + } + } + if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } @@ -4614,11 +5599,187 @@ func awsRestjson1_serializeOpHttpBindingsRemoveAssistantAIAgentInput(v *RemoveAs type awsRestjson1_serializeOpRemoveKnowledgeBaseTemplateUri struct { } -func (*awsRestjson1_serializeOpRemoveKnowledgeBaseTemplateUri) ID() string { +func (*awsRestjson1_serializeOpRemoveKnowledgeBaseTemplateUri) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpRemoveKnowledgeBaseTemplateUri) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*RemoveKnowledgeBaseTemplateUriInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/templateUri") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsRemoveKnowledgeBaseTemplateUriInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsRemoveKnowledgeBaseTemplateUriInput(v *RemoveKnowledgeBaseTemplateUriInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.KnowledgeBaseId == nil || len(*v.KnowledgeBaseId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member knowledgeBaseId must not be empty")} + } + if v.KnowledgeBaseId != nil { + if err := encoder.SetURI("knowledgeBaseId").String(*v.KnowledgeBaseId); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpRenderMessageTemplate struct { +} + +func (*awsRestjson1_serializeOpRenderMessageTemplate) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpRenderMessageTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*RenderMessageTemplateInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/render") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsRenderMessageTemplateInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentRenderMessageTemplateInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsRenderMessageTemplateInput(v *RenderMessageTemplateInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.KnowledgeBaseId == nil || len(*v.KnowledgeBaseId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member knowledgeBaseId must not be empty")} + } + if v.KnowledgeBaseId != nil { + if err := encoder.SetURI("knowledgeBaseId").String(*v.KnowledgeBaseId); err != nil { + return err + } + } + + if v.MessageTemplateId == nil || len(*v.MessageTemplateId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member messageTemplateId must not be empty")} + } + if v.MessageTemplateId != nil { + if err := encoder.SetURI("messageTemplateId").String(*v.MessageTemplateId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentRenderMessageTemplateInput(v *RenderMessageTemplateInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Attributes != nil { + ok := object.Key("attributes") + if err := awsRestjson1_serializeDocumentMessageTemplateAttributes(v.Attributes, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpSearchContent struct { +} + +func (*awsRestjson1_serializeOpSearchContent) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpRemoveKnowledgeBaseTemplateUri) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpSearchContent) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -4630,16 +5791,16 @@ func (m *awsRestjson1_serializeOpRemoveKnowledgeBaseTemplateUri) HandleSerialize return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RemoveKnowledgeBaseTemplateUriInput) + input, ok := in.Parameters.(*SearchContentInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/templateUri") + opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/search") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "DELETE" + request.Method = "POST" var restEncoder *httpbinding.Encoder if request.URL.RawPath == "" { restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) @@ -4652,7 +5813,18 @@ func (m *awsRestjson1_serializeOpRemoveKnowledgeBaseTemplateUri) HandleSerialize return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsRemoveKnowledgeBaseTemplateUriInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsSearchContentInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentSearchContentInput(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} } @@ -4665,7 +5837,7 @@ func (m *awsRestjson1_serializeOpRemoveKnowledgeBaseTemplateUri) HandleSerialize span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsRemoveKnowledgeBaseTemplateUriInput(v *RemoveKnowledgeBaseTemplateUriInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsSearchContentInput(v *SearchContentInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -4679,17 +5851,39 @@ func awsRestjson1_serializeOpHttpBindingsRemoveKnowledgeBaseTemplateUriInput(v * } } + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentSearchContentInput(v *SearchContentInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.SearchExpression != nil { + ok := object.Key("searchExpression") + if err := awsRestjson1_serializeDocumentSearchExpression(v.SearchExpression, ok); err != nil { + return err + } + } + return nil } -type awsRestjson1_serializeOpSearchContent struct { +type awsRestjson1_serializeOpSearchMessageTemplates struct { } -func (*awsRestjson1_serializeOpSearchContent) ID() string { +func (*awsRestjson1_serializeOpSearchMessageTemplates) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpSearchContent) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpSearchMessageTemplates) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -4701,13 +5895,13 @@ func (m *awsRestjson1_serializeOpSearchContent) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*SearchContentInput) + input, ok := in.Parameters.(*SearchMessageTemplatesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/search") + opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/search/messageTemplates") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" @@ -4723,14 +5917,14 @@ func (m *awsRestjson1_serializeOpSearchContent) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsSearchContentInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsSearchMessageTemplatesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentSearchContentInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentSearchMessageTemplatesInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -4747,7 +5941,7 @@ func (m *awsRestjson1_serializeOpSearchContent) HandleSerialize(ctx context.Cont span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsSearchContentInput(v *SearchContentInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsSearchMessageTemplatesInput(v *SearchMessageTemplatesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -4772,13 +5966,13 @@ func awsRestjson1_serializeOpHttpBindingsSearchContentInput(v *SearchContentInpu return nil } -func awsRestjson1_serializeOpDocumentSearchContentInput(v *SearchContentInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentSearchMessageTemplatesInput(v *SearchMessageTemplatesInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.SearchExpression != nil { ok := object.Key("searchExpression") - if err := awsRestjson1_serializeDocumentSearchExpression(v.SearchExpression, ok); err != nil { + if err := awsRestjson1_serializeDocumentMessageTemplateSearchExpression(v.SearchExpression, ok); err != nil { return err } } @@ -5834,42 +7028,253 @@ func awsRestjson1_serializeOpDocumentUpdateContentInput(v *UpdateContentInput, v } } - if v.OverrideLinkOutUri != nil { - ok := object.Key("overrideLinkOutUri") - ok.String(*v.OverrideLinkOutUri) - } + if v.OverrideLinkOutUri != nil { + ok := object.Key("overrideLinkOutUri") + ok.String(*v.OverrideLinkOutUri) + } + + if v.RemoveOverrideLinkOutUri != nil { + ok := object.Key("removeOverrideLinkOutUri") + ok.Boolean(*v.RemoveOverrideLinkOutUri) + } + + if v.RevisionId != nil { + ok := object.Key("revisionId") + ok.String(*v.RevisionId) + } + + if v.Title != nil { + ok := object.Key("title") + ok.String(*v.Title) + } + + if v.UploadId != nil { + ok := object.Key("uploadId") + ok.String(*v.UploadId) + } + + return nil +} + +type awsRestjson1_serializeOpUpdateKnowledgeBaseTemplateUri struct { +} + +func (*awsRestjson1_serializeOpUpdateKnowledgeBaseTemplateUri) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateKnowledgeBaseTemplateUri) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*UpdateKnowledgeBaseTemplateUriInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/templateUri") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateKnowledgeBaseTemplateUriInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateKnowledgeBaseTemplateUriInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateKnowledgeBaseTemplateUriInput(v *UpdateKnowledgeBaseTemplateUriInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.KnowledgeBaseId == nil || len(*v.KnowledgeBaseId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member knowledgeBaseId must not be empty")} + } + if v.KnowledgeBaseId != nil { + if err := encoder.SetURI("knowledgeBaseId").String(*v.KnowledgeBaseId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateKnowledgeBaseTemplateUriInput(v *UpdateKnowledgeBaseTemplateUriInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.TemplateUri != nil { + ok := object.Key("templateUri") + ok.String(*v.TemplateUri) + } + + return nil +} + +type awsRestjson1_serializeOpUpdateMessageTemplate struct { +} + +func (*awsRestjson1_serializeOpUpdateMessageTemplate) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateMessageTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*UpdateMessageTemplateInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateMessageTemplateInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateMessageTemplateInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateMessageTemplateInput(v *UpdateMessageTemplateInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.KnowledgeBaseId == nil || len(*v.KnowledgeBaseId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member knowledgeBaseId must not be empty")} + } + if v.KnowledgeBaseId != nil { + if err := encoder.SetURI("knowledgeBaseId").String(*v.KnowledgeBaseId); err != nil { + return err + } + } + + if v.MessageTemplateId == nil || len(*v.MessageTemplateId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member messageTemplateId must not be empty")} + } + if v.MessageTemplateId != nil { + if err := encoder.SetURI("messageTemplateId").String(*v.MessageTemplateId); err != nil { + return err + } + } + + return nil +} - if v.RemoveOverrideLinkOutUri != nil { - ok := object.Key("removeOverrideLinkOutUri") - ok.Boolean(*v.RemoveOverrideLinkOutUri) - } +func awsRestjson1_serializeOpDocumentUpdateMessageTemplateInput(v *UpdateMessageTemplateInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - if v.RevisionId != nil { - ok := object.Key("revisionId") - ok.String(*v.RevisionId) + if v.Content != nil { + ok := object.Key("content") + if err := awsRestjson1_serializeDocumentMessageTemplateContentProvider(v.Content, ok); err != nil { + return err + } } - if v.Title != nil { - ok := object.Key("title") - ok.String(*v.Title) + if v.DefaultAttributes != nil { + ok := object.Key("defaultAttributes") + if err := awsRestjson1_serializeDocumentMessageTemplateAttributes(v.DefaultAttributes, ok); err != nil { + return err + } } - if v.UploadId != nil { - ok := object.Key("uploadId") - ok.String(*v.UploadId) + if v.Language != nil { + ok := object.Key("language") + ok.String(*v.Language) } return nil } -type awsRestjson1_serializeOpUpdateKnowledgeBaseTemplateUri struct { +type awsRestjson1_serializeOpUpdateMessageTemplateMetadata struct { } -func (*awsRestjson1_serializeOpUpdateKnowledgeBaseTemplateUri) ID() string { +func (*awsRestjson1_serializeOpUpdateMessageTemplateMetadata) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateKnowledgeBaseTemplateUri) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpUpdateMessageTemplateMetadata) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -5881,13 +7286,13 @@ func (m *awsRestjson1_serializeOpUpdateKnowledgeBaseTemplateUri) HandleSerialize return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateKnowledgeBaseTemplateUriInput) + input, ok := in.Parameters.(*UpdateMessageTemplateMetadataInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/templateUri") + opPath, opQuery := httpbinding.SplitURI("/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/metadata") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" @@ -5903,14 +7308,14 @@ func (m *awsRestjson1_serializeOpUpdateKnowledgeBaseTemplateUri) HandleSerialize return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateKnowledgeBaseTemplateUriInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsUpdateMessageTemplateMetadataInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateKnowledgeBaseTemplateUriInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentUpdateMessageTemplateMetadataInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -5927,7 +7332,7 @@ func (m *awsRestjson1_serializeOpUpdateKnowledgeBaseTemplateUri) HandleSerialize span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateKnowledgeBaseTemplateUriInput(v *UpdateKnowledgeBaseTemplateUriInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsUpdateMessageTemplateMetadataInput(v *UpdateMessageTemplateMetadataInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -5941,16 +7346,37 @@ func awsRestjson1_serializeOpHttpBindingsUpdateKnowledgeBaseTemplateUriInput(v * } } + if v.MessageTemplateId == nil || len(*v.MessageTemplateId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member messageTemplateId must not be empty")} + } + if v.MessageTemplateId != nil { + if err := encoder.SetURI("messageTemplateId").String(*v.MessageTemplateId); err != nil { + return err + } + } + return nil } -func awsRestjson1_serializeOpDocumentUpdateKnowledgeBaseTemplateUriInput(v *UpdateKnowledgeBaseTemplateUriInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateMessageTemplateMetadataInput(v *UpdateMessageTemplateMetadataInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.TemplateUri != nil { - ok := object.Key("templateUri") - ok.String(*v.TemplateUri) + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + if v.GroupingConfiguration != nil { + ok := object.Key("groupingConfiguration") + if err := awsRestjson1_serializeDocumentGroupingConfiguration(v.GroupingConfiguration, ok); err != nil { + return err + } + } + + if v.Name != nil { + ok := object.Key("name") + ok.String(*v.Name) } return nil @@ -6347,6 +7773,23 @@ func awsRestjson1_serializeOpDocumentUpdateSessionDataInput(v *UpdateSessionData return nil } +func awsRestjson1_serializeDocumentAgentAttributes(v *types.AgentAttributes, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.FirstName != nil { + ok := object.Key("firstName") + ok.String(*v.FirstName) + } + + if v.LastName != nil { + ok := object.Key("lastName") + ok.String(*v.LastName) + } + + return nil +} + func awsRestjson1_serializeDocumentAIAgentConfiguration(v types.AIAgentConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -6699,14 +8142,401 @@ func awsRestjson1_serializeDocumentContentFeedbackData(v types.ContentFeedbackDa return nil } -func awsRestjson1_serializeDocumentContentMetadata(v map[string]string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentContentMetadata(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_serializeDocumentCustomAttributes(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_serializeDocumentCustomerProfileAttributes(v *types.CustomerProfileAttributes, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AccountNumber != nil { + ok := object.Key("accountNumber") + ok.String(*v.AccountNumber) + } + + if v.AdditionalInformation != nil { + ok := object.Key("additionalInformation") + ok.String(*v.AdditionalInformation) + } + + if v.Address1 != nil { + ok := object.Key("address1") + ok.String(*v.Address1) + } + + if v.Address2 != nil { + ok := object.Key("address2") + ok.String(*v.Address2) + } + + if v.Address3 != nil { + ok := object.Key("address3") + ok.String(*v.Address3) + } + + if v.Address4 != nil { + ok := object.Key("address4") + ok.String(*v.Address4) + } + + if v.BillingAddress1 != nil { + ok := object.Key("billingAddress1") + ok.String(*v.BillingAddress1) + } + + if v.BillingAddress2 != nil { + ok := object.Key("billingAddress2") + ok.String(*v.BillingAddress2) + } + + if v.BillingAddress3 != nil { + ok := object.Key("billingAddress3") + ok.String(*v.BillingAddress3) + } + + if v.BillingAddress4 != nil { + ok := object.Key("billingAddress4") + ok.String(*v.BillingAddress4) + } + + if v.BillingCity != nil { + ok := object.Key("billingCity") + ok.String(*v.BillingCity) + } + + if v.BillingCountry != nil { + ok := object.Key("billingCountry") + ok.String(*v.BillingCountry) + } + + if v.BillingCounty != nil { + ok := object.Key("billingCounty") + ok.String(*v.BillingCounty) + } + + if v.BillingPostalCode != nil { + ok := object.Key("billingPostalCode") + ok.String(*v.BillingPostalCode) + } + + if v.BillingProvince != nil { + ok := object.Key("billingProvince") + ok.String(*v.BillingProvince) + } + + if v.BillingState != nil { + ok := object.Key("billingState") + ok.String(*v.BillingState) + } + + if v.BirthDate != nil { + ok := object.Key("birthDate") + ok.String(*v.BirthDate) + } + + if v.BusinessEmailAddress != nil { + ok := object.Key("businessEmailAddress") + ok.String(*v.BusinessEmailAddress) + } + + if v.BusinessName != nil { + ok := object.Key("businessName") + ok.String(*v.BusinessName) + } + + if v.BusinessPhoneNumber != nil { + ok := object.Key("businessPhoneNumber") + ok.String(*v.BusinessPhoneNumber) + } + + if v.City != nil { + ok := object.Key("city") + ok.String(*v.City) + } + + if v.Country != nil { + ok := object.Key("country") + ok.String(*v.Country) + } + + if v.County != nil { + ok := object.Key("county") + ok.String(*v.County) + } + + if v.Custom != nil { + ok := object.Key("custom") + if err := awsRestjson1_serializeDocumentCustomAttributes(v.Custom, ok); err != nil { + return err + } + } + + if v.EmailAddress != nil { + ok := object.Key("emailAddress") + ok.String(*v.EmailAddress) + } + + if v.FirstName != nil { + ok := object.Key("firstName") + ok.String(*v.FirstName) + } + + if v.Gender != nil { + ok := object.Key("gender") + ok.String(*v.Gender) + } + + if v.HomePhoneNumber != nil { + ok := object.Key("homePhoneNumber") + ok.String(*v.HomePhoneNumber) + } + + if v.LastName != nil { + ok := object.Key("lastName") + ok.String(*v.LastName) + } + + if v.MailingAddress1 != nil { + ok := object.Key("mailingAddress1") + ok.String(*v.MailingAddress1) + } + + if v.MailingAddress2 != nil { + ok := object.Key("mailingAddress2") + ok.String(*v.MailingAddress2) + } + + if v.MailingAddress3 != nil { + ok := object.Key("mailingAddress3") + ok.String(*v.MailingAddress3) + } + + if v.MailingAddress4 != nil { + ok := object.Key("mailingAddress4") + ok.String(*v.MailingAddress4) + } + + if v.MailingCity != nil { + ok := object.Key("mailingCity") + ok.String(*v.MailingCity) + } + + if v.MailingCountry != nil { + ok := object.Key("mailingCountry") + ok.String(*v.MailingCountry) + } + + if v.MailingCounty != nil { + ok := object.Key("mailingCounty") + ok.String(*v.MailingCounty) + } + + if v.MailingPostalCode != nil { + ok := object.Key("mailingPostalCode") + ok.String(*v.MailingPostalCode) + } + + if v.MailingProvince != nil { + ok := object.Key("mailingProvince") + ok.String(*v.MailingProvince) + } + + if v.MailingState != nil { + ok := object.Key("mailingState") + ok.String(*v.MailingState) + } + + if v.MiddleName != nil { + ok := object.Key("middleName") + ok.String(*v.MiddleName) + } + + if v.MobilePhoneNumber != nil { + ok := object.Key("mobilePhoneNumber") + ok.String(*v.MobilePhoneNumber) + } + + if v.PartyType != nil { + ok := object.Key("partyType") + ok.String(*v.PartyType) + } + + if v.PhoneNumber != nil { + ok := object.Key("phoneNumber") + ok.String(*v.PhoneNumber) + } + + if v.PostalCode != nil { + ok := object.Key("postalCode") + ok.String(*v.PostalCode) + } + + if v.ProfileARN != nil { + ok := object.Key("profileARN") + ok.String(*v.ProfileARN) + } + + if v.ProfileId != nil { + ok := object.Key("profileId") + ok.String(*v.ProfileId) + } + + if v.Province != nil { + ok := object.Key("province") + ok.String(*v.Province) + } + + if v.ShippingAddress1 != nil { + ok := object.Key("shippingAddress1") + ok.String(*v.ShippingAddress1) + } + + if v.ShippingAddress2 != nil { + ok := object.Key("shippingAddress2") + ok.String(*v.ShippingAddress2) + } + + if v.ShippingAddress3 != nil { + ok := object.Key("shippingAddress3") + ok.String(*v.ShippingAddress3) + } + + if v.ShippingAddress4 != nil { + ok := object.Key("shippingAddress4") + ok.String(*v.ShippingAddress4) + } + + if v.ShippingCity != nil { + ok := object.Key("shippingCity") + ok.String(*v.ShippingCity) + } + + if v.ShippingCountry != nil { + ok := object.Key("shippingCountry") + ok.String(*v.ShippingCountry) + } + + if v.ShippingCounty != nil { + ok := object.Key("shippingCounty") + ok.String(*v.ShippingCounty) + } + + if v.ShippingPostalCode != nil { + ok := object.Key("shippingPostalCode") + ok.String(*v.ShippingPostalCode) + } + + if v.ShippingProvince != nil { + ok := object.Key("shippingProvince") + ok.String(*v.ShippingProvince) + } + + if v.ShippingState != nil { + ok := object.Key("shippingState") + ok.String(*v.ShippingState) + } + + if v.State != nil { + ok := object.Key("state") + ok.String(*v.State) + } + + return nil +} + +func awsRestjson1_serializeDocumentEmailHeader(v *types.EmailHeader, 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") + ok.String(*v.Value) + } + + return nil +} + +func awsRestjson1_serializeDocumentEmailHeaders(v []types.EmailHeader, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentEmailHeader(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentEmailMessageTemplateContent(v *types.EmailMessageTemplateContent, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Body != nil { + ok := object.Key("body") + if err := awsRestjson1_serializeDocumentEmailMessageTemplateContentBody(v.Body, ok); err != nil { + return err + } + } + + if v.Headers != nil { + ok := object.Key("headers") + if err := awsRestjson1_serializeDocumentEmailHeaders(v.Headers, ok); err != nil { + return err + } + } + + if v.Subject != nil { + ok := object.Key("subject") + ok.String(*v.Subject) + } + + return nil +} + +func awsRestjson1_serializeDocumentEmailMessageTemplateContentBody(v *types.EmailMessageTemplateContentBody, value smithyjson.Value) error { object := value.Object() defer object.Close() - for key := range v { - om := object.Key(key) - om.String(v[key]) + if v.Html != nil { + ok := object.Key("html") + if err := awsRestjson1_serializeDocumentMessageTemplateBodyContentProvider(v.Html, ok); err != nil { + return err + } + } + + if v.PlainText != nil { + ok := object.Key("plainText") + if err := awsRestjson1_serializeDocumentMessageTemplateBodyContentProvider(v.PlainText, ok); err != nil { + return err + } } + return nil } @@ -6940,6 +8770,237 @@ func awsRestjson1_serializeDocumentManualSearchAIAgentConfiguration(v *types.Man return nil } +func awsRestjson1_serializeDocumentMessageTemplateAttributes(v *types.MessageTemplateAttributes, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AgentAttributes != nil { + ok := object.Key("agentAttributes") + if err := awsRestjson1_serializeDocumentAgentAttributes(v.AgentAttributes, ok); err != nil { + return err + } + } + + if v.CustomAttributes != nil { + ok := object.Key("customAttributes") + if err := awsRestjson1_serializeDocumentCustomAttributes(v.CustomAttributes, ok); err != nil { + return err + } + } + + if v.CustomerProfileAttributes != nil { + ok := object.Key("customerProfileAttributes") + if err := awsRestjson1_serializeDocumentCustomerProfileAttributes(v.CustomerProfileAttributes, ok); err != nil { + return err + } + } + + if v.SystemAttributes != nil { + ok := object.Key("systemAttributes") + if err := awsRestjson1_serializeDocumentSystemAttributes(v.SystemAttributes, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentMessageTemplateBodyContentProvider(v types.MessageTemplateBodyContentProvider, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.MessageTemplateBodyContentProviderMemberContent: + av := object.Key("content") + av.String(uv.Value) + + default: + return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) + + } + return nil +} + +func awsRestjson1_serializeDocumentMessageTemplateContentProvider(v types.MessageTemplateContentProvider, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.MessageTemplateContentProviderMemberEmail: + av := object.Key("email") + if err := awsRestjson1_serializeDocumentEmailMessageTemplateContent(&uv.Value, av); err != nil { + return err + } + + case *types.MessageTemplateContentProviderMemberSms: + av := object.Key("sms") + if err := awsRestjson1_serializeDocumentSMSMessageTemplateContent(&uv.Value, av); err != nil { + return err + } + + default: + return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) + + } + return nil +} + +func awsRestjson1_serializeDocumentMessageTemplateFilterField(v *types.MessageTemplateFilterField, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.IncludeNoExistence != nil { + ok := object.Key("includeNoExistence") + ok.Boolean(*v.IncludeNoExistence) + } + + if v.Name != nil { + ok := object.Key("name") + ok.String(*v.Name) + } + + if len(v.Operator) > 0 { + ok := object.Key("operator") + ok.String(string(v.Operator)) + } + + if v.Values != nil { + ok := object.Key("values") + if err := awsRestjson1_serializeDocumentMessageTemplateFilterValueList(v.Values, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentMessageTemplateFilterFieldList(v []types.MessageTemplateFilterField, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentMessageTemplateFilterField(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentMessageTemplateFilterValueList(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_serializeDocumentMessageTemplateOrderField(v *types.MessageTemplateOrderField, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Name != nil { + ok := object.Key("name") + ok.String(*v.Name) + } + + if len(v.Order) > 0 { + ok := object.Key("order") + ok.String(string(v.Order)) + } + + return nil +} + +func awsRestjson1_serializeDocumentMessageTemplateQueryField(v *types.MessageTemplateQueryField, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AllowFuzziness != nil { + ok := object.Key("allowFuzziness") + ok.Boolean(*v.AllowFuzziness) + } + + if v.Name != nil { + ok := object.Key("name") + ok.String(*v.Name) + } + + if len(v.Operator) > 0 { + ok := object.Key("operator") + ok.String(string(v.Operator)) + } + + if len(v.Priority) > 0 { + ok := object.Key("priority") + ok.String(string(v.Priority)) + } + + if v.Values != nil { + ok := object.Key("values") + if err := awsRestjson1_serializeDocumentMessageTemplateQueryValueList(v.Values, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentMessageTemplateQueryFieldList(v []types.MessageTemplateQueryField, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentMessageTemplateQueryField(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentMessageTemplateQueryValueList(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_serializeDocumentMessageTemplateSearchExpression(v *types.MessageTemplateSearchExpression, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Filters != nil { + ok := object.Key("filters") + if err := awsRestjson1_serializeDocumentMessageTemplateFilterFieldList(v.Filters, ok); err != nil { + return err + } + } + + if v.OrderOnField != nil { + ok := object.Key("orderOnField") + if err := awsRestjson1_serializeDocumentMessageTemplateOrderField(v.OrderOnField, ok); err != nil { + return err + } + } + + if v.Queries != nil { + ok := object.Key("queries") + if err := awsRestjson1_serializeDocumentMessageTemplateQueryFieldList(v.Queries, ok); err != nil { + return err + } + } + + return nil +} + func awsRestjson1_serializeDocumentObjectFieldsList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -7430,6 +9491,34 @@ func awsRestjson1_serializeDocumentServerSideEncryptionConfiguration(v *types.Se return nil } +func awsRestjson1_serializeDocumentSMSMessageTemplateContent(v *types.SMSMessageTemplateContent, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Body != nil { + ok := object.Key("body") + if err := awsRestjson1_serializeDocumentSMSMessageTemplateContentBody(v.Body, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentSMSMessageTemplateContentBody(v *types.SMSMessageTemplateContentBody, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.PlainText != nil { + ok := object.Key("plainText") + if err := awsRestjson1_serializeDocumentMessageTemplateBodyContentProvider(v.PlainText, ok); err != nil { + return err + } + } + + return nil +} + func awsRestjson1_serializeDocumentSourceConfiguration(v types.SourceConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -7454,6 +9543,44 @@ func awsRestjson1_serializeDocumentSourceConfiguration(v types.SourceConfigurati return nil } +func awsRestjson1_serializeDocumentSystemAttributes(v *types.SystemAttributes, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CustomerEndpoint != nil { + ok := object.Key("customerEndpoint") + if err := awsRestjson1_serializeDocumentSystemEndpointAttributes(v.CustomerEndpoint, ok); err != nil { + return err + } + } + + if v.Name != nil { + ok := object.Key("name") + ok.String(*v.Name) + } + + if v.SystemEndpoint != nil { + ok := object.Key("systemEndpoint") + if err := awsRestjson1_serializeDocumentSystemEndpointAttributes(v.SystemEndpoint, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentSystemEndpointAttributes(v *types.SystemEndpointAttributes, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Address != nil { + ok := object.Key("address") + ok.String(*v.Address) + } + + return nil +} + func awsRestjson1_serializeDocumentTagCondition(v *types.TagCondition, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/qconnect/snapshot/api_op_ActivateMessageTemplate.go.snap b/service/qconnect/snapshot/api_op_ActivateMessageTemplate.go.snap new file mode 100644 index 00000000000..478ec15da05 --- /dev/null +++ b/service/qconnect/snapshot/api_op_ActivateMessageTemplate.go.snap @@ -0,0 +1,41 @@ +ActivateMessageTemplate + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/qconnect/snapshot/api_op_CreateMessageTemplate.go.snap b/service/qconnect/snapshot/api_op_CreateMessageTemplate.go.snap new file mode 100644 index 00000000000..27d1bf5bfb7 --- /dev/null +++ b/service/qconnect/snapshot/api_op_CreateMessageTemplate.go.snap @@ -0,0 +1,42 @@ +CreateMessageTemplate + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + OperationIdempotencyTokenAutoFill + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/qconnect/snapshot/api_op_CreateMessageTemplateAttachment.go.snap b/service/qconnect/snapshot/api_op_CreateMessageTemplateAttachment.go.snap new file mode 100644 index 00000000000..497979215c8 --- /dev/null +++ b/service/qconnect/snapshot/api_op_CreateMessageTemplateAttachment.go.snap @@ -0,0 +1,41 @@ +CreateMessageTemplateAttachment + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/qconnect/snapshot/api_op_CreateMessageTemplateVersion.go.snap b/service/qconnect/snapshot/api_op_CreateMessageTemplateVersion.go.snap new file mode 100644 index 00000000000..71e1a7db601 --- /dev/null +++ b/service/qconnect/snapshot/api_op_CreateMessageTemplateVersion.go.snap @@ -0,0 +1,41 @@ +CreateMessageTemplateVersion + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/qconnect/snapshot/api_op_DeactivateMessageTemplate.go.snap b/service/qconnect/snapshot/api_op_DeactivateMessageTemplate.go.snap new file mode 100644 index 00000000000..1edc3faa7b1 --- /dev/null +++ b/service/qconnect/snapshot/api_op_DeactivateMessageTemplate.go.snap @@ -0,0 +1,41 @@ +DeactivateMessageTemplate + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/qconnect/snapshot/api_op_DeleteMessageTemplate.go.snap b/service/qconnect/snapshot/api_op_DeleteMessageTemplate.go.snap new file mode 100644 index 00000000000..32e70a2125b --- /dev/null +++ b/service/qconnect/snapshot/api_op_DeleteMessageTemplate.go.snap @@ -0,0 +1,41 @@ +DeleteMessageTemplate + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/qconnect/snapshot/api_op_DeleteMessageTemplateAttachment.go.snap b/service/qconnect/snapshot/api_op_DeleteMessageTemplateAttachment.go.snap new file mode 100644 index 00000000000..4452338c2fb --- /dev/null +++ b/service/qconnect/snapshot/api_op_DeleteMessageTemplateAttachment.go.snap @@ -0,0 +1,41 @@ +DeleteMessageTemplateAttachment + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/qconnect/snapshot/api_op_GetMessageTemplate.go.snap b/service/qconnect/snapshot/api_op_GetMessageTemplate.go.snap new file mode 100644 index 00000000000..ca551fb99d7 --- /dev/null +++ b/service/qconnect/snapshot/api_op_GetMessageTemplate.go.snap @@ -0,0 +1,41 @@ +GetMessageTemplate + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/qconnect/snapshot/api_op_ListMessageTemplateVersions.go.snap b/service/qconnect/snapshot/api_op_ListMessageTemplateVersions.go.snap new file mode 100644 index 00000000000..f1ec0d59b48 --- /dev/null +++ b/service/qconnect/snapshot/api_op_ListMessageTemplateVersions.go.snap @@ -0,0 +1,41 @@ +ListMessageTemplateVersions + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/qconnect/snapshot/api_op_ListMessageTemplates.go.snap b/service/qconnect/snapshot/api_op_ListMessageTemplates.go.snap new file mode 100644 index 00000000000..5aae2010ad1 --- /dev/null +++ b/service/qconnect/snapshot/api_op_ListMessageTemplates.go.snap @@ -0,0 +1,41 @@ +ListMessageTemplates + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/qconnect/snapshot/api_op_RenderMessageTemplate.go.snap b/service/qconnect/snapshot/api_op_RenderMessageTemplate.go.snap new file mode 100644 index 00000000000..a77428653d5 --- /dev/null +++ b/service/qconnect/snapshot/api_op_RenderMessageTemplate.go.snap @@ -0,0 +1,41 @@ +RenderMessageTemplate + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/qconnect/snapshot/api_op_SearchMessageTemplates.go.snap b/service/qconnect/snapshot/api_op_SearchMessageTemplates.go.snap new file mode 100644 index 00000000000..9e298c83c0f --- /dev/null +++ b/service/qconnect/snapshot/api_op_SearchMessageTemplates.go.snap @@ -0,0 +1,41 @@ +SearchMessageTemplates + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/qconnect/snapshot/api_op_UpdateMessageTemplate.go.snap b/service/qconnect/snapshot/api_op_UpdateMessageTemplate.go.snap new file mode 100644 index 00000000000..b537eb2fe03 --- /dev/null +++ b/service/qconnect/snapshot/api_op_UpdateMessageTemplate.go.snap @@ -0,0 +1,41 @@ +UpdateMessageTemplate + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/qconnect/snapshot/api_op_UpdateMessageTemplateMetadata.go.snap b/service/qconnect/snapshot/api_op_UpdateMessageTemplateMetadata.go.snap new file mode 100644 index 00000000000..c0723497e3c --- /dev/null +++ b/service/qconnect/snapshot/api_op_UpdateMessageTemplateMetadata.go.snap @@ -0,0 +1,41 @@ +UpdateMessageTemplateMetadata + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/qconnect/snapshot_test.go b/service/qconnect/snapshot_test.go index f2d71f928e4..e078e7d6986 100644 --- a/service/qconnect/snapshot_test.go +++ b/service/qconnect/snapshot_test.go @@ -62,6 +62,18 @@ func testSnapshot(stack *middleware.Stack, operation string) error { } return snapshotOK{} } +func TestCheckSnapshot_ActivateMessageTemplate(t *testing.T) { + svc := New(Options{}) + _, err := svc.ActivateMessageTemplate(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "ActivateMessageTemplate") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_CreateAIAgent(t *testing.T) { svc := New(Options{}) _, err := svc.CreateAIAgent(context.Background(), nil, func(o *Options) { @@ -170,6 +182,42 @@ func TestCheckSnapshot_CreateKnowledgeBase(t *testing.T) { } } +func TestCheckSnapshot_CreateMessageTemplate(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateMessageTemplate(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "CreateMessageTemplate") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestCheckSnapshot_CreateMessageTemplateAttachment(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateMessageTemplateAttachment(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "CreateMessageTemplateAttachment") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestCheckSnapshot_CreateMessageTemplateVersion(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateMessageTemplateVersion(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "CreateMessageTemplateVersion") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_CreateQuickResponse(t *testing.T) { svc := New(Options{}) _, err := svc.CreateQuickResponse(context.Background(), nil, func(o *Options) { @@ -194,6 +242,18 @@ func TestCheckSnapshot_CreateSession(t *testing.T) { } } +func TestCheckSnapshot_DeactivateMessageTemplate(t *testing.T) { + svc := New(Options{}) + _, err := svc.DeactivateMessageTemplate(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "DeactivateMessageTemplate") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_DeleteAIAgent(t *testing.T) { svc := New(Options{}) _, err := svc.DeleteAIAgent(context.Background(), nil, func(o *Options) { @@ -314,6 +374,30 @@ func TestCheckSnapshot_DeleteKnowledgeBase(t *testing.T) { } } +func TestCheckSnapshot_DeleteMessageTemplate(t *testing.T) { + svc := New(Options{}) + _, err := svc.DeleteMessageTemplate(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "DeleteMessageTemplate") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestCheckSnapshot_DeleteMessageTemplateAttachment(t *testing.T) { + svc := New(Options{}) + _, err := svc.DeleteMessageTemplateAttachment(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "DeleteMessageTemplateAttachment") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_DeleteQuickResponse(t *testing.T) { svc := New(Options{}) _, err := svc.DeleteQuickResponse(context.Background(), nil, func(o *Options) { @@ -434,6 +518,18 @@ func TestCheckSnapshot_GetKnowledgeBase(t *testing.T) { } } +func TestCheckSnapshot_GetMessageTemplate(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetMessageTemplate(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "GetMessageTemplate") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_GetQuickResponse(t *testing.T) { svc := New(Options{}) _, err := svc.GetQuickResponse(context.Background(), nil, func(o *Options) { @@ -590,6 +686,30 @@ func TestCheckSnapshot_ListKnowledgeBases(t *testing.T) { } } +func TestCheckSnapshot_ListMessageTemplates(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListMessageTemplates(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "ListMessageTemplates") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestCheckSnapshot_ListMessageTemplateVersions(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListMessageTemplateVersions(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "ListMessageTemplateVersions") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_ListQuickResponses(t *testing.T) { svc := New(Options{}) _, err := svc.ListQuickResponses(context.Background(), nil, func(o *Options) { @@ -674,6 +794,18 @@ func TestCheckSnapshot_RemoveKnowledgeBaseTemplateUri(t *testing.T) { } } +func TestCheckSnapshot_RenderMessageTemplate(t *testing.T) { + svc := New(Options{}) + _, err := svc.RenderMessageTemplate(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "RenderMessageTemplate") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_SearchContent(t *testing.T) { svc := New(Options{}) _, err := svc.SearchContent(context.Background(), nil, func(o *Options) { @@ -686,6 +818,18 @@ func TestCheckSnapshot_SearchContent(t *testing.T) { } } +func TestCheckSnapshot_SearchMessageTemplates(t *testing.T) { + svc := New(Options{}) + _, err := svc.SearchMessageTemplates(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "SearchMessageTemplates") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_SearchQuickResponses(t *testing.T) { svc := New(Options{}) _, err := svc.SearchQuickResponses(context.Background(), nil, func(o *Options) { @@ -818,6 +962,30 @@ func TestCheckSnapshot_UpdateKnowledgeBaseTemplateUri(t *testing.T) { } } +func TestCheckSnapshot_UpdateMessageTemplate(t *testing.T) { + svc := New(Options{}) + _, err := svc.UpdateMessageTemplate(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "UpdateMessageTemplate") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestCheckSnapshot_UpdateMessageTemplateMetadata(t *testing.T) { + svc := New(Options{}) + _, err := svc.UpdateMessageTemplateMetadata(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "UpdateMessageTemplateMetadata") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_UpdateQuickResponse(t *testing.T) { svc := New(Options{}) _, err := svc.UpdateQuickResponse(context.Background(), nil, func(o *Options) { @@ -853,6 +1021,18 @@ func TestCheckSnapshot_UpdateSessionData(t *testing.T) { t.Fatal(err) } } +func TestUpdateSnapshot_ActivateMessageTemplate(t *testing.T) { + svc := New(Options{}) + _, err := svc.ActivateMessageTemplate(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "ActivateMessageTemplate") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_CreateAIAgent(t *testing.T) { svc := New(Options{}) _, err := svc.CreateAIAgent(context.Background(), nil, func(o *Options) { @@ -961,6 +1141,42 @@ func TestUpdateSnapshot_CreateKnowledgeBase(t *testing.T) { } } +func TestUpdateSnapshot_CreateMessageTemplate(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateMessageTemplate(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "CreateMessageTemplate") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestUpdateSnapshot_CreateMessageTemplateAttachment(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateMessageTemplateAttachment(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "CreateMessageTemplateAttachment") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestUpdateSnapshot_CreateMessageTemplateVersion(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateMessageTemplateVersion(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "CreateMessageTemplateVersion") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_CreateQuickResponse(t *testing.T) { svc := New(Options{}) _, err := svc.CreateQuickResponse(context.Background(), nil, func(o *Options) { @@ -985,6 +1201,18 @@ func TestUpdateSnapshot_CreateSession(t *testing.T) { } } +func TestUpdateSnapshot_DeactivateMessageTemplate(t *testing.T) { + svc := New(Options{}) + _, err := svc.DeactivateMessageTemplate(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "DeactivateMessageTemplate") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_DeleteAIAgent(t *testing.T) { svc := New(Options{}) _, err := svc.DeleteAIAgent(context.Background(), nil, func(o *Options) { @@ -1105,6 +1333,30 @@ func TestUpdateSnapshot_DeleteKnowledgeBase(t *testing.T) { } } +func TestUpdateSnapshot_DeleteMessageTemplate(t *testing.T) { + svc := New(Options{}) + _, err := svc.DeleteMessageTemplate(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "DeleteMessageTemplate") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestUpdateSnapshot_DeleteMessageTemplateAttachment(t *testing.T) { + svc := New(Options{}) + _, err := svc.DeleteMessageTemplateAttachment(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "DeleteMessageTemplateAttachment") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_DeleteQuickResponse(t *testing.T) { svc := New(Options{}) _, err := svc.DeleteQuickResponse(context.Background(), nil, func(o *Options) { @@ -1225,6 +1477,18 @@ func TestUpdateSnapshot_GetKnowledgeBase(t *testing.T) { } } +func TestUpdateSnapshot_GetMessageTemplate(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetMessageTemplate(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "GetMessageTemplate") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_GetQuickResponse(t *testing.T) { svc := New(Options{}) _, err := svc.GetQuickResponse(context.Background(), nil, func(o *Options) { @@ -1381,6 +1645,30 @@ func TestUpdateSnapshot_ListKnowledgeBases(t *testing.T) { } } +func TestUpdateSnapshot_ListMessageTemplates(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListMessageTemplates(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "ListMessageTemplates") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestUpdateSnapshot_ListMessageTemplateVersions(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListMessageTemplateVersions(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "ListMessageTemplateVersions") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_ListQuickResponses(t *testing.T) { svc := New(Options{}) _, err := svc.ListQuickResponses(context.Background(), nil, func(o *Options) { @@ -1465,6 +1753,18 @@ func TestUpdateSnapshot_RemoveKnowledgeBaseTemplateUri(t *testing.T) { } } +func TestUpdateSnapshot_RenderMessageTemplate(t *testing.T) { + svc := New(Options{}) + _, err := svc.RenderMessageTemplate(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "RenderMessageTemplate") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_SearchContent(t *testing.T) { svc := New(Options{}) _, err := svc.SearchContent(context.Background(), nil, func(o *Options) { @@ -1477,6 +1777,18 @@ func TestUpdateSnapshot_SearchContent(t *testing.T) { } } +func TestUpdateSnapshot_SearchMessageTemplates(t *testing.T) { + svc := New(Options{}) + _, err := svc.SearchMessageTemplates(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "SearchMessageTemplates") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_SearchQuickResponses(t *testing.T) { svc := New(Options{}) _, err := svc.SearchQuickResponses(context.Background(), nil, func(o *Options) { @@ -1609,6 +1921,30 @@ func TestUpdateSnapshot_UpdateKnowledgeBaseTemplateUri(t *testing.T) { } } +func TestUpdateSnapshot_UpdateMessageTemplate(t *testing.T) { + svc := New(Options{}) + _, err := svc.UpdateMessageTemplate(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "UpdateMessageTemplate") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestUpdateSnapshot_UpdateMessageTemplateMetadata(t *testing.T) { + svc := New(Options{}) + _, err := svc.UpdateMessageTemplateMetadata(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "UpdateMessageTemplateMetadata") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_UpdateQuickResponse(t *testing.T) { svc := New(Options{}) _, err := svc.UpdateQuickResponse(context.Background(), nil, func(o *Options) { diff --git a/service/qconnect/types/enums.go b/service/qconnect/types/enums.go index 7ef8e3cb78e..95e100111e1 100644 --- a/service/qconnect/types/enums.go +++ b/service/qconnect/types/enums.go @@ -176,6 +176,25 @@ func (AssociationType) Values() []AssociationType { } } +type ChannelSubtype string + +// Enum values for ChannelSubtype +const ( + ChannelSubtypeEmail ChannelSubtype = "EMAIL" + ChannelSubtypeSms ChannelSubtype = "SMS" +) + +// Values returns all known values for ChannelSubtype. 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 (ChannelSubtype) Values() []ChannelSubtype { + return []ChannelSubtype{ + "EMAIL", + "SMS", + } +} + type ChunkingStrategy string // Enum values for ChunkingStrategy @@ -216,6 +235,23 @@ func (ContentAssociationType) Values() []ContentAssociationType { } } +type ContentDisposition string + +// Enum values for ContentDisposition +const ( + ContentDispositionAttachment ContentDisposition = "ATTACHMENT" +) + +// Values returns all known values for ContentDisposition. 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 (ContentDisposition) Values() []ContentDisposition { + return []ContentDisposition{ + "ATTACHMENT", + } +} + type ContentStatus string // Enum values for ContentStatus @@ -411,6 +447,70 @@ func (KnowledgeBaseType) Values() []KnowledgeBaseType { } } +type MessageTemplateAttributeType string + +// Enum values for MessageTemplateAttributeType +const ( + MessageTemplateAttributeTypeSystem MessageTemplateAttributeType = "SYSTEM" + MessageTemplateAttributeTypeAgent MessageTemplateAttributeType = "AGENT" + MessageTemplateAttributeTypeCustomerProfile MessageTemplateAttributeType = "CUSTOMER_PROFILE" + MessageTemplateAttributeTypeCustom MessageTemplateAttributeType = "CUSTOM" +) + +// Values returns all known values for MessageTemplateAttributeType. 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 (MessageTemplateAttributeType) Values() []MessageTemplateAttributeType { + return []MessageTemplateAttributeType{ + "SYSTEM", + "AGENT", + "CUSTOMER_PROFILE", + "CUSTOM", + } +} + +type MessageTemplateFilterOperator string + +// Enum values for MessageTemplateFilterOperator +const ( + MessageTemplateFilterOperatorEquals MessageTemplateFilterOperator = "EQUALS" + MessageTemplateFilterOperatorPrefix MessageTemplateFilterOperator = "PREFIX" +) + +// Values returns all known values for MessageTemplateFilterOperator. 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 (MessageTemplateFilterOperator) Values() []MessageTemplateFilterOperator { + return []MessageTemplateFilterOperator{ + "EQUALS", + "PREFIX", + } +} + +type MessageTemplateQueryOperator string + +// Enum values for MessageTemplateQueryOperator +const ( + MessageTemplateQueryOperatorContains MessageTemplateQueryOperator = "CONTAINS" + MessageTemplateQueryOperatorContainsAndPrefix MessageTemplateQueryOperator = "CONTAINS_AND_PREFIX" +) + +// Values returns all known values for MessageTemplateQueryOperator. 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 (MessageTemplateQueryOperator) Values() []MessageTemplateQueryOperator { + return []MessageTemplateQueryOperator{ + "CONTAINS", + "CONTAINS_AND_PREFIX", + } +} + type Order string // Enum values for Order diff --git a/service/qconnect/types/types.go b/service/qconnect/types/types.go index 2be0b21e00f..5184e9f9a79 100644 --- a/service/qconnect/types/types.go +++ b/service/qconnect/types/types.go @@ -7,6 +7,18 @@ import ( "time" ) +// Information about an agent. +type AgentAttributes struct { + + // The agent’s first name as entered in their Amazon Connect user account. + FirstName *string + + // The agent’s last name as entered in their Amazon Connect user account. + LastName *string + + noSmithyDocumentSerde +} + // A typed union that specifies the configuration based on the type of AI Agent. // // The following types satisfy this interface: @@ -1165,6 +1177,188 @@ type ContentSummary struct { noSmithyDocumentSerde } +// The customer profile attributes that are used with the message template. +type CustomerProfileAttributes struct { + + // A unique account number that you have given to the customer. + AccountNumber *string + + // Any additional information relevant to the customer's profile. + AdditionalInformation *string + + // The first line of a customer address. + Address1 *string + + // The second line of a customer address. + Address2 *string + + // The third line of a customer address. + Address3 *string + + // The fourth line of a customer address. + Address4 *string + + // The first line of a customer’s billing address. + BillingAddress1 *string + + // The second line of a customer’s billing address. + BillingAddress2 *string + + // The third line of a customer’s billing address. + BillingAddress3 *string + + // The fourth line of a customer’s billing address. + BillingAddress4 *string + + // The city of a customer’s billing address. + BillingCity *string + + // The country of a customer’s billing address. + BillingCountry *string + + // The county of a customer’s billing address. + BillingCounty *string + + // The postal code of a customer’s billing address. + BillingPostalCode *string + + // The province of a customer’s billing address. + BillingProvince *string + + // The state of a customer’s billing address. + BillingState *string + + // The customer's birth date. + BirthDate *string + + // The customer's business email address. + BusinessEmailAddress *string + + // The name of the customer's business. + BusinessName *string + + // The customer's business phone number. + BusinessPhoneNumber *string + + // The city in which a customer lives. + City *string + + // The country in which a customer lives. + Country *string + + // The county in which a customer lives. + County *string + + // The custom attributes in customer profile attributes. + Custom map[string]string + + // The customer's email address, which has not been specified as a personal or + // business address. + EmailAddress *string + + // The customer's first name. + FirstName *string + + // The customer's gender. + Gender *string + + // The customer's mobile phone number. + HomePhoneNumber *string + + // The customer's last name. + LastName *string + + // The first line of a customer’s mailing address. + MailingAddress1 *string + + // The second line of a customer’s mailing address. + MailingAddress2 *string + + // The third line of a customer’s mailing address. + MailingAddress3 *string + + // The fourth line of a customer’s mailing address. + MailingAddress4 *string + + // The city of a customer’s mailing address. + MailingCity *string + + // The country of a customer’s mailing address. + MailingCountry *string + + // The county of a customer’s mailing address. + MailingCounty *string + + // The postal code of a customer’s mailing address. + MailingPostalCode *string + + // The province of a customer’s mailing address. + MailingProvince *string + + // The state of a customer’s mailing address. + MailingState *string + + // The customer's middle name. + MiddleName *string + + // The customer's mobile phone number. + MobilePhoneNumber *string + + // The customer's party type. + PartyType *string + + // The customer's phone number, which has not been specified as a mobile, home, or + // business number. + PhoneNumber *string + + // The postal code of a customer address. + PostalCode *string + + // The ARN of a customer profile. + ProfileARN *string + + // The unique identifier of a customer profile. + ProfileId *string + + // The province in which a customer lives. + Province *string + + // The first line of a customer’s shipping address. + ShippingAddress1 *string + + // The second line of a customer’s shipping address. + ShippingAddress2 *string + + // The third line of a customer’s shipping address. + ShippingAddress3 *string + + // The fourth line of a customer’s shipping address. + ShippingAddress4 *string + + // The city of a customer’s shipping address. + ShippingCity *string + + // The country of a customer’s shipping address. + ShippingCountry *string + + // The county of a customer’s shipping address. + ShippingCounty *string + + // The postal code of a customer’s shipping address. + ShippingPostalCode *string + + // The province of a customer’s shipping address. + ShippingProvince *string + + // The state of a customer’s shipping address. + ShippingState *string + + // The state in which a customer lives. + State *string + + noSmithyDocumentSerde +} + // Details about the data. // // The following types satisfy this interface: @@ -1286,6 +1480,148 @@ type DocumentText struct { noSmithyDocumentSerde } +// The email header to include in email messages. +type EmailHeader struct { + + // The name of the email header. + Name *string + + // The value of the email header. + Value *string + + noSmithyDocumentSerde +} + +// The content of the message template that applies to the email channel subtype. +type EmailMessageTemplateContent struct { + + // The body to use in email messages. + Body *EmailMessageTemplateContentBody + + // The email headers to include in email messages. + Headers []EmailHeader + + // The subject line, or title, to use in email messages. + Subject *string + + noSmithyDocumentSerde +} + +// The body to use in email messages. +type EmailMessageTemplateContentBody struct { + + // The message body, in HTML format, to use in email messages that are based on + // the message template. We recommend using HTML format for email clients that + // render HTML content. You can include links, formatted text, and more in an HTML + // message. + Html MessageTemplateBodyContentProvider + + // The message body, in plain text format, to use in email messages that are based + // on the message template. We recommend using plain text format for email clients + // that don't render HTML content and clients that are connected to high-latency + // networks, such as mobile devices. + PlainText MessageTemplateBodyContentProvider + + noSmithyDocumentSerde +} + +// The extended data of a message template. +type ExtendedMessageTemplateData struct { + + // The channel subtype this message template applies to. + // + // This member is required. + ChannelSubtype ChannelSubtype + + // The content of the message template. + // + // This member is required. + Content MessageTemplateContentProvider + + // The timestamp when the message template was created. + // + // This member is required. + CreatedTime *time.Time + + // The Amazon Resource Name (ARN) of the knowledge base. + // + // This member is required. + KnowledgeBaseArn *string + + // The identifier of the knowledge base. + // + // This member is required. + KnowledgeBaseId *string + + // The Amazon Resource Name (ARN) of the user who last updated the message + // template data. + // + // This member is required. + LastModifiedBy *string + + // The timestamp when the message template data was last modified. + // + // This member is required. + LastModifiedTime *time.Time + + // The Amazon Resource Name (ARN) of the message template. + // + // This member is required. + MessageTemplateArn *string + + // The checksum value of the message template content that is referenced by the + // $LATEST qualifier. It can be returned in MessageTemplateData or + // ExtendedMessageTemplateData . It’s calculated by content, language, + // defaultAttributes and Attachments of the message template. + // + // This member is required. + MessageTemplateContentSha256 *string + + // The identifier of the message template. + // + // This member is required. + MessageTemplateId *string + + // The name of the message template. + // + // This member is required. + Name *string + + // The message template attachments. + Attachments []MessageTemplateAttachment + + // The types of attributes contain the message template. + AttributeTypes []MessageTemplateAttributeType + + // An object that specifies the default values to use for variables in the message + // template. This object contains different categories of key-value pairs. Each key + // defines a variable or placeholder in the message template. The corresponding + // value defines the default value for that variable. + DefaultAttributes *MessageTemplateAttributes + + // The description of the message template. + Description *string + + // The configuration information of the grouping of Amazon Q in Connect users. + GroupingConfiguration *GroupingConfiguration + + // Whether the version of the message template is activated. + IsActive *bool + + // The language code value for the language in which the quick response is + // written. The supported language codes include de_DE , en_US , es_ES , fr_FR , + // id_ID , it_IT , ja_JP , ko_KR , pt_BR , zh_CN , zh_TW + Language *string + + // The tags used to organize, track, or control access for this resource. + Tags map[string]string + + // The version number of the message template version. + VersionNumber *int64 + + noSmithyDocumentSerde +} + // The configuration information of the external data source. type ExternalSourceConfiguration struct { @@ -1790,123 +2126,623 @@ type ManualSearchAIAgentConfiguration struct { noSmithyDocumentSerde } -// An error occurred when creating a recommendation. -type NotifyRecommendationsReceivedError struct { - - // A recommendation is causing an error. - Message *string - - // The identifier of the recommendation that is in error. - RecommendationId *string +// Information about the message template attachment. +type MessageTemplateAttachment struct { - noSmithyDocumentSerde -} + // The identifier of the attachment file. + // + // This member is required. + AttachmentId *string -// A list of conditions which would be applied together with an OR condition. -// -// The following types satisfy this interface: -// -// OrConditionMemberAndConditions -// OrConditionMemberTagCondition -type OrCondition interface { - isOrCondition() -} + // The presentation information for the attachment file. + // + // This member is required. + ContentDisposition ContentDisposition -// A list of conditions which would be applied together with an AND condition. -type OrConditionMemberAndConditions struct { - Value []TagCondition + // The name of the attachment file being uploaded. The name should include the + // file extension. + // + // This member is required. + Name *string - noSmithyDocumentSerde -} + // The timestamp when the attachment file was uploaded. + // + // This member is required. + UploadedTime *time.Time -func (*OrConditionMemberAndConditions) isOrCondition() {} + // A pre-signed Amazon S3 URL that can be used to download the attachment file. + // + // This member is required. + Url *string -// A leaf node condition which can be used to specify a tag condition. -type OrConditionMemberTagCondition struct { - Value TagCondition + // The expiration time of the pre-signed Amazon S3 URL. + // + // This member is required. + UrlExpiry *time.Time noSmithyDocumentSerde } -func (*OrConditionMemberTagCondition) isOrCondition() {} +// The attributes that are used with the message template. +type MessageTemplateAttributes struct { -// Settings for parsing document contents. By default, the service converts the -// contents of each document into text before splitting it into chunks. To improve -// processing of PDF files with tables and images, you can configure the data -// source to convert the pages of text into images and use a model to describe the -// contents of each page. -type ParsingConfiguration struct { + // The agent attributes that are used with the message template. + AgentAttributes *AgentAttributes - // The parsing strategy for the data source. - // - // This member is required. - ParsingStrategy ParsingStrategy + // The custom attributes that are used with the message template. + CustomAttributes map[string]string - // Settings for a foundation model used to parse documents for a data source. - BedrockFoundationModelConfiguration *BedrockFoundationModelConfigurationForParsing + // The customer profile attributes that are used with the message template. + CustomerProfileAttributes *CustomerProfileAttributes + + // The system attributes that are used with the message template. + SystemAttributes *SystemAttributes noSmithyDocumentSerde } -// Instructions for interpreting the contents of a document. -type ParsingPrompt struct { +// The container of the message template body. +// +// The following types satisfy this interface: +// +// MessageTemplateBodyContentProviderMemberContent +type MessageTemplateBodyContentProvider interface { + isMessageTemplateBodyContentProvider() +} - // Instructions for interpreting the contents of a document. - // - // This member is required. - ParsingPromptText *string +// The content of the message template. +type MessageTemplateBodyContentProviderMemberContent struct { + Value string noSmithyDocumentSerde } -// Information about how to query content. +func (*MessageTemplateBodyContentProviderMemberContent) isMessageTemplateBodyContentProvider() {} + +// The container of message template content. // // The following types satisfy this interface: // -// QueryConditionMemberSingle -type QueryCondition interface { - isQueryCondition() +// MessageTemplateContentProviderMemberEmail +// MessageTemplateContentProviderMemberSms +type MessageTemplateContentProvider interface { + isMessageTemplateContentProvider() } -// The condition for the query. -type QueryConditionMemberSingle struct { - Value QueryConditionItem +// The content of the message template that applies to the email channel subtype. +type MessageTemplateContentProviderMemberEmail struct { + Value EmailMessageTemplateContent noSmithyDocumentSerde } -func (*QueryConditionMemberSingle) isQueryCondition() {} +func (*MessageTemplateContentProviderMemberEmail) isMessageTemplateContentProvider() {} -// The condition for the query. -type QueryConditionItem struct { +// The content of the message template that applies to the SMS channel subtype. +type MessageTemplateContentProviderMemberSms struct { + Value SMSMessageTemplateContent - // The comparison operator for query condition to query on. + noSmithyDocumentSerde +} + +func (*MessageTemplateContentProviderMemberSms) isMessageTemplateContentProvider() {} + +// The data of a message template. +type MessageTemplateData struct { + + // The channel subtype this message template applies to. // // This member is required. - Comparator QueryConditionComparisonOperator + ChannelSubtype ChannelSubtype - // The name of the field for query condition to query on. + // The content of the message template. // // This member is required. - Field QueryConditionFieldName + Content MessageTemplateContentProvider - // The value for the query condition to query on. + // The timestamp when the message template was created. // // This member is required. - Value *string + CreatedTime *time.Time - noSmithyDocumentSerde -} + // The Amazon Resource Name (ARN) of the knowledge base. + // + // This member is required. + KnowledgeBaseArn *string -// Input information for the query. -// -// The following types satisfy this interface: -// -// QueryInputDataMemberIntentInputData -// QueryInputDataMemberQueryTextInputData -type QueryInputData interface { - isQueryInputData() -} + // The identifier of the knowledge base. + // + // This member is required. + KnowledgeBaseId *string + + // The Amazon Resource Name (ARN) of the user who last updated the message + // template data. + // + // This member is required. + LastModifiedBy *string + + // The timestamp when the message template data was last modified. + // + // This member is required. + LastModifiedTime *time.Time + + // The Amazon Resource Name (ARN) of the message template. + // + // This member is required. + MessageTemplateArn *string + + // The checksum value of the message template content that is referenced by the + // $LATEST qualifier. It can be returned in MessageTemplateData or + // ExtendedMessageTemplateData . It’s calculated by content, language, + // defaultAttributes and Attachments of the message template. + // + // This member is required. + MessageTemplateContentSha256 *string + + // The identifier of the message template. + // + // This member is required. + MessageTemplateId *string + + // The name of the message template. + // + // This member is required. + Name *string + + // The types of attributes that the message template contains. + AttributeTypes []MessageTemplateAttributeType + + // An object that specifies the default values to use for variables in the message + // template. This object contains different categories of key-value pairs. Each key + // defines a variable or placeholder in the message template. The corresponding + // value defines the default value for that variable. + DefaultAttributes *MessageTemplateAttributes + + // The description of the message template. + Description *string + + // The configuration information of the grouping of Amazon Q in Connect users. + GroupingConfiguration *GroupingConfiguration + + // The language code value for the language in which the quick response is + // written. The supported language codes include de_DE , en_US , es_ES , fr_FR , + // id_ID , it_IT , ja_JP , ko_KR , pt_BR , zh_CN , zh_TW + Language *string + + // The tags used to organize, track, or control access for this resource. + Tags map[string]string + + noSmithyDocumentSerde +} + +// The message template fields to filter the message template query results by. +// The following is the list of supported field names: +// +// - name +// +// - description +// +// - channel +// +// - channelSubtype +// +// - language +// +// - qualifier +// +// - createdTime +// +// - lastModifiedTime +// +// - lastModifiedBy +// +// - groupingConfiguration.criteria +// +// - groupingConfiguration.values +type MessageTemplateFilterField struct { + + // The name of the attribute field to filter the message templates by. + // + // This member is required. + Name *string + + // The operator to use for filtering. + // + // This member is required. + Operator MessageTemplateFilterOperator + + // Whether to treat null value as a match for the attribute field. + IncludeNoExistence *bool + + // The values of attribute field to filter the message template by. + Values []string + + noSmithyDocumentSerde +} + +// The message template fields to order the message template query results by. The +// following is the list of supported field names: +// +// - name +// +// - description +// +// - channel +// +// - channelSubtype +// +// - language +// +// - qualifier +// +// - createdTime +// +// - lastModifiedTime +// +// - lastModifiedBy +// +// - groupingConfiguration.criteria +// +// - groupingConfiguration.values +type MessageTemplateOrderField struct { + + // The name of the message template. + // + // This member is required. + Name *string + + // The order at which the message templates are sorted by. + Order Order + + noSmithyDocumentSerde +} + +// The message template fields to query message templates by. The following is the +// list of supported field names: +// +// - name +// +// - description +type MessageTemplateQueryField struct { + + // The name of the attribute to query the message templates by. + // + // This member is required. + Name *string + + // The operator to use for matching attribute field values in the query. + // + // This member is required. + Operator MessageTemplateQueryOperator + + // The values of the attribute to query the message templates by. + // + // This member is required. + Values []string + + // Whether the query expects only exact matches on the attribute field values. The + // results of the query will only include exact matches if this parameter is set to + // false. + AllowFuzziness *bool + + // The importance of the attribute field when calculating query result relevancy + // scores. The value set for this parameter affects the ordering of search results. + Priority Priority + + noSmithyDocumentSerde +} + +// The search expression of the message template. +type MessageTemplateSearchExpression struct { + + // The configuration of filtering rules applied to message template query results. + Filters []MessageTemplateFilterField + + // The message template attribute fields on which the query results are ordered. + OrderOnField *MessageTemplateOrderField + + // The message template query expressions. + Queries []MessageTemplateQueryField + + noSmithyDocumentSerde +} + +// The result of message template search. +type MessageTemplateSearchResultData struct { + + // The channel subtype this message template applies to. + // + // This member is required. + ChannelSubtype ChannelSubtype + + // The timestamp when the message template was created. + // + // This member is required. + CreatedTime *time.Time + + // The Amazon Resource Name (ARN) of the knowledge base. + // + // This member is required. + KnowledgeBaseArn *string + + // The identifier of the knowledge base. + // + // This member is required. + KnowledgeBaseId *string + + // The Amazon Resource Name (ARN) of the user who last updated the message + // template data. + // + // This member is required. + LastModifiedBy *string + + // The timestamp when the message template data was last modified. + // + // This member is required. + LastModifiedTime *time.Time + + // The Amazon Resource Name (ARN) of the message template. + // + // This member is required. + MessageTemplateArn *string + + // The identifier of the message template. + // + // This member is required. + MessageTemplateId *string + + // The name of the message template. + // + // This member is required. + Name *string + + // The description of the message template. + Description *string + + // The configuration information of the grouping of Amazon Q in Connect users. + GroupingConfiguration *GroupingConfiguration + + // Whether the version of the message template is activated. + IsActive *bool + + // The language code value for the language in which the quick response is + // written. The supported language codes include de_DE , en_US , es_ES , fr_FR , + // id_ID , it_IT , ja_JP , ko_KR , pt_BR , zh_CN , zh_TW + Language *string + + // The tags used to organize, track, or control access for this resource. + Tags map[string]string + + // The version number of the message template version. + VersionNumber *int64 + + noSmithyDocumentSerde +} + +// The summary of the message template. +type MessageTemplateSummary struct { + + // The channel subtype this message template applies to. + // + // This member is required. + ChannelSubtype ChannelSubtype + + // The timestamp when the message template was created. + // + // This member is required. + CreatedTime *time.Time + + // The Amazon Resource Name (ARN) of the knowledge base. + // + // This member is required. + KnowledgeBaseArn *string + + // The identifier of the knowledge base. + // + // This member is required. + KnowledgeBaseId *string + + // The Amazon Resource Name (ARN) of the user who last updated the message + // template data. + // + // This member is required. + LastModifiedBy *string + + // The timestamp when the message template data was last modified. + // + // This member is required. + LastModifiedTime *time.Time + + // The Amazon Resource Name (ARN) of the message template. + // + // This member is required. + MessageTemplateArn *string + + // The identifier of the message template. + // + // This member is required. + MessageTemplateId *string + + // The name of the message template. + // + // This member is required. + Name *string + + // The version number of the message template version that is activated. + ActiveVersionNumber *int64 + + // The description of the message template. + Description *string + + // The tags used to organize, track, or control access for this resource. + Tags map[string]string + + noSmithyDocumentSerde +} + +// The summary of the message template version. +type MessageTemplateVersionSummary struct { + + // The channel subtype this message template applies to. + // + // This member is required. + ChannelSubtype ChannelSubtype + + // Whether the version of the message template is activated. + // + // This member is required. + IsActive *bool + + // The Amazon Resource Name (ARN) of the knowledge base. + // + // This member is required. + KnowledgeBaseArn *string + + // The identifier of the knowledge base. + // + // This member is required. + KnowledgeBaseId *string + + // The Amazon Resource Name (ARN) of the message template. + // + // This member is required. + MessageTemplateArn *string + + // The identifier of the message template. + // + // This member is required. + MessageTemplateId *string + + // The name of the message template. + // + // This member is required. + Name *string + + // The version number of the message template version. + // + // This member is required. + VersionNumber *int64 + + noSmithyDocumentSerde +} + +// An error occurred when creating a recommendation. +type NotifyRecommendationsReceivedError struct { + + // A recommendation is causing an error. + Message *string + + // The identifier of the recommendation that is in error. + RecommendationId *string + + noSmithyDocumentSerde +} + +// A list of conditions which would be applied together with an OR condition. +// +// The following types satisfy this interface: +// +// OrConditionMemberAndConditions +// OrConditionMemberTagCondition +type OrCondition interface { + isOrCondition() +} + +// A list of conditions which would be applied together with an AND condition. +type OrConditionMemberAndConditions struct { + Value []TagCondition + + noSmithyDocumentSerde +} + +func (*OrConditionMemberAndConditions) isOrCondition() {} + +// A leaf node condition which can be used to specify a tag condition. +type OrConditionMemberTagCondition struct { + Value TagCondition + + noSmithyDocumentSerde +} + +func (*OrConditionMemberTagCondition) isOrCondition() {} + +// Settings for parsing document contents. By default, the service converts the +// contents of each document into text before splitting it into chunks. To improve +// processing of PDF files with tables and images, you can configure the data +// source to convert the pages of text into images and use a model to describe the +// contents of each page. +type ParsingConfiguration struct { + + // The parsing strategy for the data source. + // + // This member is required. + ParsingStrategy ParsingStrategy + + // Settings for a foundation model used to parse documents for a data source. + BedrockFoundationModelConfiguration *BedrockFoundationModelConfigurationForParsing + + noSmithyDocumentSerde +} + +// Instructions for interpreting the contents of a document. +type ParsingPrompt struct { + + // Instructions for interpreting the contents of a document. + // + // This member is required. + ParsingPromptText *string + + noSmithyDocumentSerde +} + +// Information about how to query content. +// +// The following types satisfy this interface: +// +// QueryConditionMemberSingle +type QueryCondition interface { + isQueryCondition() +} + +// The condition for the query. +type QueryConditionMemberSingle struct { + Value QueryConditionItem + + noSmithyDocumentSerde +} + +func (*QueryConditionMemberSingle) isQueryCondition() {} + +// The condition for the query. +type QueryConditionItem struct { + + // The comparison operator for query condition to query on. + // + // This member is required. + Comparator QueryConditionComparisonOperator + + // The name of the field for query condition to query on. + // + // This member is required. + Field QueryConditionFieldName + + // The value for the query condition to query on. + // + // This member is required. + Value *string + + noSmithyDocumentSerde +} + +// Input information for the query. +// +// The following types satisfy this interface: +// +// QueryInputDataMemberIntentInputData +// QueryInputDataMemberQueryTextInputData +type QueryInputData interface { + isQueryInputData() +} // Input information for the intent. type QueryInputDataMemberIntentInputData struct { @@ -2048,7 +2884,9 @@ type QuickResponseData struct { // Whether the quick response is active. IsActive *bool - // The language code value for the language in which the quick response is written. + // The language code value for the language in which the quick response is + // written. The supported language codes include de_DE , en_US , es_ES , fr_FR , + // id_ID , it_IT , ja_JP , ko_KR , pt_BR , zh_CN , zh_TW Language *string // The Amazon Resource Name (ARN) of the user who last updated the quick response @@ -2707,6 +3545,24 @@ type SessionSummary struct { noSmithyDocumentSerde } +// The content of the message template that applies to the SMS channel subtype. +type SMSMessageTemplateContent struct { + + // The body to use in SMS messages. + Body *SMSMessageTemplateContentBody + + noSmithyDocumentSerde +} + +// The body to use in SMS messages. +type SMSMessageTemplateContentBody struct { + + // The message body to use in SMS messages. + PlainText MessageTemplateBodyContentProvider + + noSmithyDocumentSerde +} + // Configuration information about the external data source. // // The following types satisfy this interface: @@ -2766,6 +3622,31 @@ type SourceContentDataDetails struct { noSmithyDocumentSerde } +// The system attributes that are used with the message template. +type SystemAttributes struct { + + // The CustomerEndpoint attribute. + CustomerEndpoint *SystemEndpointAttributes + + // The name of the task. + Name *string + + // The SystemEndpoint attribute. + SystemEndpoint *SystemEndpointAttributes + + noSmithyDocumentSerde +} + +// The system endpoint attributes that are used with the message template. +type SystemEndpointAttributes struct { + + // The customer's phone number if used with customerEndpoint , or the number the + // customer dialed to call your contact center if used with systemEndpoint . + Address *string + + noSmithyDocumentSerde +} + // A leaf node condition which can be used to specify a tag condition. type TagCondition struct { @@ -2922,23 +3803,25 @@ type UnknownUnionMember struct { noSmithyDocumentSerde } -func (*UnknownUnionMember) isAIAgentConfiguration() {} -func (*UnknownUnionMember) isAIPromptTemplateConfiguration() {} -func (*UnknownUnionMember) isAssistantAssociationInputData() {} -func (*UnknownUnionMember) isAssistantAssociationOutputData() {} -func (*UnknownUnionMember) isAssociationConfigurationData() {} -func (*UnknownUnionMember) isConfiguration() {} -func (*UnknownUnionMember) isContentAssociationContents() {} -func (*UnknownUnionMember) isContentFeedbackData() {} -func (*UnknownUnionMember) isDataDetails() {} -func (*UnknownUnionMember) isDataReference() {} -func (*UnknownUnionMember) isManagedSourceConfiguration() {} -func (*UnknownUnionMember) isOrCondition() {} -func (*UnknownUnionMember) isQueryCondition() {} -func (*UnknownUnionMember) isQueryInputData() {} -func (*UnknownUnionMember) isQuickResponseContentProvider() {} -func (*UnknownUnionMember) isQuickResponseDataProvider() {} -func (*UnknownUnionMember) isRecommendationTriggerData() {} -func (*UnknownUnionMember) isRuntimeSessionDataValue() {} -func (*UnknownUnionMember) isSourceConfiguration() {} -func (*UnknownUnionMember) isTagFilter() {} +func (*UnknownUnionMember) isAIAgentConfiguration() {} +func (*UnknownUnionMember) isAIPromptTemplateConfiguration() {} +func (*UnknownUnionMember) isAssistantAssociationInputData() {} +func (*UnknownUnionMember) isAssistantAssociationOutputData() {} +func (*UnknownUnionMember) isAssociationConfigurationData() {} +func (*UnknownUnionMember) isConfiguration() {} +func (*UnknownUnionMember) isContentAssociationContents() {} +func (*UnknownUnionMember) isContentFeedbackData() {} +func (*UnknownUnionMember) isDataDetails() {} +func (*UnknownUnionMember) isDataReference() {} +func (*UnknownUnionMember) isManagedSourceConfiguration() {} +func (*UnknownUnionMember) isMessageTemplateBodyContentProvider() {} +func (*UnknownUnionMember) isMessageTemplateContentProvider() {} +func (*UnknownUnionMember) isOrCondition() {} +func (*UnknownUnionMember) isQueryCondition() {} +func (*UnknownUnionMember) isQueryInputData() {} +func (*UnknownUnionMember) isQuickResponseContentProvider() {} +func (*UnknownUnionMember) isQuickResponseDataProvider() {} +func (*UnknownUnionMember) isRecommendationTriggerData() {} +func (*UnknownUnionMember) isRuntimeSessionDataValue() {} +func (*UnknownUnionMember) isSourceConfiguration() {} +func (*UnknownUnionMember) isTagFilter() {} diff --git a/service/qconnect/types/types_exported_test.go b/service/qconnect/types/types_exported_test.go index 8ac0c59a389..55a40bd87b3 100644 --- a/service/qconnect/types/types_exported_test.go +++ b/service/qconnect/types/types_exported_test.go @@ -225,6 +225,46 @@ func ExampleManagedSourceConfiguration_outputUsage() { var _ *types.WebCrawlerConfiguration +func ExampleMessageTemplateBodyContentProvider_outputUsage() { + var union types.MessageTemplateBodyContentProvider + // type switches can be used to check the union value + switch v := union.(type) { + case *types.MessageTemplateBodyContentProviderMemberContent: + _ = 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 + +func ExampleMessageTemplateContentProvider_outputUsage() { + var union types.MessageTemplateContentProvider + // type switches can be used to check the union value + switch v := union.(type) { + case *types.MessageTemplateContentProviderMemberEmail: + _ = v.Value // Value is types.EmailMessageTemplateContent + + case *types.MessageTemplateContentProviderMemberSms: + _ = v.Value // Value is types.SMSMessageTemplateContent + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.EmailMessageTemplateContent +var _ *types.SMSMessageTemplateContent + func ExampleOrCondition_outputUsage() { var union types.OrCondition // type switches can be used to check the union value diff --git a/service/qconnect/validators.go b/service/qconnect/validators.go index 8d26bc02edd..e5345b49745 100644 --- a/service/qconnect/validators.go +++ b/service/qconnect/validators.go @@ -10,6 +10,26 @@ import ( "github.com/aws/smithy-go/middleware" ) +type validateOpActivateMessageTemplate struct { +} + +func (*validateOpActivateMessageTemplate) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpActivateMessageTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ActivateMessageTemplateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpActivateMessageTemplateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateAIAgent struct { } @@ -190,6 +210,66 @@ func (m *validateOpCreateKnowledgeBase) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpCreateMessageTemplateAttachment struct { +} + +func (*validateOpCreateMessageTemplateAttachment) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateMessageTemplateAttachment) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateMessageTemplateAttachmentInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateMessageTemplateAttachmentInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateMessageTemplate struct { +} + +func (*validateOpCreateMessageTemplate) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateMessageTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateMessageTemplateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateMessageTemplateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateMessageTemplateVersion struct { +} + +func (*validateOpCreateMessageTemplateVersion) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateMessageTemplateVersion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateMessageTemplateVersionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateMessageTemplateVersionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateQuickResponse struct { } @@ -230,6 +310,26 @@ func (m *validateOpCreateSession) HandleInitialize(ctx context.Context, in middl return next.HandleInitialize(ctx, in) } +type validateOpDeactivateMessageTemplate struct { +} + +func (*validateOpDeactivateMessageTemplate) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeactivateMessageTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeactivateMessageTemplateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeactivateMessageTemplateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteAIAgent struct { } @@ -430,6 +530,46 @@ func (m *validateOpDeleteKnowledgeBase) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpDeleteMessageTemplateAttachment struct { +} + +func (*validateOpDeleteMessageTemplateAttachment) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteMessageTemplateAttachment) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteMessageTemplateAttachmentInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteMessageTemplateAttachmentInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteMessageTemplate struct { +} + +func (*validateOpDeleteMessageTemplate) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteMessageTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteMessageTemplateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteMessageTemplateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteQuickResponse struct { } @@ -630,6 +770,26 @@ func (m *validateOpGetKnowledgeBase) HandleInitialize(ctx context.Context, in mi return next.HandleInitialize(ctx, in) } +type validateOpGetMessageTemplate struct { +} + +func (*validateOpGetMessageTemplate) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetMessageTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetMessageTemplateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetMessageTemplateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetQuickResponse struct { } @@ -850,6 +1010,46 @@ func (m *validateOpListImportJobs) HandleInitialize(ctx context.Context, in midd return next.HandleInitialize(ctx, in) } +type validateOpListMessageTemplates struct { +} + +func (*validateOpListMessageTemplates) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListMessageTemplates) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListMessageTemplatesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListMessageTemplatesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpListMessageTemplateVersions struct { +} + +func (*validateOpListMessageTemplateVersions) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListMessageTemplateVersions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListMessageTemplateVersionsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListMessageTemplateVersionsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListQuickResponses struct { } @@ -990,6 +1190,26 @@ func (m *validateOpRemoveKnowledgeBaseTemplateUri) HandleInitialize(ctx context. return next.HandleInitialize(ctx, in) } +type validateOpRenderMessageTemplate struct { +} + +func (*validateOpRenderMessageTemplate) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpRenderMessageTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*RenderMessageTemplateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpRenderMessageTemplateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpSearchContent struct { } @@ -1010,6 +1230,26 @@ func (m *validateOpSearchContent) HandleInitialize(ctx context.Context, in middl return next.HandleInitialize(ctx, in) } +type validateOpSearchMessageTemplates struct { +} + +func (*validateOpSearchMessageTemplates) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpSearchMessageTemplates) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*SearchMessageTemplatesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpSearchMessageTemplatesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpSearchQuickResponses struct { } @@ -1230,6 +1470,46 @@ func (m *validateOpUpdateKnowledgeBaseTemplateUri) HandleInitialize(ctx context. return next.HandleInitialize(ctx, in) } +type validateOpUpdateMessageTemplate struct { +} + +func (*validateOpUpdateMessageTemplate) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateMessageTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateMessageTemplateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateMessageTemplateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateMessageTemplateMetadata struct { +} + +func (*validateOpUpdateMessageTemplateMetadata) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateMessageTemplateMetadata) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateMessageTemplateMetadataInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateMessageTemplateMetadataInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpUpdateQuickResponse struct { } @@ -1290,6 +1570,10 @@ func (m *validateOpUpdateSession) HandleInitialize(ctx context.Context, in middl return next.HandleInitialize(ctx, in) } +func addOpActivateMessageTemplateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpActivateMessageTemplate{}, middleware.After) +} + func addOpCreateAIAgentValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateAIAgent{}, middleware.After) } @@ -1326,6 +1610,18 @@ func addOpCreateKnowledgeBaseValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpCreateKnowledgeBase{}, middleware.After) } +func addOpCreateMessageTemplateAttachmentValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateMessageTemplateAttachment{}, middleware.After) +} + +func addOpCreateMessageTemplateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateMessageTemplate{}, middleware.After) +} + +func addOpCreateMessageTemplateVersionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateMessageTemplateVersion{}, middleware.After) +} + func addOpCreateQuickResponseValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateQuickResponse{}, middleware.After) } @@ -1334,6 +1630,10 @@ func addOpCreateSessionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateSession{}, middleware.After) } +func addOpDeactivateMessageTemplateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeactivateMessageTemplate{}, middleware.After) +} + func addOpDeleteAIAgentValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteAIAgent{}, middleware.After) } @@ -1374,6 +1674,14 @@ func addOpDeleteKnowledgeBaseValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpDeleteKnowledgeBase{}, middleware.After) } +func addOpDeleteMessageTemplateAttachmentValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteMessageTemplateAttachment{}, middleware.After) +} + +func addOpDeleteMessageTemplateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteMessageTemplate{}, middleware.After) +} + func addOpDeleteQuickResponseValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteQuickResponse{}, middleware.After) } @@ -1414,6 +1722,10 @@ func addOpGetKnowledgeBaseValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetKnowledgeBase{}, middleware.After) } +func addOpGetMessageTemplateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetMessageTemplate{}, middleware.After) +} + func addOpGetQuickResponseValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetQuickResponse{}, middleware.After) } @@ -1458,6 +1770,14 @@ func addOpListImportJobsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListImportJobs{}, middleware.After) } +func addOpListMessageTemplatesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListMessageTemplates{}, middleware.After) +} + +func addOpListMessageTemplateVersionsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListMessageTemplateVersions{}, middleware.After) +} + func addOpListQuickResponsesValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListQuickResponses{}, middleware.After) } @@ -1486,10 +1806,18 @@ func addOpRemoveKnowledgeBaseTemplateUriValidationMiddleware(stack *middleware.S return stack.Initialize.Add(&validateOpRemoveKnowledgeBaseTemplateUri{}, middleware.After) } +func addOpRenderMessageTemplateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpRenderMessageTemplate{}, middleware.After) +} + func addOpSearchContentValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpSearchContent{}, middleware.After) } +func addOpSearchMessageTemplatesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpSearchMessageTemplates{}, middleware.After) +} + func addOpSearchQuickResponsesValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpSearchQuickResponses{}, middleware.After) } @@ -1534,6 +1862,14 @@ func addOpUpdateKnowledgeBaseTemplateUriValidationMiddleware(stack *middleware.S return stack.Initialize.Add(&validateOpUpdateKnowledgeBaseTemplateUri{}, middleware.After) } +func addOpUpdateMessageTemplateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateMessageTemplate{}, middleware.After) +} + +func addOpUpdateMessageTemplateMetadataValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateMessageTemplateMetadata{}, middleware.After) +} + func addOpUpdateQuickResponseValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateQuickResponse{}, middleware.After) } @@ -2004,22 +2340,137 @@ func validateManualSearchAIAgentConfiguration(v *types.ManualSearchAIAgentConfig } } -func validateOrCondition(v types.OrCondition) error { +func validateMessageTemplateFilterField(v *types.MessageTemplateFilterField) error { if v == nil { return nil } - invalidParams := smithy.InvalidParamsError{Context: "OrCondition"} - switch uv := v.(type) { - case *types.OrConditionMemberAndConditions: - if err := validateAndConditions(uv.Value); err != nil { - invalidParams.AddNested("[andConditions]", err.(smithy.InvalidParamsError)) - } - - case *types.OrConditionMemberTagCondition: - if err := validateTagCondition(&uv.Value); err != nil { - invalidParams.AddNested("[tagCondition]", err.(smithy.InvalidParamsError)) - } - + invalidParams := smithy.InvalidParamsError{Context: "MessageTemplateFilterField"} + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if len(v.Operator) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Operator")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateMessageTemplateFilterFieldList(v []types.MessageTemplateFilterField) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "MessageTemplateFilterFieldList"} + for i := range v { + if err := validateMessageTemplateFilterField(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateMessageTemplateOrderField(v *types.MessageTemplateOrderField) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "MessageTemplateOrderField"} + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateMessageTemplateQueryField(v *types.MessageTemplateQueryField) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "MessageTemplateQueryField"} + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.Values == nil { + invalidParams.Add(smithy.NewErrParamRequired("Values")) + } + if len(v.Operator) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Operator")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateMessageTemplateQueryFieldList(v []types.MessageTemplateQueryField) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "MessageTemplateQueryFieldList"} + for i := range v { + if err := validateMessageTemplateQueryField(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateMessageTemplateSearchExpression(v *types.MessageTemplateSearchExpression) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "MessageTemplateSearchExpression"} + if v.Queries != nil { + if err := validateMessageTemplateQueryFieldList(v.Queries); err != nil { + invalidParams.AddNested("Queries", err.(smithy.InvalidParamsError)) + } + } + if v.Filters != nil { + if err := validateMessageTemplateFilterFieldList(v.Filters); err != nil { + invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError)) + } + } + if v.OrderOnField != nil { + if err := validateMessageTemplateOrderField(v.OrderOnField); err != nil { + invalidParams.AddNested("OrderOnField", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOrCondition(v types.OrCondition) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "OrCondition"} + switch uv := v.(type) { + case *types.OrConditionMemberAndConditions: + if err := validateAndConditions(uv.Value); err != nil { + invalidParams.AddNested("[andConditions]", err.(smithy.InvalidParamsError)) + } + + case *types.OrConditionMemberTagCondition: + if err := validateTagCondition(&uv.Value); err != nil { + invalidParams.AddNested("[tagCondition]", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -2486,6 +2937,27 @@ func validateWebCrawlerConfiguration(v *types.WebCrawlerConfiguration) error { } } +func validateOpActivateMessageTemplateInput(v *ActivateMessageTemplateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ActivateMessageTemplateInput"} + if v.KnowledgeBaseId == nil { + invalidParams.Add(smithy.NewErrParamRequired("KnowledgeBaseId")) + } + if v.MessageTemplateId == nil { + invalidParams.Add(smithy.NewErrParamRequired("MessageTemplateId")) + } + if v.VersionNumber == nil { + invalidParams.Add(smithy.NewErrParamRequired("VersionNumber")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateAIAgentInput(v *CreateAIAgentInput) error { if v == nil { return nil @@ -2705,6 +3177,75 @@ func validateOpCreateKnowledgeBaseInput(v *CreateKnowledgeBaseInput) error { } } +func validateOpCreateMessageTemplateAttachmentInput(v *CreateMessageTemplateAttachmentInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateMessageTemplateAttachmentInput"} + if v.KnowledgeBaseId == nil { + invalidParams.Add(smithy.NewErrParamRequired("KnowledgeBaseId")) + } + if v.MessageTemplateId == nil { + invalidParams.Add(smithy.NewErrParamRequired("MessageTemplateId")) + } + if len(v.ContentDisposition) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("ContentDisposition")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.Body == nil { + invalidParams.Add(smithy.NewErrParamRequired("Body")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateMessageTemplateInput(v *CreateMessageTemplateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateMessageTemplateInput"} + if v.KnowledgeBaseId == nil { + invalidParams.Add(smithy.NewErrParamRequired("KnowledgeBaseId")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.Content == nil { + invalidParams.Add(smithy.NewErrParamRequired("Content")) + } + if len(v.ChannelSubtype) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("ChannelSubtype")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateMessageTemplateVersionInput(v *CreateMessageTemplateVersionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateMessageTemplateVersionInput"} + if v.KnowledgeBaseId == nil { + invalidParams.Add(smithy.NewErrParamRequired("KnowledgeBaseId")) + } + if v.MessageTemplateId == nil { + invalidParams.Add(smithy.NewErrParamRequired("MessageTemplateId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateQuickResponseInput(v *CreateQuickResponseInput) error { if v == nil { return nil @@ -2754,6 +3295,27 @@ func validateOpCreateSessionInput(v *CreateSessionInput) error { } } +func validateOpDeactivateMessageTemplateInput(v *DeactivateMessageTemplateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeactivateMessageTemplateInput"} + if v.KnowledgeBaseId == nil { + invalidParams.Add(smithy.NewErrParamRequired("KnowledgeBaseId")) + } + if v.MessageTemplateId == nil { + invalidParams.Add(smithy.NewErrParamRequired("MessageTemplateId")) + } + if v.VersionNumber == nil { + invalidParams.Add(smithy.NewErrParamRequired("VersionNumber")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteAIAgentInput(v *DeleteAIAgentInput) error { if v == nil { return nil @@ -2937,6 +3499,45 @@ func validateOpDeleteKnowledgeBaseInput(v *DeleteKnowledgeBaseInput) error { } } +func validateOpDeleteMessageTemplateAttachmentInput(v *DeleteMessageTemplateAttachmentInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteMessageTemplateAttachmentInput"} + if v.KnowledgeBaseId == nil { + invalidParams.Add(smithy.NewErrParamRequired("KnowledgeBaseId")) + } + if v.MessageTemplateId == nil { + invalidParams.Add(smithy.NewErrParamRequired("MessageTemplateId")) + } + if v.AttachmentId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AttachmentId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteMessageTemplateInput(v *DeleteMessageTemplateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteMessageTemplateInput"} + if v.KnowledgeBaseId == nil { + invalidParams.Add(smithy.NewErrParamRequired("KnowledgeBaseId")) + } + if v.MessageTemplateId == nil { + invalidParams.Add(smithy.NewErrParamRequired("MessageTemplateId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteQuickResponseInput(v *DeleteQuickResponseInput) error { if v == nil { return nil @@ -3114,6 +3715,24 @@ func validateOpGetKnowledgeBaseInput(v *GetKnowledgeBaseInput) error { } } +func validateOpGetMessageTemplateInput(v *GetMessageTemplateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetMessageTemplateInput"} + if v.MessageTemplateId == nil { + invalidParams.Add(smithy.NewErrParamRequired("MessageTemplateId")) + } + if v.KnowledgeBaseId == nil { + invalidParams.Add(smithy.NewErrParamRequired("KnowledgeBaseId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetQuickResponseInput(v *GetQuickResponseInput) error { if v == nil { return nil @@ -3297,6 +3916,39 @@ func validateOpListImportJobsInput(v *ListImportJobsInput) error { } } +func validateOpListMessageTemplatesInput(v *ListMessageTemplatesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListMessageTemplatesInput"} + if v.KnowledgeBaseId == nil { + invalidParams.Add(smithy.NewErrParamRequired("KnowledgeBaseId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpListMessageTemplateVersionsInput(v *ListMessageTemplateVersionsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListMessageTemplateVersionsInput"} + if v.KnowledgeBaseId == nil { + invalidParams.Add(smithy.NewErrParamRequired("KnowledgeBaseId")) + } + if v.MessageTemplateId == nil { + invalidParams.Add(smithy.NewErrParamRequired("MessageTemplateId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListQuickResponsesInput(v *ListQuickResponsesInput) error { if v == nil { return nil @@ -3434,6 +4086,27 @@ func validateOpRemoveKnowledgeBaseTemplateUriInput(v *RemoveKnowledgeBaseTemplat } } +func validateOpRenderMessageTemplateInput(v *RenderMessageTemplateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "RenderMessageTemplateInput"} + if v.KnowledgeBaseId == nil { + invalidParams.Add(smithy.NewErrParamRequired("KnowledgeBaseId")) + } + if v.MessageTemplateId == nil { + invalidParams.Add(smithy.NewErrParamRequired("MessageTemplateId")) + } + if v.Attributes == nil { + invalidParams.Add(smithy.NewErrParamRequired("Attributes")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpSearchContentInput(v *SearchContentInput) error { if v == nil { return nil @@ -3456,6 +4129,28 @@ func validateOpSearchContentInput(v *SearchContentInput) error { } } +func validateOpSearchMessageTemplatesInput(v *SearchMessageTemplatesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "SearchMessageTemplatesInput"} + if v.KnowledgeBaseId == nil { + invalidParams.Add(smithy.NewErrParamRequired("KnowledgeBaseId")) + } + if v.SearchExpression == nil { + invalidParams.Add(smithy.NewErrParamRequired("SearchExpression")) + } else if v.SearchExpression != nil { + if err := validateMessageTemplateSearchExpression(v.SearchExpression); err != nil { + invalidParams.AddNested("SearchExpression", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpSearchQuickResponsesInput(v *SearchQuickResponsesInput) error { if v == nil { return nil @@ -3693,6 +4388,42 @@ func validateOpUpdateKnowledgeBaseTemplateUriInput(v *UpdateKnowledgeBaseTemplat } } +func validateOpUpdateMessageTemplateInput(v *UpdateMessageTemplateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateMessageTemplateInput"} + if v.KnowledgeBaseId == nil { + invalidParams.Add(smithy.NewErrParamRequired("KnowledgeBaseId")) + } + if v.MessageTemplateId == nil { + invalidParams.Add(smithy.NewErrParamRequired("MessageTemplateId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateMessageTemplateMetadataInput(v *UpdateMessageTemplateMetadataInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateMessageTemplateMetadataInput"} + if v.KnowledgeBaseId == nil { + invalidParams.Add(smithy.NewErrParamRequired("KnowledgeBaseId")) + } + if v.MessageTemplateId == nil { + invalidParams.Add(smithy.NewErrParamRequired("MessageTemplateId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpUpdateQuickResponseInput(v *UpdateQuickResponseInput) error { if v == nil { return nil diff --git a/service/qldb/CHANGELOG.md b/service/qldb/CHANGELOG.md index 21105323090..ec5b430dcd7 100644 --- a/service/qldb/CHANGELOG.md +++ b/service/qldb/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.25.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/qldb/go.mod b/service/qldb/go.mod index 5e9bc52768e..e5fea075372 100644 --- a/service/qldb/go.mod +++ b/service/qldb/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/qldb go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/qldb/go.sum b/service/qldb/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/qldb/go.sum +++ b/service/qldb/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/qldb/go_module_metadata.go b/service/qldb/go_module_metadata.go index ce0aff15809..efb07da979a 100644 --- a/service/qldb/go_module_metadata.go +++ b/service/qldb/go_module_metadata.go @@ -3,4 +3,4 @@ package qldb // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.5" +const goModuleVersion = "1.25.6" diff --git a/service/qldbsession/CHANGELOG.md b/service/qldbsession/CHANGELOG.md index d79c2762348..bad5f1be704 100644 --- a/service/qldbsession/CHANGELOG.md +++ b/service/qldbsession/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.25.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/qldbsession/go.mod b/service/qldbsession/go.mod index a80f411596e..1d10843d0eb 100644 --- a/service/qldbsession/go.mod +++ b/service/qldbsession/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/qldbsession go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/qldbsession/go.sum b/service/qldbsession/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/qldbsession/go.sum +++ b/service/qldbsession/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/qldbsession/go_module_metadata.go b/service/qldbsession/go_module_metadata.go index 92f2620cc1d..6f8fe9817c8 100644 --- a/service/qldbsession/go_module_metadata.go +++ b/service/qldbsession/go_module_metadata.go @@ -3,4 +3,4 @@ package qldbsession // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.5" +const goModuleVersion = "1.25.6" diff --git a/service/quicksight/CHANGELOG.md b/service/quicksight/CHANGELOG.md index 7cc7eaaf5aa..40d888a2d87 100644 --- a/service/quicksight/CHANGELOG.md +++ b/service/quicksight/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.79.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.79.0 (2024-11-14) * **Feature**: This release adds APIs for Custom Permissions management in QuickSight, and APIs to support QuickSight Branding. diff --git a/service/quicksight/go.mod b/service/quicksight/go.mod index 217cc967264..389bf81037b 100644 --- a/service/quicksight/go.mod +++ b/service/quicksight/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/quicksight go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/quicksight/go.sum b/service/quicksight/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/quicksight/go.sum +++ b/service/quicksight/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/quicksight/go_module_metadata.go b/service/quicksight/go_module_metadata.go index af782b42185..338bb073df4 100644 --- a/service/quicksight/go_module_metadata.go +++ b/service/quicksight/go_module_metadata.go @@ -3,4 +3,4 @@ package quicksight // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.79.0" +const goModuleVersion = "1.79.1" diff --git a/service/ram/CHANGELOG.md b/service/ram/CHANGELOG.md index cccb4bee207..aa48419cc3a 100644 --- a/service/ram/CHANGELOG.md +++ b/service/ram/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.29.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.29.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/ram/go.mod b/service/ram/go.mod index 2335502e1a4..b4a6d63ed16 100644 --- a/service/ram/go.mod +++ b/service/ram/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ram go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ram/go.sum b/service/ram/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/ram/go.sum +++ b/service/ram/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/ram/go_module_metadata.go b/service/ram/go_module_metadata.go index af0f7149d14..40540da631b 100644 --- a/service/ram/go_module_metadata.go +++ b/service/ram/go_module_metadata.go @@ -3,4 +3,4 @@ package ram // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.29.5" +const goModuleVersion = "1.29.6" diff --git a/service/rbin/CHANGELOG.md b/service/rbin/CHANGELOG.md index c5cad917a81..dc3a0898f5b 100644 --- a/service/rbin/CHANGELOG.md +++ b/service/rbin/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.21.0 (2024-11-20) + +* **Feature**: This release adds support for exclusion tags for Recycle Bin, which allows you to identify resources that are to be excluded, or ignored, by a Region-level retention rule. + +# v1.20.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/rbin/api_op_CreateRule.go b/service/rbin/api_op_CreateRule.go index d360174fca7..6e555936c34 100644 --- a/service/rbin/api_op_CreateRule.go +++ b/service/rbin/api_op_CreateRule.go @@ -11,10 +11,25 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a Recycle Bin retention rule. For more information, see [Create Recycle Bin retention rules] in the Amazon -// Elastic Compute Cloud User Guide. +// Creates a Recycle Bin retention rule. You can create two types of retention +// rules: // -// [Create Recycle Bin retention rules]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin-working-with-rules.html#recycle-bin-create-rule +// - Tag-level retention rules - These retention rules use resource tags to +// identify the resources to protect. For each retention rule, you specify one or +// more tag key and value pairs. Resources (of the specified type) that have at +// least one of these tag key and value pairs are automatically retained in the +// Recycle Bin upon deletion. Use this type of retention rule to protect specific +// resources in your account based on their tags. +// +// - Region-level retention rules - These retention rules, by default, apply to +// all of the resources (of the specified type) in the Region, even if the +// resources are not tagged. However, you can specify exclusion tags to exclude +// resources that have specific tags. Use this type of retention rule to protect +// all resources of a specific type in a Region. +// +// For more information, see [Create Recycle Bin retention rules] in the Amazon EBS User Guide. +// +// [Create Recycle Bin retention rules]: https://docs.aws.amazon.com/ebs/latest/userguide/recycle-bin.html func (c *Client) CreateRule(ctx context.Context, params *CreateRuleInput, optFns ...func(*Options)) (*CreateRuleOutput, error) { if params == nil { params = &CreateRuleInput{} @@ -48,15 +63,23 @@ type CreateRuleInput struct { // The retention rule description. Description *string + // [Region-level retention rules only] Specifies the exclusion tags to use to + // identify resources that are to be excluded, or ignored, by a Region-level + // retention rule. Resources that have any of these tags are not retained by the + // retention rule upon deletion. + // + // You can't specify exclusion tags for tag-level retention rules. + ExcludeResourceTags []types.ResourceTag + // Information about the retention rule lock configuration. LockConfiguration *types.LockConfiguration - // Specifies the resource tags to use to identify resources that are to be - // retained by a tag-level retention rule. For tag-level retention rules, only - // deleted resources, of the specified resource type, that have one or more of the - // specified tag key and value pairs are retained. If a resource is deleted, but it - // does not have any of the specified tag key and value pairs, it is immediately - // deleted without being retained by the retention rule. + // [Tag-level retention rules only] Specifies the resource tags to use to identify + // resources that are to be retained by a tag-level retention rule. For tag-level + // retention rules, only deleted resources, of the specified resource type, that + // have one or more of the specified tag key and value pairs are retained. If a + // resource is deleted, but it does not have any of the specified tag key and value + // pairs, it is immediately deleted without being retained by the retention rule. // // You can add the same tag key and value pair to a maximum or five retention // rules. @@ -78,13 +101,18 @@ type CreateRuleOutput struct { // The retention rule description. Description *string + // [Region-level retention rules only] Information about the exclusion tags used + // to identify resources that are to be excluded, or ignored, by the retention + // rule. + ExcludeResourceTags []types.ResourceTag + // The unique ID of the retention rule. Identifier *string // Information about the retention rule lock configuration. LockConfiguration *types.LockConfiguration - // The lock state for the retention rule. + // [Region-level retention rules only] The lock state for the retention rule. // // - locked - The retention rule is locked and can't be modified or deleted. // @@ -100,8 +128,8 @@ type CreateRuleOutput struct { // can never transition back to null . LockState types.LockState - // Information about the resource tags used to identify resources that are - // retained by the retention rule. + // [Tag-level retention rules only] Information about the resource tags used to + // identify resources that are retained by the retention rule. ResourceTags []types.ResourceTag // The resource type retained by the retention rule. diff --git a/service/rbin/api_op_GetRule.go b/service/rbin/api_op_GetRule.go index e4937f3ff11..6c349dcad33 100644 --- a/service/rbin/api_op_GetRule.go +++ b/service/rbin/api_op_GetRule.go @@ -43,6 +43,11 @@ type GetRuleOutput struct { // The retention rule description. Description *string + // [Region-level retention rules only] Information about the exclusion tags used + // to identify resources that are to be excluded, or ignored, by the retention + // rule. + ExcludeResourceTags []types.ResourceTag + // The unique ID of the retention rule. Identifier *string @@ -54,7 +59,7 @@ type GetRuleOutput struct { // delay period. LockEndTime *time.Time - // The lock state for the retention rule. + // [Region-level retention rules only] The lock state for the retention rule. // // - locked - The retention rule is locked and can't be modified or deleted. // @@ -70,8 +75,8 @@ type GetRuleOutput struct { // can never transition back to null . LockState types.LockState - // Information about the resource tags used to identify resources that are - // retained by the retention rule. + // [Tag-level retention rules only] Information about the resource tags used to + // identify resources that are retained by the retention rule. ResourceTags []types.ResourceTag // The resource type retained by the retention rule. diff --git a/service/rbin/api_op_ListRules.go b/service/rbin/api_op_ListRules.go index 5a9277f2199..44e7c852748 100644 --- a/service/rbin/api_op_ListRules.go +++ b/service/rbin/api_op_ListRules.go @@ -38,6 +38,11 @@ type ListRulesInput struct { // This member is required. ResourceType types.ResourceType + // [Region-level retention rules only] Information about the exclusion tags used + // to identify resources that are to be excluded, or ignored, by the retention + // rule. + ExcludeResourceTags []types.ResourceTag + // The lock state of the retention rules to list. Only retention rules with the // specified lock state are returned. LockState types.LockState @@ -49,8 +54,8 @@ type ListRulesInput struct { // The token for the next page of results. NextToken *string - // Information about the resource tags used to identify resources that are - // retained by the retention rule. + // [Tag-level retention rules only] Information about the resource tags used to + // identify resources that are retained by the retention rule. ResourceTags []types.ResourceTag noSmithyDocumentSerde diff --git a/service/rbin/api_op_LockRule.go b/service/rbin/api_op_LockRule.go index b225de6e365..018ea24d909 100644 --- a/service/rbin/api_op_LockRule.go +++ b/service/rbin/api_op_LockRule.go @@ -11,7 +11,11 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Locks a retention rule. A locked retention rule can't be modified or deleted. +// Locks a Region-level retention rule. A locked retention rule can't be modified +// or deleted. +// +// You can't lock tag-level retention rules, or Region-level retention rules that +// have exclusion tags. func (c *Client) LockRule(ctx context.Context, params *LockRuleInput, optFns ...func(*Options)) (*LockRuleOutput, error) { if params == nil { params = &LockRuleInput{} @@ -47,13 +51,18 @@ type LockRuleOutput struct { // The retention rule description. Description *string + // [Region-level retention rules only] Information about the exclusion tags used + // to identify resources that are to be excluded, or ignored, by the retention + // rule. + ExcludeResourceTags []types.ResourceTag + // The unique ID of the retention rule. Identifier *string // Information about the retention rule lock configuration. LockConfiguration *types.LockConfiguration - // The lock state for the retention rule. + // [Region-level retention rules only] The lock state for the retention rule. // // - locked - The retention rule is locked and can't be modified or deleted. // @@ -69,8 +78,8 @@ type LockRuleOutput struct { // can never transition back to null . LockState types.LockState - // Information about the resource tags used to identify resources that are - // retained by the retention rule. + // [Tag-level retention rules only] Information about the resource tags used to + // identify resources that are retained by the retention rule. ResourceTags []types.ResourceTag // The resource type retained by the retention rule. diff --git a/service/rbin/api_op_UnlockRule.go b/service/rbin/api_op_UnlockRule.go index 4f18be26aab..73b1395863e 100644 --- a/service/rbin/api_op_UnlockRule.go +++ b/service/rbin/api_op_UnlockRule.go @@ -44,6 +44,11 @@ type UnlockRuleOutput struct { // The retention rule description. Description *string + // [Region-level retention rules only] Information about the exclusion tags used + // to identify resources that are to be excluded, or ignored, by the retention + // rule. + ExcludeResourceTags []types.ResourceTag + // The unique ID of the retention rule. Identifier *string @@ -55,7 +60,7 @@ type UnlockRuleOutput struct { // delay period. LockEndTime *time.Time - // The lock state for the retention rule. + // [Region-level retention rules only] The lock state for the retention rule. // // - locked - The retention rule is locked and can't be modified or deleted. // @@ -71,8 +76,8 @@ type UnlockRuleOutput struct { // can never transition back to null . LockState types.LockState - // Information about the resource tags used to identify resources that are - // retained by the retention rule. + // [Tag-level retention rules only] Information about the resource tags used to + // identify resources that are retained by the retention rule. ResourceTags []types.ResourceTag // The resource type retained by the retention rule. diff --git a/service/rbin/api_op_UpdateRule.go b/service/rbin/api_op_UpdateRule.go index edea45fd74c..7f95247eed9 100644 --- a/service/rbin/api_op_UpdateRule.go +++ b/service/rbin/api_op_UpdateRule.go @@ -43,12 +43,20 @@ type UpdateRuleInput struct { // The retention rule description. Description *string - // Specifies the resource tags to use to identify resources that are to be - // retained by a tag-level retention rule. For tag-level retention rules, only - // deleted resources, of the specified resource type, that have one or more of the - // specified tag key and value pairs are retained. If a resource is deleted, but it - // does not have any of the specified tag key and value pairs, it is immediately - // deleted without being retained by the retention rule. + // [Region-level retention rules only] Specifies the exclusion tags to use to + // identify resources that are to be excluded, or ignored, by a Region-level + // retention rule. Resources that have any of these tags are not retained by the + // retention rule upon deletion. + // + // You can't specify exclusion tags for tag-level retention rules. + ExcludeResourceTags []types.ResourceTag + + // [Tag-level retention rules only] Specifies the resource tags to use to identify + // resources that are to be retained by a tag-level retention rule. For tag-level + // retention rules, only deleted resources, of the specified resource type, that + // have one or more of the specified tag key and value pairs are retained. If a + // resource is deleted, but it does not have any of the specified tag key and value + // pairs, it is immediately deleted without being retained by the retention rule. // // You can add the same tag key and value pair to a maximum or five retention // rules. @@ -75,6 +83,11 @@ type UpdateRuleOutput struct { // The retention rule description. Description *string + // [Region-level retention rules only] Information about the exclusion tags used + // to identify resources that are to be excluded, or ignored, by the retention + // rule. + ExcludeResourceTags []types.ResourceTag + // The unique ID of the retention rule. Identifier *string @@ -83,7 +96,7 @@ type UpdateRuleOutput struct { // delay period. LockEndTime *time.Time - // The lock state for the retention rule. + // [Region-level retention rules only] The lock state for the retention rule. // // - locked - The retention rule is locked and can't be modified or deleted. // @@ -99,8 +112,8 @@ type UpdateRuleOutput struct { // can never transition back to null . LockState types.LockState - // Information about the resource tags used to identify resources that are - // retained by the retention rule. + // [Tag-level retention rules only] Information about the resource tags used to + // identify resources that are retained by the retention rule. ResourceTags []types.ResourceTag // The resource type retained by the retention rule. diff --git a/service/rbin/deserializers.go b/service/rbin/deserializers.go index 87af680bbe3..16563d6b4b8 100644 --- a/service/rbin/deserializers.go +++ b/service/rbin/deserializers.go @@ -182,6 +182,11 @@ func awsRestjson1_deserializeOpDocumentCreateRuleOutput(v **CreateRuleOutput, va sv.Description = ptr.String(jtv) } + case "ExcludeResourceTags": + if err := awsRestjson1_deserializeDocumentExcludeResourceTags(&sv.ExcludeResourceTags, value); err != nil { + return err + } + case "Identifier": if value != nil { jtv, ok := value.(string) @@ -506,6 +511,11 @@ func awsRestjson1_deserializeOpDocumentGetRuleOutput(v **GetRuleOutput, value in sv.Description = ptr.String(jtv) } + case "ExcludeResourceTags": + if err := awsRestjson1_deserializeDocumentExcludeResourceTags(&sv.ExcludeResourceTags, value); err != nil { + return err + } + case "Identifier": if value != nil { jtv, ok := value.(string) @@ -1069,6 +1079,11 @@ func awsRestjson1_deserializeOpDocumentLockRuleOutput(v **LockRuleOutput, value sv.Description = ptr.String(jtv) } + case "ExcludeResourceTags": + if err := awsRestjson1_deserializeDocumentExcludeResourceTags(&sv.ExcludeResourceTags, value); err != nil { + return err + } + case "Identifier": if value != nil { jtv, ok := value.(string) @@ -1391,6 +1406,11 @@ func awsRestjson1_deserializeOpDocumentUnlockRuleOutput(v **UnlockRuleOutput, va sv.Description = ptr.String(jtv) } + case "ExcludeResourceTags": + if err := awsRestjson1_deserializeDocumentExcludeResourceTags(&sv.ExcludeResourceTags, value); err != nil { + return err + } + case "Identifier": if value != nil { jtv, ok := value.(string) @@ -1729,6 +1749,11 @@ func awsRestjson1_deserializeOpDocumentUpdateRuleOutput(v **UpdateRuleOutput, va sv.Description = ptr.String(jtv) } + case "ExcludeResourceTags": + if err := awsRestjson1_deserializeDocumentExcludeResourceTags(&sv.ExcludeResourceTags, value); err != nil { + return err + } + case "Identifier": if value != nil { jtv, ok := value.(string) @@ -2038,6 +2063,40 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti return nil } +func awsRestjson1_deserializeDocumentExcludeResourceTags(v *[]types.ResourceTag, 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.ResourceTag + if *v == nil { + cv = []types.ResourceTag{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ResourceTag + destAddr := &col + if err := awsRestjson1_deserializeDocumentResourceTag(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/rbin/go.mod b/service/rbin/go.mod index 230a1c0df31..472dd59b5a2 100644 --- a/service/rbin/go.mod +++ b/service/rbin/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/rbin go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/rbin/go.sum b/service/rbin/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/rbin/go.sum +++ b/service/rbin/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/rbin/go_module_metadata.go b/service/rbin/go_module_metadata.go index 08184c952f3..f2899cc3c53 100644 --- a/service/rbin/go_module_metadata.go +++ b/service/rbin/go_module_metadata.go @@ -3,4 +3,4 @@ package rbin // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.5" +const goModuleVersion = "1.21.0" diff --git a/service/rbin/serializers.go b/service/rbin/serializers.go index 721cf296f47..5150b5b9a5d 100644 --- a/service/rbin/serializers.go +++ b/service/rbin/serializers.go @@ -93,6 +93,13 @@ func awsRestjson1_serializeOpDocumentCreateRuleInput(v *CreateRuleInput, value s ok.String(*v.Description) } + if v.ExcludeResourceTags != nil { + ok := object.Key("ExcludeResourceTags") + if err := awsRestjson1_serializeDocumentExcludeResourceTags(v.ExcludeResourceTags, ok); err != nil { + return err + } + } + if v.LockConfiguration != nil { ok := object.Key("LockConfiguration") if err := awsRestjson1_serializeDocumentLockConfiguration(v.LockConfiguration, ok); err != nil { @@ -344,6 +351,13 @@ func awsRestjson1_serializeOpDocumentListRulesInput(v *ListRulesInput, value smi object := value.Object() defer object.Close() + if v.ExcludeResourceTags != nil { + ok := object.Key("ExcludeResourceTags") + if err := awsRestjson1_serializeDocumentExcludeResourceTags(v.ExcludeResourceTags, ok); err != nil { + return err + } + } + if len(v.LockState) > 0 { ok := object.Key("LockState") ok.String(string(v.LockState)) @@ -876,6 +890,13 @@ func awsRestjson1_serializeOpDocumentUpdateRuleInput(v *UpdateRuleInput, value s ok.String(*v.Description) } + if v.ExcludeResourceTags != nil { + ok := object.Key("ExcludeResourceTags") + if err := awsRestjson1_serializeDocumentExcludeResourceTags(v.ExcludeResourceTags, ok); err != nil { + return err + } + } + if v.ResourceTags != nil { ok := object.Key("ResourceTags") if err := awsRestjson1_serializeDocumentResourceTags(v.ResourceTags, ok); err != nil { @@ -898,6 +919,19 @@ func awsRestjson1_serializeOpDocumentUpdateRuleInput(v *UpdateRuleInput, value s return nil } +func awsRestjson1_serializeDocumentExcludeResourceTags(v []types.ResourceTag, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentResourceTag(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsRestjson1_serializeDocumentLockConfiguration(v *types.LockConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/rbin/types/types.go b/service/rbin/types/types.go index de8af5af331..ddb2da422ef 100644 --- a/service/rbin/types/types.go +++ b/service/rbin/types/types.go @@ -17,8 +17,8 @@ type LockConfiguration struct { noSmithyDocumentSerde } -// Information about the resource tags used to identify resources that are -// retained by the retention rule. +// [Tag-level retention rules only] Information about the resource tags used to +// identify resources that are retained by the retention rule. type ResourceTag struct { // The tag key. @@ -60,7 +60,7 @@ type RuleSummary struct { // The unique ID of the retention rule. Identifier *string - // The lock state for the retention rule. + // [Region-level retention rules only] The lock state for the retention rule. // // - locked - The retention rule is locked and can't be modified or deleted. // diff --git a/service/rbin/validators.go b/service/rbin/validators.go index 1706da0e69f..07037f55d30 100644 --- a/service/rbin/validators.go +++ b/service/rbin/validators.go @@ -250,6 +250,23 @@ func addOpUpdateRuleValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateRule{}, middleware.After) } +func validateExcludeResourceTags(v []types.ResourceTag) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ExcludeResourceTags"} + for i := range v { + if err := validateResourceTag(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateLockConfiguration(v *types.LockConfiguration) error { if v == nil { return nil @@ -402,6 +419,11 @@ func validateOpCreateRuleInput(v *CreateRuleInput) error { invalidParams.AddNested("LockConfiguration", err.(smithy.InvalidParamsError)) } } + if v.ExcludeResourceTags != nil { + if err := validateExcludeResourceTags(v.ExcludeResourceTags); err != nil { + invalidParams.AddNested("ExcludeResourceTags", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -452,6 +474,11 @@ func validateOpListRulesInput(v *ListRulesInput) error { invalidParams.AddNested("ResourceTags", err.(smithy.InvalidParamsError)) } } + if v.ExcludeResourceTags != nil { + if err := validateExcludeResourceTags(v.ExcludeResourceTags); err != nil { + invalidParams.AddNested("ExcludeResourceTags", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -569,6 +596,11 @@ func validateOpUpdateRuleInput(v *UpdateRuleInput) error { invalidParams.AddNested("ResourceTags", err.(smithy.InvalidParamsError)) } } + if v.ExcludeResourceTags != nil { + if err := validateExcludeResourceTags(v.ExcludeResourceTags); err != nil { + invalidParams.AddNested("ExcludeResourceTags", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/rds/CHANGELOG.md b/service/rds/CHANGELOG.md index d9ec07ffd30..291fe7c63a0 100644 --- a/service/rds/CHANGELOG.md +++ b/service/rds/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.91.0 (2024-11-20) + +* **Feature**: This release adds support for scale storage on the DB instance using a Blue/Green Deployment. + +# v1.90.0 (2024-11-18) + +* **Feature**: Add support for the automatic pause/resume feature of Aurora Serverless v2. +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.89.2 (2024-11-12) * **Documentation**: Updates Amazon RDS documentation for Amazon RDS Extended Support for Amazon Aurora MySQL. diff --git a/service/rds/api_op_CreateBlueGreenDeployment.go b/service/rds/api_op_CreateBlueGreenDeployment.go index 4bcb8625cd5..8b8c80515d2 100644 --- a/service/rds/api_op_CreateBlueGreenDeployment.go +++ b/service/rds/api_op_CreateBlueGreenDeployment.go @@ -16,8 +16,7 @@ import ( // A blue/green deployment creates a staging environment that copies the // production environment. In a blue/green deployment, the blue environment is the // current production environment. The green environment is the staging -// environment. The staging environment stays in sync with the current production -// environment using logical replication. +// environment, and it stays in sync with the current production environment. // // You can make changes to the databases in the green environment without // affecting production workloads. For example, you can upgrade the major or minor @@ -72,6 +71,13 @@ type CreateBlueGreenDeploymentInput struct { // Tags to assign to the blue/green deployment. Tags []types.Tag + // The amount of storage in gibibytes (GiB) to allocate for the green DB instance. + // You can choose to increase or decrease the allocated storage on the green DB + // instance. + // + // This setting doesn't apply to Amazon Aurora blue/green deployments. + TargetAllocatedStorage *int32 + // The DB cluster parameter group associated with the Aurora DB cluster in the // green environment. // @@ -99,6 +105,29 @@ type CreateBlueGreenDeploymentInput struct { // Specify the engine version to upgrade to in the green environment. TargetEngineVersion *string + // The amount of Provisioned IOPS (input/output operations per second) to allocate + // for the green DB instance. For information about valid IOPS values, see [Amazon RDS DB instance storage]in the + // Amazon RDS User Guide. + // + // This setting doesn't apply to Amazon Aurora blue/green deployments. + // + // [Amazon RDS DB instance storage]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html + TargetIops *int32 + + // The storage throughput value for the green DB instance. + // + // This setting applies only to the gp3 storage type. + // + // This setting doesn't apply to Amazon Aurora blue/green deployments. + TargetStorageThroughput *int32 + + // The storage type to associate with the green DB instance. + // + // Valid Values: gp2 | gp3 | io1 | io2 + // + // This setting doesn't apply to Amazon Aurora blue/green deployments. + TargetStorageType *string + // Whether to upgrade the storage file system configuration on the green database. // This option migrates the green DB instance from the older 32-bit file system to // the preferred configuration. For more information, see [Upgrading the storage file system for a DB instance]. diff --git a/service/rds/api_op_CreateCustomDBEngineVersion.go b/service/rds/api_op_CreateCustomDBEngineVersion.go index 2d8bb087c7f..48745a668a0 100644 --- a/service/rds/api_op_CreateCustomDBEngineVersion.go +++ b/service/rds/api_op_CreateCustomDBEngineVersion.go @@ -194,6 +194,14 @@ type CreateCustomDBEngineVersionOutput struct { // The major engine version of the CEV. MajorEngineVersion *string + // Specifies any Aurora Serverless v2 properties or limits that differ between + // Aurora engine versions. You can test the values of this attribute when deciding + // which Aurora version to use in a new or upgraded DB cluster. You can also + // retrieve the version of an existing DB cluster and check whether that version + // supports certain Aurora Serverless v2 features before you attempt to use those + // features. + ServerlessV2FeaturesSupport *types.ServerlessV2FeaturesSupport + // The status of the DB engine version, either available or deprecated . Status *string diff --git a/service/rds/api_op_CreateDBInstance.go b/service/rds/api_op_CreateDBInstance.go index 2b651b0ee56..cb9a364f4a8 100644 --- a/service/rds/api_op_CreateDBInstance.go +++ b/service/rds/api_op_CreateDBInstance.go @@ -341,6 +341,9 @@ type CreateDBInstanceInput struct { // // - Must contain 1 to 64 alphanumeric characters. // + // - Must begin with a letter. Subsequent characters can be letters, + // underscores, or digits (0-9). + // // - Can't be a word reserved by the database engine. // // Amazon Aurora PostgreSQL The name of the database to create when the primary DB diff --git a/service/rds/api_op_CreateDBShardGroup.go b/service/rds/api_op_CreateDBShardGroup.go index 0acb3488de9..6b461803452 100644 --- a/service/rds/api_op_CreateDBShardGroup.go +++ b/service/rds/api_op_CreateDBShardGroup.go @@ -109,6 +109,7 @@ type CreateDBShardGroupInput struct { noSmithyDocumentSerde } +// Contains the details for an Amazon RDS DB shard group. type CreateDBShardGroupOutput struct { // Specifies whether to create standby DB shard groups for the DB shard group. diff --git a/service/rds/api_op_DeleteCustomDBEngineVersion.go b/service/rds/api_op_DeleteCustomDBEngineVersion.go index 3ab95e00658..d2184399aa5 100644 --- a/service/rds/api_op_DeleteCustomDBEngineVersion.go +++ b/service/rds/api_op_DeleteCustomDBEngineVersion.go @@ -136,6 +136,14 @@ type DeleteCustomDBEngineVersionOutput struct { // The major engine version of the CEV. MajorEngineVersion *string + // Specifies any Aurora Serverless v2 properties or limits that differ between + // Aurora engine versions. You can test the values of this attribute when deciding + // which Aurora version to use in a new or upgraded DB cluster. You can also + // retrieve the version of an existing DB cluster and check whether that version + // supports certain Aurora Serverless v2 features before you attempt to use those + // features. + ServerlessV2FeaturesSupport *types.ServerlessV2FeaturesSupport + // The status of the DB engine version, either available or deprecated . Status *string diff --git a/service/rds/api_op_DeleteDBShardGroup.go b/service/rds/api_op_DeleteDBShardGroup.go index 13cd489b7f8..7ecab9123fe 100644 --- a/service/rds/api_op_DeleteDBShardGroup.go +++ b/service/rds/api_op_DeleteDBShardGroup.go @@ -37,6 +37,7 @@ type DeleteDBShardGroupInput struct { noSmithyDocumentSerde } +// Contains the details for an Amazon RDS DB shard group. type DeleteDBShardGroupOutput struct { // Specifies whether to create standby DB shard groups for the DB shard group. diff --git a/service/rds/api_op_ModifyCustomDBEngineVersion.go b/service/rds/api_op_ModifyCustomDBEngineVersion.go index a8ac14fde0a..1d8aa01cd2e 100644 --- a/service/rds/api_op_ModifyCustomDBEngineVersion.go +++ b/service/rds/api_op_ModifyCustomDBEngineVersion.go @@ -147,6 +147,14 @@ type ModifyCustomDBEngineVersionOutput struct { // The major engine version of the CEV. MajorEngineVersion *string + // Specifies any Aurora Serverless v2 properties or limits that differ between + // Aurora engine versions. You can test the values of this attribute when deciding + // which Aurora version to use in a new or upgraded DB cluster. You can also + // retrieve the version of an existing DB cluster and check whether that version + // supports certain Aurora Serverless v2 features before you attempt to use those + // features. + ServerlessV2FeaturesSupport *types.ServerlessV2FeaturesSupport + // The status of the DB engine version, either available or deprecated . Status *string diff --git a/service/rds/api_op_ModifyDBCluster.go b/service/rds/api_op_ModifyDBCluster.go index 015ce2c55c5..336e9ebc275 100644 --- a/service/rds/api_op_ModifyDBCluster.go +++ b/service/rds/api_op_ModifyDBCluster.go @@ -79,11 +79,10 @@ type ModifyDBClusterInput struct { // cluster's current version. AllowMajorVersionUpgrade *bool - // Specifies whether the modifications in this request and any pending - // modifications are asynchronously applied as soon as possible, regardless of the - // PreferredMaintenanceWindow setting for the DB cluster. If this parameter is - // disabled, changes to the DB cluster are applied during the next maintenance - // window. + // Specifies whether the modifications in this request are asynchronously applied + // as soon as possible, regardless of the PreferredMaintenanceWindow setting for + // the DB cluster. If this parameter is disabled, changes to the DB cluster are + // applied during the next maintenance window. // // Most modifications can be applied immediately or during the next scheduled // maintenance window. Some modifications, such as turning on deletion protection diff --git a/service/rds/api_op_ModifyDBShardGroup.go b/service/rds/api_op_ModifyDBShardGroup.go index f8d4b76b79c..9656182daa3 100644 --- a/service/rds/api_op_ModifyDBShardGroup.go +++ b/service/rds/api_op_ModifyDBShardGroup.go @@ -58,6 +58,7 @@ type ModifyDBShardGroupInput struct { noSmithyDocumentSerde } +// Contains the details for an Amazon RDS DB shard group. type ModifyDBShardGroupOutput struct { // Specifies whether to create standby DB shard groups for the DB shard group. diff --git a/service/rds/api_op_RebootDBShardGroup.go b/service/rds/api_op_RebootDBShardGroup.go index 84a7fd61edc..f6402250ab0 100644 --- a/service/rds/api_op_RebootDBShardGroup.go +++ b/service/rds/api_op_RebootDBShardGroup.go @@ -41,6 +41,7 @@ type RebootDBShardGroupInput struct { noSmithyDocumentSerde } +// Contains the details for an Amazon RDS DB shard group. type RebootDBShardGroupOutput struct { // Specifies whether to create standby DB shard groups for the DB shard group. diff --git a/service/rds/deserializers.go b/service/rds/deserializers.go index 9974cd2cb4b..1377d674aae 100644 --- a/service/rds/deserializers.go +++ b/service/rds/deserializers.go @@ -8189,6 +8189,9 @@ func awsAwsquery_deserializeOpErrorDescribeDBLogFiles(response *smithyhttp.Respo case strings.EqualFold("DBInstanceNotFound", errorCode): return awsAwsquery_deserializeErrorDBInstanceNotFoundFault(response, errorBody) + case strings.EqualFold("DBInstanceNotReady", errorCode): + return awsAwsquery_deserializeErrorDBInstanceNotReadyFault(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -11776,6 +11779,9 @@ func awsAwsquery_deserializeOpErrorDownloadDBLogFilePortion(response *smithyhttp case strings.EqualFold("DBInstanceNotFound", errorCode): return awsAwsquery_deserializeErrorDBInstanceNotFoundFault(response, errorBody) + case strings.EqualFold("DBInstanceNotReady", errorCode): + return awsAwsquery_deserializeErrorDBInstanceNotReadyFault(response, errorBody) + case strings.EqualFold("DBLogFileNotFoundFault", errorCode): return awsAwsquery_deserializeErrorDBLogFileNotFoundFault(response, errorBody) @@ -20632,6 +20638,50 @@ func awsAwsquery_deserializeErrorDBInstanceNotFoundFault(response *smithyhttp.Re return output } +func awsAwsquery_deserializeErrorDBInstanceNotReadyFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.DBInstanceNotReadyFault{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return output + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + t, err = decoder.GetElement("Error") + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) + err = awsAwsquery_deserializeDocumentDBInstanceNotReadyFault(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return output +} + func awsAwsquery_deserializeErrorDBInstanceRoleAlreadyExistsFault(response *smithyhttp.Response, errorBody *bytes.Reader) error { output := &types.DBInstanceRoleAlreadyExistsFault{} var buff [1024]byte @@ -32431,6 +32481,12 @@ func awsAwsquery_deserializeDocumentDBEngineVersion(v **types.DBEngineVersion, d sv.MajorEngineVersion = ptr.String(xtv) } + case strings.EqualFold("ServerlessV2FeaturesSupport", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentServerlessV2FeaturesSupport(&sv.ServerlessV2FeaturesSupport, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("Status", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -34740,6 +34796,55 @@ func awsAwsquery_deserializeDocumentDBInstanceNotFoundFault(v **types.DBInstance return nil } +func awsAwsquery_deserializeDocumentDBInstanceNotReadyFault(v **types.DBInstanceNotReadyFault, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.DBInstanceNotReadyFault + if *v == nil { + sv = &types.DBInstanceNotReadyFault{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("message", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsAwsquery_deserializeDocumentDBInstanceRole(v **types.DBInstanceRole, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -52211,6 +52316,76 @@ func awsAwsquery_deserializeDocumentScalingConfigurationInfo(v **types.ScalingCo return nil } +func awsAwsquery_deserializeDocumentServerlessV2FeaturesSupport(v **types.ServerlessV2FeaturesSupport, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.ServerlessV2FeaturesSupport + if *v == nil { + sv = &types.ServerlessV2FeaturesSupport{} + } 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("MaxCapacity", 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.MaxCapacity = ptr.Float64(f64) + } + + case strings.EqualFold("MinCapacity", 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.MinCapacity = ptr.Float64(f64) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsAwsquery_deserializeDocumentServerlessV2ScalingConfigurationInfo(v **types.ServerlessV2ScalingConfigurationInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -52267,6 +52442,23 @@ func awsAwsquery_deserializeDocumentServerlessV2ScalingConfigurationInfo(v **typ sv.MinCapacity = ptr.Float64(f64) } + case strings.EqualFold("SecondsUntilAutoPause", 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.SecondsUntilAutoPause = ptr.Int32(int32(i64)) + } + default: // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() @@ -56460,6 +56652,12 @@ func awsAwsquery_deserializeOpDocumentCreateCustomDBEngineVersionOutput(v **Crea sv.MajorEngineVersion = ptr.String(xtv) } + case strings.EqualFold("ServerlessV2FeaturesSupport", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentServerlessV2FeaturesSupport(&sv.ServerlessV2FeaturesSupport, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("Status", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -58078,6 +58276,12 @@ func awsAwsquery_deserializeOpDocumentDeleteCustomDBEngineVersionOutput(v **Dele sv.MajorEngineVersion = ptr.String(xtv) } + case strings.EqualFold("ServerlessV2FeaturesSupport", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentServerlessV2FeaturesSupport(&sv.ServerlessV2FeaturesSupport, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("Status", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -62525,6 +62729,12 @@ func awsAwsquery_deserializeOpDocumentModifyCustomDBEngineVersionOutput(v **Modi sv.MajorEngineVersion = ptr.String(xtv) } + case strings.EqualFold("ServerlessV2FeaturesSupport", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentServerlessV2FeaturesSupport(&sv.ServerlessV2FeaturesSupport, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("Status", t.Name.Local): val, err := decoder.Value() if err != nil { diff --git a/service/rds/go.mod b/service/rds/go.mod index 84f7e1e7f9b..e6249516d59 100644 --- a/service/rds/go.mod +++ b/service/rds/go.mod @@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/service/rds go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/rds/go.sum b/service/rds/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/rds/go.sum +++ b/service/rds/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/rds/go_module_metadata.go b/service/rds/go_module_metadata.go index b02effa85bf..670e20eccd7 100644 --- a/service/rds/go_module_metadata.go +++ b/service/rds/go_module_metadata.go @@ -3,4 +3,4 @@ package rds // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.89.2" +const goModuleVersion = "1.91.0" diff --git a/service/rds/serializers.go b/service/rds/serializers.go index b0752c869de..000ee965283 100644 --- a/service/rds/serializers.go +++ b/service/rds/serializers.go @@ -11901,6 +11901,11 @@ func awsAwsquery_serializeDocumentServerlessV2ScalingConfiguration(v *types.Serv } } + if v.SecondsUntilAutoPause != nil { + objectKey := object.Key("SecondsUntilAutoPause") + objectKey.Integer(*v.SecondsUntilAutoPause) + } + return nil } @@ -12406,6 +12411,11 @@ func awsAwsquery_serializeOpDocumentCreateBlueGreenDeploymentInput(v *CreateBlue } } + if v.TargetAllocatedStorage != nil { + objectKey := object.Key("TargetAllocatedStorage") + objectKey.Integer(*v.TargetAllocatedStorage) + } + if v.TargetDBClusterParameterGroupName != nil { objectKey := object.Key("TargetDBClusterParameterGroupName") objectKey.String(*v.TargetDBClusterParameterGroupName) @@ -12426,6 +12436,21 @@ func awsAwsquery_serializeOpDocumentCreateBlueGreenDeploymentInput(v *CreateBlue objectKey.String(*v.TargetEngineVersion) } + if v.TargetIops != nil { + objectKey := object.Key("TargetIops") + objectKey.Integer(*v.TargetIops) + } + + if v.TargetStorageThroughput != nil { + objectKey := object.Key("TargetStorageThroughput") + objectKey.Integer(*v.TargetStorageThroughput) + } + + if v.TargetStorageType != nil { + objectKey := object.Key("TargetStorageType") + objectKey.String(*v.TargetStorageType) + } + if v.UpgradeTargetStorageConfig != nil { objectKey := object.Key("UpgradeTargetStorageConfig") objectKey.Boolean(*v.UpgradeTargetStorageConfig) diff --git a/service/rds/types/errors.go b/service/rds/types/errors.go index a551c36cbc5..3c2e6fa64e2 100644 --- a/service/rds/types/errors.go +++ b/service/rds/types/errors.go @@ -854,6 +854,33 @@ func (e *DBInstanceNotFoundFault) ErrorCode() string { } func (e *DBInstanceNotFoundFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// An attempt to download or examine log files didn't succeed because an Aurora +// Serverless v2 instance was paused. +type DBInstanceNotReadyFault struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *DBInstanceNotReadyFault) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *DBInstanceNotReadyFault) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *DBInstanceNotReadyFault) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "DBInstanceNotReady" + } + return *e.ErrorCodeOverride +} +func (e *DBInstanceNotReadyFault) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } + // The specified RoleArn or FeatureName value is already associated with the DB // instance. type DBInstanceRoleAlreadyExistsFault struct { diff --git a/service/rds/types/types.go b/service/rds/types/types.go index 788994f7c28..8df85ffd0de 100644 --- a/service/rds/types/types.go +++ b/service/rds/types/types.go @@ -1490,6 +1490,14 @@ type DBEngineVersion struct { // The major engine version of the CEV. MajorEngineVersion *string + // Specifies any Aurora Serverless v2 properties or limits that differ between + // Aurora engine versions. You can test the values of this attribute when deciding + // which Aurora version to use in a new or upgraded DB cluster. You can also + // retrieve the version of an existing DB cluster and check whether that version + // supports certain Aurora Serverless v2 features before you attempt to use those + // features. + ServerlessV2FeaturesSupport *ServerlessV2FeaturesSupport + // The status of the DB engine version, either available or deprecated . Status *string @@ -2671,6 +2679,7 @@ type DBSecurityGroupMembership struct { noSmithyDocumentSerde } +// Contains the details for an Amazon RDS DB shard group. type DBShardGroup struct { // Specifies whether to create standby DB shard groups for the DB shard group. @@ -4873,6 +4882,26 @@ type ScalingConfigurationInfo struct { noSmithyDocumentSerde } +// Specifies any Aurora Serverless v2 properties or limits that differ between +// Aurora engine versions. You can test the values of this attribute when deciding +// which Aurora version to use in a new or upgraded DB cluster. You can also +// retrieve the version of an existing DB cluster and check whether that version +// supports certain Aurora Serverless v2 features before you attempt to use those +// features. +type ServerlessV2FeaturesSupport struct { + + // Specifies the upper Aurora Serverless v2 capacity limit for a particular + // engine version. Depending on the engine version, the maximum capacity for an + // Aurora Serverless v2 cluster might be 256 or 128 . + MaxCapacity *float64 + + // If the minimum capacity is 0 ACUs, the engine version supports the automatic + // pause/resume feature of Aurora Serverless v2. + MinCapacity *float64 + + noSmithyDocumentSerde +} + // Contains the scaling configuration of an Aurora Serverless v2 DB cluster. // // For more information, see [Using Amazon Aurora Serverless v2] in the Amazon Aurora User Guide. @@ -4882,16 +4911,25 @@ type ServerlessV2ScalingConfiguration struct { // The maximum number of Aurora capacity units (ACUs) for a DB instance in an // Aurora Serverless v2 cluster. You can specify ACU values in half-step - // increments, such as 40, 40.5, 41, and so on. The largest value that you can use - // is 128. + // increments, such as 32, 32.5, 33, and so on. The largest value that you can use + // is 256 for recent Aurora versions, or 128 for older versions. MaxCapacity *float64 // The minimum number of Aurora capacity units (ACUs) for a DB instance in an // Aurora Serverless v2 cluster. You can specify ACU values in half-step - // increments, such as 8, 8.5, 9, and so on. The smallest value that you can use is - // 0.5. + // increments, such as 8, 8.5, 9, and so on. For Aurora versions that support the + // Aurora Serverless v2 auto-pause feature, the smallest value that you can use is + // 0. For versions that don't support Aurora Serverless v2 auto-pause, the smallest + // value that you can use is 0.5. MinCapacity *float64 + // Specifies the number of seconds an Aurora Serverless v2 DB instance must be + // idle before Aurora attempts to automatically pause it. + // + // Specify a value between 300 seconds (five minutes) and 86,400 seconds (one + // day). The default is 300 seconds. + SecondsUntilAutoPause *int32 + noSmithyDocumentSerde } @@ -4904,16 +4942,29 @@ type ServerlessV2ScalingConfigurationInfo struct { // The maximum number of Aurora capacity units (ACUs) for a DB instance in an // Aurora Serverless v2 cluster. You can specify ACU values in half-step - // increments, such as 40, 40.5, 41, and so on. The largest value that you can use - // is 128. + // increments, such as 32, 32.5, 33, and so on. The largest value that you can use + // is 256 for recent Aurora versions, or 128 for older versions. MaxCapacity *float64 // The minimum number of Aurora capacity units (ACUs) for a DB instance in an // Aurora Serverless v2 cluster. You can specify ACU values in half-step - // increments, such as 8, 8.5, 9, and so on. The smallest value that you can use is - // 0.5. + // increments, such as 8, 8.5, 9, and so on. For Aurora versions that support the + // Aurora Serverless v2 auto-pause feature, the smallest value that you can use is + // 0. For versions that don't support Aurora Serverless v2 auto-pause, the smallest + // value that you can use is 0.5. MinCapacity *float64 + // The number of seconds an Aurora Serverless v2 DB instance must be idle before + // Aurora attempts to automatically pause it. This property is only shown when the + // minimum capacity for the cluster is set to 0 ACUs. Changing the minimum capacity + // to a nonzero value removes this property. If you later change the minimum + // capacity back to 0 ACUs, this property is reset to its default value unless you + // specify it again. + // + // This value ranges between 300 seconds (five minutes) and 86,400 seconds (one + // day). The default is 300 seconds. + SecondsUntilAutoPause *int32 + noSmithyDocumentSerde } diff --git a/service/rdsdata/CHANGELOG.md b/service/rdsdata/CHANGELOG.md index 191e1282ff9..6226cfb4360 100644 --- a/service/rdsdata/CHANGELOG.md +++ b/service/rdsdata/CHANGELOG.md @@ -1,3 +1,9 @@ +# v1.26.0 (2024-11-18) + +* **Feature**: Add support for the automatic pause/resume feature of Aurora Serverless v2. +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/rdsdata/deserializers.go b/service/rdsdata/deserializers.go index a5ea3ecc8d2..33010d01a13 100644 --- a/service/rdsdata/deserializers.go +++ b/service/rdsdata/deserializers.go @@ -146,6 +146,9 @@ func awsRestjson1_deserializeOpErrorBatchExecuteStatement(response *smithyhttp.R case strings.EqualFold("DatabaseNotFoundException", errorCode): return awsRestjson1_deserializeErrorDatabaseNotFoundException(response, errorBody) + case strings.EqualFold("DatabaseResumingException", errorCode): + return awsRestjson1_deserializeErrorDatabaseResumingException(response, errorBody) + case strings.EqualFold("DatabaseUnavailableException", errorCode): return awsRestjson1_deserializeErrorDatabaseUnavailableException(response, errorBody) @@ -334,6 +337,9 @@ func awsRestjson1_deserializeOpErrorBeginTransaction(response *smithyhttp.Respon case strings.EqualFold("DatabaseNotFoundException", errorCode): return awsRestjson1_deserializeErrorDatabaseNotFoundException(response, errorBody) + case strings.EqualFold("DatabaseResumingException", errorCode): + return awsRestjson1_deserializeErrorDatabaseResumingException(response, errorBody) + case strings.EqualFold("DatabaseUnavailableException", errorCode): return awsRestjson1_deserializeErrorDatabaseUnavailableException(response, errorBody) @@ -885,6 +891,9 @@ func awsRestjson1_deserializeOpErrorExecuteStatement(response *smithyhttp.Respon case strings.EqualFold("DatabaseNotFoundException", errorCode): return awsRestjson1_deserializeErrorDatabaseNotFoundException(response, errorBody) + case strings.EqualFold("DatabaseResumingException", errorCode): + return awsRestjson1_deserializeErrorDatabaseResumingException(response, errorBody) + case strings.EqualFold("DatabaseUnavailableException", errorCode): return awsRestjson1_deserializeErrorDatabaseUnavailableException(response, errorBody) @@ -1332,6 +1341,42 @@ func awsRestjson1_deserializeErrorDatabaseNotFoundException(response *smithyhttp return output } +func awsRestjson1_deserializeErrorDatabaseResumingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.DatabaseResumingException{} + 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_deserializeDocumentDatabaseResumingException(&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_deserializeErrorDatabaseUnavailableException(response *smithyhttp.Response, errorBody *bytes.Reader) error { output := &types.DatabaseUnavailableException{} return output @@ -2142,6 +2187,46 @@ func awsRestjson1_deserializeDocumentDatabaseNotFoundException(v **types.Databas return nil } +func awsRestjson1_deserializeDocumentDatabaseResumingException(v **types.DatabaseResumingException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.DatabaseResumingException + if *v == nil { + sv = &types.DatabaseResumingException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message", "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_deserializeDocumentDatabaseUnavailableException(v **types.DatabaseUnavailableException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/rdsdata/go.mod b/service/rdsdata/go.mod index eb7f9f73be4..2fc9ddb9aac 100644 --- a/service/rdsdata/go.mod +++ b/service/rdsdata/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/rdsdata go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/rdsdata/go.sum b/service/rdsdata/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/rdsdata/go.sum +++ b/service/rdsdata/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/rdsdata/go_module_metadata.go b/service/rdsdata/go_module_metadata.go index 2874a1e6bea..23c4fe35d39 100644 --- a/service/rdsdata/go_module_metadata.go +++ b/service/rdsdata/go_module_metadata.go @@ -3,4 +3,4 @@ package rdsdata // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.5" +const goModuleVersion = "1.26.0" diff --git a/service/rdsdata/types/errors.go b/service/rdsdata/types/errors.go index cdedfdb1b01..6e0a22ace73 100644 --- a/service/rdsdata/types/errors.go +++ b/service/rdsdata/types/errors.go @@ -112,6 +112,34 @@ func (e *DatabaseNotFoundException) ErrorCode() string { } func (e *DatabaseNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// A request was canceled because the Aurora Serverless v2 DB instance was in a +// paused state. The Data API request automatically causes the DB instance to begin +// resuming. Wait a few seconds and try again. +type DatabaseResumingException struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *DatabaseResumingException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *DatabaseResumingException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *DatabaseResumingException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "DatabaseResumingException" + } + return *e.ErrorCodeOverride +} +func (e *DatabaseResumingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + // The writer instance in the DB cluster isn't available. type DatabaseUnavailableException struct { Message *string diff --git a/service/redshift/CHANGELOG.md b/service/redshift/CHANGELOG.md index 1ede7033258..7626a240956 100644 --- a/service/redshift/CHANGELOG.md +++ b/service/redshift/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.52.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.52.0 (2024-11-14) * **Feature**: Adds support for Amazon Redshift S3AccessGrants diff --git a/service/redshift/go.mod b/service/redshift/go.mod index dad773e02c3..972f331573a 100644 --- a/service/redshift/go.mod +++ b/service/redshift/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/redshift go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/redshift/go.sum b/service/redshift/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/redshift/go.sum +++ b/service/redshift/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/redshift/go_module_metadata.go b/service/redshift/go_module_metadata.go index 290c65b0b91..17b3c0734b0 100644 --- a/service/redshift/go_module_metadata.go +++ b/service/redshift/go_module_metadata.go @@ -3,4 +3,4 @@ package redshift // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.52.0" +const goModuleVersion = "1.52.1" diff --git a/service/redshiftdata/CHANGELOG.md b/service/redshiftdata/CHANGELOG.md index 87b8b9c32dd..9b73b420cc0 100644 --- a/service/redshiftdata/CHANGELOG.md +++ b/service/redshiftdata/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.31.3 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.31.2 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/redshiftdata/go.mod b/service/redshiftdata/go.mod index 65d0e488902..48d8f5d52ae 100644 --- a/service/redshiftdata/go.mod +++ b/service/redshiftdata/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/redshiftdata go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/redshiftdata/go.sum b/service/redshiftdata/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/redshiftdata/go.sum +++ b/service/redshiftdata/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/redshiftdata/go_module_metadata.go b/service/redshiftdata/go_module_metadata.go index d79d43034ab..445080bd65c 100644 --- a/service/redshiftdata/go_module_metadata.go +++ b/service/redshiftdata/go_module_metadata.go @@ -3,4 +3,4 @@ package redshiftdata // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.31.2" +const goModuleVersion = "1.31.3" diff --git a/service/redshiftserverless/CHANGELOG.md b/service/redshiftserverless/CHANGELOG.md index 90a6c329b85..10eca493f7e 100644 --- a/service/redshiftserverless/CHANGELOG.md +++ b/service/redshiftserverless/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.24.3 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.2 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/redshiftserverless/go.mod b/service/redshiftserverless/go.mod index 8409286f857..22704df26bb 100644 --- a/service/redshiftserverless/go.mod +++ b/service/redshiftserverless/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/redshiftserverless go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/redshiftserverless/go.sum b/service/redshiftserverless/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/redshiftserverless/go.sum +++ b/service/redshiftserverless/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/redshiftserverless/go_module_metadata.go b/service/redshiftserverless/go_module_metadata.go index c1653515c86..3c81caacb8c 100644 --- a/service/redshiftserverless/go_module_metadata.go +++ b/service/redshiftserverless/go_module_metadata.go @@ -3,4 +3,4 @@ package redshiftserverless // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.2" +const goModuleVersion = "1.24.3" diff --git a/service/rekognition/CHANGELOG.md b/service/rekognition/CHANGELOG.md index 2799c605826..5c5107908ed 100644 --- a/service/rekognition/CHANGELOG.md +++ b/service/rekognition/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.45.7 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.45.6 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/rekognition/go.mod b/service/rekognition/go.mod index 85f76398fa4..8b753b9f1c5 100644 --- a/service/rekognition/go.mod +++ b/service/rekognition/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/rekognition go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/rekognition/go.sum b/service/rekognition/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/rekognition/go.sum +++ b/service/rekognition/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/rekognition/go_module_metadata.go b/service/rekognition/go_module_metadata.go index 714a3514695..6f5c649ce0e 100644 --- a/service/rekognition/go_module_metadata.go +++ b/service/rekognition/go_module_metadata.go @@ -3,4 +3,4 @@ package rekognition // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.45.6" +const goModuleVersion = "1.45.7" diff --git a/service/repostspace/CHANGELOG.md b/service/repostspace/CHANGELOG.md index 2d2991e6f3f..11381fb8a8d 100644 --- a/service/repostspace/CHANGELOG.md +++ b/service/repostspace/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.8.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.8.3 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/repostspace/go.mod b/service/repostspace/go.mod index cde3f4ac98f..596e5814c35 100644 --- a/service/repostspace/go.mod +++ b/service/repostspace/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/repostspace go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/repostspace/go.sum b/service/repostspace/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/repostspace/go.sum +++ b/service/repostspace/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/repostspace/go_module_metadata.go b/service/repostspace/go_module_metadata.go index 1f5790ad266..72488c08ae9 100644 --- a/service/repostspace/go_module_metadata.go +++ b/service/repostspace/go_module_metadata.go @@ -3,4 +3,4 @@ package repostspace // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.8.3" +const goModuleVersion = "1.8.4" diff --git a/service/resiliencehub/CHANGELOG.md b/service/resiliencehub/CHANGELOG.md index 259cebb26c1..a15fd917a36 100644 --- a/service/resiliencehub/CHANGELOG.md +++ b/service/resiliencehub/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.3 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/resiliencehub/go.mod b/service/resiliencehub/go.mod index 1c5c435a41e..fd3aab57b4f 100644 --- a/service/resiliencehub/go.mod +++ b/service/resiliencehub/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/resiliencehub go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/resiliencehub/go.sum b/service/resiliencehub/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/resiliencehub/go.sum +++ b/service/resiliencehub/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/resiliencehub/go_module_metadata.go b/service/resiliencehub/go_module_metadata.go index 24261482415..ef81232fe51 100644 --- a/service/resiliencehub/go_module_metadata.go +++ b/service/resiliencehub/go_module_metadata.go @@ -3,4 +3,4 @@ package resiliencehub // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.3" +const goModuleVersion = "1.27.4" diff --git a/service/resourceexplorer2/CHANGELOG.md b/service/resourceexplorer2/CHANGELOG.md index ddf8b070d62..d4b3a9a1a6e 100644 --- a/service/resourceexplorer2/CHANGELOG.md +++ b/service/resourceexplorer2/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.16.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.16.0 (2024-11-07) * **Feature**: Add GetManagedView, ListManagedViews APIs. diff --git a/service/resourceexplorer2/go.mod b/service/resourceexplorer2/go.mod index 6247f7438fc..c511219d120 100644 --- a/service/resourceexplorer2/go.mod +++ b/service/resourceexplorer2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/resourceexplorer2 go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/resourceexplorer2/go.sum b/service/resourceexplorer2/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/resourceexplorer2/go.sum +++ b/service/resourceexplorer2/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/resourceexplorer2/go_module_metadata.go b/service/resourceexplorer2/go_module_metadata.go index 4ad3fdf5b77..1c771afa1f2 100644 --- a/service/resourceexplorer2/go_module_metadata.go +++ b/service/resourceexplorer2/go_module_metadata.go @@ -3,4 +3,4 @@ package resourceexplorer2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.16.0" +const goModuleVersion = "1.16.1" diff --git a/service/resourcegroups/CHANGELOG.md b/service/resourcegroups/CHANGELOG.md index c7e6a112b30..30f6ff669d7 100644 --- a/service/resourcegroups/CHANGELOG.md +++ b/service/resourcegroups/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/resourcegroups/go.mod b/service/resourcegroups/go.mod index 28cda1820df..a104b898ad0 100644 --- a/service/resourcegroups/go.mod +++ b/service/resourcegroups/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/resourcegroups go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/resourcegroups/go.sum b/service/resourcegroups/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/resourcegroups/go.sum +++ b/service/resourcegroups/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/resourcegroups/go_module_metadata.go b/service/resourcegroups/go_module_metadata.go index fce3e488306..cf71f048198 100644 --- a/service/resourcegroups/go_module_metadata.go +++ b/service/resourcegroups/go_module_metadata.go @@ -3,4 +3,4 @@ package resourcegroups // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.5" +const goModuleVersion = "1.27.6" diff --git a/service/resourcegroupstaggingapi/CHANGELOG.md b/service/resourcegroupstaggingapi/CHANGELOG.md index 9e074d54182..8b6d7991d3c 100644 --- a/service/resourcegroupstaggingapi/CHANGELOG.md +++ b/service/resourcegroupstaggingapi/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.25.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/resourcegroupstaggingapi/go.mod b/service/resourcegroupstaggingapi/go.mod index bd5165382ad..91d7e4186b0 100644 --- a/service/resourcegroupstaggingapi/go.mod +++ b/service/resourcegroupstaggingapi/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/resourcegroupstaggingapi/go.sum b/service/resourcegroupstaggingapi/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/resourcegroupstaggingapi/go.sum +++ b/service/resourcegroupstaggingapi/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/resourcegroupstaggingapi/go_module_metadata.go b/service/resourcegroupstaggingapi/go_module_metadata.go index 6d9854b1a4b..24a502a8a81 100644 --- a/service/resourcegroupstaggingapi/go_module_metadata.go +++ b/service/resourcegroupstaggingapi/go_module_metadata.go @@ -3,4 +3,4 @@ package resourcegroupstaggingapi // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.5" +const goModuleVersion = "1.25.6" diff --git a/service/robomaker/CHANGELOG.md b/service/robomaker/CHANGELOG.md index f9ac1f0b37e..351dcc20e30 100644 --- a/service/robomaker/CHANGELOG.md +++ b/service/robomaker/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.30.7 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.30.6 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/robomaker/go.mod b/service/robomaker/go.mod index 46c86c9da01..55eee4ec5d0 100644 --- a/service/robomaker/go.mod +++ b/service/robomaker/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/robomaker go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/robomaker/go.sum b/service/robomaker/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/robomaker/go.sum +++ b/service/robomaker/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/robomaker/go_module_metadata.go b/service/robomaker/go_module_metadata.go index 56fd6b78017..d67cb22a6b7 100644 --- a/service/robomaker/go_module_metadata.go +++ b/service/robomaker/go_module_metadata.go @@ -3,4 +3,4 @@ package robomaker // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.30.6" +const goModuleVersion = "1.30.7" diff --git a/service/rolesanywhere/CHANGELOG.md b/service/rolesanywhere/CHANGELOG.md index 5273f07b5cf..6f4fa05069b 100644 --- a/service/rolesanywhere/CHANGELOG.md +++ b/service/rolesanywhere/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.16.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.16.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/rolesanywhere/go.mod b/service/rolesanywhere/go.mod index bc5a374aeef..cd047f3154a 100644 --- a/service/rolesanywhere/go.mod +++ b/service/rolesanywhere/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/rolesanywhere go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/rolesanywhere/go.sum b/service/rolesanywhere/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/rolesanywhere/go.sum +++ b/service/rolesanywhere/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/rolesanywhere/go_module_metadata.go b/service/rolesanywhere/go_module_metadata.go index 8e5a01fc12f..453044fe4c6 100644 --- a/service/rolesanywhere/go_module_metadata.go +++ b/service/rolesanywhere/go_module_metadata.go @@ -3,4 +3,4 @@ package rolesanywhere // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.16.5" +const goModuleVersion = "1.16.6" diff --git a/service/route53/CHANGELOG.md b/service/route53/CHANGELOG.md index 52241b72588..a1b538f3bbd 100644 --- a/service/route53/CHANGELOG.md +++ b/service/route53/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.46.2 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.46.1 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/route53/go.mod b/service/route53/go.mod index 9ad746c4b2c..719d50d797b 100644 --- a/service/route53/go.mod +++ b/service/route53/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/route53 go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/route53/go.sum b/service/route53/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/route53/go.sum +++ b/service/route53/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/route53/go_module_metadata.go b/service/route53/go_module_metadata.go index 6c919adf708..19585f1afd5 100644 --- a/service/route53/go_module_metadata.go +++ b/service/route53/go_module_metadata.go @@ -3,4 +3,4 @@ package route53 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.46.1" +const goModuleVersion = "1.46.2" diff --git a/service/route53domains/CHANGELOG.md b/service/route53domains/CHANGELOG.md index d295a00843b..638133ea381 100644 --- a/service/route53domains/CHANGELOG.md +++ b/service/route53domains/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/route53domains/go.mod b/service/route53domains/go.mod index 22c71f5d0c1..0f3598cd25c 100644 --- a/service/route53domains/go.mod +++ b/service/route53domains/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/route53domains go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/route53domains/go.sum b/service/route53domains/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/route53domains/go.sum +++ b/service/route53domains/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/route53domains/go_module_metadata.go b/service/route53domains/go_module_metadata.go index a0b641dd143..45a9bb6491c 100644 --- a/service/route53domains/go_module_metadata.go +++ b/service/route53domains/go_module_metadata.go @@ -3,4 +3,4 @@ package route53domains // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.5" +const goModuleVersion = "1.27.6" diff --git a/service/route53profiles/CHANGELOG.md b/service/route53profiles/CHANGELOG.md index 3890e5bc0e0..3e48192c6b7 100644 --- a/service/route53profiles/CHANGELOG.md +++ b/service/route53profiles/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.4.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.4.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/route53profiles/go.mod b/service/route53profiles/go.mod index 7fcc7207b5c..c176820384a 100644 --- a/service/route53profiles/go.mod +++ b/service/route53profiles/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/route53profiles go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/route53profiles/go.sum b/service/route53profiles/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/route53profiles/go.sum +++ b/service/route53profiles/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/route53profiles/go_module_metadata.go b/service/route53profiles/go_module_metadata.go index 05cbd10ea5c..312e0ddf4e8 100644 --- a/service/route53profiles/go_module_metadata.go +++ b/service/route53profiles/go_module_metadata.go @@ -3,4 +3,4 @@ package route53profiles // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.4.5" +const goModuleVersion = "1.4.6" diff --git a/service/route53recoverycluster/CHANGELOG.md b/service/route53recoverycluster/CHANGELOG.md index d2bc5579ee2..b1d243aaed0 100644 --- a/service/route53recoverycluster/CHANGELOG.md +++ b/service/route53recoverycluster/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.23.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/route53recoverycluster/go.mod b/service/route53recoverycluster/go.mod index f66a8a85d85..d8ac2a59ea0 100644 --- a/service/route53recoverycluster/go.mod +++ b/service/route53recoverycluster/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/route53recoverycluster go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/route53recoverycluster/go.sum b/service/route53recoverycluster/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/route53recoverycluster/go.sum +++ b/service/route53recoverycluster/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/route53recoverycluster/go_module_metadata.go b/service/route53recoverycluster/go_module_metadata.go index 4a74b254d35..d597dace174 100644 --- a/service/route53recoverycluster/go_module_metadata.go +++ b/service/route53recoverycluster/go_module_metadata.go @@ -3,4 +3,4 @@ package route53recoverycluster // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.5" +const goModuleVersion = "1.23.6" diff --git a/service/route53recoverycontrolconfig/CHANGELOG.md b/service/route53recoverycontrolconfig/CHANGELOG.md index de132a6ebca..f3aefc6615c 100644 --- a/service/route53recoverycontrolconfig/CHANGELOG.md +++ b/service/route53recoverycontrolconfig/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.25.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/route53recoverycontrolconfig/go.mod b/service/route53recoverycontrolconfig/go.mod index 0efd5508760..d63b7ecf3e7 100644 --- a/service/route53recoverycontrolconfig/go.mod +++ b/service/route53recoverycontrolconfig/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/route53recoverycontrolconfig/go.sum b/service/route53recoverycontrolconfig/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/route53recoverycontrolconfig/go.sum +++ b/service/route53recoverycontrolconfig/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/route53recoverycontrolconfig/go_module_metadata.go b/service/route53recoverycontrolconfig/go_module_metadata.go index 72f4e5d5c90..7c9599402fa 100644 --- a/service/route53recoverycontrolconfig/go_module_metadata.go +++ b/service/route53recoverycontrolconfig/go_module_metadata.go @@ -3,4 +3,4 @@ package route53recoverycontrolconfig // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.5" +const goModuleVersion = "1.25.6" diff --git a/service/route53recoveryreadiness/CHANGELOG.md b/service/route53recoveryreadiness/CHANGELOG.md index 0dbc14f377a..9d7a6781a35 100644 --- a/service/route53recoveryreadiness/CHANGELOG.md +++ b/service/route53recoveryreadiness/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.21.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/route53recoveryreadiness/go.mod b/service/route53recoveryreadiness/go.mod index 1be337da2bf..5a01e5bdf11 100644 --- a/service/route53recoveryreadiness/go.mod +++ b/service/route53recoveryreadiness/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/route53recoveryreadiness/go.sum b/service/route53recoveryreadiness/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/route53recoveryreadiness/go.sum +++ b/service/route53recoveryreadiness/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/route53recoveryreadiness/go_module_metadata.go b/service/route53recoveryreadiness/go_module_metadata.go index aca76e2adc0..3ab8cdb49e6 100644 --- a/service/route53recoveryreadiness/go_module_metadata.go +++ b/service/route53recoveryreadiness/go_module_metadata.go @@ -3,4 +3,4 @@ package route53recoveryreadiness // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.5" +const goModuleVersion = "1.21.6" diff --git a/service/route53resolver/CHANGELOG.md b/service/route53resolver/CHANGELOG.md index 55dd3f3e7da..c900b63c6df 100644 --- a/service/route53resolver/CHANGELOG.md +++ b/service/route53resolver/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.34.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.34.0 (2024-11-15.2) * **Feature**: Route 53 Resolver DNS Firewall Advanced Rules allows you to monitor and block suspicious DNS traffic based on anomalies detected in the queries, such as DNS tunneling and Domain Generation Algorithms (DGAs). diff --git a/service/route53resolver/go.mod b/service/route53resolver/go.mod index 635b80e6d09..76b29914776 100644 --- a/service/route53resolver/go.mod +++ b/service/route53resolver/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/route53resolver go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/route53resolver/go.sum b/service/route53resolver/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/route53resolver/go.sum +++ b/service/route53resolver/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/route53resolver/go_module_metadata.go b/service/route53resolver/go_module_metadata.go index 576ed46e941..ae6abb66eef 100644 --- a/service/route53resolver/go_module_metadata.go +++ b/service/route53resolver/go_module_metadata.go @@ -3,4 +3,4 @@ package route53resolver // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.34.0" +const goModuleVersion = "1.34.1" diff --git a/service/rum/CHANGELOG.md b/service/rum/CHANGELOG.md index 72bf3cc734e..9e3ca8021c4 100644 --- a/service/rum/CHANGELOG.md +++ b/service/rum/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.21.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/rum/go.mod b/service/rum/go.mod index 519ac7f2ff1..11e7d888ff1 100644 --- a/service/rum/go.mod +++ b/service/rum/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/rum go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/rum/go.sum b/service/rum/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/rum/go.sum +++ b/service/rum/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/rum/go_module_metadata.go b/service/rum/go_module_metadata.go index df00a57a06d..209d785de4e 100644 --- a/service/rum/go_module_metadata.go +++ b/service/rum/go_module_metadata.go @@ -3,4 +3,4 @@ package rum // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.5" +const goModuleVersion = "1.21.6" diff --git a/service/s3/CHANGELOG.md b/service/s3/CHANGELOG.md index 7b3d25b4e70..120b0b799a4 100644 --- a/service/s3/CHANGELOG.md +++ b/service/s3/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.67.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.67.0 (2024-11-14) * **Feature**: This release updates the ListBuckets API Reference documentation in support of the new 10,000 general purpose bucket default quota on all AWS accounts. To increase your bucket quota from 10,000 to up to 1 million buckets, simply request a quota increase via Service Quotas. diff --git a/service/s3/go.mod b/service/s3/go.mod index b9352a0ef6a..cccb3306825 100644 --- a/service/s3/go.mod +++ b/service/s3/go.mod @@ -3,16 +3,16 @@ module github.com/aws/aws-sdk-go-v2/service/s3 go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.6 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.23 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 - github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.4.4 - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4 - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.4 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.7 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.24 + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 + github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.4.5 + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 + github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.5 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/s3/go.sum b/service/s3/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/s3/go.sum +++ b/service/s3/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/s3/go_module_metadata.go b/service/s3/go_module_metadata.go index 76b0ef4c8b2..28deb7f56f9 100644 --- a/service/s3/go_module_metadata.go +++ b/service/s3/go_module_metadata.go @@ -3,4 +3,4 @@ package s3 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.67.0" +const goModuleVersion = "1.67.1" diff --git a/service/s3/internal/configtesting/go.mod b/service/s3/internal/configtesting/go.mod index ea25c952656..fdf661c6b09 100644 --- a/service/s3/internal/configtesting/go.mod +++ b/service/s3/internal/configtesting/go.mod @@ -3,23 +3,23 @@ module github.com/aws/aws-sdk-go-v2/service/s3/internal/configtesting go 1.21 require ( - github.com/aws/aws-sdk-go-v2/config v1.28.4 - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.4 + github.com/aws/aws-sdk-go-v2/config v1.28.5 + github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.5 ) require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.17.45 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.19 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 // indirect + github.com/aws/aws-sdk-go-v2 v1.32.5 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.17.46 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.20 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.24.5 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.4 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.33.0 // indirect - github.com/aws/smithy-go v1.22.0 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.24.6 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.5 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.33.1 // indirect + github.com/aws/smithy-go v1.22.1 // indirect ) replace github.com/aws/aws-sdk-go-v2 => ../../../../ diff --git a/service/s3/internal/configtesting/go.sum b/service/s3/internal/configtesting/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/s3/internal/configtesting/go.sum +++ b/service/s3/internal/configtesting/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/s3control/CHANGELOG.md b/service/s3control/CHANGELOG.md index b8608c2ffe2..40bdaaca1e6 100644 --- a/service/s3control/CHANGELOG.md +++ b/service/s3control/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.50.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.50.0 (2024-11-06) * **Feature**: Fix ListStorageLensConfigurations and ListStorageLensGroups deserialization for Smithy SDKs. diff --git a/service/s3control/go.mod b/service/s3control/go.mod index b2b7af1440e..f2e24ab6d64 100644 --- a/service/s3control/go.mod +++ b/service/s3control/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/s3control go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.4 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.5 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/s3control/go.sum b/service/s3control/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/s3control/go.sum +++ b/service/s3control/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/s3control/go_module_metadata.go b/service/s3control/go_module_metadata.go index e3f5e1956a2..81f4eb11b97 100644 --- a/service/s3control/go_module_metadata.go +++ b/service/s3control/go_module_metadata.go @@ -3,4 +3,4 @@ package s3control // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.50.0" +const goModuleVersion = "1.50.1" diff --git a/service/s3outposts/CHANGELOG.md b/service/s3outposts/CHANGELOG.md index 0e866e4f264..c46a9bf983f 100644 --- a/service/s3outposts/CHANGELOG.md +++ b/service/s3outposts/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.28.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/s3outposts/go.mod b/service/s3outposts/go.mod index 5562e4fccfb..be9c72d0a61 100644 --- a/service/s3outposts/go.mod +++ b/service/s3outposts/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/s3outposts go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/s3outposts/go.sum b/service/s3outposts/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/s3outposts/go.sum +++ b/service/s3outposts/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/s3outposts/go_module_metadata.go b/service/s3outposts/go_module_metadata.go index 8462c23ccca..ac8b7734d3e 100644 --- a/service/s3outposts/go_module_metadata.go +++ b/service/s3outposts/go_module_metadata.go @@ -3,4 +3,4 @@ package s3outposts // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.5" +const goModuleVersion = "1.28.6" diff --git a/service/sagemaker/CHANGELOG.md b/service/sagemaker/CHANGELOG.md index e7340127066..6c4cdb659ff 100644 --- a/service/sagemaker/CHANGELOG.md +++ b/service/sagemaker/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.167.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.167.0 (2024-11-14) * **Feature**: Add support for Neuron instance types [ trn1/trn1n/inf2 ] on SageMaker Notebook Instances Platform. diff --git a/service/sagemaker/go.mod b/service/sagemaker/go.mod index 40247b6a93d..ce7e9b5e156 100644 --- a/service/sagemaker/go.mod +++ b/service/sagemaker/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sagemaker go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/sagemaker/go.sum b/service/sagemaker/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/sagemaker/go.sum +++ b/service/sagemaker/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/sagemaker/go_module_metadata.go b/service/sagemaker/go_module_metadata.go index 0e70ed94c94..92b55fea57e 100644 --- a/service/sagemaker/go_module_metadata.go +++ b/service/sagemaker/go_module_metadata.go @@ -3,4 +3,4 @@ package sagemaker // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.167.0" +const goModuleVersion = "1.167.1" diff --git a/service/sagemakera2iruntime/CHANGELOG.md b/service/sagemakera2iruntime/CHANGELOG.md index 1988a45f54c..0dbb68970ba 100644 --- a/service/sagemakera2iruntime/CHANGELOG.md +++ b/service/sagemakera2iruntime/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/sagemakera2iruntime/go.mod b/service/sagemakera2iruntime/go.mod index 5e59e157c8f..0d2cc87bb36 100644 --- a/service/sagemakera2iruntime/go.mod +++ b/service/sagemakera2iruntime/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sagemakera2iruntime go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sagemakera2iruntime/go.sum b/service/sagemakera2iruntime/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/sagemakera2iruntime/go.sum +++ b/service/sagemakera2iruntime/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/sagemakera2iruntime/go_module_metadata.go b/service/sagemakera2iruntime/go_module_metadata.go index c184c77d69a..93610bc892b 100644 --- a/service/sagemakera2iruntime/go_module_metadata.go +++ b/service/sagemakera2iruntime/go_module_metadata.go @@ -3,4 +3,4 @@ package sagemakera2iruntime // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.5" +const goModuleVersion = "1.27.6" diff --git a/service/sagemakeredge/CHANGELOG.md b/service/sagemakeredge/CHANGELOG.md index 46e08f2058f..08f6ce48313 100644 --- a/service/sagemakeredge/CHANGELOG.md +++ b/service/sagemakeredge/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.25.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/sagemakeredge/go.mod b/service/sagemakeredge/go.mod index 0c3d7ccc2b9..7b4091185f9 100644 --- a/service/sagemakeredge/go.mod +++ b/service/sagemakeredge/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sagemakeredge go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sagemakeredge/go.sum b/service/sagemakeredge/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/sagemakeredge/go.sum +++ b/service/sagemakeredge/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/sagemakeredge/go_module_metadata.go b/service/sagemakeredge/go_module_metadata.go index 43365eb7919..0db059d13dc 100644 --- a/service/sagemakeredge/go_module_metadata.go +++ b/service/sagemakeredge/go_module_metadata.go @@ -3,4 +3,4 @@ package sagemakeredge // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.5" +const goModuleVersion = "1.25.6" diff --git a/service/sagemakerfeaturestoreruntime/CHANGELOG.md b/service/sagemakerfeaturestoreruntime/CHANGELOG.md index 9cc2600c3e4..afd7b48f63f 100644 --- a/service/sagemakerfeaturestoreruntime/CHANGELOG.md +++ b/service/sagemakerfeaturestoreruntime/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.29.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.29.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/sagemakerfeaturestoreruntime/go.mod b/service/sagemakerfeaturestoreruntime/go.mod index 32cab2c6803..ad9e0295fd5 100644 --- a/service/sagemakerfeaturestoreruntime/go.mod +++ b/service/sagemakerfeaturestoreruntime/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sagemakerfeaturestoreruntime go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sagemakerfeaturestoreruntime/go.sum b/service/sagemakerfeaturestoreruntime/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/sagemakerfeaturestoreruntime/go.sum +++ b/service/sagemakerfeaturestoreruntime/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/sagemakerfeaturestoreruntime/go_module_metadata.go b/service/sagemakerfeaturestoreruntime/go_module_metadata.go index 154b70f615c..fa31d3a0385 100644 --- a/service/sagemakerfeaturestoreruntime/go_module_metadata.go +++ b/service/sagemakerfeaturestoreruntime/go_module_metadata.go @@ -3,4 +3,4 @@ package sagemakerfeaturestoreruntime // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.29.5" +const goModuleVersion = "1.29.6" diff --git a/service/sagemakergeospatial/CHANGELOG.md b/service/sagemakergeospatial/CHANGELOG.md index ae6e80860d0..40486da0851 100644 --- a/service/sagemakergeospatial/CHANGELOG.md +++ b/service/sagemakergeospatial/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.14.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.14.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/sagemakergeospatial/go.mod b/service/sagemakergeospatial/go.mod index 463a5b8b956..345594e33f6 100644 --- a/service/sagemakergeospatial/go.mod +++ b/service/sagemakergeospatial/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sagemakergeospatial go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sagemakergeospatial/go.sum b/service/sagemakergeospatial/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/sagemakergeospatial/go.sum +++ b/service/sagemakergeospatial/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/sagemakergeospatial/go_module_metadata.go b/service/sagemakergeospatial/go_module_metadata.go index 4c2196cbfad..88d6f1e5bff 100644 --- a/service/sagemakergeospatial/go_module_metadata.go +++ b/service/sagemakergeospatial/go_module_metadata.go @@ -3,4 +3,4 @@ package sagemakergeospatial // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.14.5" +const goModuleVersion = "1.14.6" diff --git a/service/sagemakermetrics/CHANGELOG.md b/service/sagemakermetrics/CHANGELOG.md index 3f107343f7f..9117b6d8c3f 100644 --- a/service/sagemakermetrics/CHANGELOG.md +++ b/service/sagemakermetrics/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.12.5 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.12.4 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/sagemakermetrics/go.mod b/service/sagemakermetrics/go.mod index bc7cc8f1346..6ce1422b0df 100644 --- a/service/sagemakermetrics/go.mod +++ b/service/sagemakermetrics/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sagemakermetrics go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sagemakermetrics/go.sum b/service/sagemakermetrics/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/sagemakermetrics/go.sum +++ b/service/sagemakermetrics/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/sagemakermetrics/go_module_metadata.go b/service/sagemakermetrics/go_module_metadata.go index 99a6038cb35..0c26dcb2a8f 100644 --- a/service/sagemakermetrics/go_module_metadata.go +++ b/service/sagemakermetrics/go_module_metadata.go @@ -3,4 +3,4 @@ package sagemakermetrics // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.12.4" +const goModuleVersion = "1.12.5" diff --git a/service/sagemakerruntime/CHANGELOG.md b/service/sagemakerruntime/CHANGELOG.md index 3a26cc1c7b8..ef41c9106e7 100644 --- a/service/sagemakerruntime/CHANGELOG.md +++ b/service/sagemakerruntime/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.32.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.32.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/sagemakerruntime/go.mod b/service/sagemakerruntime/go.mod index 00f41104f31..51e6bc66244 100644 --- a/service/sagemakerruntime/go.mod +++ b/service/sagemakerruntime/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/sagemakerruntime go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.6 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.7 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sagemakerruntime/go.sum b/service/sagemakerruntime/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/sagemakerruntime/go.sum +++ b/service/sagemakerruntime/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/sagemakerruntime/go_module_metadata.go b/service/sagemakerruntime/go_module_metadata.go index d900aabdbe5..a2a23f1f457 100644 --- a/service/sagemakerruntime/go_module_metadata.go +++ b/service/sagemakerruntime/go_module_metadata.go @@ -3,4 +3,4 @@ package sagemakerruntime // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.32.5" +const goModuleVersion = "1.32.6" diff --git a/service/savingsplans/CHANGELOG.md b/service/savingsplans/CHANGELOG.md index 6d4b28795d0..ac2c2b72239 100644 --- a/service/savingsplans/CHANGELOG.md +++ b/service/savingsplans/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.23.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/savingsplans/go.mod b/service/savingsplans/go.mod index 1717ea501d9..61c9329a490 100644 --- a/service/savingsplans/go.mod +++ b/service/savingsplans/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/savingsplans go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/savingsplans/go.sum b/service/savingsplans/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/savingsplans/go.sum +++ b/service/savingsplans/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/savingsplans/go_module_metadata.go b/service/savingsplans/go_module_metadata.go index 99a26dd6f1e..503e996bcfc 100644 --- a/service/savingsplans/go_module_metadata.go +++ b/service/savingsplans/go_module_metadata.go @@ -3,4 +3,4 @@ package savingsplans // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.5" +const goModuleVersion = "1.23.6" diff --git a/service/scheduler/CHANGELOG.md b/service/scheduler/CHANGELOG.md index 23a55d55057..1f4f367a529 100644 --- a/service/scheduler/CHANGELOG.md +++ b/service/scheduler/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.12.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.12.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/scheduler/go.mod b/service/scheduler/go.mod index e9141461c1a..63bf9c44ecc 100644 --- a/service/scheduler/go.mod +++ b/service/scheduler/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/scheduler go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/scheduler/go.sum b/service/scheduler/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/scheduler/go.sum +++ b/service/scheduler/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/scheduler/go_module_metadata.go b/service/scheduler/go_module_metadata.go index 98f7e1183c0..643b9d3b95b 100644 --- a/service/scheduler/go_module_metadata.go +++ b/service/scheduler/go_module_metadata.go @@ -3,4 +3,4 @@ package scheduler // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.12.5" +const goModuleVersion = "1.12.6" diff --git a/service/schemas/CHANGELOG.md b/service/schemas/CHANGELOG.md index 4f87f933006..cd446cad344 100644 --- a/service/schemas/CHANGELOG.md +++ b/service/schemas/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.28.7 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.6 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/schemas/go.mod b/service/schemas/go.mod index e990057ffc3..88fb7279ef4 100644 --- a/service/schemas/go.mod +++ b/service/schemas/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/schemas go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/schemas/go.sum b/service/schemas/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/schemas/go.sum +++ b/service/schemas/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/schemas/go_module_metadata.go b/service/schemas/go_module_metadata.go index d09a7193ef7..18429b79e77 100644 --- a/service/schemas/go_module_metadata.go +++ b/service/schemas/go_module_metadata.go @@ -3,4 +3,4 @@ package schemas // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.6" +const goModuleVersion = "1.28.7" diff --git a/service/secretsmanager/CHANGELOG.md b/service/secretsmanager/CHANGELOG.md index f7a56aa16d6..e4580dd3f27 100644 --- a/service/secretsmanager/CHANGELOG.md +++ b/service/secretsmanager/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.34.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.34.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/secretsmanager/go.mod b/service/secretsmanager/go.mod index 49057bf013b..081946c1e9c 100644 --- a/service/secretsmanager/go.mod +++ b/service/secretsmanager/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/secretsmanager go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/secretsmanager/go.sum b/service/secretsmanager/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/secretsmanager/go.sum +++ b/service/secretsmanager/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/secretsmanager/go_module_metadata.go b/service/secretsmanager/go_module_metadata.go index 6e2a3088f8d..7c1e02f0b0c 100644 --- a/service/secretsmanager/go_module_metadata.go +++ b/service/secretsmanager/go_module_metadata.go @@ -3,4 +3,4 @@ package secretsmanager // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.34.5" +const goModuleVersion = "1.34.6" diff --git a/service/securityhub/CHANGELOG.md b/service/securityhub/CHANGELOG.md index d96c6bf7ff4..0db3dea270c 100644 --- a/service/securityhub/CHANGELOG.md +++ b/service/securityhub/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.54.7 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.54.6 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/securityhub/go.mod b/service/securityhub/go.mod index 8ae117383e1..445f3000d93 100644 --- a/service/securityhub/go.mod +++ b/service/securityhub/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/securityhub go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/securityhub/go.sum b/service/securityhub/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/securityhub/go.sum +++ b/service/securityhub/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/securityhub/go_module_metadata.go b/service/securityhub/go_module_metadata.go index 739f40bc831..9515926f6a6 100644 --- a/service/securityhub/go_module_metadata.go +++ b/service/securityhub/go_module_metadata.go @@ -3,4 +3,4 @@ package securityhub // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.54.6" +const goModuleVersion = "1.54.7" diff --git a/service/securitylake/CHANGELOG.md b/service/securitylake/CHANGELOG.md index f1fe9715f31..3b42de58d98 100644 --- a/service/securitylake/CHANGELOG.md +++ b/service/securitylake/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.19.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.3 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/securitylake/go.mod b/service/securitylake/go.mod index f9ca64d6c40..3b99144e8f9 100644 --- a/service/securitylake/go.mod +++ b/service/securitylake/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/securitylake go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/securitylake/go.sum b/service/securitylake/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/securitylake/go.sum +++ b/service/securitylake/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/securitylake/go_module_metadata.go b/service/securitylake/go_module_metadata.go index 7062e0b04e4..93ca20b0999 100644 --- a/service/securitylake/go_module_metadata.go +++ b/service/securitylake/go_module_metadata.go @@ -3,4 +3,4 @@ package securitylake // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.3" +const goModuleVersion = "1.19.4" diff --git a/service/serverlessapplicationrepository/CHANGELOG.md b/service/serverlessapplicationrepository/CHANGELOG.md index 3e111f4ba9d..78eb3cf81cc 100644 --- a/service/serverlessapplicationrepository/CHANGELOG.md +++ b/service/serverlessapplicationrepository/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.24.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/serverlessapplicationrepository/go.mod b/service/serverlessapplicationrepository/go.mod index a1007696dcb..9ddeabc35bc 100644 --- a/service/serverlessapplicationrepository/go.mod +++ b/service/serverlessapplicationrepository/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/serverlessapplicationrepository go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/serverlessapplicationrepository/go.sum b/service/serverlessapplicationrepository/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/serverlessapplicationrepository/go.sum +++ b/service/serverlessapplicationrepository/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/serverlessapplicationrepository/go_module_metadata.go b/service/serverlessapplicationrepository/go_module_metadata.go index 304e40787ae..596199ba8aa 100644 --- a/service/serverlessapplicationrepository/go_module_metadata.go +++ b/service/serverlessapplicationrepository/go_module_metadata.go @@ -3,4 +3,4 @@ package serverlessapplicationrepository // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.5" +const goModuleVersion = "1.24.6" diff --git a/service/servicecatalog/CHANGELOG.md b/service/servicecatalog/CHANGELOG.md index 9100b9c08bf..cca3919814a 100644 --- a/service/servicecatalog/CHANGELOG.md +++ b/service/servicecatalog/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.32.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.32.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/servicecatalog/go.mod b/service/servicecatalog/go.mod index c1aa86d9de0..269e7221996 100644 --- a/service/servicecatalog/go.mod +++ b/service/servicecatalog/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/servicecatalog go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/servicecatalog/go.sum b/service/servicecatalog/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/servicecatalog/go.sum +++ b/service/servicecatalog/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/servicecatalog/go_module_metadata.go b/service/servicecatalog/go_module_metadata.go index 6ad7ece8246..915a2c03615 100644 --- a/service/servicecatalog/go_module_metadata.go +++ b/service/servicecatalog/go_module_metadata.go @@ -3,4 +3,4 @@ package servicecatalog // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.32.5" +const goModuleVersion = "1.32.6" diff --git a/service/servicecatalogappregistry/CHANGELOG.md b/service/servicecatalogappregistry/CHANGELOG.md index 81b2e644da0..1eeed7a1863 100644 --- a/service/servicecatalogappregistry/CHANGELOG.md +++ b/service/servicecatalogappregistry/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.30.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.30.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/servicecatalogappregistry/go.mod b/service/servicecatalogappregistry/go.mod index 3ba1b8beab6..14f6fe85119 100644 --- a/service/servicecatalogappregistry/go.mod +++ b/service/servicecatalogappregistry/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/servicecatalogappregistry go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/servicecatalogappregistry/go.sum b/service/servicecatalogappregistry/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/servicecatalogappregistry/go.sum +++ b/service/servicecatalogappregistry/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/servicecatalogappregistry/go_module_metadata.go b/service/servicecatalogappregistry/go_module_metadata.go index 3fb88eddb4d..9a2cd6a1196 100644 --- a/service/servicecatalogappregistry/go_module_metadata.go +++ b/service/servicecatalogappregistry/go_module_metadata.go @@ -3,4 +3,4 @@ package servicecatalogappregistry // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.30.5" +const goModuleVersion = "1.30.6" diff --git a/service/servicediscovery/CHANGELOG.md b/service/servicediscovery/CHANGELOG.md index 334613c268b..81cccc40060 100644 --- a/service/servicediscovery/CHANGELOG.md +++ b/service/servicediscovery/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.33.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.33.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/servicediscovery/go.mod b/service/servicediscovery/go.mod index ee088d6017c..f964a7f4ce5 100644 --- a/service/servicediscovery/go.mod +++ b/service/servicediscovery/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/servicediscovery go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/servicediscovery/go.sum b/service/servicediscovery/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/servicediscovery/go.sum +++ b/service/servicediscovery/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/servicediscovery/go_module_metadata.go b/service/servicediscovery/go_module_metadata.go index cbcb5f9926f..18a44fe21b1 100644 --- a/service/servicediscovery/go_module_metadata.go +++ b/service/servicediscovery/go_module_metadata.go @@ -3,4 +3,4 @@ package servicediscovery // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.33.5" +const goModuleVersion = "1.33.6" diff --git a/service/servicequotas/CHANGELOG.md b/service/servicequotas/CHANGELOG.md index 656f1a3ace9..aa1fd896142 100644 --- a/service/servicequotas/CHANGELOG.md +++ b/service/servicequotas/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.25.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/servicequotas/go.mod b/service/servicequotas/go.mod index 1af7a88536c..ac4dd94b9e3 100644 --- a/service/servicequotas/go.mod +++ b/service/servicequotas/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/servicequotas go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/servicequotas/go.sum b/service/servicequotas/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/servicequotas/go.sum +++ b/service/servicequotas/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/servicequotas/go_module_metadata.go b/service/servicequotas/go_module_metadata.go index acb6a25d181..cd9701cdabf 100644 --- a/service/servicequotas/go_module_metadata.go +++ b/service/servicequotas/go_module_metadata.go @@ -3,4 +3,4 @@ package servicequotas // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.5" +const goModuleVersion = "1.25.6" diff --git a/service/ses/CHANGELOG.md b/service/ses/CHANGELOG.md index cc29e88d1af..b32e402426d 100644 --- a/service/ses/CHANGELOG.md +++ b/service/ses/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.28.5 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.4 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/ses/go.mod b/service/ses/go.mod index b8ecb895766..0a67da11e69 100644 --- a/service/ses/go.mod +++ b/service/ses/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ses go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ses/go.sum b/service/ses/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/ses/go.sum +++ b/service/ses/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/ses/go_module_metadata.go b/service/ses/go_module_metadata.go index c8753cb2f3e..7591508c032 100644 --- a/service/ses/go_module_metadata.go +++ b/service/ses/go_module_metadata.go @@ -3,4 +3,4 @@ package ses // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.4" +const goModuleVersion = "1.28.5" diff --git a/service/sesv2/CHANGELOG.md b/service/sesv2/CHANGELOG.md index 16c32df6205..f565f7764b1 100644 --- a/service/sesv2/CHANGELOG.md +++ b/service/sesv2/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.38.3 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.38.2 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/sesv2/go.mod b/service/sesv2/go.mod index 6f63464e8f3..df819b5349f 100644 --- a/service/sesv2/go.mod +++ b/service/sesv2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sesv2 go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sesv2/go.sum b/service/sesv2/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/sesv2/go.sum +++ b/service/sesv2/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/sesv2/go_module_metadata.go b/service/sesv2/go_module_metadata.go index 3c078b8922e..6d2b1382f4f 100644 --- a/service/sesv2/go_module_metadata.go +++ b/service/sesv2/go_module_metadata.go @@ -3,4 +3,4 @@ package sesv2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.38.2" +const goModuleVersion = "1.38.3" diff --git a/service/sfn/CHANGELOG.md b/service/sfn/CHANGELOG.md index 8a1398c009f..e08eb3ed4b9 100644 --- a/service/sfn/CHANGELOG.md +++ b/service/sfn/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.33.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.33.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/sfn/go.mod b/service/sfn/go.mod index 6b1f347994d..b07c9047a78 100644 --- a/service/sfn/go.mod +++ b/service/sfn/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sfn go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sfn/go.sum b/service/sfn/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/sfn/go.sum +++ b/service/sfn/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/sfn/go_module_metadata.go b/service/sfn/go_module_metadata.go index b7fc7f2387d..8b753f7277f 100644 --- a/service/sfn/go_module_metadata.go +++ b/service/sfn/go_module_metadata.go @@ -3,4 +3,4 @@ package sfn // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.33.5" +const goModuleVersion = "1.33.6" diff --git a/service/shield/CHANGELOG.md b/service/shield/CHANGELOG.md index ed225e297ff..b7439b8b0ab 100644 --- a/service/shield/CHANGELOG.md +++ b/service/shield/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.29.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.29.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/shield/go.mod b/service/shield/go.mod index 11047c088f9..868e76d9ad9 100644 --- a/service/shield/go.mod +++ b/service/shield/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/shield go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/shield/go.sum b/service/shield/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/shield/go.sum +++ b/service/shield/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/shield/go_module_metadata.go b/service/shield/go_module_metadata.go index baf96d5adaf..ba998dbea80 100644 --- a/service/shield/go_module_metadata.go +++ b/service/shield/go_module_metadata.go @@ -3,4 +3,4 @@ package shield // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.29.5" +const goModuleVersion = "1.29.6" diff --git a/service/signer/CHANGELOG.md b/service/signer/CHANGELOG.md index f9aa6db6697..f81040ed466 100644 --- a/service/signer/CHANGELOG.md +++ b/service/signer/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.26.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/signer/go.mod b/service/signer/go.mod index 61bbb9bc92b..d2b813b073f 100644 --- a/service/signer/go.mod +++ b/service/signer/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/signer go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/signer/go.sum b/service/signer/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/signer/go.sum +++ b/service/signer/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/signer/go_module_metadata.go b/service/signer/go_module_metadata.go index 395c1b167ba..b868023b655 100644 --- a/service/signer/go_module_metadata.go +++ b/service/signer/go_module_metadata.go @@ -3,4 +3,4 @@ package signer // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.5" +const goModuleVersion = "1.26.6" diff --git a/service/simspaceweaver/CHANGELOG.md b/service/simspaceweaver/CHANGELOG.md index cc88f33d18f..040f95608b4 100644 --- a/service/simspaceweaver/CHANGELOG.md +++ b/service/simspaceweaver/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.14.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.14.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/simspaceweaver/go.mod b/service/simspaceweaver/go.mod index 2d9e0b1cc6f..9e23574f246 100644 --- a/service/simspaceweaver/go.mod +++ b/service/simspaceweaver/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/simspaceweaver go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/simspaceweaver/go.sum b/service/simspaceweaver/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/simspaceweaver/go.sum +++ b/service/simspaceweaver/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/simspaceweaver/go_module_metadata.go b/service/simspaceweaver/go_module_metadata.go index 2b378eceb07..253b7d7ac4c 100644 --- a/service/simspaceweaver/go_module_metadata.go +++ b/service/simspaceweaver/go_module_metadata.go @@ -3,4 +3,4 @@ package simspaceweaver // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.14.5" +const goModuleVersion = "1.14.6" diff --git a/service/sms/CHANGELOG.md b/service/sms/CHANGELOG.md index facb95bdf34..2bac6250bd1 100644 --- a/service/sms/CHANGELOG.md +++ b/service/sms/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.24.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/sms/go.mod b/service/sms/go.mod index 9073f7c514d..de71a65244a 100644 --- a/service/sms/go.mod +++ b/service/sms/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sms go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sms/go.sum b/service/sms/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/sms/go.sum +++ b/service/sms/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/sms/go_module_metadata.go b/service/sms/go_module_metadata.go index 3feb08935cb..45c68689f12 100644 --- a/service/sms/go_module_metadata.go +++ b/service/sms/go_module_metadata.go @@ -3,4 +3,4 @@ package sms // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.5" +const goModuleVersion = "1.24.6" diff --git a/service/snowball/CHANGELOG.md b/service/snowball/CHANGELOG.md index 3f5ecb1016b..08e27a1bb5d 100644 --- a/service/snowball/CHANGELOG.md +++ b/service/snowball/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.30.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.30.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/snowball/go.mod b/service/snowball/go.mod index 893e1448e73..f78bcfbca12 100644 --- a/service/snowball/go.mod +++ b/service/snowball/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/snowball go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/snowball/go.sum b/service/snowball/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/snowball/go.sum +++ b/service/snowball/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/snowball/go_module_metadata.go b/service/snowball/go_module_metadata.go index a6db2e9beed..9e2a9401f65 100644 --- a/service/snowball/go_module_metadata.go +++ b/service/snowball/go_module_metadata.go @@ -3,4 +3,4 @@ package snowball // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.30.5" +const goModuleVersion = "1.30.6" diff --git a/service/snowdevicemanagement/CHANGELOG.md b/service/snowdevicemanagement/CHANGELOG.md index f09cb655601..843f514dac4 100644 --- a/service/snowdevicemanagement/CHANGELOG.md +++ b/service/snowdevicemanagement/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.20.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/snowdevicemanagement/go.mod b/service/snowdevicemanagement/go.mod index 9cf664506bd..18b593e9316 100644 --- a/service/snowdevicemanagement/go.mod +++ b/service/snowdevicemanagement/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/snowdevicemanagement go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/snowdevicemanagement/go.sum b/service/snowdevicemanagement/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/snowdevicemanagement/go.sum +++ b/service/snowdevicemanagement/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/snowdevicemanagement/go_module_metadata.go b/service/snowdevicemanagement/go_module_metadata.go index 136f6494e57..6e5f93dea3f 100644 --- a/service/snowdevicemanagement/go_module_metadata.go +++ b/service/snowdevicemanagement/go_module_metadata.go @@ -3,4 +3,4 @@ package snowdevicemanagement // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.5" +const goModuleVersion = "1.20.6" diff --git a/service/sns/CHANGELOG.md b/service/sns/CHANGELOG.md index 56eeb892141..f7f8c0d0668 100644 --- a/service/sns/CHANGELOG.md +++ b/service/sns/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.33.5 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.33.4 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/sns/go.mod b/service/sns/go.mod index 05dab5f7995..afae16a109a 100644 --- a/service/sns/go.mod +++ b/service/sns/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sns go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sns/go.sum b/service/sns/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/sns/go.sum +++ b/service/sns/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/sns/go_module_metadata.go b/service/sns/go_module_metadata.go index 677f4bfade8..0d40dd025ca 100644 --- a/service/sns/go_module_metadata.go +++ b/service/sns/go_module_metadata.go @@ -3,4 +3,4 @@ package sns // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.33.4" +const goModuleVersion = "1.33.5" diff --git a/service/socialmessaging/CHANGELOG.md b/service/socialmessaging/CHANGELOG.md index 77a7839136a..8439bd91806 100644 --- a/service/socialmessaging/CHANGELOG.md +++ b/service/socialmessaging/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.0.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.0.3 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/socialmessaging/go.mod b/service/socialmessaging/go.mod index 4429dcfe912..79fa9db4a0c 100644 --- a/service/socialmessaging/go.mod +++ b/service/socialmessaging/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/socialmessaging go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/socialmessaging/go.sum b/service/socialmessaging/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/socialmessaging/go.sum +++ b/service/socialmessaging/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/socialmessaging/go_module_metadata.go b/service/socialmessaging/go_module_metadata.go index 6386156c027..c4eec9e13b8 100644 --- a/service/socialmessaging/go_module_metadata.go +++ b/service/socialmessaging/go_module_metadata.go @@ -3,4 +3,4 @@ package socialmessaging // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.0.3" +const goModuleVersion = "1.0.4" diff --git a/service/sqs/CHANGELOG.md b/service/sqs/CHANGELOG.md index e2225dcd0b3..a6b033f4171 100644 --- a/service/sqs/CHANGELOG.md +++ b/service/sqs/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.37.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.37.0 (2024-11-07) * **Feature**: Send opt-in query-compatible header for applicable services. diff --git a/service/sqs/go.mod b/service/sqs/go.mod index b60486ee724..a9b40a96927 100644 --- a/service/sqs/go.mod +++ b/service/sqs/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sqs go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sqs/go.sum b/service/sqs/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/sqs/go.sum +++ b/service/sqs/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/sqs/go_module_metadata.go b/service/sqs/go_module_metadata.go index 6a473cd4321..3acb60bf7f0 100644 --- a/service/sqs/go_module_metadata.go +++ b/service/sqs/go_module_metadata.go @@ -3,4 +3,4 @@ package sqs // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.37.0" +const goModuleVersion = "1.37.1" diff --git a/service/ssm/CHANGELOG.md b/service/ssm/CHANGELOG.md index 11c8c745d88..f75ec695489 100644 --- a/service/ssm/CHANGELOG.md +++ b/service/ssm/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.55.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.55.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/ssm/go.mod b/service/ssm/go.mod index 1e4f9534a49..8e8b97a2037 100644 --- a/service/ssm/go.mod +++ b/service/ssm/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ssm go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ssm/go.sum b/service/ssm/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/ssm/go.sum +++ b/service/ssm/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/ssm/go_module_metadata.go b/service/ssm/go_module_metadata.go index 21704ad1db8..58a3b96f2db 100644 --- a/service/ssm/go_module_metadata.go +++ b/service/ssm/go_module_metadata.go @@ -3,4 +3,4 @@ package ssm // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.55.5" +const goModuleVersion = "1.55.6" diff --git a/service/ssmcontacts/CHANGELOG.md b/service/ssmcontacts/CHANGELOG.md index 8edf215edf3..dfc949068ed 100644 --- a/service/ssmcontacts/CHANGELOG.md +++ b/service/ssmcontacts/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.26.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/ssmcontacts/go.mod b/service/ssmcontacts/go.mod index fca106ff468..7c0d77436b6 100644 --- a/service/ssmcontacts/go.mod +++ b/service/ssmcontacts/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ssmcontacts go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ssmcontacts/go.sum b/service/ssmcontacts/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/ssmcontacts/go.sum +++ b/service/ssmcontacts/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/ssmcontacts/go_module_metadata.go b/service/ssmcontacts/go_module_metadata.go index 24d995167db..916fddde2f7 100644 --- a/service/ssmcontacts/go_module_metadata.go +++ b/service/ssmcontacts/go_module_metadata.go @@ -3,4 +3,4 @@ package ssmcontacts // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.5" +const goModuleVersion = "1.26.6" diff --git a/service/ssmincidents/CHANGELOG.md b/service/ssmincidents/CHANGELOG.md index 4370192eb30..6795d65c6ca 100644 --- a/service/ssmincidents/CHANGELOG.md +++ b/service/ssmincidents/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.34.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.34.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/ssmincidents/go.mod b/service/ssmincidents/go.mod index 25d11cf9ca0..5894fe9ec6a 100644 --- a/service/ssmincidents/go.mod +++ b/service/ssmincidents/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ssmincidents go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ssmincidents/go.sum b/service/ssmincidents/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/ssmincidents/go.sum +++ b/service/ssmincidents/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/ssmincidents/go_module_metadata.go b/service/ssmincidents/go_module_metadata.go index 3941048d44a..2029fde10e1 100644 --- a/service/ssmincidents/go_module_metadata.go +++ b/service/ssmincidents/go_module_metadata.go @@ -3,4 +3,4 @@ package ssmincidents // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.34.5" +const goModuleVersion = "1.34.6" diff --git a/service/ssmquicksetup/CHANGELOG.md b/service/ssmquicksetup/CHANGELOG.md index 432712ea7a1..4ea2a616743 100644 --- a/service/ssmquicksetup/CHANGELOG.md +++ b/service/ssmquicksetup/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.2.7 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.2.6 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/ssmquicksetup/go.mod b/service/ssmquicksetup/go.mod index 70be0b83423..31fc60fd139 100644 --- a/service/ssmquicksetup/go.mod +++ b/service/ssmquicksetup/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ssmquicksetup go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ssmquicksetup/go.sum b/service/ssmquicksetup/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/ssmquicksetup/go.sum +++ b/service/ssmquicksetup/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/ssmquicksetup/go_module_metadata.go b/service/ssmquicksetup/go_module_metadata.go index f04acce3a8d..b68beec28aa 100644 --- a/service/ssmquicksetup/go_module_metadata.go +++ b/service/ssmquicksetup/go_module_metadata.go @@ -3,4 +3,4 @@ package ssmquicksetup // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.2.6" +const goModuleVersion = "1.2.7" diff --git a/service/ssmsap/CHANGELOG.md b/service/ssmsap/CHANGELOG.md index 82aae5f4931..2e1003aee42 100644 --- a/service/ssmsap/CHANGELOG.md +++ b/service/ssmsap/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.18.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/ssmsap/go.mod b/service/ssmsap/go.mod index ca7389f4964..51fff2b01ea 100644 --- a/service/ssmsap/go.mod +++ b/service/ssmsap/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ssmsap go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ssmsap/go.sum b/service/ssmsap/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/ssmsap/go.sum +++ b/service/ssmsap/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/ssmsap/go_module_metadata.go b/service/ssmsap/go_module_metadata.go index a7425b00750..73b1eef1931 100644 --- a/service/ssmsap/go_module_metadata.go +++ b/service/ssmsap/go_module_metadata.go @@ -3,4 +3,4 @@ package ssmsap // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.5" +const goModuleVersion = "1.18.6" diff --git a/service/sso/CHANGELOG.md b/service/sso/CHANGELOG.md index a62058e5018..02837af8bc9 100644 --- a/service/sso/CHANGELOG.md +++ b/service/sso/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.24.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/sso/go.mod b/service/sso/go.mod index 9dc58c27024..86816a3b917 100644 --- a/service/sso/go.mod +++ b/service/sso/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sso go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sso/go.sum b/service/sso/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/sso/go.sum +++ b/service/sso/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/sso/go_module_metadata.go b/service/sso/go_module_metadata.go index 7c1604ea274..dd77f04dcb8 100644 --- a/service/sso/go_module_metadata.go +++ b/service/sso/go_module_metadata.go @@ -3,4 +3,4 @@ package sso // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.5" +const goModuleVersion = "1.24.6" diff --git a/service/ssoadmin/CHANGELOG.md b/service/ssoadmin/CHANGELOG.md index 343fbf75236..54f82fb2ca2 100644 --- a/service/ssoadmin/CHANGELOG.md +++ b/service/ssoadmin/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.29.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.29.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/ssoadmin/go.mod b/service/ssoadmin/go.mod index be1a0906363..01c09aae9c6 100644 --- a/service/ssoadmin/go.mod +++ b/service/ssoadmin/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ssoadmin go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ssoadmin/go.sum b/service/ssoadmin/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/ssoadmin/go.sum +++ b/service/ssoadmin/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/ssoadmin/go_module_metadata.go b/service/ssoadmin/go_module_metadata.go index e06adefed1e..0163ffb1987 100644 --- a/service/ssoadmin/go_module_metadata.go +++ b/service/ssoadmin/go_module_metadata.go @@ -3,4 +3,4 @@ package ssoadmin // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.29.5" +const goModuleVersion = "1.29.6" diff --git a/service/ssooidc/CHANGELOG.md b/service/ssooidc/CHANGELOG.md index b76255235ef..db46aa0c378 100644 --- a/service/ssooidc/CHANGELOG.md +++ b/service/ssooidc/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.28.5 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.4 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/ssooidc/go.mod b/service/ssooidc/go.mod index 71642923c3d..fab8beadf24 100644 --- a/service/ssooidc/go.mod +++ b/service/ssooidc/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ssooidc go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/ssooidc/go.sum b/service/ssooidc/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/ssooidc/go.sum +++ b/service/ssooidc/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/ssooidc/go_module_metadata.go b/service/ssooidc/go_module_metadata.go index a0db85a3e2a..3859b0ad2ce 100644 --- a/service/ssooidc/go_module_metadata.go +++ b/service/ssooidc/go_module_metadata.go @@ -3,4 +3,4 @@ package ssooidc // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.4" +const goModuleVersion = "1.28.5" diff --git a/service/storagegateway/CHANGELOG.md b/service/storagegateway/CHANGELOG.md index 1849ac99ee0..e27d6614351 100644 --- a/service/storagegateway/CHANGELOG.md +++ b/service/storagegateway/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.34.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.34.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/storagegateway/go.mod b/service/storagegateway/go.mod index bb837db058f..896cb53f48c 100644 --- a/service/storagegateway/go.mod +++ b/service/storagegateway/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/storagegateway go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/storagegateway/go.sum b/service/storagegateway/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/storagegateway/go.sum +++ b/service/storagegateway/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/storagegateway/go_module_metadata.go b/service/storagegateway/go_module_metadata.go index 52e11f2f6b9..41d01eb5d8e 100644 --- a/service/storagegateway/go_module_metadata.go +++ b/service/storagegateway/go_module_metadata.go @@ -3,4 +3,4 @@ package storagegateway // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.34.5" +const goModuleVersion = "1.34.6" diff --git a/service/sts/CHANGELOG.md b/service/sts/CHANGELOG.md index 9763fcb9bb8..85396ddb6e9 100644 --- a/service/sts/CHANGELOG.md +++ b/service/sts/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.33.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.33.0 (2024-11-14) * **Feature**: This release introduces the new API 'AssumeRoot', which returns short-term credentials that you can use to perform privileged tasks. diff --git a/service/sts/go.mod b/service/sts/go.mod index f3f5c661083..91eebdb410c 100644 --- a/service/sts/go.mod +++ b/service/sts/go.mod @@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/service/sts go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/sts/go.sum b/service/sts/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/sts/go.sum +++ b/service/sts/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/sts/go_module_metadata.go b/service/sts/go_module_metadata.go index e1c926c8dfc..5213e0a128c 100644 --- a/service/sts/go_module_metadata.go +++ b/service/sts/go_module_metadata.go @@ -3,4 +3,4 @@ package sts // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.33.0" +const goModuleVersion = "1.33.1" diff --git a/service/supplychain/CHANGELOG.md b/service/supplychain/CHANGELOG.md index 962eb52718e..02685537f8f 100644 --- a/service/supplychain/CHANGELOG.md +++ b/service/supplychain/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.10.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.10.3 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/supplychain/go.mod b/service/supplychain/go.mod index ef364478c2e..e5807a8d4ff 100644 --- a/service/supplychain/go.mod +++ b/service/supplychain/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/supplychain go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/supplychain/go.sum b/service/supplychain/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/supplychain/go.sum +++ b/service/supplychain/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/supplychain/go_module_metadata.go b/service/supplychain/go_module_metadata.go index 6bbc8e5ad8a..1f0a866e126 100644 --- a/service/supplychain/go_module_metadata.go +++ b/service/supplychain/go_module_metadata.go @@ -3,4 +3,4 @@ package supplychain // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.10.3" +const goModuleVersion = "1.10.4" diff --git a/service/support/CHANGELOG.md b/service/support/CHANGELOG.md index fe6f92c5a68..216d8ed5fda 100644 --- a/service/support/CHANGELOG.md +++ b/service/support/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.26.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/support/go.mod b/service/support/go.mod index 875c5c0b44d..71f89441ae5 100644 --- a/service/support/go.mod +++ b/service/support/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/support go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/support/go.sum b/service/support/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/support/go.sum +++ b/service/support/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/support/go_module_metadata.go b/service/support/go_module_metadata.go index d18487413a7..56ef41c690e 100644 --- a/service/support/go_module_metadata.go +++ b/service/support/go_module_metadata.go @@ -3,4 +3,4 @@ package support // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.5" +const goModuleVersion = "1.26.6" diff --git a/service/supportapp/CHANGELOG.md b/service/supportapp/CHANGELOG.md index fdb6f55073d..303ba547140 100644 --- a/service/supportapp/CHANGELOG.md +++ b/service/supportapp/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.13.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.13.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/supportapp/go.mod b/service/supportapp/go.mod index 9f0f33f0f5f..182daf48dbc 100644 --- a/service/supportapp/go.mod +++ b/service/supportapp/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/supportapp go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/supportapp/go.sum b/service/supportapp/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/supportapp/go.sum +++ b/service/supportapp/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/supportapp/go_module_metadata.go b/service/supportapp/go_module_metadata.go index d4a49860d9d..cce8f6e6f6c 100644 --- a/service/supportapp/go_module_metadata.go +++ b/service/supportapp/go_module_metadata.go @@ -3,4 +3,4 @@ package supportapp // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.13.5" +const goModuleVersion = "1.13.6" diff --git a/service/swf/CHANGELOG.md b/service/swf/CHANGELOG.md index fea5152effe..02d6f20d340 100644 --- a/service/swf/CHANGELOG.md +++ b/service/swf/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/swf/go.mod b/service/swf/go.mod index e7577c4d7cf..5783c5109cd 100644 --- a/service/swf/go.mod +++ b/service/swf/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/swf go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/swf/go.sum b/service/swf/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/swf/go.sum +++ b/service/swf/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/swf/go_module_metadata.go b/service/swf/go_module_metadata.go index 3b8890a4162..a809880b200 100644 --- a/service/swf/go_module_metadata.go +++ b/service/swf/go_module_metadata.go @@ -3,4 +3,4 @@ package swf // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.5" +const goModuleVersion = "1.27.6" diff --git a/service/synthetics/CHANGELOG.md b/service/synthetics/CHANGELOG.md index 25757b1ba6c..7218dea8237 100644 --- a/service/synthetics/CHANGELOG.md +++ b/service/synthetics/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.30.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.30.0 (2024-11-07) * **Feature**: Add support to toggle if a canary will automatically delete provisioned canary resources such as Lambda functions and layers when a canary is deleted. This behavior can be controlled via the new ProvisionedResourceCleanup property exposed in the CreateCanary and UpdateCanary APIs. diff --git a/service/synthetics/go.mod b/service/synthetics/go.mod index 070ac53df49..a0356eff7f2 100644 --- a/service/synthetics/go.mod +++ b/service/synthetics/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/synthetics go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/synthetics/go.sum b/service/synthetics/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/synthetics/go.sum +++ b/service/synthetics/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/synthetics/go_module_metadata.go b/service/synthetics/go_module_metadata.go index f7641a29a6a..9592789881a 100644 --- a/service/synthetics/go_module_metadata.go +++ b/service/synthetics/go_module_metadata.go @@ -3,4 +3,4 @@ package synthetics // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.30.0" +const goModuleVersion = "1.30.1" diff --git a/service/taxsettings/CHANGELOG.md b/service/taxsettings/CHANGELOG.md index 967f228edb4..d1060c7e4d1 100644 --- a/service/taxsettings/CHANGELOG.md +++ b/service/taxsettings/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.7.0 (2024-11-19) + +* **Feature**: Release Tax Inheritance APIs, Tax Exemption APIs, and functionality update for some existing Tax Registration APIs + +# v1.6.3 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.6.2 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/taxsettings/api_op_BatchGetTaxExemptions.go b/service/taxsettings/api_op_BatchGetTaxExemptions.go new file mode 100644 index 00000000000..24e14903680 --- /dev/null +++ b/service/taxsettings/api_op_BatchGetTaxExemptions.go @@ -0,0 +1,160 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package taxsettings + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/taxsettings/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Get the active tax exemptions for a given list of accounts. +func (c *Client) BatchGetTaxExemptions(ctx context.Context, params *BatchGetTaxExemptionsInput, optFns ...func(*Options)) (*BatchGetTaxExemptionsOutput, error) { + if params == nil { + params = &BatchGetTaxExemptionsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "BatchGetTaxExemptions", params, optFns, c.addOperationBatchGetTaxExemptionsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*BatchGetTaxExemptionsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type BatchGetTaxExemptionsInput struct { + + // List of unique account identifiers. + // + // This member is required. + AccountIds []string + + noSmithyDocumentSerde +} + +type BatchGetTaxExemptionsOutput struct { + + // The list of accounts that failed to get tax exemptions. + FailedAccounts []string + + // The tax exemption details map of accountId and tax exemption details. + TaxExemptionDetailsMap map[string]types.TaxExemptionDetails + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationBatchGetTaxExemptionsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpBatchGetTaxExemptions{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpBatchGetTaxExemptions{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "BatchGetTaxExemptions"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpBatchGetTaxExemptionsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opBatchGetTaxExemptions(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opBatchGetTaxExemptions(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "BatchGetTaxExemptions", + } +} diff --git a/service/taxsettings/api_op_GetTaxExemptionTypes.go b/service/taxsettings/api_op_GetTaxExemptionTypes.go new file mode 100644 index 00000000000..bb2d71a32a1 --- /dev/null +++ b/service/taxsettings/api_op_GetTaxExemptionTypes.go @@ -0,0 +1,148 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package taxsettings + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/taxsettings/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Get supported tax exemption types. +func (c *Client) GetTaxExemptionTypes(ctx context.Context, params *GetTaxExemptionTypesInput, optFns ...func(*Options)) (*GetTaxExemptionTypesOutput, error) { + if params == nil { + params = &GetTaxExemptionTypesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetTaxExemptionTypes", params, optFns, c.addOperationGetTaxExemptionTypesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetTaxExemptionTypesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetTaxExemptionTypesInput struct { + noSmithyDocumentSerde +} + +type GetTaxExemptionTypesOutput struct { + + // The supported types of tax exemptions. + TaxExemptionTypes []types.TaxExemptionType + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetTaxExemptionTypesMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetTaxExemptionTypes{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetTaxExemptionTypes{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetTaxExemptionTypes"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetTaxExemptionTypes(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetTaxExemptionTypes(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetTaxExemptionTypes", + } +} diff --git a/service/taxsettings/api_op_GetTaxInheritance.go b/service/taxsettings/api_op_GetTaxInheritance.go new file mode 100644 index 00000000000..ff6afce58dc --- /dev/null +++ b/service/taxsettings/api_op_GetTaxInheritance.go @@ -0,0 +1,148 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package taxsettings + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/taxsettings/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// The get account tax inheritance status. +func (c *Client) GetTaxInheritance(ctx context.Context, params *GetTaxInheritanceInput, optFns ...func(*Options)) (*GetTaxInheritanceOutput, error) { + if params == nil { + params = &GetTaxInheritanceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetTaxInheritance", params, optFns, c.addOperationGetTaxInheritanceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetTaxInheritanceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetTaxInheritanceInput struct { + noSmithyDocumentSerde +} + +type GetTaxInheritanceOutput struct { + + // The tax inheritance status. + HeritageStatus types.HeritageStatus + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetTaxInheritanceMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetTaxInheritance{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetTaxInheritance{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetTaxInheritance"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetTaxInheritance(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetTaxInheritance(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetTaxInheritance", + } +} diff --git a/service/taxsettings/api_op_GetTaxRegistrationDocument.go b/service/taxsettings/api_op_GetTaxRegistrationDocument.go index f22e47d4601..47692207be0 100644 --- a/service/taxsettings/api_op_GetTaxRegistrationDocument.go +++ b/service/taxsettings/api_op_GetTaxRegistrationDocument.go @@ -30,16 +30,14 @@ func (c *Client) GetTaxRegistrationDocument(ctx context.Context, params *GetTaxR type GetTaxRegistrationDocumentInput struct { - // The Amazon S3 bucket that you specify to download your tax documents to. - // - // This member is required. - DestinationS3Location *types.DestinationS3Location - // The metadata for your tax document. // // This member is required. TaxDocumentMetadata *types.TaxDocumentMetadata + // The Amazon S3 bucket that you specify to download your tax documents to. + DestinationS3Location *types.DestinationS3Location + noSmithyDocumentSerde } @@ -49,6 +47,9 @@ type GetTaxRegistrationDocumentOutput struct { // document to. DestinationFilePath *string + // The Amazon S3 presigned URL of the tax registration document. + PresignedS3Url *string + // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/taxsettings/api_op_ListTaxExemptions.go b/service/taxsettings/api_op_ListTaxExemptions.go new file mode 100644 index 00000000000..4307deb653b --- /dev/null +++ b/service/taxsettings/api_op_ListTaxExemptions.go @@ -0,0 +1,252 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package taxsettings + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/taxsettings/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieves the tax exemption of accounts listed in a consolidated billing +// family. +func (c *Client) ListTaxExemptions(ctx context.Context, params *ListTaxExemptionsInput, optFns ...func(*Options)) (*ListTaxExemptionsOutput, error) { + if params == nil { + params = &ListTaxExemptionsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListTaxExemptions", params, optFns, c.addOperationListTaxExemptionsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListTaxExemptionsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListTaxExemptionsInput struct { + + // The number of results you want in one response. + MaxResults *int32 + + // The token to retrieve the next set of results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListTaxExemptionsOutput struct { + + // The token to retrieve the next set of results. + NextToken *string + + // The tax exemption details map of accountId and tax exemption details. + TaxExemptionDetailsMap map[string]types.TaxExemptionDetails + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListTaxExemptionsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListTaxExemptions{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListTaxExemptions{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListTaxExemptions"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTaxExemptions(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +// ListTaxExemptionsPaginatorOptions is the paginator options for ListTaxExemptions +type ListTaxExemptionsPaginatorOptions struct { + // The number of results you want in one 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 +} + +// ListTaxExemptionsPaginator is a paginator for ListTaxExemptions +type ListTaxExemptionsPaginator struct { + options ListTaxExemptionsPaginatorOptions + client ListTaxExemptionsAPIClient + params *ListTaxExemptionsInput + nextToken *string + firstPage bool +} + +// NewListTaxExemptionsPaginator returns a new ListTaxExemptionsPaginator +func NewListTaxExemptionsPaginator(client ListTaxExemptionsAPIClient, params *ListTaxExemptionsInput, optFns ...func(*ListTaxExemptionsPaginatorOptions)) *ListTaxExemptionsPaginator { + if params == nil { + params = &ListTaxExemptionsInput{} + } + + options := ListTaxExemptionsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListTaxExemptionsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListTaxExemptionsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListTaxExemptions page. +func (p *ListTaxExemptionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListTaxExemptionsOutput, 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 + + optFns = append([]func(*Options){ + addIsPaginatorUserAgent, + }, optFns...) + result, err := p.client.ListTaxExemptions(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 +} + +// ListTaxExemptionsAPIClient is a client that implements the ListTaxExemptions +// operation. +type ListTaxExemptionsAPIClient interface { + ListTaxExemptions(context.Context, *ListTaxExemptionsInput, ...func(*Options)) (*ListTaxExemptionsOutput, error) +} + +var _ ListTaxExemptionsAPIClient = (*Client)(nil) + +func newServiceMetadataMiddleware_opListTaxExemptions(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListTaxExemptions", + } +} diff --git a/service/taxsettings/api_op_PutTaxExemption.go b/service/taxsettings/api_op_PutTaxExemption.go new file mode 100644 index 00000000000..2c72e724c3d --- /dev/null +++ b/service/taxsettings/api_op_PutTaxExemption.go @@ -0,0 +1,173 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package taxsettings + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/taxsettings/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Adds the tax exemption for a single account or all accounts listed in a +// consolidated billing family. +func (c *Client) PutTaxExemption(ctx context.Context, params *PutTaxExemptionInput, optFns ...func(*Options)) (*PutTaxExemptionOutput, error) { + if params == nil { + params = &PutTaxExemptionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "PutTaxExemption", params, optFns, c.addOperationPutTaxExemptionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*PutTaxExemptionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type PutTaxExemptionInput struct { + + // The list of unique account identifiers. + // + // This member is required. + AccountIds []string + + // The address domain associate with the tax information. + // + // This member is required. + Authority *types.Authority + + // The exemption certificate. + // + // This member is required. + ExemptionCertificate *types.ExemptionCertificate + + // The exemption type. + // + // This member is required. + ExemptionType *string + + noSmithyDocumentSerde +} + +type PutTaxExemptionOutput struct { + + // The customer support case ID. + CaseId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationPutTaxExemptionMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpPutTaxExemption{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpPutTaxExemption{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "PutTaxExemption"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpPutTaxExemptionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutTaxExemption(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opPutTaxExemption(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "PutTaxExemption", + } +} diff --git a/service/taxsettings/api_op_PutTaxInheritance.go b/service/taxsettings/api_op_PutTaxInheritance.go new file mode 100644 index 00000000000..c9bd76677f7 --- /dev/null +++ b/service/taxsettings/api_op_PutTaxInheritance.go @@ -0,0 +1,148 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package taxsettings + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/taxsettings/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// The updated tax inheritance status. +func (c *Client) PutTaxInheritance(ctx context.Context, params *PutTaxInheritanceInput, optFns ...func(*Options)) (*PutTaxInheritanceOutput, error) { + if params == nil { + params = &PutTaxInheritanceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "PutTaxInheritance", params, optFns, c.addOperationPutTaxInheritanceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*PutTaxInheritanceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type PutTaxInheritanceInput struct { + + // The tax inheritance status. + HeritageStatus types.HeritageStatus + + noSmithyDocumentSerde +} + +type PutTaxInheritanceOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationPutTaxInheritanceMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpPutTaxInheritance{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpPutTaxInheritance{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "PutTaxInheritance"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutTaxInheritance(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opPutTaxInheritance(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "PutTaxInheritance", + } +} diff --git a/service/taxsettings/deserializers.go b/service/taxsettings/deserializers.go index 69528264077..0d71d8b359d 100644 --- a/service/taxsettings/deserializers.go +++ b/service/taxsettings/deserializers.go @@ -187,6 +187,169 @@ func awsRestjson1_deserializeOpDocumentBatchDeleteTaxRegistrationOutput(v **Batc return nil } +type awsRestjson1_deserializeOpBatchGetTaxExemptions struct { +} + +func (*awsRestjson1_deserializeOpBatchGetTaxExemptions) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpBatchGetTaxExemptions) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorBatchGetTaxExemptions(response, &metadata) + } + output := &BatchGetTaxExemptionsOutput{} + 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_deserializeOpDocumentBatchGetTaxExemptionsOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorBatchGetTaxExemptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentBatchGetTaxExemptionsOutput(v **BatchGetTaxExemptionsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *BatchGetTaxExemptionsOutput + if *v == nil { + sv = &BatchGetTaxExemptionsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "failedAccounts": + if err := awsRestjson1_deserializeDocumentAccountIds(&sv.FailedAccounts, value); err != nil { + return err + } + + case "taxExemptionDetailsMap": + if err := awsRestjson1_deserializeDocumentTaxExemptionDetailsMap(&sv.TaxExemptionDetailsMap, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + type awsRestjson1_deserializeOpBatchPutTaxRegistration struct { } @@ -548,14 +711,14 @@ func awsRestjson1_deserializeOpErrorDeleteTaxRegistration(response *smithyhttp.R } } -type awsRestjson1_deserializeOpGetTaxRegistration struct { +type awsRestjson1_deserializeOpGetTaxExemptionTypes struct { } -func (*awsRestjson1_deserializeOpGetTaxRegistration) ID() string { +func (*awsRestjson1_deserializeOpGetTaxExemptionTypes) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetTaxRegistration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetTaxExemptionTypes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -573,9 +736,9 @@ func (m *awsRestjson1_deserializeOpGetTaxRegistration) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetTaxRegistration(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetTaxExemptionTypes(response, &metadata) } - output := &GetTaxRegistrationOutput{} + output := &GetTaxExemptionTypesOutput{} out.Result = output var buff [1024]byte @@ -596,7 +759,7 @@ func (m *awsRestjson1_deserializeOpGetTaxRegistration) HandleDeserialize(ctx con return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetTaxRegistrationOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetTaxExemptionTypesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -610,7 +773,7 @@ func (m *awsRestjson1_deserializeOpGetTaxRegistration) HandleDeserialize(ctx con return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetTaxRegistration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetTaxExemptionTypes(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -670,7 +833,7 @@ func awsRestjson1_deserializeOpErrorGetTaxRegistration(response *smithyhttp.Resp } } -func awsRestjson1_deserializeOpDocumentGetTaxRegistrationOutput(v **GetTaxRegistrationOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetTaxExemptionTypesOutput(v **GetTaxExemptionTypesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -683,17 +846,17 @@ func awsRestjson1_deserializeOpDocumentGetTaxRegistrationOutput(v **GetTaxRegist return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetTaxRegistrationOutput + var sv *GetTaxExemptionTypesOutput if *v == nil { - sv = &GetTaxRegistrationOutput{} + sv = &GetTaxExemptionTypesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "taxRegistration": - if err := awsRestjson1_deserializeDocumentTaxRegistration(&sv.TaxRegistration, value); err != nil { + case "taxExemptionTypes": + if err := awsRestjson1_deserializeDocumentTaxExemptionTypes(&sv.TaxExemptionTypes, value); err != nil { return err } @@ -706,14 +869,14 @@ func awsRestjson1_deserializeOpDocumentGetTaxRegistrationOutput(v **GetTaxRegist return nil } -type awsRestjson1_deserializeOpGetTaxRegistrationDocument struct { +type awsRestjson1_deserializeOpGetTaxInheritance struct { } -func (*awsRestjson1_deserializeOpGetTaxRegistrationDocument) ID() string { +func (*awsRestjson1_deserializeOpGetTaxInheritance) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetTaxRegistrationDocument) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetTaxInheritance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -731,9 +894,9 @@ func (m *awsRestjson1_deserializeOpGetTaxRegistrationDocument) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetTaxRegistrationDocument(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetTaxInheritance(response, &metadata) } - output := &GetTaxRegistrationDocumentOutput{} + output := &GetTaxInheritanceOutput{} out.Result = output var buff [1024]byte @@ -754,7 +917,7 @@ func (m *awsRestjson1_deserializeOpGetTaxRegistrationDocument) HandleDeserialize return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetTaxRegistrationDocumentOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetTaxInheritanceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -768,7 +931,7 @@ func (m *awsRestjson1_deserializeOpGetTaxRegistrationDocument) HandleDeserialize return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetTaxRegistrationDocument(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetTaxInheritance(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -812,6 +975,9 @@ func awsRestjson1_deserializeOpErrorGetTaxRegistrationDocument(response *smithyh case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ValidationException", errorCode): return awsRestjson1_deserializeErrorValidationException(response, errorBody) @@ -825,7 +991,7 @@ func awsRestjson1_deserializeOpErrorGetTaxRegistrationDocument(response *smithyh } } -func awsRestjson1_deserializeOpDocumentGetTaxRegistrationDocumentOutput(v **GetTaxRegistrationDocumentOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetTaxInheritanceOutput(v **GetTaxInheritanceOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -838,22 +1004,22 @@ func awsRestjson1_deserializeOpDocumentGetTaxRegistrationDocumentOutput(v **GetT return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetTaxRegistrationDocumentOutput + var sv *GetTaxInheritanceOutput if *v == nil { - sv = &GetTaxRegistrationDocumentOutput{} + sv = &GetTaxInheritanceOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "destinationFilePath": + case "heritageStatus": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DestinationFilePath to be of type string, got %T instead", value) + return fmt.Errorf("expected HeritageStatus to be of type string, got %T instead", value) } - sv.DestinationFilePath = ptr.String(jtv) + sv.HeritageStatus = types.HeritageStatus(jtv) } default: @@ -865,14 +1031,14 @@ func awsRestjson1_deserializeOpDocumentGetTaxRegistrationDocumentOutput(v **GetT return nil } -type awsRestjson1_deserializeOpListSupplementalTaxRegistrations struct { +type awsRestjson1_deserializeOpGetTaxRegistration struct { } -func (*awsRestjson1_deserializeOpListSupplementalTaxRegistrations) ID() string { +func (*awsRestjson1_deserializeOpGetTaxRegistration) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListSupplementalTaxRegistrations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetTaxRegistration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -890,9 +1056,9 @@ func (m *awsRestjson1_deserializeOpListSupplementalTaxRegistrations) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListSupplementalTaxRegistrations(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetTaxRegistration(response, &metadata) } - output := &ListSupplementalTaxRegistrationsOutput{} + output := &GetTaxRegistrationOutput{} out.Result = output var buff [1024]byte @@ -913,7 +1079,7 @@ func (m *awsRestjson1_deserializeOpListSupplementalTaxRegistrations) HandleDeser return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListSupplementalTaxRegistrationsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetTaxRegistrationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -927,7 +1093,7 @@ func (m *awsRestjson1_deserializeOpListSupplementalTaxRegistrations) HandleDeser return out, metadata, err } -func awsRestjson1_deserializeOpErrorListSupplementalTaxRegistrations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetTaxRegistration(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -987,7 +1153,7 @@ func awsRestjson1_deserializeOpErrorListSupplementalTaxRegistrations(response *s } } -func awsRestjson1_deserializeOpDocumentListSupplementalTaxRegistrationsOutput(v **ListSupplementalTaxRegistrationsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetTaxRegistrationOutput(v **GetTaxRegistrationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1000,26 +1166,17 @@ func awsRestjson1_deserializeOpDocumentListSupplementalTaxRegistrationsOutput(v return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListSupplementalTaxRegistrationsOutput + var sv *GetTaxRegistrationOutput if *v == nil { - sv = &ListSupplementalTaxRegistrationsOutput{} + sv = &GetTaxRegistrationOutput{} } 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 PaginationTokenString to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "taxRegistrations": - if err := awsRestjson1_deserializeDocumentSupplementalTaxRegistrationList(&sv.TaxRegistrations, value); err != nil { + case "taxRegistration": + if err := awsRestjson1_deserializeDocumentTaxRegistration(&sv.TaxRegistration, value); err != nil { return err } @@ -1032,14 +1189,14 @@ func awsRestjson1_deserializeOpDocumentListSupplementalTaxRegistrationsOutput(v return nil } -type awsRestjson1_deserializeOpListTaxRegistrations struct { +type awsRestjson1_deserializeOpGetTaxRegistrationDocument struct { } -func (*awsRestjson1_deserializeOpListTaxRegistrations) ID() string { +func (*awsRestjson1_deserializeOpGetTaxRegistrationDocument) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListTaxRegistrations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetTaxRegistrationDocument) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1057,9 +1214,9 @@ func (m *awsRestjson1_deserializeOpListTaxRegistrations) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListTaxRegistrations(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetTaxRegistrationDocument(response, &metadata) } - output := &ListTaxRegistrationsOutput{} + output := &GetTaxRegistrationDocumentOutput{} out.Result = output var buff [1024]byte @@ -1080,7 +1237,7 @@ func (m *awsRestjson1_deserializeOpListTaxRegistrations) HandleDeserialize(ctx c return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListTaxRegistrationsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetTaxRegistrationDocumentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1094,7 +1251,7 @@ func (m *awsRestjson1_deserializeOpListTaxRegistrations) HandleDeserialize(ctx c return out, metadata, err } -func awsRestjson1_deserializeOpErrorListTaxRegistrations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetTaxRegistrationDocument(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1138,9 +1295,6 @@ func awsRestjson1_deserializeOpErrorListTaxRegistrations(response *smithyhttp.Re case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ValidationException", errorCode): return awsRestjson1_deserializeErrorValidationException(response, errorBody) @@ -1154,7 +1308,7 @@ func awsRestjson1_deserializeOpErrorListTaxRegistrations(response *smithyhttp.Re } } -func awsRestjson1_deserializeOpDocumentListTaxRegistrationsOutput(v **ListTaxRegistrationsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetTaxRegistrationDocumentOutput(v **GetTaxRegistrationDocumentOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1167,27 +1321,31 @@ func awsRestjson1_deserializeOpDocumentListTaxRegistrationsOutput(v **ListTaxReg return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListTaxRegistrationsOutput + var sv *GetTaxRegistrationDocumentOutput if *v == nil { - sv = &ListTaxRegistrationsOutput{} + sv = &GetTaxRegistrationDocumentOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "accountDetails": - if err := awsRestjson1_deserializeDocumentAccountDetailsList(&sv.AccountDetails, value); err != nil { - return err + case "destinationFilePath": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DestinationFilePath to be of type string, got %T instead", value) + } + sv.DestinationFilePath = ptr.String(jtv) } - case "nextToken": + case "presignedS3Url": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected PaginationTokenString to be of type string, got %T instead", value) + return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.PresignedS3Url = ptr.String(jtv) } default: @@ -1199,14 +1357,14 @@ func awsRestjson1_deserializeOpDocumentListTaxRegistrationsOutput(v **ListTaxReg return nil } -type awsRestjson1_deserializeOpPutSupplementalTaxRegistration struct { +type awsRestjson1_deserializeOpListSupplementalTaxRegistrations struct { } -func (*awsRestjson1_deserializeOpPutSupplementalTaxRegistration) ID() string { +func (*awsRestjson1_deserializeOpListSupplementalTaxRegistrations) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpPutSupplementalTaxRegistration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListSupplementalTaxRegistrations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1224,9 +1382,510 @@ func (m *awsRestjson1_deserializeOpPutSupplementalTaxRegistration) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorPutSupplementalTaxRegistration(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListSupplementalTaxRegistrations(response, &metadata) } - output := &PutSupplementalTaxRegistrationOutput{} + output := &ListSupplementalTaxRegistrationsOutput{} + 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_deserializeOpDocumentListSupplementalTaxRegistrationsOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListSupplementalTaxRegistrations(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListSupplementalTaxRegistrationsOutput(v **ListSupplementalTaxRegistrationsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListSupplementalTaxRegistrationsOutput + if *v == nil { + sv = &ListSupplementalTaxRegistrationsOutput{} + } 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 PaginationTokenString to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "taxRegistrations": + if err := awsRestjson1_deserializeDocumentSupplementalTaxRegistrationList(&sv.TaxRegistrations, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListTaxExemptions struct { +} + +func (*awsRestjson1_deserializeOpListTaxExemptions) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListTaxExemptions) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorListTaxExemptions(response, &metadata) + } + output := &ListTaxExemptionsOutput{} + 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_deserializeOpDocumentListTaxExemptionsOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListTaxExemptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListTaxExemptionsOutput(v **ListTaxExemptionsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListTaxExemptionsOutput + if *v == nil { + sv = &ListTaxExemptionsOutput{} + } 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 PaginationTokenString to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "taxExemptionDetailsMap": + if err := awsRestjson1_deserializeDocumentTaxExemptionDetailsMap(&sv.TaxExemptionDetailsMap, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListTaxRegistrations struct { +} + +func (*awsRestjson1_deserializeOpListTaxRegistrations) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListTaxRegistrations) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorListTaxRegistrations(response, &metadata) + } + output := &ListTaxRegistrationsOutput{} + 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_deserializeOpDocumentListTaxRegistrationsOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListTaxRegistrations(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListTaxRegistrationsOutput(v **ListTaxRegistrationsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListTaxRegistrationsOutput + if *v == nil { + sv = &ListTaxRegistrationsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "accountDetails": + if err := awsRestjson1_deserializeDocumentAccountDetailsList(&sv.AccountDetails, value); err != nil { + return err + } + + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PaginationTokenString to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpPutSupplementalTaxRegistration struct { +} + +func (*awsRestjson1_deserializeOpPutSupplementalTaxRegistration) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpPutSupplementalTaxRegistration) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorPutSupplementalTaxRegistration(response, &metadata) + } + output := &PutSupplementalTaxRegistrationOutput{} out.Result = output var buff [1024]byte @@ -1261,7 +1920,178 @@ func (m *awsRestjson1_deserializeOpPutSupplementalTaxRegistration) HandleDeseria return out, metadata, err } -func awsRestjson1_deserializeOpErrorPutSupplementalTaxRegistration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorPutSupplementalTaxRegistration(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentPutSupplementalTaxRegistrationOutput(v **PutSupplementalTaxRegistrationOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *PutSupplementalTaxRegistrationOutput + if *v == nil { + sv = &PutSupplementalTaxRegistrationOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "authorityId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) + } + sv.AuthorityId = ptr.String(jtv) + } + + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TaxRegistrationStatus to be of type string, got %T instead", value) + } + sv.Status = types.TaxRegistrationStatus(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpPutTaxExemption struct { +} + +func (*awsRestjson1_deserializeOpPutTaxExemption) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpPutTaxExemption) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorPutTaxExemption(response, &metadata) + } + output := &PutTaxExemptionOutput{} + 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_deserializeOpDocumentPutTaxExemptionOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorPutTaxExemption(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1302,12 +2132,21 @@ func awsRestjson1_deserializeOpErrorPutSupplementalTaxRegistration(response *smi } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("AttachmentUploadException", errorCode): + return awsRestjson1_deserializeErrorAttachmentUploadException(response, errorBody) + + case strings.EqualFold("CaseCreationLimitExceededException", errorCode): + return awsRestjson1_deserializeErrorCaseCreationLimitExceededException(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("ValidationException", errorCode): return awsRestjson1_deserializeErrorValidationException(response, errorBody) @@ -1321,7 +2160,7 @@ func awsRestjson1_deserializeOpErrorPutSupplementalTaxRegistration(response *smi } } -func awsRestjson1_deserializeOpDocumentPutSupplementalTaxRegistrationOutput(v **PutSupplementalTaxRegistrationOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentPutTaxExemptionOutput(v **PutTaxExemptionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1334,31 +2173,22 @@ func awsRestjson1_deserializeOpDocumentPutSupplementalTaxRegistrationOutput(v ** return fmt.Errorf("unexpected JSON type %v", value) } - var sv *PutSupplementalTaxRegistrationOutput + var sv *PutTaxExemptionOutput if *v == nil { - sv = &PutSupplementalTaxRegistrationOutput{} + sv = &PutTaxExemptionOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "authorityId": + case "caseId": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) } - sv.AuthorityId = ptr.String(jtv) - } - - case "status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TaxRegistrationStatus to be of type string, got %T instead", value) - } - sv.Status = types.TaxRegistrationStatus(jtv) + sv.CaseId = ptr.String(jtv) } default: @@ -1370,6 +2200,103 @@ func awsRestjson1_deserializeOpDocumentPutSupplementalTaxRegistrationOutput(v ** return nil } +type awsRestjson1_deserializeOpPutTaxInheritance struct { +} + +func (*awsRestjson1_deserializeOpPutTaxInheritance) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpPutTaxInheritance) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorPutTaxInheritance(response, &metadata) + } + output := &PutTaxInheritanceOutput{} + out.Result = output + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorPutTaxInheritance(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("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("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsRestjson1_deserializeOpPutTaxRegistration struct { } @@ -1505,31 +2432,139 @@ func awsRestjson1_deserializeOpDocumentPutTaxRegistrationOutput(v **PutTaxRegist return fmt.Errorf("unexpected JSON type %v", value) } - var sv *PutTaxRegistrationOutput - if *v == nil { - sv = &PutTaxRegistrationOutput{} - } else { - sv = *v - } + var sv *PutTaxRegistrationOutput + if *v == nil { + sv = &PutTaxRegistrationOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TaxRegistrationStatus to be of type string, got %T instead", value) + } + sv.Status = types.TaxRegistrationStatus(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_deserializeErrorAttachmentUploadException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.AttachmentUploadException{} + 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_deserializeDocumentAttachmentUploadException(&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) - for key, value := range shape { - switch key { - case "status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TaxRegistrationStatus to be of type string, got %T instead", value) - } - sv.Status = types.TaxRegistrationStatus(jtv) - } + return output +} - default: - _, _ = key, value +func awsRestjson1_deserializeErrorCaseCreationLimitExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.CaseCreationLimitExceededException{} + 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_deserializeDocumentCaseCreationLimitExceededException(&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 } - *v = sv - return nil + + errorBody.Seek(0, io.SeekStart) + + return output } func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { @@ -1676,6 +2711,46 @@ func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Respo 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", "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_deserializeDocumentAccountDetails(v **types.AccountDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -1765,6 +2840,42 @@ func awsRestjson1_deserializeDocumentAccountDetailsList(v *[]types.AccountDetail return nil } +func awsRestjson1_deserializeDocumentAccountIds(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 AccountId to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentAccountMetaData(v **types.AccountMetaData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -2082,6 +3193,129 @@ func awsRestjson1_deserializeDocumentAddressRoleMap(v *map[string]types.Jurisdic return nil } +func awsRestjson1_deserializeDocumentAttachmentUploadException(v **types.AttachmentUploadException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AttachmentUploadException + if *v == nil { + sv = &types.AttachmentUploadException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message", "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_deserializeDocumentAuthorities(v *[]types.Authority, 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.Authority + if *v == nil { + cv = []types.Authority{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Authority + destAddr := &col + if err := awsRestjson1_deserializeDocumentAuthority(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAuthority(v **types.Authority, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.Authority + if *v == nil { + sv = &types.Authority{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "country": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CountryCode to be of type string, got %T instead", value) + } + sv.Country = 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 = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentBatchDeleteTaxRegistrationError(v **types.BatchDeleteTaxRegistrationError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -2364,13 +3598,53 @@ func awsRestjson1_deserializeDocumentCanadaAdditionalInfo(v **types.CanadaAdditi sv.IsResellerAccount = ptr.Bool(jtv) } - case "provincialSalesTaxId": + case "provincialSalesTaxId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CanadaProvincialSalesTaxIdString to be of type string, got %T instead", value) + } + sv.ProvincialSalesTaxId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentCaseCreationLimitExceededException(v **types.CaseCreationLimitExceededException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.CaseCreationLimitExceededException + if *v == nil { + sv = &types.CaseCreationLimitExceededException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message", "Message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected CanadaProvincialSalesTaxIdString to be of type string, got %T instead", value) + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ProvincialSalesTaxId = ptr.String(jtv) + sv.Message = ptr.String(jtv) } default: @@ -3369,6 +4643,324 @@ func awsRestjson1_deserializeDocumentTaxDocumentMetadatas(v *[]types.TaxDocument return nil } +func awsRestjson1_deserializeDocumentTaxExemption(v **types.TaxExemption, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.TaxExemption + if *v == nil { + sv = &types.TaxExemption{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "authority": + if err := awsRestjson1_deserializeDocumentAuthority(&sv.Authority, value); err != nil { + return err + } + + case "effectiveDate": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.EffectiveDate = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "expirationDate": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.ExpirationDate = 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 EntityExemptionAccountStatus to be of type string, got %T instead", value) + } + sv.Status = types.EntityExemptionAccountStatus(jtv) + } + + case "systemEffectiveDate": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.SystemEffectiveDate = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "taxExemptionType": + if err := awsRestjson1_deserializeDocumentTaxExemptionType(&sv.TaxExemptionType, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentTaxExemptionDetails(v **types.TaxExemptionDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.TaxExemptionDetails + if *v == nil { + sv = &types.TaxExemptionDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "heritageObtainedDetails": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.HeritageObtainedDetails = ptr.Bool(jtv) + } + + case "heritageObtainedParentEntity": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) + } + sv.HeritageObtainedParentEntity = ptr.String(jtv) + } + + case "heritageObtainedReason": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GenericString to be of type string, got %T instead", value) + } + sv.HeritageObtainedReason = ptr.String(jtv) + } + + case "taxExemptions": + if err := awsRestjson1_deserializeDocumentTaxExemptions(&sv.TaxExemptions, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentTaxExemptionDetailsMap(v *map[string]types.TaxExemptionDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %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.TaxExemptionDetails + if *v == nil { + mv = map[string]types.TaxExemptionDetails{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal types.TaxExemptionDetails + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentTaxExemptionDetails(&destAddr, value); err != nil { + return err + } + parsedVal = *destAddr + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentTaxExemptions(v *[]types.TaxExemption, 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.TaxExemption + if *v == nil { + cv = []types.TaxExemption{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.TaxExemption + destAddr := &col + if err := awsRestjson1_deserializeDocumentTaxExemption(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentTaxExemptionType(v **types.TaxExemptionType, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.TaxExemptionType + if *v == nil { + sv = &types.TaxExemptionType{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "applicableJurisdictions": + if err := awsRestjson1_deserializeDocumentAuthorities(&sv.ApplicableJurisdictions, value); err != nil { + return err + } + + case "description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GenericString 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 DisplayName to be of type string, got %T instead", value) + } + sv.DisplayName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentTaxExemptionTypes(v *[]types.TaxExemptionType, 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.TaxExemptionType + if *v == nil { + cv = []types.TaxExemptionType{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.TaxExemptionType + destAddr := &col + if err := awsRestjson1_deserializeDocumentTaxExemptionType(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentTaxInheritanceDetails(v **types.TaxInheritanceDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/taxsettings/generated.json b/service/taxsettings/generated.json index 1810f5d9b8b..6fc53fab792 100644 --- a/service/taxsettings/generated.json +++ b/service/taxsettings/generated.json @@ -9,14 +9,20 @@ "api_client.go", "api_client_test.go", "api_op_BatchDeleteTaxRegistration.go", + "api_op_BatchGetTaxExemptions.go", "api_op_BatchPutTaxRegistration.go", "api_op_DeleteSupplementalTaxRegistration.go", "api_op_DeleteTaxRegistration.go", + "api_op_GetTaxExemptionTypes.go", + "api_op_GetTaxInheritance.go", "api_op_GetTaxRegistration.go", "api_op_GetTaxRegistrationDocument.go", "api_op_ListSupplementalTaxRegistrations.go", + "api_op_ListTaxExemptions.go", "api_op_ListTaxRegistrations.go", "api_op_PutSupplementalTaxRegistration.go", + "api_op_PutTaxExemption.go", + "api_op_PutTaxInheritance.go", "api_op_PutTaxRegistration.go", "auth.go", "deserializers.go", diff --git a/service/taxsettings/go.mod b/service/taxsettings/go.mod index 8df7af8d934..cd7ce323159 100644 --- a/service/taxsettings/go.mod +++ b/service/taxsettings/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/taxsettings go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/taxsettings/go.sum b/service/taxsettings/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/taxsettings/go.sum +++ b/service/taxsettings/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/taxsettings/go_module_metadata.go b/service/taxsettings/go_module_metadata.go index c50e0d9ff4e..b6bdcb50660 100644 --- a/service/taxsettings/go_module_metadata.go +++ b/service/taxsettings/go_module_metadata.go @@ -3,4 +3,4 @@ package taxsettings // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.6.2" +const goModuleVersion = "1.7.0" diff --git a/service/taxsettings/serializers.go b/service/taxsettings/serializers.go index 600fd81af33..ee91c9344e0 100644 --- a/service/taxsettings/serializers.go +++ b/service/taxsettings/serializers.go @@ -98,6 +98,89 @@ func awsRestjson1_serializeOpDocumentBatchDeleteTaxRegistrationInput(v *BatchDel return nil } +type awsRestjson1_serializeOpBatchGetTaxExemptions struct { +} + +func (*awsRestjson1_serializeOpBatchGetTaxExemptions) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpBatchGetTaxExemptions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*BatchGetTaxExemptionsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/BatchGetTaxExemptions") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, 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_serializeOpDocumentBatchGetTaxExemptionsInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsBatchGetTaxExemptionsInput(v *BatchGetTaxExemptionsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentBatchGetTaxExemptionsInput(v *BatchGetTaxExemptionsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AccountIds != nil { + ok := object.Key("accountIds") + if err := awsRestjson1_serializeDocumentAccountIds(v.AccountIds, ok); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpBatchPutTaxRegistration struct { } @@ -350,6 +433,122 @@ func awsRestjson1_serializeOpDocumentDeleteTaxRegistrationInput(v *DeleteTaxRegi return nil } +type awsRestjson1_serializeOpGetTaxExemptionTypes struct { +} + +func (*awsRestjson1_serializeOpGetTaxExemptionTypes) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetTaxExemptionTypes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*GetTaxExemptionTypesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/GetTaxExemptionTypes") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if 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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetTaxExemptionTypesInput(v *GetTaxExemptionTypesInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +type awsRestjson1_serializeOpGetTaxInheritance struct { +} + +func (*awsRestjson1_serializeOpGetTaxInheritance) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetTaxInheritance) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*GetTaxInheritanceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/GetTaxInheritance") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if 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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetTaxInheritanceInput(v *GetTaxInheritanceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + type awsRestjson1_serializeOpGetTaxRegistration struct { } @@ -607,6 +806,92 @@ func awsRestjson1_serializeOpDocumentListSupplementalTaxRegistrationsInput(v *Li return nil } +type awsRestjson1_serializeOpListTaxExemptions struct { +} + +func (*awsRestjson1_serializeOpListTaxExemptions) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListTaxExemptions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*ListTaxExemptionsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/ListTaxExemptions") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, 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_serializeOpDocumentListTaxExemptionsInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListTaxExemptionsInput(v *ListTaxExemptionsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentListTaxExemptionsInput(v *ListTaxExemptionsInput, 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_serializeOpListTaxRegistrations struct { } @@ -776,6 +1061,189 @@ func awsRestjson1_serializeOpDocumentPutSupplementalTaxRegistrationInput(v *PutS return nil } +type awsRestjson1_serializeOpPutTaxExemption struct { +} + +func (*awsRestjson1_serializeOpPutTaxExemption) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpPutTaxExemption) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*PutTaxExemptionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/PutTaxExemption") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, 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_serializeOpDocumentPutTaxExemptionInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsPutTaxExemptionInput(v *PutTaxExemptionInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentPutTaxExemptionInput(v *PutTaxExemptionInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AccountIds != nil { + ok := object.Key("accountIds") + if err := awsRestjson1_serializeDocumentAccountIds(v.AccountIds, ok); err != nil { + return err + } + } + + if v.Authority != nil { + ok := object.Key("authority") + if err := awsRestjson1_serializeDocumentAuthority(v.Authority, ok); err != nil { + return err + } + } + + if v.ExemptionCertificate != nil { + ok := object.Key("exemptionCertificate") + if err := awsRestjson1_serializeDocumentExemptionCertificate(v.ExemptionCertificate, ok); err != nil { + return err + } + } + + if v.ExemptionType != nil { + ok := object.Key("exemptionType") + ok.String(*v.ExemptionType) + } + + return nil +} + +type awsRestjson1_serializeOpPutTaxInheritance struct { +} + +func (*awsRestjson1_serializeOpPutTaxInheritance) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpPutTaxInheritance) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*PutTaxInheritanceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/PutTaxInheritance") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, 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_serializeOpDocumentPutTaxInheritanceInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsPutTaxInheritanceInput(v *PutTaxInheritanceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentPutTaxInheritanceInput(v *PutTaxInheritanceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.HeritageStatus) > 0 { + ok := object.Key("heritageStatus") + ok.String(string(v.HeritageStatus)) + } + + return nil +} + type awsRestjson1_serializeOpPutTaxRegistration struct { } @@ -1027,6 +1495,23 @@ func awsRestjson1_serializeDocumentAddress(v *types.Address, value smithyjson.Va return nil } +func awsRestjson1_serializeDocumentAuthority(v *types.Authority, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Country != nil { + ok := object.Key("country") + ok.String(*v.Country) + } + + if v.State != nil { + ok := object.Key("state") + ok.String(*v.State) + } + + return nil +} + func awsRestjson1_serializeDocumentCanadaAdditionalInfo(v *types.CanadaAdditionalInfo, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -1083,6 +1568,23 @@ func awsRestjson1_serializeDocumentEstoniaAdditionalInfo(v *types.EstoniaAdditio return nil } +func awsRestjson1_serializeDocumentExemptionCertificate(v *types.ExemptionCertificate, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DocumentFile != nil { + ok := object.Key("documentFile") + ok.Base64EncodeBytes(v.DocumentFile) + } + + if v.DocumentName != nil { + ok := object.Key("documentName") + ok.String(*v.DocumentName) + } + + return nil +} + func awsRestjson1_serializeDocumentGeorgiaAdditionalInfo(v *types.GeorgiaAdditionalInfo, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -1324,10 +1826,34 @@ func awsRestjson1_serializeDocumentTaxDocumentMetadata(v *types.TaxDocumentMetad return nil } +func awsRestjson1_serializeDocumentTaxRegistrationDocFile(v *types.TaxRegistrationDocFile, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.FileContent != nil { + ok := object.Key("fileContent") + ok.Base64EncodeBytes(v.FileContent) + } + + if v.FileName != nil { + ok := object.Key("fileName") + ok.String(*v.FileName) + } + + return nil +} + func awsRestjson1_serializeDocumentTaxRegistrationDocument(v *types.TaxRegistrationDocument, value smithyjson.Value) error { object := value.Object() defer object.Close() + if v.File != nil { + ok := object.Key("file") + if err := awsRestjson1_serializeDocumentTaxRegistrationDocFile(v.File, ok); err != nil { + return err + } + } + if v.S3Location != nil { ok := object.Key("s3Location") if err := awsRestjson1_serializeDocumentSourceS3Location(v.S3Location, ok); err != nil { diff --git a/service/taxsettings/snapshot/api_op_BatchGetTaxExemptions.go.snap b/service/taxsettings/snapshot/api_op_BatchGetTaxExemptions.go.snap new file mode 100644 index 00000000000..114acd94688 --- /dev/null +++ b/service/taxsettings/snapshot/api_op_BatchGetTaxExemptions.go.snap @@ -0,0 +1,41 @@ +BatchGetTaxExemptions + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/taxsettings/snapshot/api_op_GetTaxExemptionTypes.go.snap b/service/taxsettings/snapshot/api_op_GetTaxExemptionTypes.go.snap new file mode 100644 index 00000000000..38f21b998bc --- /dev/null +++ b/service/taxsettings/snapshot/api_op_GetTaxExemptionTypes.go.snap @@ -0,0 +1,40 @@ +GetTaxExemptionTypes + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/taxsettings/snapshot/api_op_GetTaxInheritance.go.snap b/service/taxsettings/snapshot/api_op_GetTaxInheritance.go.snap new file mode 100644 index 00000000000..8d1bd1f59c4 --- /dev/null +++ b/service/taxsettings/snapshot/api_op_GetTaxInheritance.go.snap @@ -0,0 +1,40 @@ +GetTaxInheritance + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/taxsettings/snapshot/api_op_ListTaxExemptions.go.snap b/service/taxsettings/snapshot/api_op_ListTaxExemptions.go.snap new file mode 100644 index 00000000000..fa6ab64bf12 --- /dev/null +++ b/service/taxsettings/snapshot/api_op_ListTaxExemptions.go.snap @@ -0,0 +1,40 @@ +ListTaxExemptions + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/taxsettings/snapshot/api_op_PutTaxExemption.go.snap b/service/taxsettings/snapshot/api_op_PutTaxExemption.go.snap new file mode 100644 index 00000000000..0bca9ab02fa --- /dev/null +++ b/service/taxsettings/snapshot/api_op_PutTaxExemption.go.snap @@ -0,0 +1,41 @@ +PutTaxExemption + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/taxsettings/snapshot/api_op_PutTaxInheritance.go.snap b/service/taxsettings/snapshot/api_op_PutTaxInheritance.go.snap new file mode 100644 index 00000000000..2477ff27579 --- /dev/null +++ b/service/taxsettings/snapshot/api_op_PutTaxInheritance.go.snap @@ -0,0 +1,40 @@ +PutTaxInheritance + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/taxsettings/snapshot_test.go b/service/taxsettings/snapshot_test.go index 6143f2f1fa2..6795fdcc01b 100644 --- a/service/taxsettings/snapshot_test.go +++ b/service/taxsettings/snapshot_test.go @@ -74,6 +74,18 @@ func TestCheckSnapshot_BatchDeleteTaxRegistration(t *testing.T) { } } +func TestCheckSnapshot_BatchGetTaxExemptions(t *testing.T) { + svc := New(Options{}) + _, err := svc.BatchGetTaxExemptions(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "BatchGetTaxExemptions") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_BatchPutTaxRegistration(t *testing.T) { svc := New(Options{}) _, err := svc.BatchPutTaxRegistration(context.Background(), nil, func(o *Options) { @@ -110,6 +122,30 @@ func TestCheckSnapshot_DeleteTaxRegistration(t *testing.T) { } } +func TestCheckSnapshot_GetTaxExemptionTypes(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetTaxExemptionTypes(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "GetTaxExemptionTypes") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestCheckSnapshot_GetTaxInheritance(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetTaxInheritance(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "GetTaxInheritance") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_GetTaxRegistration(t *testing.T) { svc := New(Options{}) _, err := svc.GetTaxRegistration(context.Background(), nil, func(o *Options) { @@ -146,6 +182,18 @@ func TestCheckSnapshot_ListSupplementalTaxRegistrations(t *testing.T) { } } +func TestCheckSnapshot_ListTaxExemptions(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListTaxExemptions(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "ListTaxExemptions") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_ListTaxRegistrations(t *testing.T) { svc := New(Options{}) _, err := svc.ListTaxRegistrations(context.Background(), nil, func(o *Options) { @@ -170,6 +218,30 @@ func TestCheckSnapshot_PutSupplementalTaxRegistration(t *testing.T) { } } +func TestCheckSnapshot_PutTaxExemption(t *testing.T) { + svc := New(Options{}) + _, err := svc.PutTaxExemption(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "PutTaxExemption") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestCheckSnapshot_PutTaxInheritance(t *testing.T) { + svc := New(Options{}) + _, err := svc.PutTaxInheritance(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "PutTaxInheritance") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_PutTaxRegistration(t *testing.T) { svc := New(Options{}) _, err := svc.PutTaxRegistration(context.Background(), nil, func(o *Options) { @@ -193,6 +265,18 @@ func TestUpdateSnapshot_BatchDeleteTaxRegistration(t *testing.T) { } } +func TestUpdateSnapshot_BatchGetTaxExemptions(t *testing.T) { + svc := New(Options{}) + _, err := svc.BatchGetTaxExemptions(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "BatchGetTaxExemptions") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_BatchPutTaxRegistration(t *testing.T) { svc := New(Options{}) _, err := svc.BatchPutTaxRegistration(context.Background(), nil, func(o *Options) { @@ -229,6 +313,30 @@ func TestUpdateSnapshot_DeleteTaxRegistration(t *testing.T) { } } +func TestUpdateSnapshot_GetTaxExemptionTypes(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetTaxExemptionTypes(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "GetTaxExemptionTypes") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestUpdateSnapshot_GetTaxInheritance(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetTaxInheritance(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "GetTaxInheritance") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_GetTaxRegistration(t *testing.T) { svc := New(Options{}) _, err := svc.GetTaxRegistration(context.Background(), nil, func(o *Options) { @@ -265,6 +373,18 @@ func TestUpdateSnapshot_ListSupplementalTaxRegistrations(t *testing.T) { } } +func TestUpdateSnapshot_ListTaxExemptions(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListTaxExemptions(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "ListTaxExemptions") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_ListTaxRegistrations(t *testing.T) { svc := New(Options{}) _, err := svc.ListTaxRegistrations(context.Background(), nil, func(o *Options) { @@ -289,6 +409,30 @@ func TestUpdateSnapshot_PutSupplementalTaxRegistration(t *testing.T) { } } +func TestUpdateSnapshot_PutTaxExemption(t *testing.T) { + svc := New(Options{}) + _, err := svc.PutTaxExemption(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "PutTaxExemption") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + +func TestUpdateSnapshot_PutTaxInheritance(t *testing.T) { + svc := New(Options{}) + _, err := svc.PutTaxInheritance(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "PutTaxInheritance") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_PutTaxRegistration(t *testing.T) { svc := New(Options{}) _, err := svc.PutTaxRegistration(context.Background(), nil, func(o *Options) { diff --git a/service/taxsettings/types/enums.go b/service/taxsettings/types/enums.go index 6903248b054..b50f8bc63fc 100644 --- a/service/taxsettings/types/enums.go +++ b/service/taxsettings/types/enums.go @@ -23,6 +23,49 @@ func (AddressRoleType) Values() []AddressRoleType { } } +type EntityExemptionAccountStatus string + +// Enum values for EntityExemptionAccountStatus +const ( + EntityExemptionAccountStatusNone EntityExemptionAccountStatus = "None" + EntityExemptionAccountStatusValid EntityExemptionAccountStatus = "Valid" + EntityExemptionAccountStatusExpired EntityExemptionAccountStatus = "Expired" + EntityExemptionAccountStatusPending EntityExemptionAccountStatus = "Pending" +) + +// Values returns all known values for EntityExemptionAccountStatus. 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 (EntityExemptionAccountStatus) Values() []EntityExemptionAccountStatus { + return []EntityExemptionAccountStatus{ + "None", + "Valid", + "Expired", + "Pending", + } +} + +type HeritageStatus string + +// Enum values for HeritageStatus +const ( + HeritageStatusOptIn HeritageStatus = "OptIn" + HeritageStatusOptOut HeritageStatus = "OptOut" +) + +// Values returns all known values for HeritageStatus. 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 (HeritageStatus) Values() []HeritageStatus { + return []HeritageStatus{ + "OptIn", + "OptOut", + } +} + type Industries string // Enum values for Industries diff --git a/service/taxsettings/types/errors.go b/service/taxsettings/types/errors.go index 5146cdacb3f..626bec6a2a2 100644 --- a/service/taxsettings/types/errors.go +++ b/service/taxsettings/types/errors.go @@ -7,6 +7,88 @@ import ( smithy "github.com/aws/smithy-go" ) +// The access is denied for the Amazon Web Services Support API. +type AccessDeniedException struct { + Message *string + + ErrorCodeOverride *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 { + if e == nil || e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} +func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// Failed to upload the tax exemption document to Amazon Web Services Support +// case. +type AttachmentUploadException struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *AttachmentUploadException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *AttachmentUploadException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *AttachmentUploadException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "AttachmentUploadException" + } + return *e.ErrorCodeOverride +} +func (e *AttachmentUploadException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// You've exceeded the Amazon Web Services Support case creation limit for your +// account. +type CaseCreationLimitExceededException struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *CaseCreationLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *CaseCreationLimitExceededException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *CaseCreationLimitExceededException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "CaseCreationLimitExceededException" + } + return *e.ErrorCodeOverride +} +func (e *CaseCreationLimitExceededException) ErrorFault() smithy.ErrorFault { + return smithy.FaultClient +} + // The exception when the input is creating conflict with the given state. type ConflictException struct { Message *string diff --git a/service/taxsettings/types/types.go b/service/taxsettings/types/types.go index 7afa6345cfb..e64b80dee3e 100644 --- a/service/taxsettings/types/types.go +++ b/service/taxsettings/types/types.go @@ -4,6 +4,7 @@ package types import ( smithydocument "github.com/aws/smithy-go/document" + "time" ) // An object with your accountId and TRN information. @@ -212,6 +213,20 @@ type Address struct { noSmithyDocumentSerde } +// The address domain associate with the tax information. +type Authority struct { + + // The country code for the country that the address is in. + // + // This member is required. + Country *string + + // The state that the address is located. + State *string + + noSmithyDocumentSerde +} + // The error object for representing failures in the BatchDeleteTaxRegistration // // operation. @@ -342,6 +357,22 @@ type EstoniaAdditionalInfo struct { noSmithyDocumentSerde } +// The exemption certificate. +type ExemptionCertificate struct { + + // The exemption certificate file content. + // + // This member is required. + DocumentFile []byte + + // The exemption certificate file name. + // + // This member is required. + DocumentName *string + + noSmithyDocumentSerde +} + // Additional tax information associated with your TRN in Georgia. type GeorgiaAdditionalInfo struct { @@ -645,6 +676,69 @@ type TaxDocumentMetadata struct { noSmithyDocumentSerde } +// The tax exemption. +type TaxExemption struct { + + // The address domain associate with tax exemption. + // + // This member is required. + Authority *Authority + + // The tax exemption type. + // + // This member is required. + TaxExemptionType *TaxExemptionType + + // The tax exemption effective date. + EffectiveDate *time.Time + + // The tax exemption expiration date. + ExpirationDate *time.Time + + // The tax exemption status. + Status EntityExemptionAccountStatus + + // The tax exemption recording time in the TaxSettings system. + SystemEffectiveDate *time.Time + + noSmithyDocumentSerde +} + +// The tax exemption details. +type TaxExemptionDetails struct { + + // The indicator if the tax exemption is inherited from the consolidated billing + // family management account. + HeritageObtainedDetails *bool + + // The consolidated billing family management account the tax exemption inherited + // from. + HeritageObtainedParentEntity *string + + // The reason of the heritage inheritance. + HeritageObtainedReason *string + + // Tax exemptions. + TaxExemptions []TaxExemption + + noSmithyDocumentSerde +} + +// The tax exemption type. +type TaxExemptionType struct { + + // The tax exemption's applicable jurisdictions. + ApplicableJurisdictions []Authority + + // The tax exemption's type description. + Description *string + + // The tax exemption's type display name. + DisplayName *string + + noSmithyDocumentSerde +} + // Tax inheritance information associated with the account. type TaxInheritanceDetails struct { @@ -705,12 +799,29 @@ type TaxRegistration struct { noSmithyDocumentSerde } +// The tax registration document. +type TaxRegistrationDocFile struct { + + // The tax registration document content. + // + // This member is required. + FileContent []byte + + // The tax registration document name. + // + // This member is required. + FileName *string + + noSmithyDocumentSerde +} + // Tax registration document information. type TaxRegistrationDocument struct { + // The tax registration document. + File *TaxRegistrationDocFile + // The Amazon S3 location where your tax registration document is stored. - // - // This member is required. S3Location *SourceS3Location noSmithyDocumentSerde diff --git a/service/taxsettings/validators.go b/service/taxsettings/validators.go index 3f484b80f7b..2b258179d8d 100644 --- a/service/taxsettings/validators.go +++ b/service/taxsettings/validators.go @@ -30,6 +30,26 @@ func (m *validateOpBatchDeleteTaxRegistration) HandleInitialize(ctx context.Cont return next.HandleInitialize(ctx, in) } +type validateOpBatchGetTaxExemptions struct { +} + +func (*validateOpBatchGetTaxExemptions) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpBatchGetTaxExemptions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*BatchGetTaxExemptionsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpBatchGetTaxExemptionsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpBatchPutTaxRegistration struct { } @@ -110,6 +130,26 @@ func (m *validateOpPutSupplementalTaxRegistration) HandleInitialize(ctx context. return next.HandleInitialize(ctx, in) } +type validateOpPutTaxExemption struct { +} + +func (*validateOpPutTaxExemption) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpPutTaxExemption) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*PutTaxExemptionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpPutTaxExemptionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpPutTaxRegistration struct { } @@ -134,6 +174,10 @@ func addOpBatchDeleteTaxRegistrationValidationMiddleware(stack *middleware.Stack return stack.Initialize.Add(&validateOpBatchDeleteTaxRegistration{}, middleware.After) } +func addOpBatchGetTaxExemptionsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpBatchGetTaxExemptions{}, middleware.After) +} + func addOpBatchPutTaxRegistrationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpBatchPutTaxRegistration{}, middleware.After) } @@ -150,6 +194,10 @@ func addOpPutSupplementalTaxRegistrationValidationMiddleware(stack *middleware.S return stack.Initialize.Add(&validateOpPutSupplementalTaxRegistration{}, middleware.After) } +func addOpPutTaxExemptionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpPutTaxExemption{}, middleware.After) +} + func addOpPutTaxRegistrationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpPutTaxRegistration{}, middleware.After) } @@ -230,6 +278,21 @@ func validateAddress(v *types.Address) error { } } +func validateAuthority(v *types.Authority) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "Authority"} + if v.Country == nil { + invalidParams.Add(smithy.NewErrParamRequired("Country")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateDestinationS3Location(v *types.DestinationS3Location) error { if v == nil { return nil @@ -260,6 +323,24 @@ func validateEstoniaAdditionalInfo(v *types.EstoniaAdditionalInfo) error { } } +func validateExemptionCertificate(v *types.ExemptionCertificate) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ExemptionCertificate"} + if v.DocumentName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DocumentName")) + } + if v.DocumentFile == nil { + invalidParams.Add(smithy.NewErrParamRequired("DocumentFile")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateGeorgiaAdditionalInfo(v *types.GeorgiaAdditionalInfo) error { if v == nil { return nil @@ -423,18 +504,39 @@ func validateTaxDocumentMetadata(v *types.TaxDocumentMetadata) error { } } +func validateTaxRegistrationDocFile(v *types.TaxRegistrationDocFile) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TaxRegistrationDocFile"} + if v.FileName == nil { + invalidParams.Add(smithy.NewErrParamRequired("FileName")) + } + if v.FileContent == nil { + invalidParams.Add(smithy.NewErrParamRequired("FileContent")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateTaxRegistrationDocument(v *types.TaxRegistrationDocument) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TaxRegistrationDocument"} - if v.S3Location == nil { - invalidParams.Add(smithy.NewErrParamRequired("S3Location")) - } else if v.S3Location != nil { + if v.S3Location != nil { if err := validateSourceS3Location(v.S3Location); err != nil { invalidParams.AddNested("S3Location", err.(smithy.InvalidParamsError)) } } + if v.File != nil { + if err := validateTaxRegistrationDocFile(v.File); err != nil { + invalidParams.AddNested("File", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -539,6 +641,21 @@ func validateOpBatchDeleteTaxRegistrationInput(v *BatchDeleteTaxRegistrationInpu } } +func validateOpBatchGetTaxExemptionsInput(v *BatchGetTaxExemptionsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "BatchGetTaxExemptionsInput"} + if v.AccountIds == nil { + invalidParams.Add(smithy.NewErrParamRequired("AccountIds")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpBatchPutTaxRegistrationInput(v *BatchPutTaxRegistrationInput) error { if v == nil { return nil @@ -581,9 +698,7 @@ func validateOpGetTaxRegistrationDocumentInput(v *GetTaxRegistrationDocumentInpu return nil } invalidParams := smithy.InvalidParamsError{Context: "GetTaxRegistrationDocumentInput"} - if v.DestinationS3Location == nil { - invalidParams.Add(smithy.NewErrParamRequired("DestinationS3Location")) - } else if v.DestinationS3Location != nil { + if v.DestinationS3Location != nil { if err := validateDestinationS3Location(v.DestinationS3Location); err != nil { invalidParams.AddNested("DestinationS3Location", err.(smithy.InvalidParamsError)) } @@ -621,6 +736,38 @@ func validateOpPutSupplementalTaxRegistrationInput(v *PutSupplementalTaxRegistra } } +func validateOpPutTaxExemptionInput(v *PutTaxExemptionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "PutTaxExemptionInput"} + if v.AccountIds == nil { + invalidParams.Add(smithy.NewErrParamRequired("AccountIds")) + } + if v.Authority == nil { + invalidParams.Add(smithy.NewErrParamRequired("Authority")) + } else if v.Authority != nil { + if err := validateAuthority(v.Authority); err != nil { + invalidParams.AddNested("Authority", err.(smithy.InvalidParamsError)) + } + } + if v.ExemptionType == nil { + invalidParams.Add(smithy.NewErrParamRequired("ExemptionType")) + } + if v.ExemptionCertificate == nil { + invalidParams.Add(smithy.NewErrParamRequired("ExemptionCertificate")) + } else if v.ExemptionCertificate != nil { + if err := validateExemptionCertificate(v.ExemptionCertificate); err != nil { + invalidParams.AddNested("ExemptionCertificate", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpPutTaxRegistrationInput(v *PutTaxRegistrationInput) error { if v == nil { return nil diff --git a/service/textract/CHANGELOG.md b/service/textract/CHANGELOG.md index 9ebaeac817c..2509cd4e0bb 100644 --- a/service/textract/CHANGELOG.md +++ b/service/textract/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.34.8 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.34.7 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/textract/go.mod b/service/textract/go.mod index 1be658572c8..49f45d8f294 100644 --- a/service/textract/go.mod +++ b/service/textract/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/textract go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/textract/go.sum b/service/textract/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/textract/go.sum +++ b/service/textract/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/textract/go_module_metadata.go b/service/textract/go_module_metadata.go index 85916a3f251..25a89daff7a 100644 --- a/service/textract/go_module_metadata.go +++ b/service/textract/go_module_metadata.go @@ -3,4 +3,4 @@ package textract // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.34.7" +const goModuleVersion = "1.34.8" diff --git a/service/timestreaminfluxdb/CHANGELOG.md b/service/timestreaminfluxdb/CHANGELOG.md index d2c87c4ee68..f09b02a0774 100644 --- a/service/timestreaminfluxdb/CHANGELOG.md +++ b/service/timestreaminfluxdb/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.6.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.6.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/timestreaminfluxdb/go.mod b/service/timestreaminfluxdb/go.mod index 1d85296d8bb..af5ff8f4b64 100644 --- a/service/timestreaminfluxdb/go.mod +++ b/service/timestreaminfluxdb/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/timestreaminfluxdb go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/timestreaminfluxdb/go.sum b/service/timestreaminfluxdb/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/timestreaminfluxdb/go.sum +++ b/service/timestreaminfluxdb/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/timestreaminfluxdb/go_module_metadata.go b/service/timestreaminfluxdb/go_module_metadata.go index b2ce9ba613b..a320f3e2891 100644 --- a/service/timestreaminfluxdb/go_module_metadata.go +++ b/service/timestreaminfluxdb/go_module_metadata.go @@ -3,4 +3,4 @@ package timestreaminfluxdb // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.6.5" +const goModuleVersion = "1.6.6" diff --git a/service/timestreamquery/CHANGELOG.md b/service/timestreamquery/CHANGELOG.md index e6f2791b96e..1e700ae41f4 100644 --- a/service/timestreamquery/CHANGELOG.md +++ b/service/timestreamquery/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.29.0 (2024-11-20) + +* **Feature**: This release adds support for Provisioning Timestream Compute Units (TCUs), a new feature that allows provisioning dedicated compute resources for your queries, providing predictable and cost-effective query performance. + +# v1.28.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.3 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/timestreamquery/api_op_DescribeAccountSettings.go b/service/timestreamquery/api_op_DescribeAccountSettings.go index a16348421a3..2a09c91b7a3 100644 --- a/service/timestreamquery/api_op_DescribeAccountSettings.go +++ b/service/timestreamquery/api_op_DescribeAccountSettings.go @@ -38,12 +38,23 @@ type DescribeAccountSettingsInput struct { type DescribeAccountSettingsOutput struct { // The maximum number of [Timestream compute units] (TCUs) the service will use at any point in time to - // serve your queries. + // serve your queries. To run queries, you must set a minimum capacity of 4 TCU. + // You can set the maximum number of TCU in multiples of 4, for example, 4, 8, 16, + // 32, and so on. This configuration is applicable only for on-demand usage of + // (TCUs). // // [Timestream compute units]: https://docs.aws.amazon.com/timestream/latest/developerguide/tcu.html MaxQueryTCU *int32 + // An object that contains the usage settings for Timestream Compute Units (TCUs) + // in your account for the query workload. + QueryCompute *types.QueryComputeResponse + // The pricing model for queries in your account. + // + // The QueryPricingModel parameter is used by several Timestream operations; + // however, the UpdateAccountSettings API operation doesn't recognize any values + // other than COMPUTE_UNITS . QueryPricingModel types.QueryPricingModel // Metadata pertaining to the operation's result. diff --git a/service/timestreamquery/api_op_ExecuteScheduledQuery.go b/service/timestreamquery/api_op_ExecuteScheduledQuery.go index 4c19cc9c573..6311de4f9d0 100644 --- a/service/timestreamquery/api_op_ExecuteScheduledQuery.go +++ b/service/timestreamquery/api_op_ExecuteScheduledQuery.go @@ -17,7 +17,10 @@ import ( // // If you enabled QueryInsights , this API also returns insights and metrics // related to the query that you executed as part of an Amazon SNS notification. -// QueryInsights helps with performance tuning of your query. +// QueryInsights helps with performance tuning of your query. For more information +// about QueryInsights , see [Using query insights to optimize queries in Amazon Timestream]. +// +// [Using query insights to optimize queries in Amazon Timestream]: https://docs.aws.amazon.com/timestream/latest/developerguide/using-query-insights.html func (c *Client) ExecuteScheduledQuery(ctx context.Context, params *ExecuteScheduledQueryInput, optFns ...func(*Options)) (*ExecuteScheduledQueryOutput, error) { if params == nil { params = &ExecuteScheduledQueryInput{} diff --git a/service/timestreamquery/api_op_Query.go b/service/timestreamquery/api_op_Query.go index 7d65a94daa3..22bc7cb9c0b 100644 --- a/service/timestreamquery/api_op_Query.go +++ b/service/timestreamquery/api_op_Query.go @@ -17,7 +17,7 @@ import ( // // If you enabled QueryInsights , this API also returns insights and metrics // related to the query that you executed. QueryInsights helps with performance -// tuning of your query. +// tuning of your query. For more information about QueryInsights , see [Using query insights to optimize queries in Amazon Timestream]. // // The maximum number of Query API requests you're allowed to make with // QueryInsights enabled is 1 query per second (QPS). If you exceed this query @@ -47,6 +47,7 @@ import ( // pagination token error. // // [code sample]: https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.run-query.html +// [Using query insights to optimize queries in Amazon Timestream]: https://docs.aws.amazon.com/timestream/latest/developerguide/using-query-insights.html func (c *Client) Query(ctx context.Context, params *QueryInput, optFns ...func(*Options)) (*QueryOutput, error) { if params == nil { params = &QueryInput{} diff --git a/service/timestreamquery/api_op_UpdateAccountSettings.go b/service/timestreamquery/api_op_UpdateAccountSettings.go index befb64b95a7..da8e7fa1cc7 100644 --- a/service/timestreamquery/api_op_UpdateAccountSettings.go +++ b/service/timestreamquery/api_op_UpdateAccountSettings.go @@ -39,15 +39,27 @@ type UpdateAccountSettingsInput struct { // The maximum number of compute units the service will use at any point in time // to serve your queries. To run queries, you must set a minimum capacity of 4 TCU. // You can set the maximum number of TCU in multiples of 4, for example, 4, 8, 16, - // 32, and so on. + // 32, and so on. The maximum value supported for MaxQueryTCU is 1000. To request + // an increase to this soft limit, contact Amazon Web Services Support. For + // information about the default quota for maxQueryTCU, see Default quotas. This + // configuration is applicable only for on-demand usage of Timestream Compute Units + // (TCUs). // // The maximum value supported for MaxQueryTCU is 1000. To request an increase to // this soft limit, contact Amazon Web Services Support. For information about the - // default quota for maxQueryTCU, see [Default quotas]. + // default quota for maxQueryTCU , see [Default quotas]. // // [Default quotas]: https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html#limits.default MaxQueryTCU *int32 + // Modifies the query compute settings configured in your account, including the + // query pricing model and provisioned Timestream Compute Units (TCUs) in your + // account. + // + // This API is idempotent, meaning that making the same request multiple times + // will have the same effect as making the request once. + QueryCompute *types.QueryComputeRequest + // The pricing model for queries in an account. // // The QueryPricingModel parameter is used by several Timestream operations; @@ -64,6 +76,9 @@ type UpdateAccountSettingsOutput struct { // point in time to serve your queries. MaxQueryTCU *int32 + // Confirms the updated account settings for querying data in your account. + QueryCompute *types.QueryComputeResponse + // The pricing model for an account. QueryPricingModel types.QueryPricingModel @@ -140,6 +155,9 @@ func (c *Client) addOperationUpdateAccountSettingsMiddlewares(stack *middleware. if err = addUserAgentRetryMode(stack, options); err != nil { return err } + if err = addOpUpdateAccountSettingsValidationMiddleware(stack); err != nil { + return err + } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateAccountSettings(options.Region), middleware.Before); err != nil { return err } diff --git a/service/timestreamquery/deserializers.go b/service/timestreamquery/deserializers.go index 11abf1fd71c..d8746078be6 100644 --- a/service/timestreamquery/deserializers.go +++ b/service/timestreamquery/deserializers.go @@ -2174,6 +2174,51 @@ func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDenie return nil } +func awsAwsjson10_deserializeDocumentAccountSettingsNotificationConfiguration(v **types.AccountSettingsNotificationConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.AccountSettingsNotificationConfiguration + if *v == nil { + sv = &types.AccountSettingsNotificationConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "RoleArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AmazonResourceName to be of type string, got %T instead", value) + } + sv.RoleArn = ptr.String(jtv) + } + + case "SnsConfiguration": + if err := awsAwsjson10_deserializeDocumentSnsConfiguration(&sv.SnsConfiguration, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson10_deserializeDocumentColumnInfo(v **types.ColumnInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -2822,6 +2867,68 @@ func awsAwsjson10_deserializeDocumentInvalidEndpointException(v **types.InvalidE return nil } +func awsAwsjson10_deserializeDocumentLastUpdate(v **types.LastUpdate, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.LastUpdate + if *v == nil { + sv = &types.LastUpdate{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LastUpdateStatus to be of type string, got %T instead", value) + } + sv.Status = types.LastUpdateStatus(jtv) + } + + case "StatusMessage": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.StatusMessage = ptr.String(jtv) + } + + case "TargetQueryTCU": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected QueryTCU to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.TargetQueryTCU = ptr.Int32(int32(i64)) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson10_deserializeDocumentMixedMeasureMapping(v **types.MixedMeasureMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -3216,6 +3323,105 @@ func awsAwsjson10_deserializeDocumentPartitionKeyList(v *[]string, value interfa return nil } +func awsAwsjson10_deserializeDocumentProvisionedCapacityResponse(v **types.ProvisionedCapacityResponse, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.ProvisionedCapacityResponse + if *v == nil { + sv = &types.ProvisionedCapacityResponse{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ActiveQueryTCU": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected QueryTCU to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ActiveQueryTCU = ptr.Int32(int32(i64)) + } + + case "LastUpdate": + if err := awsAwsjson10_deserializeDocumentLastUpdate(&sv.LastUpdate, value); err != nil { + return err + } + + case "NotificationConfiguration": + if err := awsAwsjson10_deserializeDocumentAccountSettingsNotificationConfiguration(&sv.NotificationConfiguration, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentQueryComputeResponse(v **types.QueryComputeResponse, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.QueryComputeResponse + if *v == nil { + sv = &types.QueryComputeResponse{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ComputeMode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ComputeMode to be of type string, got %T instead", value) + } + sv.ComputeMode = types.ComputeMode(jtv) + } + + case "ProvisionedCapacity": + if err := awsAwsjson10_deserializeDocumentProvisionedCapacityResponse(&sv.ProvisionedCapacity, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson10_deserializeDocumentQueryExecutionException(v **types.QueryExecutionException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -5269,6 +5475,11 @@ func awsAwsjson10_deserializeOpDocumentDescribeAccountSettingsOutput(v **Describ sv.MaxQueryTCU = ptr.Int32(int32(i64)) } + case "QueryCompute": + if err := awsAwsjson10_deserializeDocumentQueryComputeResponse(&sv.QueryCompute, value); err != nil { + return err + } + case "QueryPricingModel": if value != nil { jtv, ok := value.(string) @@ -5665,6 +5876,11 @@ func awsAwsjson10_deserializeOpDocumentUpdateAccountSettingsOutput(v **UpdateAcc sv.MaxQueryTCU = ptr.Int32(int32(i64)) } + case "QueryCompute": + if err := awsAwsjson10_deserializeDocumentQueryComputeResponse(&sv.QueryCompute, value); err != nil { + return err + } + case "QueryPricingModel": if value != nil { jtv, ok := value.(string) diff --git a/service/timestreamquery/go.mod b/service/timestreamquery/go.mod index be0a764cbbc..0252ab3634e 100644 --- a/service/timestreamquery/go.mod +++ b/service/timestreamquery/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/timestreamquery go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.4 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.5 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/timestreamquery/go.sum b/service/timestreamquery/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/timestreamquery/go.sum +++ b/service/timestreamquery/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/timestreamquery/go_module_metadata.go b/service/timestreamquery/go_module_metadata.go index ddc66fc78ce..23027dd6ca9 100644 --- a/service/timestreamquery/go_module_metadata.go +++ b/service/timestreamquery/go_module_metadata.go @@ -3,4 +3,4 @@ package timestreamquery // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.3" +const goModuleVersion = "1.29.0" diff --git a/service/timestreamquery/serializers.go b/service/timestreamquery/serializers.go index 7520a654dde..ae8993a3796 100644 --- a/service/timestreamquery/serializers.go +++ b/service/timestreamquery/serializers.go @@ -931,6 +931,25 @@ func (m *awsAwsjson10_serializeOpUpdateScheduledQuery) HandleSerialize(ctx conte span.End() return next.HandleSerialize(ctx, in) } +func awsAwsjson10_serializeDocumentAccountSettingsNotificationConfiguration(v *types.AccountSettingsNotificationConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.RoleArn != nil { + ok := object.Key("RoleArn") + ok.String(*v.RoleArn) + } + + if v.SnsConfiguration != nil { + ok := object.Key("SnsConfiguration") + if err := awsAwsjson10_serializeDocumentSnsConfiguration(v.SnsConfiguration, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson10_serializeDocumentDimensionMapping(v *types.DimensionMapping, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -1090,6 +1109,44 @@ func awsAwsjson10_serializeDocumentNotificationConfiguration(v *types.Notificati return nil } +func awsAwsjson10_serializeDocumentProvisionedCapacityRequest(v *types.ProvisionedCapacityRequest, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.NotificationConfiguration != nil { + ok := object.Key("NotificationConfiguration") + if err := awsAwsjson10_serializeDocumentAccountSettingsNotificationConfiguration(v.NotificationConfiguration, ok); err != nil { + return err + } + } + + if v.TargetQueryTCU != nil { + ok := object.Key("TargetQueryTCU") + ok.Integer(*v.TargetQueryTCU) + } + + return nil +} + +func awsAwsjson10_serializeDocumentQueryComputeRequest(v *types.QueryComputeRequest, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.ComputeMode) > 0 { + ok := object.Key("ComputeMode") + ok.String(string(v.ComputeMode)) + } + + if v.ProvisionedCapacity != nil { + ok := object.Key("ProvisionedCapacity") + if err := awsAwsjson10_serializeDocumentProvisionedCapacityRequest(v.ProvisionedCapacity, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson10_serializeDocumentQueryInsights(v *types.QueryInsights, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -1546,6 +1603,13 @@ func awsAwsjson10_serializeOpDocumentUpdateAccountSettingsInput(v *UpdateAccount ok.Integer(*v.MaxQueryTCU) } + if v.QueryCompute != nil { + ok := object.Key("QueryCompute") + if err := awsAwsjson10_serializeDocumentQueryComputeRequest(v.QueryCompute, ok); err != nil { + return err + } + } + if len(v.QueryPricingModel) > 0 { ok := object.Key("QueryPricingModel") ok.String(string(v.QueryPricingModel)) diff --git a/service/timestreamquery/snapshot/api_op_UpdateAccountSettings.go.snap b/service/timestreamquery/snapshot/api_op_UpdateAccountSettings.go.snap index 567ed625830..78d87f7cb5e 100644 --- a/service/timestreamquery/snapshot/api_op_UpdateAccountSettings.go.snap +++ b/service/timestreamquery/snapshot/api_op_UpdateAccountSettings.go.snap @@ -4,6 +4,7 @@ UpdateAccountSettings RegisterServiceMetadata legacyEndpointContextSetter SetLogger + OperationInputValidation spanInitializeEnd Serialize stack step spanBuildRequestStart diff --git a/service/timestreamquery/types/enums.go b/service/timestreamquery/types/enums.go index 928a7fe5dc2..3fe79d05555 100644 --- a/service/timestreamquery/types/enums.go +++ b/service/timestreamquery/types/enums.go @@ -2,6 +2,25 @@ package types +type ComputeMode string + +// Enum values for ComputeMode +const ( + ComputeModeOnDemand ComputeMode = "ON_DEMAND" + ComputeModeProvisioned ComputeMode = "PROVISIONED" +) + +// Values returns all known values for ComputeMode. 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 (ComputeMode) Values() []ComputeMode { + return []ComputeMode{ + "ON_DEMAND", + "PROVISIONED", + } +} + type DimensionValueType string // Enum values for DimensionValueType @@ -19,6 +38,27 @@ func (DimensionValueType) Values() []DimensionValueType { } } +type LastUpdateStatus string + +// Enum values for LastUpdateStatus +const ( + LastUpdateStatusPending LastUpdateStatus = "PENDING" + LastUpdateStatusFailed LastUpdateStatus = "FAILED" + LastUpdateStatusSucceeded LastUpdateStatus = "SUCCEEDED" +) + +// Values returns all known values for LastUpdateStatus. 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 (LastUpdateStatus) Values() []LastUpdateStatus { + return []LastUpdateStatus{ + "PENDING", + "FAILED", + "SUCCEEDED", + } +} + type MeasureValueType string // Enum values for MeasureValueType diff --git a/service/timestreamquery/types/errors.go b/service/timestreamquery/types/errors.go index 97b321faead..9c05f27b02d 100644 --- a/service/timestreamquery/types/errors.go +++ b/service/timestreamquery/types/errors.go @@ -7,7 +7,7 @@ import ( smithy "github.com/aws/smithy-go" ) -// You are not authorized to perform this action. +// You do not have the necessary permissions to access the account settings. type AccessDeniedException struct { Message *string @@ -59,9 +59,7 @@ func (e *ConflictException) ErrorCode() string { } func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The service was unable to fully process this request because of an internal -// -// server error. +// An internal server error occurred while processing the request. type InternalServerException struct { Message *string @@ -87,7 +85,7 @@ func (e *InternalServerException) ErrorCode() string { } func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } -// The requested endpoint was not valid. +// The requested endpoint is invalid. type InvalidEndpointException struct { Message *string @@ -193,7 +191,7 @@ func (e *ServiceQuotaExceededException) ErrorCode() string { } func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The request was denied due to request throttling. +// The request was throttled due to excessive requests. type ThrottlingException struct { Message *string diff --git a/service/timestreamquery/types/types.go b/service/timestreamquery/types/types.go index 2d5b4fba1d7..9f9dfe41704 100644 --- a/service/timestreamquery/types/types.go +++ b/service/timestreamquery/types/types.go @@ -7,6 +7,22 @@ import ( "time" ) +// Configuration settings for notifications related to account settings. +type AccountSettingsNotificationConfiguration struct { + + // An Amazon Resource Name (ARN) that grants Timestream permission to publish + // notifications. This field is only visible if SNS Topic is provided when updating + // the account settings. + // + // This member is required. + RoleArn *string + + // Details on SNS that are required to send the notification. + SnsConfiguration *SnsConfiguration + + noSmithyDocumentSerde +} + // Contains the metadata for query results such as the column names, data types, // // and other attributes. @@ -129,6 +145,24 @@ type ExecutionStats struct { noSmithyDocumentSerde } +// Configuration object that contains the most recent account settings update, +// visible only if settings have been updated previously. +type LastUpdate struct { + + // The status of the last update. Can be either PENDING , FAILED , or SUCCEEDED . + Status LastUpdateStatus + + // Error message describing the last account settings update status, visible only + // if an error occurred. + StatusMessage *string + + // The number of TimeStream Compute Units (TCUs) requested in the last account + // settings update. + TargetQueryTCU *int32 + + noSmithyDocumentSerde +} + // MixedMeasureMappings are mappings that can be used to ingest data into a // mixture of narrow and multi measures in the derived table. type MixedMeasureMapping struct { @@ -202,7 +236,9 @@ type MultiMeasureMappings struct { // deleted. type NotificationConfiguration struct { - // Details on SNS configuration. + // Details about the Amazon Simple Notification Service (SNS) configuration. This + // field is visible only when SNS Topic is provided when updating the account + // settings. // // This member is required. SnsConfiguration *SnsConfiguration @@ -229,6 +265,72 @@ type ParameterMapping struct { noSmithyDocumentSerde } +// A request to update the provisioned capacity settings for querying data. +type ProvisionedCapacityRequest struct { + + // The target compute capacity for querying data, specified in Timestream Compute + // Units (TCUs). + // + // This member is required. + TargetQueryTCU *int32 + + // Configuration settings for notifications related to the provisioned capacity + // update. + NotificationConfiguration *AccountSettingsNotificationConfiguration + + noSmithyDocumentSerde +} + +// The response to a request to update the provisioned capacity settings for +// querying data. +type ProvisionedCapacityResponse struct { + + // The number of Timestream Compute Units (TCUs) provisioned in the account. This + // field is only visible when the compute mode is PROVISIONED . + ActiveQueryTCU *int32 + + // Information about the last update to the provisioned capacity settings. + LastUpdate *LastUpdate + + // An object that contains settings for notifications that are sent whenever the + // provisioned capacity settings are modified. This field is only visible when the + // compute mode is PROVISIONED . + NotificationConfiguration *AccountSettingsNotificationConfiguration + + noSmithyDocumentSerde +} + +// A request to retrieve or update the compute capacity settings for querying data. +type QueryComputeRequest struct { + + // The mode in which Timestream Compute Units (TCUs) are allocated and utilized + // within an account. Note that in the Asia Pacific (Mumbai) region, the API + // operation only recognizes the value PROVISIONED . + ComputeMode ComputeMode + + // Configuration object that contains settings for provisioned Timestream Compute + // Units (TCUs) in your account. + ProvisionedCapacity *ProvisionedCapacityRequest + + noSmithyDocumentSerde +} + +// The response to a request to retrieve or update the compute capacity settings +// for querying data. +type QueryComputeResponse struct { + + // The mode in which Timestream Compute Units (TCUs) are allocated and utilized + // within an account. Note that in the Asia Pacific (Mumbai) region, the API + // operation only recognizes the value PROVISIONED . + ComputeMode ComputeMode + + // Configuration object that contains settings for provisioned Timestream Compute + // Units (TCUs) in your account. + ProvisionedCapacity *ProvisionedCapacityResponse + + noSmithyDocumentSerde +} + // QueryInsights is a performance tuning feature that helps you optimize your // queries, reducing costs and improving performance. With QueryInsights , you can // assess the pruning efficiency of your queries and identify areas for improvement diff --git a/service/timestreamquery/validators.go b/service/timestreamquery/validators.go index 49505742ac9..3020a89d143 100644 --- a/service/timestreamquery/validators.go +++ b/service/timestreamquery/validators.go @@ -210,6 +210,26 @@ func (m *validateOpUntagResource) HandleInitialize(ctx context.Context, in middl return next.HandleInitialize(ctx, in) } +type validateOpUpdateAccountSettings struct { +} + +func (*validateOpUpdateAccountSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateAccountSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateAccountSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateAccountSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpUpdateScheduledQuery struct { } @@ -270,10 +290,34 @@ func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After) } +func addOpUpdateAccountSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateAccountSettings{}, middleware.After) +} + func addOpUpdateScheduledQueryValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateScheduledQuery{}, middleware.After) } +func validateAccountSettingsNotificationConfiguration(v *types.AccountSettingsNotificationConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AccountSettingsNotificationConfiguration"} + if v.SnsConfiguration != nil { + if err := validateSnsConfiguration(v.SnsConfiguration); err != nil { + invalidParams.AddNested("SnsConfiguration", err.(smithy.InvalidParamsError)) + } + } + if v.RoleArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("RoleArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateDimensionMapping(v *types.DimensionMapping) error { if v == nil { return nil @@ -438,6 +482,43 @@ func validateNotificationConfiguration(v *types.NotificationConfiguration) error } } +func validateProvisionedCapacityRequest(v *types.ProvisionedCapacityRequest) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ProvisionedCapacityRequest"} + if v.TargetQueryTCU == nil { + invalidParams.Add(smithy.NewErrParamRequired("TargetQueryTCU")) + } + if v.NotificationConfiguration != nil { + if err := validateAccountSettingsNotificationConfiguration(v.NotificationConfiguration); err != nil { + invalidParams.AddNested("NotificationConfiguration", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateQueryComputeRequest(v *types.QueryComputeRequest) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "QueryComputeRequest"} + if v.ProvisionedCapacity != nil { + if err := validateProvisionedCapacityRequest(v.ProvisionedCapacity); err != nil { + invalidParams.AddNested("ProvisionedCapacity", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateQueryInsights(v *types.QueryInsights) error { if v == nil { return nil @@ -815,6 +896,23 @@ func validateOpUntagResourceInput(v *UntagResourceInput) error { } } +func validateOpUpdateAccountSettingsInput(v *UpdateAccountSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateAccountSettingsInput"} + if v.QueryCompute != nil { + if err := validateQueryComputeRequest(v.QueryCompute); err != nil { + invalidParams.AddNested("QueryCompute", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpUpdateScheduledQueryInput(v *UpdateScheduledQueryInput) error { if v == nil { return nil diff --git a/service/timestreamwrite/CHANGELOG.md b/service/timestreamwrite/CHANGELOG.md index 080bb160699..b5463df45c4 100644 --- a/service/timestreamwrite/CHANGELOG.md +++ b/service/timestreamwrite/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.29.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.29.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/timestreamwrite/go.mod b/service/timestreamwrite/go.mod index 8509b4f70f9..f35423988e0 100644 --- a/service/timestreamwrite/go.mod +++ b/service/timestreamwrite/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/timestreamwrite go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.4 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.5 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/timestreamwrite/go.sum b/service/timestreamwrite/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/timestreamwrite/go.sum +++ b/service/timestreamwrite/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/timestreamwrite/go_module_metadata.go b/service/timestreamwrite/go_module_metadata.go index 2ba1ee1dd6b..6fb7158716c 100644 --- a/service/timestreamwrite/go_module_metadata.go +++ b/service/timestreamwrite/go_module_metadata.go @@ -3,4 +3,4 @@ package timestreamwrite // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.29.5" +const goModuleVersion = "1.29.6" diff --git a/service/tnb/CHANGELOG.md b/service/tnb/CHANGELOG.md index cc1e918abd5..d2d33142c01 100644 --- a/service/tnb/CHANGELOG.md +++ b/service/tnb/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.13.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.13.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/tnb/go.mod b/service/tnb/go.mod index 27bd5c81179..ec910e3bf72 100644 --- a/service/tnb/go.mod +++ b/service/tnb/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/tnb go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/tnb/go.sum b/service/tnb/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/tnb/go.sum +++ b/service/tnb/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/tnb/go_module_metadata.go b/service/tnb/go_module_metadata.go index 0a1333adcc7..fa747efff81 100644 --- a/service/tnb/go_module_metadata.go +++ b/service/tnb/go_module_metadata.go @@ -3,4 +3,4 @@ package tnb // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.13.5" +const goModuleVersion = "1.13.6" diff --git a/service/transcribe/CHANGELOG.md b/service/transcribe/CHANGELOG.md index 7ed532f44d1..6614f6f2b9c 100644 --- a/service/transcribe/CHANGELOG.md +++ b/service/transcribe/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.41.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.41.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/transcribe/go.mod b/service/transcribe/go.mod index 509f9836d7d..b34897834d8 100644 --- a/service/transcribe/go.mod +++ b/service/transcribe/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/transcribe go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/transcribe/go.sum b/service/transcribe/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/transcribe/go.sum +++ b/service/transcribe/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/transcribe/go_module_metadata.go b/service/transcribe/go_module_metadata.go index e398cf59398..67acc8522d6 100644 --- a/service/transcribe/go_module_metadata.go +++ b/service/transcribe/go_module_metadata.go @@ -3,4 +3,4 @@ package transcribe // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.41.5" +const goModuleVersion = "1.41.6" diff --git a/service/transcribestreaming/CHANGELOG.md b/service/transcribestreaming/CHANGELOG.md index a52c0f53d91..10ff512bc21 100644 --- a/service/transcribestreaming/CHANGELOG.md +++ b/service/transcribestreaming/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.22.4 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.3 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/transcribestreaming/go.mod b/service/transcribestreaming/go.mod index e35e97238bf..8e0e4c1425c 100644 --- a/service/transcribestreaming/go.mod +++ b/service/transcribestreaming/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/transcribestreaming go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.6 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.7 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/transcribestreaming/go.sum b/service/transcribestreaming/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/transcribestreaming/go.sum +++ b/service/transcribestreaming/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/transcribestreaming/go_module_metadata.go b/service/transcribestreaming/go_module_metadata.go index 72b8487c1e8..9c634c6d09b 100644 --- a/service/transcribestreaming/go_module_metadata.go +++ b/service/transcribestreaming/go_module_metadata.go @@ -3,4 +3,4 @@ package transcribestreaming // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.3" +const goModuleVersion = "1.22.4" diff --git a/service/transcribestreaming/internal/testing/go.mod b/service/transcribestreaming/internal/testing/go.mod index 8947bf45d76..8b7e14ab212 100644 --- a/service/transcribestreaming/internal/testing/go.mod +++ b/service/transcribestreaming/internal/testing/go.mod @@ -3,17 +3,17 @@ module github.com/aws/aws-sdk-go-v2/service/transcribestreaming/internal/testing go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.6 - github.com/aws/aws-sdk-go-v2/service/internal/eventstreamtesting v1.5.6 - github.com/aws/aws-sdk-go-v2/service/transcribestreaming v1.22.3 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.7 + github.com/aws/aws-sdk-go-v2/service/internal/eventstreamtesting v1.5.7 + github.com/aws/aws-sdk-go-v2/service/transcribestreaming v1.22.4 + github.com/aws/smithy-go v1.22.1 ) require ( - github.com/aws/aws-sdk-go-v2/credentials v1.17.45 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.17.46 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 // indirect ) replace github.com/aws/aws-sdk-go-v2 => ../../../../ diff --git a/service/transcribestreaming/internal/testing/go.sum b/service/transcribestreaming/internal/testing/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/transcribestreaming/internal/testing/go.sum +++ b/service/transcribestreaming/internal/testing/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/transfer/CHANGELOG.md b/service/transfer/CHANGELOG.md index 2ec656ea771..b25c2b1a26c 100644 --- a/service/transfer/CHANGELOG.md +++ b/service/transfer/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.53.5 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.53.4 (2024-11-15.2) * No change notes available for this release. diff --git a/service/transfer/go.mod b/service/transfer/go.mod index fe414d8b296..6549d2a01d9 100644 --- a/service/transfer/go.mod +++ b/service/transfer/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/transfer go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/transfer/go.sum b/service/transfer/go.sum index 609e6296b2c..aa7eb14ff92 100644 --- a/service/transfer/go.sum +++ b/service/transfer/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= diff --git a/service/transfer/go_module_metadata.go b/service/transfer/go_module_metadata.go index 16898e5c8e0..57e4f4f901f 100644 --- a/service/transfer/go_module_metadata.go +++ b/service/transfer/go_module_metadata.go @@ -3,4 +3,4 @@ package transfer // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.53.4" +const goModuleVersion = "1.53.5" diff --git a/service/translate/CHANGELOG.md b/service/translate/CHANGELOG.md index f8655080282..eefa3413ef8 100644 --- a/service/translate/CHANGELOG.md +++ b/service/translate/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.28.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/translate/go.mod b/service/translate/go.mod index 8750b05c4d0..62bf13bae56 100644 --- a/service/translate/go.mod +++ b/service/translate/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/translate go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/translate/go.sum b/service/translate/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/translate/go.sum +++ b/service/translate/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/translate/go_module_metadata.go b/service/translate/go_module_metadata.go index 0415603ea20..db1485086a7 100644 --- a/service/translate/go_module_metadata.go +++ b/service/translate/go_module_metadata.go @@ -3,4 +3,4 @@ package translate // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.5" +const goModuleVersion = "1.28.6" diff --git a/service/trustedadvisor/CHANGELOG.md b/service/trustedadvisor/CHANGELOG.md index ffd0d76fae8..b9f5b6b5cc3 100644 --- a/service/trustedadvisor/CHANGELOG.md +++ b/service/trustedadvisor/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.8.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.8.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/trustedadvisor/go.mod b/service/trustedadvisor/go.mod index ecf947a9e8e..59eb33c016d 100644 --- a/service/trustedadvisor/go.mod +++ b/service/trustedadvisor/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/trustedadvisor go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/trustedadvisor/go.sum b/service/trustedadvisor/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/trustedadvisor/go.sum +++ b/service/trustedadvisor/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/trustedadvisor/go_module_metadata.go b/service/trustedadvisor/go_module_metadata.go index 8d7f99443b3..c7548b379af 100644 --- a/service/trustedadvisor/go_module_metadata.go +++ b/service/trustedadvisor/go_module_metadata.go @@ -3,4 +3,4 @@ package trustedadvisor // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.8.5" +const goModuleVersion = "1.8.6" diff --git a/service/verifiedpermissions/CHANGELOG.md b/service/verifiedpermissions/CHANGELOG.md index af0a29c3cd3..d0c12e92a05 100644 --- a/service/verifiedpermissions/CHANGELOG.md +++ b/service/verifiedpermissions/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.20.2 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.1 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/verifiedpermissions/go.mod b/service/verifiedpermissions/go.mod index 00e64d4a84d..5ea45328989 100644 --- a/service/verifiedpermissions/go.mod +++ b/service/verifiedpermissions/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/verifiedpermissions go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/verifiedpermissions/go.sum b/service/verifiedpermissions/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/verifiedpermissions/go.sum +++ b/service/verifiedpermissions/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/verifiedpermissions/go_module_metadata.go b/service/verifiedpermissions/go_module_metadata.go index dc640710739..f540ad01a85 100644 --- a/service/verifiedpermissions/go_module_metadata.go +++ b/service/verifiedpermissions/go_module_metadata.go @@ -3,4 +3,4 @@ package verifiedpermissions // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.1" +const goModuleVersion = "1.20.2" diff --git a/service/voiceid/CHANGELOG.md b/service/voiceid/CHANGELOG.md index 568208cf276..f2e20c07848 100644 --- a/service/voiceid/CHANGELOG.md +++ b/service/voiceid/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.24.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/voiceid/go.mod b/service/voiceid/go.mod index b5a6bcb3597..c826e924a7d 100644 --- a/service/voiceid/go.mod +++ b/service/voiceid/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/voiceid go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/voiceid/go.sum b/service/voiceid/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/voiceid/go.sum +++ b/service/voiceid/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/voiceid/go_module_metadata.go b/service/voiceid/go_module_metadata.go index 2f033fbeb90..72bf97a6e90 100644 --- a/service/voiceid/go_module_metadata.go +++ b/service/voiceid/go_module_metadata.go @@ -3,4 +3,4 @@ package voiceid // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.5" +const goModuleVersion = "1.24.6" diff --git a/service/vpclattice/CHANGELOG.md b/service/vpclattice/CHANGELOG.md index 3a518142e42..c790eaa89ae 100644 --- a/service/vpclattice/CHANGELOG.md +++ b/service/vpclattice/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.12.8 (2024-11-20) + +* No change notes available for this release. + +# v1.12.7 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.12.6 (2024-11-13) * No change notes available for this release. diff --git a/service/vpclattice/go.mod b/service/vpclattice/go.mod index 8d3246c8f85..1e3bda0f68e 100644 --- a/service/vpclattice/go.mod +++ b/service/vpclattice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/vpclattice go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/vpclattice/go.sum b/service/vpclattice/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/vpclattice/go.sum +++ b/service/vpclattice/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/vpclattice/go_module_metadata.go b/service/vpclattice/go_module_metadata.go index 9230206fad8..90c1e232323 100644 --- a/service/vpclattice/go_module_metadata.go +++ b/service/vpclattice/go_module_metadata.go @@ -3,4 +3,4 @@ package vpclattice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.12.6" +const goModuleVersion = "1.12.8" diff --git a/service/vpclattice/internal/endpoints/endpoints.go b/service/vpclattice/internal/endpoints/endpoints.go index 2b0c4d75325..1f42064d070 100644 --- a/service/vpclattice/internal/endpoints/endpoints.go +++ b/service/vpclattice/internal/endpoints/endpoints.go @@ -157,6 +157,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-south-1", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-south-2", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-southeast-1", }: endpoints.Endpoint{}, diff --git a/service/waf/CHANGELOG.md b/service/waf/CHANGELOG.md index e494b0b658d..dfd81c34d84 100644 --- a/service/waf/CHANGELOG.md +++ b/service/waf/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.25.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/waf/go.mod b/service/waf/go.mod index 4e0c7f8e417..6ded271d1f7 100644 --- a/service/waf/go.mod +++ b/service/waf/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/waf go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/waf/go.sum b/service/waf/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/waf/go.sum +++ b/service/waf/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/waf/go_module_metadata.go b/service/waf/go_module_metadata.go index e6cc54ca5a9..d1c8ac3f773 100644 --- a/service/waf/go_module_metadata.go +++ b/service/waf/go_module_metadata.go @@ -3,4 +3,4 @@ package waf // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.5" +const goModuleVersion = "1.25.6" diff --git a/service/wafregional/CHANGELOG.md b/service/wafregional/CHANGELOG.md index ac95b25f442..3c1eb744f00 100644 --- a/service/wafregional/CHANGELOG.md +++ b/service/wafregional/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.25.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/wafregional/go.mod b/service/wafregional/go.mod index 91b26b06da4..caa13ec8690 100644 --- a/service/wafregional/go.mod +++ b/service/wafregional/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/wafregional go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/wafregional/go.sum b/service/wafregional/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/wafregional/go.sum +++ b/service/wafregional/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/wafregional/go_module_metadata.go b/service/wafregional/go_module_metadata.go index a7a7bf065d7..2c78eae1879 100644 --- a/service/wafregional/go_module_metadata.go +++ b/service/wafregional/go_module_metadata.go @@ -3,4 +3,4 @@ package wafregional // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.5" +const goModuleVersion = "1.25.6" diff --git a/service/wafv2/CHANGELOG.md b/service/wafv2/CHANGELOG.md index 81357a8beab..2dec4ba608a 100644 --- a/service/wafv2/CHANGELOG.md +++ b/service/wafv2/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.55.5 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.55.4 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/wafv2/go.mod b/service/wafv2/go.mod index a916796cbff..6daeec131c3 100644 --- a/service/wafv2/go.mod +++ b/service/wafv2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/wafv2 go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/wafv2/go.sum b/service/wafv2/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/wafv2/go.sum +++ b/service/wafv2/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/wafv2/go_module_metadata.go b/service/wafv2/go_module_metadata.go index bce470ff02a..c4cb13ee628 100644 --- a/service/wafv2/go_module_metadata.go +++ b/service/wafv2/go_module_metadata.go @@ -3,4 +3,4 @@ package wafv2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.55.4" +const goModuleVersion = "1.55.5" diff --git a/service/wellarchitected/CHANGELOG.md b/service/wellarchitected/CHANGELOG.md index e4222b4ea60..4328eb7bba9 100644 --- a/service/wellarchitected/CHANGELOG.md +++ b/service/wellarchitected/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.34.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.34.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/wellarchitected/go.mod b/service/wellarchitected/go.mod index cd8c163ad08..7f7a48b520d 100644 --- a/service/wellarchitected/go.mod +++ b/service/wellarchitected/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/wellarchitected go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/wellarchitected/go.sum b/service/wellarchitected/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/wellarchitected/go.sum +++ b/service/wellarchitected/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/wellarchitected/go_module_metadata.go b/service/wellarchitected/go_module_metadata.go index 130c48048f5..c3a3677caad 100644 --- a/service/wellarchitected/go_module_metadata.go +++ b/service/wellarchitected/go_module_metadata.go @@ -3,4 +3,4 @@ package wellarchitected // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.34.5" +const goModuleVersion = "1.34.6" diff --git a/service/wisdom/CHANGELOG.md b/service/wisdom/CHANGELOG.md index 930e3914dfd..98331e0464b 100644 --- a/service/wisdom/CHANGELOG.md +++ b/service/wisdom/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.27.7 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.6 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/wisdom/go.mod b/service/wisdom/go.mod index 15b5c0b69ec..1e2b2abc894 100644 --- a/service/wisdom/go.mod +++ b/service/wisdom/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/wisdom go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/wisdom/go.sum b/service/wisdom/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/wisdom/go.sum +++ b/service/wisdom/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/wisdom/go_module_metadata.go b/service/wisdom/go_module_metadata.go index 811b565cd7b..c1dd7e0a956 100644 --- a/service/wisdom/go_module_metadata.go +++ b/service/wisdom/go_module_metadata.go @@ -3,4 +3,4 @@ package wisdom // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.6" +const goModuleVersion = "1.27.7" diff --git a/service/workdocs/CHANGELOG.md b/service/workdocs/CHANGELOG.md index 52ee3632ddf..ac022c5aeca 100644 --- a/service/workdocs/CHANGELOG.md +++ b/service/workdocs/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.25.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/workdocs/go.mod b/service/workdocs/go.mod index 6b10c2ab11b..2cfb216f128 100644 --- a/service/workdocs/go.mod +++ b/service/workdocs/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/workdocs go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/workdocs/go.sum b/service/workdocs/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/workdocs/go.sum +++ b/service/workdocs/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/workdocs/go_module_metadata.go b/service/workdocs/go_module_metadata.go index bb57f9bc47f..e2e70d261c4 100644 --- a/service/workdocs/go_module_metadata.go +++ b/service/workdocs/go_module_metadata.go @@ -3,4 +3,4 @@ package workdocs // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.5" +const goModuleVersion = "1.25.6" diff --git a/service/workmail/CHANGELOG.md b/service/workmail/CHANGELOG.md index 76995ab816d..b8b7e558083 100644 --- a/service/workmail/CHANGELOG.md +++ b/service/workmail/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.30.3 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.30.2 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/workmail/go.mod b/service/workmail/go.mod index 378dc36831d..9637297c632 100644 --- a/service/workmail/go.mod +++ b/service/workmail/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/workmail go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/workmail/go.sum b/service/workmail/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/workmail/go.sum +++ b/service/workmail/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/workmail/go_module_metadata.go b/service/workmail/go_module_metadata.go index a18cb38c6ab..230d873a524 100644 --- a/service/workmail/go_module_metadata.go +++ b/service/workmail/go_module_metadata.go @@ -3,4 +3,4 @@ package workmail // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.30.2" +const goModuleVersion = "1.30.3" diff --git a/service/workmailmessageflow/CHANGELOG.md b/service/workmailmessageflow/CHANGELOG.md index 4bd9aaec5fb..2f261231422 100644 --- a/service/workmailmessageflow/CHANGELOG.md +++ b/service/workmailmessageflow/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.23.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/workmailmessageflow/go.mod b/service/workmailmessageflow/go.mod index 87a41746629..5769641b172 100644 --- a/service/workmailmessageflow/go.mod +++ b/service/workmailmessageflow/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/workmailmessageflow go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/workmailmessageflow/go.sum b/service/workmailmessageflow/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/workmailmessageflow/go.sum +++ b/service/workmailmessageflow/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/workmailmessageflow/go_module_metadata.go b/service/workmailmessageflow/go_module_metadata.go index cccb9408161..c2be659c97e 100644 --- a/service/workmailmessageflow/go_module_metadata.go +++ b/service/workmailmessageflow/go_module_metadata.go @@ -3,4 +3,4 @@ package workmailmessageflow // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.5" +const goModuleVersion = "1.23.6" diff --git a/service/workspaces/CHANGELOG.md b/service/workspaces/CHANGELOG.md index e2a78dfe53e..a6188756372 100644 --- a/service/workspaces/CHANGELOG.md +++ b/service/workspaces/CHANGELOG.md @@ -1,3 +1,16 @@ +# v1.50.0 (2024-11-20) + +* **Feature**: Added support for Rocky Linux 8 on Amazon WorkSpaces Personal. + +# v1.49.0 (2024-11-19) + +* **Feature**: Releasing new ErrorCodes for Image Validation failure during CreateWorkspaceImage process + +# v1.48.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.48.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/workspaces/api_op_AcceptAccountLinkInvitation.go b/service/workspaces/api_op_AcceptAccountLinkInvitation.go index e10e6bcc074..11a0dab4e89 100644 --- a/service/workspaces/api_op_AcceptAccountLinkInvitation.go +++ b/service/workspaces/api_op_AcceptAccountLinkInvitation.go @@ -37,8 +37,8 @@ type AcceptAccountLinkInvitationInput struct { // This member is required. LinkId *string - // A string of up to 64 ASCII characters that Amazon EFS uses to ensure idempotent - // creation. + // A string of up to 64 ASCII characters that Amazon WorkSpaces uses to ensure + // idempotent creation. ClientToken *string noSmithyDocumentSerde diff --git a/service/workspaces/api_op_CreateAccountLinkInvitation.go b/service/workspaces/api_op_CreateAccountLinkInvitation.go index 347f944922e..efcb4c03953 100644 --- a/service/workspaces/api_op_CreateAccountLinkInvitation.go +++ b/service/workspaces/api_op_CreateAccountLinkInvitation.go @@ -34,8 +34,8 @@ type CreateAccountLinkInvitationInput struct { // This member is required. TargetAccountId *string - // A string of up to 64 ASCII characters that Amazon EFS uses to ensure idempotent - // creation. + // A string of up to 64 ASCII characters that Amazon WorkSpaces uses to ensure + // idempotent creation. ClientToken *string noSmithyDocumentSerde diff --git a/service/workspaces/api_op_DeleteAccountLinkInvitation.go b/service/workspaces/api_op_DeleteAccountLinkInvitation.go index 56c295e0c27..16ccfc84bbd 100644 --- a/service/workspaces/api_op_DeleteAccountLinkInvitation.go +++ b/service/workspaces/api_op_DeleteAccountLinkInvitation.go @@ -34,8 +34,8 @@ type DeleteAccountLinkInvitationInput struct { // This member is required. LinkId *string - // A string of up to 64 ASCII characters that Amazon EFS uses to ensure idempotent - // creation. + // A string of up to 64 ASCII characters that Amazon WorkSpaces uses to ensure + // idempotent creation. ClientToken *string noSmithyDocumentSerde diff --git a/service/workspaces/go.mod b/service/workspaces/go.mod index c2a8e24a14c..4973cd401f8 100644 --- a/service/workspaces/go.mod +++ b/service/workspaces/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/workspaces go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/workspaces/go.sum b/service/workspaces/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/workspaces/go.sum +++ b/service/workspaces/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/workspaces/go_module_metadata.go b/service/workspaces/go_module_metadata.go index a50d9e402e7..ab88749ea30 100644 --- a/service/workspaces/go_module_metadata.go +++ b/service/workspaces/go_module_metadata.go @@ -3,4 +3,4 @@ package workspaces // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.48.5" +const goModuleVersion = "1.50.0" diff --git a/service/workspaces/types/enums.go b/service/workspaces/types/enums.go index f8522c5439a..92b3ea72fbf 100644 --- a/service/workspaces/types/enums.go +++ b/service/workspaces/types/enums.go @@ -673,6 +673,7 @@ const ( OperatingSystemNameWindowsServer2019 OperatingSystemName = "WINDOWS_SERVER_2019" OperatingSystemNameWindowsServer2022 OperatingSystemName = "WINDOWS_SERVER_2022" OperatingSystemNameRhel8 OperatingSystemName = "RHEL_8" + OperatingSystemNameRocky8 OperatingSystemName = "ROCKY_8" ) // Values returns all known values for OperatingSystemName. Note that this can be @@ -693,6 +694,7 @@ func (OperatingSystemName) Values() []OperatingSystemName { "WINDOWS_SERVER_2019", "WINDOWS_SERVER_2022", "RHEL_8", + "ROCKY_8", } } @@ -1125,35 +1127,51 @@ type WorkspaceImageErrorDetailCode string // Enum values for WorkspaceImageErrorDetailCode const ( - WorkspaceImageErrorDetailCodeOutdatedPowershellVersion WorkspaceImageErrorDetailCode = "OutdatedPowershellVersion" - WorkspaceImageErrorDetailCodeOfficeInstalled WorkspaceImageErrorDetailCode = "OfficeInstalled" - WorkspaceImageErrorDetailCodePcoipAgentInstalled WorkspaceImageErrorDetailCode = "PCoIPAgentInstalled" - WorkspaceImageErrorDetailCodeWindowsUpdatesEnabled WorkspaceImageErrorDetailCode = "WindowsUpdatesEnabled" - WorkspaceImageErrorDetailCodeAutoMountDisabled WorkspaceImageErrorDetailCode = "AutoMountDisabled" - WorkspaceImageErrorDetailCodeWorkspacesByolAccountNotFound WorkspaceImageErrorDetailCode = "WorkspacesBYOLAccountNotFound" - WorkspaceImageErrorDetailCodeWorkspacesByolAccountDisabled WorkspaceImageErrorDetailCode = "WorkspacesBYOLAccountDisabled" - WorkspaceImageErrorDetailCodeDhcpDisabled WorkspaceImageErrorDetailCode = "DHCPDisabled" - WorkspaceImageErrorDetailCodeDiskFreeSpace WorkspaceImageErrorDetailCode = "DiskFreeSpace" - WorkspaceImageErrorDetailCodeAdditionalDrivesAttached WorkspaceImageErrorDetailCode = "AdditionalDrivesAttached" - WorkspaceImageErrorDetailCodeOsNotSupported WorkspaceImageErrorDetailCode = "OSNotSupported" - WorkspaceImageErrorDetailCodeDomainJoined WorkspaceImageErrorDetailCode = "DomainJoined" - WorkspaceImageErrorDetailCodeAzureDomainJoined WorkspaceImageErrorDetailCode = "AzureDomainJoined" - WorkspaceImageErrorDetailCodeFirewallEnabled WorkspaceImageErrorDetailCode = "FirewallEnabled" - WorkspaceImageErrorDetailCodeVmwareToolsInstalled WorkspaceImageErrorDetailCode = "VMWareToolsInstalled" - WorkspaceImageErrorDetailCodeDiskSizeExceeded WorkspaceImageErrorDetailCode = "DiskSizeExceeded" - WorkspaceImageErrorDetailCodeIncompatiblePartitioning WorkspaceImageErrorDetailCode = "IncompatiblePartitioning" - WorkspaceImageErrorDetailCodePendingReboot WorkspaceImageErrorDetailCode = "PendingReboot" - WorkspaceImageErrorDetailCodeAutoLogonEnabled WorkspaceImageErrorDetailCode = "AutoLogonEnabled" - WorkspaceImageErrorDetailCodeRealtimeUniversalDisabled WorkspaceImageErrorDetailCode = "RealTimeUniversalDisabled" - WorkspaceImageErrorDetailCodeMultipleBootPartition WorkspaceImageErrorDetailCode = "MultipleBootPartition" - WorkspaceImageErrorDetailCodeSixtyFourBitOs WorkspaceImageErrorDetailCode = "Requires64BitOS" - WorkspaceImageErrorDetailCodeZeroRearmCount WorkspaceImageErrorDetailCode = "ZeroRearmCount" - WorkspaceImageErrorDetailCodeInPlaceUpgrade WorkspaceImageErrorDetailCode = "InPlaceUpgrade" - WorkspaceImageErrorDetailCodeAntiVirusInstalled WorkspaceImageErrorDetailCode = "AntiVirusInstalled" - WorkspaceImageErrorDetailCodeUefiNotSupported WorkspaceImageErrorDetailCode = "UEFINotSupported" - WorkspaceImageErrorDetailCodeUnknownError WorkspaceImageErrorDetailCode = "UnknownError" - WorkspaceImageErrorDetailCodeAppxPackagesInstalled WorkspaceImageErrorDetailCode = "AppXPackagesInstalled" - WorkspaceImageErrorDetailCodeReservedStorageInUse WorkspaceImageErrorDetailCode = "ReservedStorageInUse" + WorkspaceImageErrorDetailCodeOutdatedPowershellVersion WorkspaceImageErrorDetailCode = "OutdatedPowershellVersion" + WorkspaceImageErrorDetailCodeOfficeInstalled WorkspaceImageErrorDetailCode = "OfficeInstalled" + WorkspaceImageErrorDetailCodePcoipAgentInstalled WorkspaceImageErrorDetailCode = "PCoIPAgentInstalled" + WorkspaceImageErrorDetailCodeWindowsUpdatesEnabled WorkspaceImageErrorDetailCode = "WindowsUpdatesEnabled" + WorkspaceImageErrorDetailCodeAutoMountDisabled WorkspaceImageErrorDetailCode = "AutoMountDisabled" + WorkspaceImageErrorDetailCodeWorkspacesByolAccountNotFound WorkspaceImageErrorDetailCode = "WorkspacesBYOLAccountNotFound" + WorkspaceImageErrorDetailCodeWorkspacesByolAccountDisabled WorkspaceImageErrorDetailCode = "WorkspacesBYOLAccountDisabled" + WorkspaceImageErrorDetailCodeDhcpDisabled WorkspaceImageErrorDetailCode = "DHCPDisabled" + WorkspaceImageErrorDetailCodeDiskFreeSpace WorkspaceImageErrorDetailCode = "DiskFreeSpace" + WorkspaceImageErrorDetailCodeAdditionalDrivesAttached WorkspaceImageErrorDetailCode = "AdditionalDrivesAttached" + WorkspaceImageErrorDetailCodeOsNotSupported WorkspaceImageErrorDetailCode = "OSNotSupported" + WorkspaceImageErrorDetailCodeDomainJoined WorkspaceImageErrorDetailCode = "DomainJoined" + WorkspaceImageErrorDetailCodeAzureDomainJoined WorkspaceImageErrorDetailCode = "AzureDomainJoined" + WorkspaceImageErrorDetailCodeFirewallEnabled WorkspaceImageErrorDetailCode = "FirewallEnabled" + WorkspaceImageErrorDetailCodeVmwareToolsInstalled WorkspaceImageErrorDetailCode = "VMWareToolsInstalled" + WorkspaceImageErrorDetailCodeDiskSizeExceeded WorkspaceImageErrorDetailCode = "DiskSizeExceeded" + WorkspaceImageErrorDetailCodeIncompatiblePartitioning WorkspaceImageErrorDetailCode = "IncompatiblePartitioning" + WorkspaceImageErrorDetailCodePendingReboot WorkspaceImageErrorDetailCode = "PendingReboot" + WorkspaceImageErrorDetailCodeAutoLogonEnabled WorkspaceImageErrorDetailCode = "AutoLogonEnabled" + WorkspaceImageErrorDetailCodeRealtimeUniversalDisabled WorkspaceImageErrorDetailCode = "RealTimeUniversalDisabled" + WorkspaceImageErrorDetailCodeMultipleBootPartition WorkspaceImageErrorDetailCode = "MultipleBootPartition" + WorkspaceImageErrorDetailCodeSixtyFourBitOs WorkspaceImageErrorDetailCode = "Requires64BitOS" + WorkspaceImageErrorDetailCodeZeroRearmCount WorkspaceImageErrorDetailCode = "ZeroRearmCount" + WorkspaceImageErrorDetailCodeInPlaceUpgrade WorkspaceImageErrorDetailCode = "InPlaceUpgrade" + WorkspaceImageErrorDetailCodeAntiVirusInstalled WorkspaceImageErrorDetailCode = "AntiVirusInstalled" + WorkspaceImageErrorDetailCodeUefiNotSupported WorkspaceImageErrorDetailCode = "UEFINotSupported" + WorkspaceImageErrorDetailCodeUnknownError WorkspaceImageErrorDetailCode = "UnknownError" + WorkspaceImageErrorDetailCodeAppxPackagesInstalled WorkspaceImageErrorDetailCode = "AppXPackagesInstalled" + WorkspaceImageErrorDetailCodeReservedStorageInUse WorkspaceImageErrorDetailCode = "ReservedStorageInUse" + WorkspaceImageErrorDetailCodeAdditionalDrivesPresent WorkspaceImageErrorDetailCode = "AdditionalDrivesPresent" + WorkspaceImageErrorDetailCodeWindowsUpdatesRequired WorkspaceImageErrorDetailCode = "WindowsUpdatesRequired" + WorkspaceImageErrorDetailCodeSysprepFileMissing WorkspaceImageErrorDetailCode = "SysPrepFileMissing" + WorkspaceImageErrorDetailCodeUserProfileMissing WorkspaceImageErrorDetailCode = "UserProfileMissing" + WorkspaceImageErrorDetailCodeInsufficientDiskSpace WorkspaceImageErrorDetailCode = "InsufficientDiskSpace" + WorkspaceImageErrorDetailCodeEnvironmentVariablesPathMissingEntries WorkspaceImageErrorDetailCode = "EnvironmentVariablesPathMissingEntries" + WorkspaceImageErrorDetailCodeDomainAccountServicesFound WorkspaceImageErrorDetailCode = "DomainAccountServicesFound" + WorkspaceImageErrorDetailCodeInvalidIp WorkspaceImageErrorDetailCode = "InvalidIp" + WorkspaceImageErrorDetailCodeRemoteDesktopServicesDisabled WorkspaceImageErrorDetailCode = "RemoteDesktopServicesDisabled" + WorkspaceImageErrorDetailCodeWindowsModulesInstallerDisabled WorkspaceImageErrorDetailCode = "WindowsModulesInstallerDisabled" + WorkspaceImageErrorDetailCodeAmazonSsmAgentEnabled WorkspaceImageErrorDetailCode = "AmazonSsmAgentEnabled" + WorkspaceImageErrorDetailCodeUnsupportedSecurityProtocol WorkspaceImageErrorDetailCode = "UnsupportedSecurityProtocol" + WorkspaceImageErrorDetailCodeMultipleUserProfiles WorkspaceImageErrorDetailCode = "MultipleUserProfiles" + WorkspaceImageErrorDetailCodeStagedAppxPackage WorkspaceImageErrorDetailCode = "StagedAppxPackage" + WorkspaceImageErrorDetailCodeUnsupportedOsUpgrade WorkspaceImageErrorDetailCode = "UnsupportedOsUpgrade" + WorkspaceImageErrorDetailCodeInsufficientRearmCount WorkspaceImageErrorDetailCode = "InsufficientRearmCount" ) // Values returns all known values for WorkspaceImageErrorDetailCode. Note that @@ -1192,6 +1210,22 @@ func (WorkspaceImageErrorDetailCode) Values() []WorkspaceImageErrorDetailCode { "UnknownError", "AppXPackagesInstalled", "ReservedStorageInUse", + "AdditionalDrivesPresent", + "WindowsUpdatesRequired", + "SysPrepFileMissing", + "UserProfileMissing", + "InsufficientDiskSpace", + "EnvironmentVariablesPathMissingEntries", + "DomainAccountServicesFound", + "InvalidIp", + "RemoteDesktopServicesDisabled", + "WindowsModulesInstallerDisabled", + "AmazonSsmAgentEnabled", + "UnsupportedSecurityProtocol", + "MultipleUserProfiles", + "StagedAppxPackage", + "UnsupportedOsUpgrade", + "InsufficientRearmCount", } } diff --git a/service/workspacesthinclient/CHANGELOG.md b/service/workspacesthinclient/CHANGELOG.md index c594b782cd3..0fa95535cfa 100644 --- a/service/workspacesthinclient/CHANGELOG.md +++ b/service/workspacesthinclient/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.10.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.10.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/workspacesthinclient/go.mod b/service/workspacesthinclient/go.mod index fbeb856b19c..a82c14a854e 100644 --- a/service/workspacesthinclient/go.mod +++ b/service/workspacesthinclient/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/workspacesthinclient go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/workspacesthinclient/go.sum b/service/workspacesthinclient/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/workspacesthinclient/go.sum +++ b/service/workspacesthinclient/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/workspacesthinclient/go_module_metadata.go b/service/workspacesthinclient/go_module_metadata.go index f58edf43831..70bd25bff3d 100644 --- a/service/workspacesthinclient/go_module_metadata.go +++ b/service/workspacesthinclient/go_module_metadata.go @@ -3,4 +3,4 @@ package workspacesthinclient // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.10.5" +const goModuleVersion = "1.10.6" diff --git a/service/workspacesweb/CHANGELOG.md b/service/workspacesweb/CHANGELOG.md index 01bb144f1b4..385584d893d 100644 --- a/service/workspacesweb/CHANGELOG.md +++ b/service/workspacesweb/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.25.0 (2024-11-20) + +* **Feature**: Added data protection settings with support for inline data redaction. + +# v1.24.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/workspacesweb/api_op_AssociateDataProtectionSettings.go b/service/workspacesweb/api_op_AssociateDataProtectionSettings.go new file mode 100644 index 00000000000..27941cc698a --- /dev/null +++ b/service/workspacesweb/api_op_AssociateDataProtectionSettings.go @@ -0,0 +1,168 @@ +// 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/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Associates a data protection settings resource with a web portal. +func (c *Client) AssociateDataProtectionSettings(ctx context.Context, params *AssociateDataProtectionSettingsInput, optFns ...func(*Options)) (*AssociateDataProtectionSettingsOutput, error) { + if params == nil { + params = &AssociateDataProtectionSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "AssociateDataProtectionSettings", params, optFns, c.addOperationAssociateDataProtectionSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*AssociateDataProtectionSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type AssociateDataProtectionSettingsInput struct { + + // The ARN of the data protection settings. + // + // This member is required. + DataProtectionSettingsArn *string + + // The ARN of the web portal. + // + // This member is required. + PortalArn *string + + noSmithyDocumentSerde +} + +type AssociateDataProtectionSettingsOutput struct { + + // The ARN of the data protection settings resource. + // + // This member is required. + DataProtectionSettingsArn *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) addOperationAssociateDataProtectionSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpAssociateDataProtectionSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpAssociateDataProtectionSettings{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateDataProtectionSettings"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpAssociateDataProtectionSettingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateDataProtectionSettings(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opAssociateDataProtectionSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "AssociateDataProtectionSettings", + } +} diff --git a/service/workspacesweb/api_op_CreateDataProtectionSettings.go b/service/workspacesweb/api_op_CreateDataProtectionSettings.go new file mode 100644 index 00000000000..2410ae25b95 --- /dev/null +++ b/service/workspacesweb/api_op_CreateDataProtectionSettings.go @@ -0,0 +1,221 @@ +// 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/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a data protection settings resource that can be associated with a web +// portal. +func (c *Client) CreateDataProtectionSettings(ctx context.Context, params *CreateDataProtectionSettingsInput, optFns ...func(*Options)) (*CreateDataProtectionSettingsOutput, error) { + if params == nil { + params = &CreateDataProtectionSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateDataProtectionSettings", params, optFns, c.addOperationCreateDataProtectionSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateDataProtectionSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateDataProtectionSettingsInput struct { + + // Additional encryption context of the data protection 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 + // Amazon Web Services SDK. + ClientToken *string + + // The custom managed key of the data protection settings. + CustomerManagedKey *string + + // The description of the data protection settings. + Description *string + + // The display name of the data protection settings. + DisplayName *string + + // The inline redaction configuration of the data protection settings that will be + // applied to all sessions. + InlineRedactionConfiguration *types.InlineRedactionConfiguration + + // The tags to add to the data protection settings resource. A tag is a key-value + // pair. + Tags []types.Tag + + noSmithyDocumentSerde +} + +type CreateDataProtectionSettingsOutput struct { + + // The ARN of the data protection settings resource. + // + // This member is required. + DataProtectionSettingsArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateDataProtectionSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateDataProtectionSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateDataProtectionSettings{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateDataProtectionSettings"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addIdempotencyToken_opCreateDataProtectionSettingsMiddleware(stack, options); err != nil { + return err + } + if err = addOpCreateDataProtectionSettingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateDataProtectionSettings(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +type idempotencyToken_initializeOpCreateDataProtectionSettings struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateDataProtectionSettings) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateDataProtectionSettings) 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.(*CreateDataProtectionSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateDataProtectionSettingsInput ") + } + + 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_opCreateDataProtectionSettingsMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateDataProtectionSettings{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opCreateDataProtectionSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateDataProtectionSettings", + } +} diff --git a/service/workspacesweb/api_op_DeleteDataProtectionSettings.go b/service/workspacesweb/api_op_DeleteDataProtectionSettings.go new file mode 100644 index 00000000000..5de62fd77a2 --- /dev/null +++ b/service/workspacesweb/api_op_DeleteDataProtectionSettings.go @@ -0,0 +1,152 @@ +// 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/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes data protection settings. +func (c *Client) DeleteDataProtectionSettings(ctx context.Context, params *DeleteDataProtectionSettingsInput, optFns ...func(*Options)) (*DeleteDataProtectionSettingsOutput, error) { + if params == nil { + params = &DeleteDataProtectionSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteDataProtectionSettings", params, optFns, c.addOperationDeleteDataProtectionSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteDataProtectionSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteDataProtectionSettingsInput struct { + + // The ARN of the data protection settings. + // + // This member is required. + DataProtectionSettingsArn *string + + noSmithyDocumentSerde +} + +type DeleteDataProtectionSettingsOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteDataProtectionSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteDataProtectionSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteDataProtectionSettings{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteDataProtectionSettings"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpDeleteDataProtectionSettingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteDataProtectionSettings(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteDataProtectionSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteDataProtectionSettings", + } +} diff --git a/service/workspacesweb/api_op_DisassociateDataProtectionSettings.go b/service/workspacesweb/api_op_DisassociateDataProtectionSettings.go new file mode 100644 index 00000000000..5e0d591c765 --- /dev/null +++ b/service/workspacesweb/api_op_DisassociateDataProtectionSettings.go @@ -0,0 +1,152 @@ +// 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/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Disassociates data protection settings from a web portal. +func (c *Client) DisassociateDataProtectionSettings(ctx context.Context, params *DisassociateDataProtectionSettingsInput, optFns ...func(*Options)) (*DisassociateDataProtectionSettingsOutput, error) { + if params == nil { + params = &DisassociateDataProtectionSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DisassociateDataProtectionSettings", params, optFns, c.addOperationDisassociateDataProtectionSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DisassociateDataProtectionSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DisassociateDataProtectionSettingsInput struct { + + // The ARN of the web portal. + // + // This member is required. + PortalArn *string + + noSmithyDocumentSerde +} + +type DisassociateDataProtectionSettingsOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDisassociateDataProtectionSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpDisassociateDataProtectionSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDisassociateDataProtectionSettings{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateDataProtectionSettings"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpDisassociateDataProtectionSettingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateDataProtectionSettings(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDisassociateDataProtectionSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DisassociateDataProtectionSettings", + } +} diff --git a/service/workspacesweb/api_op_GetDataProtectionSettings.go b/service/workspacesweb/api_op_GetDataProtectionSettings.go new file mode 100644 index 00000000000..85796c41c89 --- /dev/null +++ b/service/workspacesweb/api_op_GetDataProtectionSettings.go @@ -0,0 +1,157 @@ +// 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/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Gets the data protection settings. +func (c *Client) GetDataProtectionSettings(ctx context.Context, params *GetDataProtectionSettingsInput, optFns ...func(*Options)) (*GetDataProtectionSettingsOutput, error) { + if params == nil { + params = &GetDataProtectionSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetDataProtectionSettings", params, optFns, c.addOperationGetDataProtectionSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetDataProtectionSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetDataProtectionSettingsInput struct { + + // The ARN of the data protection settings. + // + // This member is required. + DataProtectionSettingsArn *string + + noSmithyDocumentSerde +} + +type GetDataProtectionSettingsOutput struct { + + // The data protection settings. + DataProtectionSettings *types.DataProtectionSettings + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetDataProtectionSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetDataProtectionSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetDataProtectionSettings{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetDataProtectionSettings"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpGetDataProtectionSettingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetDataProtectionSettings(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetDataProtectionSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetDataProtectionSettings", + } +} diff --git a/service/workspacesweb/api_op_ListDataProtectionSettings.go b/service/workspacesweb/api_op_ListDataProtectionSettings.go new file mode 100644 index 00000000000..072f7655366 --- /dev/null +++ b/service/workspacesweb/api_op_ListDataProtectionSettings.go @@ -0,0 +1,256 @@ +// 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/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieves a list of data protection settings. +func (c *Client) ListDataProtectionSettings(ctx context.Context, params *ListDataProtectionSettingsInput, optFns ...func(*Options)) (*ListDataProtectionSettingsOutput, error) { + if params == nil { + params = &ListDataProtectionSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListDataProtectionSettings", params, optFns, c.addOperationListDataProtectionSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListDataProtectionSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListDataProtectionSettingsInput 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 ListDataProtectionSettingsOutput struct { + + // The data protection settings. + DataProtectionSettings []types.DataProtectionSettingsSummary + + // 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) addOperationListDataProtectionSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListDataProtectionSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListDataProtectionSettings{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListDataProtectionSettings"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListDataProtectionSettings(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +// ListDataProtectionSettingsPaginatorOptions is the paginator options for +// ListDataProtectionSettings +type ListDataProtectionSettingsPaginatorOptions 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 +} + +// ListDataProtectionSettingsPaginator is a paginator for +// ListDataProtectionSettings +type ListDataProtectionSettingsPaginator struct { + options ListDataProtectionSettingsPaginatorOptions + client ListDataProtectionSettingsAPIClient + params *ListDataProtectionSettingsInput + nextToken *string + firstPage bool +} + +// NewListDataProtectionSettingsPaginator returns a new +// ListDataProtectionSettingsPaginator +func NewListDataProtectionSettingsPaginator(client ListDataProtectionSettingsAPIClient, params *ListDataProtectionSettingsInput, optFns ...func(*ListDataProtectionSettingsPaginatorOptions)) *ListDataProtectionSettingsPaginator { + if params == nil { + params = &ListDataProtectionSettingsInput{} + } + + options := ListDataProtectionSettingsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListDataProtectionSettingsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListDataProtectionSettingsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListDataProtectionSettings page. +func (p *ListDataProtectionSettingsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListDataProtectionSettingsOutput, 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 + + optFns = append([]func(*Options){ + addIsPaginatorUserAgent, + }, optFns...) + result, err := p.client.ListDataProtectionSettings(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 +} + +// ListDataProtectionSettingsAPIClient is a client that implements the +// ListDataProtectionSettings operation. +type ListDataProtectionSettingsAPIClient interface { + ListDataProtectionSettings(context.Context, *ListDataProtectionSettingsInput, ...func(*Options)) (*ListDataProtectionSettingsOutput, error) +} + +var _ ListDataProtectionSettingsAPIClient = (*Client)(nil) + +func newServiceMetadataMiddleware_opListDataProtectionSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListDataProtectionSettings", + } +} diff --git a/service/workspacesweb/api_op_UpdateDataProtectionSettings.go b/service/workspacesweb/api_op_UpdateDataProtectionSettings.go new file mode 100644 index 00000000000..887b9347274 --- /dev/null +++ b/service/workspacesweb/api_op_UpdateDataProtectionSettings.go @@ -0,0 +1,215 @@ +// 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/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates data protection settings. +func (c *Client) UpdateDataProtectionSettings(ctx context.Context, params *UpdateDataProtectionSettingsInput, optFns ...func(*Options)) (*UpdateDataProtectionSettingsOutput, error) { + if params == nil { + params = &UpdateDataProtectionSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateDataProtectionSettings", params, optFns, c.addOperationUpdateDataProtectionSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateDataProtectionSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateDataProtectionSettingsInput struct { + + // The ARN of the data protection settings. + // + // This member is required. + DataProtectionSettingsArn *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 + // Amazon Web Services SDK. + ClientToken *string + + // The description of the data protection settings. + Description *string + + // The display name of the data protection settings. + DisplayName *string + + // The inline redaction configuration of the data protection settings that will be + // applied to all sessions. + InlineRedactionConfiguration *types.InlineRedactionConfiguration + + noSmithyDocumentSerde +} + +type UpdateDataProtectionSettingsOutput struct { + + // The data protection settings. + // + // This member is required. + DataProtectionSettings *types.DataProtectionSettings + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateDataProtectionSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateDataProtectionSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateDataProtectionSettings{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateDataProtectionSettings"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addIdempotencyToken_opUpdateDataProtectionSettingsMiddleware(stack, options); err != nil { + return err + } + if err = addOpUpdateDataProtectionSettingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateDataProtectionSettings(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +type idempotencyToken_initializeOpUpdateDataProtectionSettings struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpUpdateDataProtectionSettings) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpUpdateDataProtectionSettings) 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.(*UpdateDataProtectionSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *UpdateDataProtectionSettingsInput ") + } + + 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_opUpdateDataProtectionSettingsMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpUpdateDataProtectionSettings{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opUpdateDataProtectionSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "UpdateDataProtectionSettings", + } +} diff --git a/service/workspacesweb/deserializers.go b/service/workspacesweb/deserializers.go index 4ae3716e7a8..28ec9f89ec0 100644 --- a/service/workspacesweb/deserializers.go +++ b/service/workspacesweb/deserializers.go @@ -211,6 +211,186 @@ func awsRestjson1_deserializeOpDocumentAssociateBrowserSettingsOutput(v **Associ return nil } +type awsRestjson1_deserializeOpAssociateDataProtectionSettings struct { +} + +func (*awsRestjson1_deserializeOpAssociateDataProtectionSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpAssociateDataProtectionSettings) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorAssociateDataProtectionSettings(response, &metadata) + } + output := &AssociateDataProtectionSettingsOutput{} + 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_deserializeOpDocumentAssociateDataProtectionSettingsOutput(&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(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorAssociateDataProtectionSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return 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_deserializeOpDocumentAssociateDataProtectionSettingsOutput(v **AssociateDataProtectionSettingsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *AssociateDataProtectionSettingsOutput + if *v == nil { + sv = &AssociateDataProtectionSettingsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "dataProtectionSettingsArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.DataProtectionSettingsArn = 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_deserializeOpAssociateIpAccessSettings struct { } @@ -1285,14 +1465,14 @@ func awsRestjson1_deserializeOpDocumentCreateBrowserSettingsOutput(v **CreateBro return nil } -type awsRestjson1_deserializeOpCreateIdentityProvider struct { +type awsRestjson1_deserializeOpCreateDataProtectionSettings struct { } -func (*awsRestjson1_deserializeOpCreateIdentityProvider) ID() string { +func (*awsRestjson1_deserializeOpCreateDataProtectionSettings) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpCreateIdentityProvider) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreateDataProtectionSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1310,9 +1490,9 @@ func (m *awsRestjson1_deserializeOpCreateIdentityProvider) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorCreateIdentityProvider(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateDataProtectionSettings(response, &metadata) } - output := &CreateIdentityProviderOutput{} + output := &CreateDataProtectionSettingsOutput{} out.Result = output var buff [1024]byte @@ -1333,7 +1513,7 @@ func (m *awsRestjson1_deserializeOpCreateIdentityProvider) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentCreateIdentityProviderOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentCreateDataProtectionSettingsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1347,7 +1527,7 @@ func (m *awsRestjson1_deserializeOpCreateIdentityProvider) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorCreateIdentityProvider(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateDataProtectionSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1419,7 +1599,7 @@ func awsRestjson1_deserializeOpErrorCreateIdentityProvider(response *smithyhttp. } } -func awsRestjson1_deserializeOpDocumentCreateIdentityProviderOutput(v **CreateIdentityProviderOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentCreateDataProtectionSettingsOutput(v **CreateDataProtectionSettingsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1432,22 +1612,22 @@ func awsRestjson1_deserializeOpDocumentCreateIdentityProviderOutput(v **CreateId return fmt.Errorf("unexpected JSON type %v", value) } - var sv *CreateIdentityProviderOutput + var sv *CreateDataProtectionSettingsOutput if *v == nil { - sv = &CreateIdentityProviderOutput{} + sv = &CreateDataProtectionSettingsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "identityProviderArn": + case "dataProtectionSettingsArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SubresourceARN to be of type string, got %T instead", value) + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) } - sv.IdentityProviderArn = ptr.String(jtv) + sv.DataProtectionSettingsArn = ptr.String(jtv) } default: @@ -1459,14 +1639,14 @@ func awsRestjson1_deserializeOpDocumentCreateIdentityProviderOutput(v **CreateId return nil } -type awsRestjson1_deserializeOpCreateIpAccessSettings struct { +type awsRestjson1_deserializeOpCreateIdentityProvider struct { } -func (*awsRestjson1_deserializeOpCreateIpAccessSettings) ID() string { +func (*awsRestjson1_deserializeOpCreateIdentityProvider) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpCreateIpAccessSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -1484,9 +1664,9 @@ func (m *awsRestjson1_deserializeOpCreateIpAccessSettings) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorCreateIpAccessSettings(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateIdentityProvider(response, &metadata) } - output := &CreateIpAccessSettingsOutput{} + output := &CreateIdentityProviderOutput{} out.Result = output var buff [1024]byte @@ -1507,7 +1687,7 @@ func (m *awsRestjson1_deserializeOpCreateIpAccessSettings) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentCreateIpAccessSettingsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentCreateIdentityProviderOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1521,7 +1701,7 @@ func (m *awsRestjson1_deserializeOpCreateIpAccessSettings) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorCreateIpAccessSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -1571,6 +1751,9 @@ func awsRestjson1_deserializeOpErrorCreateIpAccessSettings(response *smithyhttp. 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) @@ -1590,7 +1773,7 @@ func awsRestjson1_deserializeOpErrorCreateIpAccessSettings(response *smithyhttp. } } -func awsRestjson1_deserializeOpDocumentCreateIpAccessSettingsOutput(v **CreateIpAccessSettingsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentCreateIdentityProviderOutput(v **CreateIdentityProviderOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1603,22 +1786,22 @@ func awsRestjson1_deserializeOpDocumentCreateIpAccessSettingsOutput(v **CreateIp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *CreateIpAccessSettingsOutput + var sv *CreateIdentityProviderOutput if *v == nil { - sv = &CreateIpAccessSettingsOutput{} + sv = &CreateIdentityProviderOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "ipAccessSettingsArn": + 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) + return fmt.Errorf("expected SubresourceARN to be of type string, got %T instead", value) } - sv.IpAccessSettingsArn = ptr.String(jtv) + sv.IdentityProviderArn = ptr.String(jtv) } default: @@ -1630,14 +1813,14 @@ func awsRestjson1_deserializeOpDocumentCreateIpAccessSettingsOutput(v **CreateIp return nil } -type awsRestjson1_deserializeOpCreateNetworkSettings struct { +type awsRestjson1_deserializeOpCreateIpAccessSettings struct { } -func (*awsRestjson1_deserializeOpCreateNetworkSettings) ID() string { +func (*awsRestjson1_deserializeOpCreateIpAccessSettings) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpCreateNetworkSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreateIpAccessSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1655,9 +1838,9 @@ func (m *awsRestjson1_deserializeOpCreateNetworkSettings) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorCreateNetworkSettings(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateIpAccessSettings(response, &metadata) } - output := &CreateNetworkSettingsOutput{} + output := &CreateIpAccessSettingsOutput{} out.Result = output var buff [1024]byte @@ -1678,7 +1861,7 @@ func (m *awsRestjson1_deserializeOpCreateNetworkSettings) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentCreateNetworkSettingsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentCreateIpAccessSettingsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1692,7 +1875,7 @@ func (m *awsRestjson1_deserializeOpCreateNetworkSettings) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorCreateNetworkSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateIpAccessSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1761,7 +1944,7 @@ func awsRestjson1_deserializeOpErrorCreateNetworkSettings(response *smithyhttp.R } } -func awsRestjson1_deserializeOpDocumentCreateNetworkSettingsOutput(v **CreateNetworkSettingsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentCreateIpAccessSettingsOutput(v **CreateIpAccessSettingsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1774,22 +1957,22 @@ func awsRestjson1_deserializeOpDocumentCreateNetworkSettingsOutput(v **CreateNet return fmt.Errorf("unexpected JSON type %v", value) } - var sv *CreateNetworkSettingsOutput + var sv *CreateIpAccessSettingsOutput if *v == nil { - sv = &CreateNetworkSettingsOutput{} + sv = &CreateIpAccessSettingsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "networkSettingsArn": + case "ipAccessSettingsArn": 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) + sv.IpAccessSettingsArn = ptr.String(jtv) } default: @@ -1801,14 +1984,14 @@ func awsRestjson1_deserializeOpDocumentCreateNetworkSettingsOutput(v **CreateNet return nil } -type awsRestjson1_deserializeOpCreatePortal struct { +type awsRestjson1_deserializeOpCreateNetworkSettings struct { } -func (*awsRestjson1_deserializeOpCreatePortal) ID() string { +func (*awsRestjson1_deserializeOpCreateNetworkSettings) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpCreatePortal) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -1826,9 +2009,9 @@ func (m *awsRestjson1_deserializeOpCreatePortal) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorCreatePortal(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateNetworkSettings(response, &metadata) } - output := &CreatePortalOutput{} + output := &CreateNetworkSettingsOutput{} out.Result = output var buff [1024]byte @@ -1849,7 +2032,7 @@ func (m *awsRestjson1_deserializeOpCreatePortal) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentCreatePortalOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentCreateNetworkSettingsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1863,7 +2046,7 @@ func (m *awsRestjson1_deserializeOpCreatePortal) HandleDeserialize(ctx context.C return out, metadata, err } -func awsRestjson1_deserializeOpErrorCreatePortal(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -1913,9 +2096,6 @@ func awsRestjson1_deserializeOpErrorCreatePortal(response *smithyhttp.Response, 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) @@ -1935,7 +2115,7 @@ func awsRestjson1_deserializeOpErrorCreatePortal(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentCreatePortalOutput(v **CreatePortalOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentCreateNetworkSettingsOutput(v **CreateNetworkSettingsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1948,7 +2128,181 @@ func awsRestjson1_deserializeOpDocumentCreatePortalOutput(v **CreatePortalOutput return fmt.Errorf("unexpected JSON type %v", value) } - var sv *CreatePortalOutput + 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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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(), + } + } + + span.End() + 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 + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return 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 { @@ -2597,14 +2951,14 @@ func awsRestjson1_deserializeOpErrorDeleteBrowserSettings(response *smithyhttp.R } } -type awsRestjson1_deserializeOpDeleteIdentityProvider struct { +type awsRestjson1_deserializeOpDeleteDataProtectionSettings struct { } -func (*awsRestjson1_deserializeOpDeleteIdentityProvider) ID() string { +func (*awsRestjson1_deserializeOpDeleteDataProtectionSettings) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteIdentityProvider) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteDataProtectionSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2622,16 +2976,16 @@ func (m *awsRestjson1_deserializeOpDeleteIdentityProvider) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteIdentityProvider(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteDataProtectionSettings(response, &metadata) } - output := &DeleteIdentityProviderOutput{} + output := &DeleteDataProtectionSettingsOutput{} out.Result = output span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteIdentityProvider(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteDataProtectionSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2697,14 +3051,14 @@ func awsRestjson1_deserializeOpErrorDeleteIdentityProvider(response *smithyhttp. } } -type awsRestjson1_deserializeOpDeleteIpAccessSettings struct { +type awsRestjson1_deserializeOpDeleteIdentityProvider struct { } -func (*awsRestjson1_deserializeOpDeleteIpAccessSettings) ID() string { +func (*awsRestjson1_deserializeOpDeleteIdentityProvider) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteIpAccessSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -2722,16 +3076,16 @@ func (m *awsRestjson1_deserializeOpDeleteIpAccessSettings) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteIpAccessSettings(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteIdentityProvider(response, &metadata) } - output := &DeleteIpAccessSettingsOutput{} + output := &DeleteIdentityProviderOutput{} out.Result = output span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteIpAccessSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -2797,14 +3151,14 @@ func awsRestjson1_deserializeOpErrorDeleteIpAccessSettings(response *smithyhttp. } } -type awsRestjson1_deserializeOpDeleteNetworkSettings struct { +type awsRestjson1_deserializeOpDeleteIpAccessSettings struct { } -func (*awsRestjson1_deserializeOpDeleteNetworkSettings) ID() string { +func (*awsRestjson1_deserializeOpDeleteIpAccessSettings) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteNetworkSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteIpAccessSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2822,16 +3176,16 @@ func (m *awsRestjson1_deserializeOpDeleteNetworkSettings) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteNetworkSettings(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteIpAccessSettings(response, &metadata) } - output := &DeleteNetworkSettingsOutput{} + output := &DeleteIpAccessSettingsOutput{} out.Result = output span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteNetworkSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteIpAccessSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2897,14 +3251,14 @@ func awsRestjson1_deserializeOpErrorDeleteNetworkSettings(response *smithyhttp.R } } -type awsRestjson1_deserializeOpDeletePortal struct { +type awsRestjson1_deserializeOpDeleteNetworkSettings struct { } -func (*awsRestjson1_deserializeOpDeletePortal) ID() string { +func (*awsRestjson1_deserializeOpDeleteNetworkSettings) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeletePortal) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -2922,16 +3276,16 @@ func (m *awsRestjson1_deserializeOpDeletePortal) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeletePortal(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteNetworkSettings(response, &metadata) } - output := &DeletePortalOutput{} + output := &DeleteNetworkSettingsOutput{} out.Result = output span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeletePortal(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -2997,14 +3351,14 @@ func awsRestjson1_deserializeOpErrorDeletePortal(response *smithyhttp.Response, } } -type awsRestjson1_deserializeOpDeleteTrustStore struct { +type awsRestjson1_deserializeOpDeletePortal struct { } -func (*awsRestjson1_deserializeOpDeleteTrustStore) ID() string { +func (*awsRestjson1_deserializeOpDeletePortal) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteTrustStore) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -3022,16 +3376,16 @@ func (m *awsRestjson1_deserializeOpDeleteTrustStore) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteTrustStore(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeletePortal(response, &metadata) } - output := &DeleteTrustStoreOutput{} + output := &DeletePortalOutput{} out.Result = output span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteTrustStore(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -3097,14 +3451,14 @@ func awsRestjson1_deserializeOpErrorDeleteTrustStore(response *smithyhttp.Respon } } -type awsRestjson1_deserializeOpDeleteUserAccessLoggingSettings struct { +type awsRestjson1_deserializeOpDeleteTrustStore struct { } -func (*awsRestjson1_deserializeOpDeleteUserAccessLoggingSettings) ID() string { +func (*awsRestjson1_deserializeOpDeleteTrustStore) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteUserAccessLoggingSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -3122,16 +3476,16 @@ func (m *awsRestjson1_deserializeOpDeleteUserAccessLoggingSettings) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteUserAccessLoggingSettings(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteTrustStore(response, &metadata) } - output := &DeleteUserAccessLoggingSettingsOutput{} + output := &DeleteTrustStoreOutput{} out.Result = output span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteUserAccessLoggingSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -3197,14 +3551,14 @@ func awsRestjson1_deserializeOpErrorDeleteUserAccessLoggingSettings(response *sm } } -type awsRestjson1_deserializeOpDeleteUserSettings struct { +type awsRestjson1_deserializeOpDeleteUserAccessLoggingSettings struct { } -func (*awsRestjson1_deserializeOpDeleteUserSettings) ID() string { +func (*awsRestjson1_deserializeOpDeleteUserAccessLoggingSettings) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteUserSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteUserAccessLoggingSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3222,16 +3576,16 @@ func (m *awsRestjson1_deserializeOpDeleteUserSettings) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteUserSettings(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteUserAccessLoggingSettings(response, &metadata) } - output := &DeleteUserSettingsOutput{} + output := &DeleteUserAccessLoggingSettingsOutput{} out.Result = output span.End() return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteUserSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteUserAccessLoggingSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3297,10 +3651,110 @@ func awsRestjson1_deserializeOpErrorDeleteUserSettings(response *smithyhttp.Resp } } -type awsRestjson1_deserializeOpDisassociateBrowserSettings struct { +type awsRestjson1_deserializeOpDeleteUserSettings struct { } -func (*awsRestjson1_deserializeOpDisassociateBrowserSettings) ID() string { +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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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 + + span.End() + 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 + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return 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" } @@ -3400,6 +3854,109 @@ func awsRestjson1_deserializeOpErrorDisassociateBrowserSettings(response *smithy } } +type awsRestjson1_deserializeOpDisassociateDataProtectionSettings struct { +} + +func (*awsRestjson1_deserializeOpDisassociateDataProtectionSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDisassociateDataProtectionSettings) HandleDeserialize(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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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_deserializeOpErrorDisassociateDataProtectionSettings(response, &metadata) + } + output := &DisassociateDataProtectionSettingsOutput{} + out.Result = output + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDisassociateDataProtectionSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return 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 + + } +} + type awsRestjson1_deserializeOpDisassociateIpAccessSettings struct { } @@ -4179,14 +4736,14 @@ func awsRestjson1_deserializeOpDocumentGetBrowserSettingsOutput(v **GetBrowserSe return nil } -type awsRestjson1_deserializeOpGetIdentityProvider struct { +type awsRestjson1_deserializeOpGetDataProtectionSettings struct { } -func (*awsRestjson1_deserializeOpGetIdentityProvider) ID() string { +func (*awsRestjson1_deserializeOpGetDataProtectionSettings) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetIdentityProvider) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetDataProtectionSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4204,9 +4761,9 @@ func (m *awsRestjson1_deserializeOpGetIdentityProvider) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetIdentityProvider(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetDataProtectionSettings(response, &metadata) } - output := &GetIdentityProviderOutput{} + output := &GetDataProtectionSettingsOutput{} out.Result = output var buff [1024]byte @@ -4227,7 +4784,7 @@ func (m *awsRestjson1_deserializeOpGetIdentityProvider) HandleDeserialize(ctx co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetIdentityProviderOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetDataProtectionSettingsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4241,7 +4798,7 @@ func (m *awsRestjson1_deserializeOpGetIdentityProvider) HandleDeserialize(ctx co return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetIdentityProvider(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetDataProtectionSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4307,7 +4864,7 @@ func awsRestjson1_deserializeOpErrorGetIdentityProvider(response *smithyhttp.Res } } -func awsRestjson1_deserializeOpDocumentGetIdentityProviderOutput(v **GetIdentityProviderOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetDataProtectionSettingsOutput(v **GetDataProtectionSettingsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4320,17 +4877,17 @@ func awsRestjson1_deserializeOpDocumentGetIdentityProviderOutput(v **GetIdentity return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetIdentityProviderOutput + var sv *GetDataProtectionSettingsOutput if *v == nil { - sv = &GetIdentityProviderOutput{} + sv = &GetDataProtectionSettingsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "identityProvider": - if err := awsRestjson1_deserializeDocumentIdentityProvider(&sv.IdentityProvider, value); err != nil { + case "dataProtectionSettings": + if err := awsRestjson1_deserializeDocumentDataProtectionSettings(&sv.DataProtectionSettings, value); err != nil { return err } @@ -4343,14 +4900,14 @@ func awsRestjson1_deserializeOpDocumentGetIdentityProviderOutput(v **GetIdentity return nil } -type awsRestjson1_deserializeOpGetIpAccessSettings struct { +type awsRestjson1_deserializeOpGetIdentityProvider struct { } -func (*awsRestjson1_deserializeOpGetIpAccessSettings) ID() string { +func (*awsRestjson1_deserializeOpGetIdentityProvider) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetIpAccessSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -4368,9 +4925,9 @@ func (m *awsRestjson1_deserializeOpGetIpAccessSettings) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetIpAccessSettings(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetIdentityProvider(response, &metadata) } - output := &GetIpAccessSettingsOutput{} + output := &GetIdentityProviderOutput{} out.Result = output var buff [1024]byte @@ -4391,7 +4948,7 @@ func (m *awsRestjson1_deserializeOpGetIpAccessSettings) HandleDeserialize(ctx co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetIpAccessSettingsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetIdentityProviderOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4405,7 +4962,7 @@ func (m *awsRestjson1_deserializeOpGetIpAccessSettings) HandleDeserialize(ctx co return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetIpAccessSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -4471,7 +5028,7 @@ func awsRestjson1_deserializeOpErrorGetIpAccessSettings(response *smithyhttp.Res } } -func awsRestjson1_deserializeOpDocumentGetIpAccessSettingsOutput(v **GetIpAccessSettingsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetIdentityProviderOutput(v **GetIdentityProviderOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4484,17 +5041,17 @@ func awsRestjson1_deserializeOpDocumentGetIpAccessSettingsOutput(v **GetIpAccess return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetIpAccessSettingsOutput + var sv *GetIdentityProviderOutput if *v == nil { - sv = &GetIpAccessSettingsOutput{} + sv = &GetIdentityProviderOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "ipAccessSettings": - if err := awsRestjson1_deserializeDocumentIpAccessSettings(&sv.IpAccessSettings, value); err != nil { + case "identityProvider": + if err := awsRestjson1_deserializeDocumentIdentityProvider(&sv.IdentityProvider, value); err != nil { return err } @@ -4507,14 +5064,14 @@ func awsRestjson1_deserializeOpDocumentGetIpAccessSettingsOutput(v **GetIpAccess return nil } -type awsRestjson1_deserializeOpGetNetworkSettings struct { +type awsRestjson1_deserializeOpGetIpAccessSettings struct { } -func (*awsRestjson1_deserializeOpGetNetworkSettings) ID() string { +func (*awsRestjson1_deserializeOpGetIpAccessSettings) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetNetworkSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetIpAccessSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4532,9 +5089,9 @@ func (m *awsRestjson1_deserializeOpGetNetworkSettings) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetNetworkSettings(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetIpAccessSettings(response, &metadata) } - output := &GetNetworkSettingsOutput{} + output := &GetIpAccessSettingsOutput{} out.Result = output var buff [1024]byte @@ -4555,7 +5112,7 @@ func (m *awsRestjson1_deserializeOpGetNetworkSettings) HandleDeserialize(ctx con return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetNetworkSettingsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetIpAccessSettingsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4569,7 +5126,7 @@ func (m *awsRestjson1_deserializeOpGetNetworkSettings) HandleDeserialize(ctx con return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetNetworkSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetIpAccessSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4635,7 +5192,7 @@ func awsRestjson1_deserializeOpErrorGetNetworkSettings(response *smithyhttp.Resp } } -func awsRestjson1_deserializeOpDocumentGetNetworkSettingsOutput(v **GetNetworkSettingsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetIpAccessSettingsOutput(v **GetIpAccessSettingsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4648,18 +5205,182 @@ func awsRestjson1_deserializeOpDocumentGetNetworkSettingsOutput(v **GetNetworkSe return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetNetworkSettingsOutput + var sv *GetIpAccessSettingsOutput if *v == nil { - sv = &GetNetworkSettingsOutput{} + sv = &GetIpAccessSettingsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "networkSettings": - if err := awsRestjson1_deserializeDocumentNetworkSettings(&sv.NetworkSettings, value); err != nil { - return err + case "ipAccessSettings": + if err := awsRestjson1_deserializeDocumentIpAccessSettings(&sv.IpAccessSettings, 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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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(), + } + } + + span.End() + 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 + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return 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: @@ -6011,14 +6732,14 @@ func awsRestjson1_deserializeOpDocumentListBrowserSettingsOutput(v **ListBrowser return nil } -type awsRestjson1_deserializeOpListIdentityProviders struct { +type awsRestjson1_deserializeOpListDataProtectionSettings struct { } -func (*awsRestjson1_deserializeOpListIdentityProviders) ID() string { +func (*awsRestjson1_deserializeOpListDataProtectionSettings) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListIdentityProviders) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListDataProtectionSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6036,9 +6757,9 @@ func (m *awsRestjson1_deserializeOpListIdentityProviders) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListIdentityProviders(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListDataProtectionSettings(response, &metadata) } - output := &ListIdentityProvidersOutput{} + output := &ListDataProtectionSettingsOutput{} out.Result = output var buff [1024]byte @@ -6059,7 +6780,7 @@ func (m *awsRestjson1_deserializeOpListIdentityProviders) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListIdentityProvidersOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListDataProtectionSettingsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6073,7 +6794,7 @@ func (m *awsRestjson1_deserializeOpListIdentityProviders) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorListIdentityProviders(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListDataProtectionSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6136,7 +6857,7 @@ func awsRestjson1_deserializeOpErrorListIdentityProviders(response *smithyhttp.R } } -func awsRestjson1_deserializeOpDocumentListIdentityProvidersOutput(v **ListIdentityProvidersOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListDataProtectionSettingsOutput(v **ListDataProtectionSettingsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6149,17 +6870,17 @@ func awsRestjson1_deserializeOpDocumentListIdentityProvidersOutput(v **ListIdent return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListIdentityProvidersOutput + var sv *ListDataProtectionSettingsOutput if *v == nil { - sv = &ListIdentityProvidersOutput{} + sv = &ListDataProtectionSettingsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "identityProviders": - if err := awsRestjson1_deserializeDocumentIdentityProviderList(&sv.IdentityProviders, value); err != nil { + case "dataProtectionSettings": + if err := awsRestjson1_deserializeDocumentDataProtectionSettingsList(&sv.DataProtectionSettings, value); err != nil { return err } @@ -6181,14 +6902,14 @@ func awsRestjson1_deserializeOpDocumentListIdentityProvidersOutput(v **ListIdent return nil } -type awsRestjson1_deserializeOpListIpAccessSettings struct { +type awsRestjson1_deserializeOpListIdentityProviders struct { } -func (*awsRestjson1_deserializeOpListIpAccessSettings) ID() string { +func (*awsRestjson1_deserializeOpListIdentityProviders) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListIpAccessSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -6206,9 +6927,9 @@ func (m *awsRestjson1_deserializeOpListIpAccessSettings) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListIpAccessSettings(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListIdentityProviders(response, &metadata) } - output := &ListIpAccessSettingsOutput{} + output := &ListIdentityProvidersOutput{} out.Result = output var buff [1024]byte @@ -6229,7 +6950,7 @@ func (m *awsRestjson1_deserializeOpListIpAccessSettings) HandleDeserialize(ctx c return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListIpAccessSettingsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListIdentityProvidersOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6243,7 +6964,7 @@ func (m *awsRestjson1_deserializeOpListIpAccessSettings) HandleDeserialize(ctx c return out, metadata, err } -func awsRestjson1_deserializeOpErrorListIpAccessSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -6306,7 +7027,7 @@ func awsRestjson1_deserializeOpErrorListIpAccessSettings(response *smithyhttp.Re } } -func awsRestjson1_deserializeOpDocumentListIpAccessSettingsOutput(v **ListIpAccessSettingsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListIdentityProvidersOutput(v **ListIdentityProvidersOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6319,17 +7040,17 @@ func awsRestjson1_deserializeOpDocumentListIpAccessSettingsOutput(v **ListIpAcce return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListIpAccessSettingsOutput + var sv *ListIdentityProvidersOutput if *v == nil { - sv = &ListIpAccessSettingsOutput{} + sv = &ListIdentityProvidersOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "ipAccessSettings": - if err := awsRestjson1_deserializeDocumentIpAccessSettingsList(&sv.IpAccessSettings, value); err != nil { + case "identityProviders": + if err := awsRestjson1_deserializeDocumentIdentityProviderList(&sv.IdentityProviders, value); err != nil { return err } @@ -6351,14 +7072,14 @@ func awsRestjson1_deserializeOpDocumentListIpAccessSettingsOutput(v **ListIpAcce return nil } -type awsRestjson1_deserializeOpListNetworkSettings struct { +type awsRestjson1_deserializeOpListIpAccessSettings struct { } -func (*awsRestjson1_deserializeOpListNetworkSettings) ID() string { +func (*awsRestjson1_deserializeOpListIpAccessSettings) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListNetworkSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListIpAccessSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6376,9 +7097,9 @@ func (m *awsRestjson1_deserializeOpListNetworkSettings) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListNetworkSettings(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListIpAccessSettings(response, &metadata) } - output := &ListNetworkSettingsOutput{} + output := &ListIpAccessSettingsOutput{} out.Result = output var buff [1024]byte @@ -6399,7 +7120,7 @@ func (m *awsRestjson1_deserializeOpListNetworkSettings) HandleDeserialize(ctx co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListNetworkSettingsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListIpAccessSettingsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6413,7 +7134,7 @@ func (m *awsRestjson1_deserializeOpListNetworkSettings) HandleDeserialize(ctx co return out, metadata, err } -func awsRestjson1_deserializeOpErrorListNetworkSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListIpAccessSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6476,7 +7197,7 @@ func awsRestjson1_deserializeOpErrorListNetworkSettings(response *smithyhttp.Res } } -func awsRestjson1_deserializeOpDocumentListNetworkSettingsOutput(v **ListNetworkSettingsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListIpAccessSettingsOutput(v **ListIpAccessSettingsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6489,17 +7210,17 @@ func awsRestjson1_deserializeOpDocumentListNetworkSettingsOutput(v **ListNetwork return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListNetworkSettingsOutput + var sv *ListIpAccessSettingsOutput if *v == nil { - sv = &ListNetworkSettingsOutput{} + sv = &ListIpAccessSettingsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "networkSettings": - if err := awsRestjson1_deserializeDocumentNetworkSettingsList(&sv.NetworkSettings, value); err != nil { + case "ipAccessSettings": + if err := awsRestjson1_deserializeDocumentIpAccessSettingsList(&sv.IpAccessSettings, value); err != nil { return err } @@ -6521,14 +7242,14 @@ func awsRestjson1_deserializeOpDocumentListNetworkSettingsOutput(v **ListNetwork return nil } -type awsRestjson1_deserializeOpListPortals struct { +type awsRestjson1_deserializeOpListNetworkSettings struct { } -func (*awsRestjson1_deserializeOpListPortals) ID() string { +func (*awsRestjson1_deserializeOpListNetworkSettings) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListPortals) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -6546,9 +7267,9 @@ func (m *awsRestjson1_deserializeOpListPortals) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListPortals(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListNetworkSettings(response, &metadata) } - output := &ListPortalsOutput{} + output := &ListNetworkSettingsOutput{} out.Result = output var buff [1024]byte @@ -6569,7 +7290,7 @@ func (m *awsRestjson1_deserializeOpListPortals) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListPortalsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListNetworkSettingsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6583,7 +7304,7 @@ func (m *awsRestjson1_deserializeOpListPortals) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsRestjson1_deserializeOpErrorListPortals(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -6646,7 +7367,7 @@ func awsRestjson1_deserializeOpErrorListPortals(response *smithyhttp.Response, m } } -func awsRestjson1_deserializeOpDocumentListPortalsOutput(v **ListPortalsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListNetworkSettingsOutput(v **ListNetworkSettingsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6659,15 +7380,20 @@ func awsRestjson1_deserializeOpDocumentListPortalsOutput(v **ListPortalsOutput, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListPortalsOutput + var sv *ListNetworkSettingsOutput if *v == nil { - sv = &ListPortalsOutput{} + 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) @@ -6677,10 +7403,175 @@ func awsRestjson1_deserializeOpDocumentListPortalsOutput(v **ListPortalsOutput, 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_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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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(), + } + } + + span.End() + 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 + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return 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 @@ -8087,14 +8978,14 @@ func awsRestjson1_deserializeOpDocumentUpdateBrowserSettingsOutput(v **UpdateBro return nil } -type awsRestjson1_deserializeOpUpdateIdentityProvider struct { +type awsRestjson1_deserializeOpUpdateDataProtectionSettings struct { } -func (*awsRestjson1_deserializeOpUpdateIdentityProvider) ID() string { +func (*awsRestjson1_deserializeOpUpdateDataProtectionSettings) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateIdentityProvider) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpUpdateDataProtectionSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -8112,9 +9003,9 @@ func (m *awsRestjson1_deserializeOpUpdateIdentityProvider) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateIdentityProvider(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorUpdateDataProtectionSettings(response, &metadata) } - output := &UpdateIdentityProviderOutput{} + output := &UpdateDataProtectionSettingsOutput{} out.Result = output var buff [1024]byte @@ -8135,7 +9026,7 @@ func (m *awsRestjson1_deserializeOpUpdateIdentityProvider) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateIdentityProviderOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentUpdateDataProtectionSettingsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8149,7 +9040,7 @@ func (m *awsRestjson1_deserializeOpUpdateIdentityProvider) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateIdentityProvider(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorUpdateDataProtectionSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -8215,7 +9106,7 @@ func awsRestjson1_deserializeOpErrorUpdateIdentityProvider(response *smithyhttp. } } -func awsRestjson1_deserializeOpDocumentUpdateIdentityProviderOutput(v **UpdateIdentityProviderOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentUpdateDataProtectionSettingsOutput(v **UpdateDataProtectionSettingsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8228,17 +9119,17 @@ func awsRestjson1_deserializeOpDocumentUpdateIdentityProviderOutput(v **UpdateId return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateIdentityProviderOutput + var sv *UpdateDataProtectionSettingsOutput if *v == nil { - sv = &UpdateIdentityProviderOutput{} + sv = &UpdateDataProtectionSettingsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "identityProvider": - if err := awsRestjson1_deserializeDocumentIdentityProvider(&sv.IdentityProvider, value); err != nil { + case "dataProtectionSettings": + if err := awsRestjson1_deserializeDocumentDataProtectionSettings(&sv.DataProtectionSettings, value); err != nil { return err } @@ -8251,14 +9142,14 @@ func awsRestjson1_deserializeOpDocumentUpdateIdentityProviderOutput(v **UpdateId return nil } -type awsRestjson1_deserializeOpUpdateIpAccessSettings struct { +type awsRestjson1_deserializeOpUpdateIdentityProvider struct { } -func (*awsRestjson1_deserializeOpUpdateIpAccessSettings) ID() string { +func (*awsRestjson1_deserializeOpUpdateIdentityProvider) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateIpAccessSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -8276,9 +9167,9 @@ func (m *awsRestjson1_deserializeOpUpdateIpAccessSettings) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateIpAccessSettings(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorUpdateIdentityProvider(response, &metadata) } - output := &UpdateIpAccessSettingsOutput{} + output := &UpdateIdentityProviderOutput{} out.Result = output var buff [1024]byte @@ -8299,7 +9190,7 @@ func (m *awsRestjson1_deserializeOpUpdateIpAccessSettings) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateIpAccessSettingsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentUpdateIdentityProviderOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8313,7 +9204,7 @@ func (m *awsRestjson1_deserializeOpUpdateIpAccessSettings) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateIpAccessSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -8379,7 +9270,7 @@ func awsRestjson1_deserializeOpErrorUpdateIpAccessSettings(response *smithyhttp. } } -func awsRestjson1_deserializeOpDocumentUpdateIpAccessSettingsOutput(v **UpdateIpAccessSettingsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentUpdateIdentityProviderOutput(v **UpdateIdentityProviderOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8392,17 +9283,17 @@ func awsRestjson1_deserializeOpDocumentUpdateIpAccessSettingsOutput(v **UpdateIp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateIpAccessSettingsOutput + var sv *UpdateIdentityProviderOutput if *v == nil { - sv = &UpdateIpAccessSettingsOutput{} + sv = &UpdateIdentityProviderOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "ipAccessSettings": - if err := awsRestjson1_deserializeDocumentIpAccessSettings(&sv.IpAccessSettings, value); err != nil { + case "identityProvider": + if err := awsRestjson1_deserializeDocumentIdentityProvider(&sv.IdentityProvider, value); err != nil { return err } @@ -8415,14 +9306,14 @@ func awsRestjson1_deserializeOpDocumentUpdateIpAccessSettingsOutput(v **UpdateIp return nil } -type awsRestjson1_deserializeOpUpdateNetworkSettings struct { +type awsRestjson1_deserializeOpUpdateIpAccessSettings struct { } -func (*awsRestjson1_deserializeOpUpdateNetworkSettings) ID() string { +func (*awsRestjson1_deserializeOpUpdateIpAccessSettings) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateNetworkSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpUpdateIpAccessSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -8440,9 +9331,9 @@ func (m *awsRestjson1_deserializeOpUpdateNetworkSettings) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateNetworkSettings(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorUpdateIpAccessSettings(response, &metadata) } - output := &UpdateNetworkSettingsOutput{} + output := &UpdateIpAccessSettingsOutput{} out.Result = output var buff [1024]byte @@ -8463,7 +9354,7 @@ func (m *awsRestjson1_deserializeOpUpdateNetworkSettings) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateNetworkSettingsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentUpdateIpAccessSettingsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8477,7 +9368,7 @@ func (m *awsRestjson1_deserializeOpUpdateNetworkSettings) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateNetworkSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorUpdateIpAccessSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -8543,7 +9434,7 @@ func awsRestjson1_deserializeOpErrorUpdateNetworkSettings(response *smithyhttp.R } } -func awsRestjson1_deserializeOpDocumentUpdateNetworkSettingsOutput(v **UpdateNetworkSettingsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentUpdateIpAccessSettingsOutput(v **UpdateIpAccessSettingsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8556,17 +9447,17 @@ func awsRestjson1_deserializeOpDocumentUpdateNetworkSettingsOutput(v **UpdateNet return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateNetworkSettingsOutput + var sv *UpdateIpAccessSettingsOutput if *v == nil { - sv = &UpdateNetworkSettingsOutput{} + sv = &UpdateIpAccessSettingsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "networkSettings": - if err := awsRestjson1_deserializeDocumentNetworkSettings(&sv.NetworkSettings, value); err != nil { + case "ipAccessSettings": + if err := awsRestjson1_deserializeDocumentIpAccessSettings(&sv.IpAccessSettings, value); err != nil { return err } @@ -8579,14 +9470,14 @@ func awsRestjson1_deserializeOpDocumentUpdateNetworkSettingsOutput(v **UpdateNet return nil } -type awsRestjson1_deserializeOpUpdatePortal struct { +type awsRestjson1_deserializeOpUpdateNetworkSettings struct { } -func (*awsRestjson1_deserializeOpUpdatePortal) ID() string { +func (*awsRestjson1_deserializeOpUpdateNetworkSettings) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdatePortal) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -8604,9 +9495,9 @@ func (m *awsRestjson1_deserializeOpUpdatePortal) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdatePortal(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorUpdateNetworkSettings(response, &metadata) } - output := &UpdatePortalOutput{} + output := &UpdateNetworkSettingsOutput{} out.Result = output var buff [1024]byte @@ -8627,7 +9518,7 @@ func (m *awsRestjson1_deserializeOpUpdatePortal) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdatePortalOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentUpdateNetworkSettingsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8641,7 +9532,7 @@ func (m *awsRestjson1_deserializeOpUpdatePortal) HandleDeserialize(ctx context.C return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdatePortal(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -8685,18 +9576,12 @@ func awsRestjson1_deserializeOpErrorUpdatePortal(response *smithyhttp.Response, 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) @@ -8713,7 +9598,7 @@ func awsRestjson1_deserializeOpErrorUpdatePortal(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentUpdatePortalOutput(v **UpdatePortalOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentUpdateNetworkSettingsOutput(v **UpdateNetworkSettingsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8726,16 +9611,186 @@ func awsRestjson1_deserializeOpDocumentUpdatePortalOutput(v **UpdatePortalOutput return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdatePortalOutput + var sv *UpdateNetworkSettingsOutput if *v == nil { - sv = &UpdatePortalOutput{} + sv = &UpdateNetworkSettingsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "portal": + 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 + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + 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(), + } + } + + span.End() + 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 + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return 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_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 } @@ -10212,43 +11267,7 @@ func awsRestjson1_deserializeDocumentCookieSynchronizationConfiguration(v **type return nil } -func awsRestjson1_deserializeDocumentEncryptionContextMap(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_deserializeDocumentIdentityProvider(v **types.IdentityProvider, value interface{}) error { +func awsRestjson1_deserializeDocumentCustomPattern(v **types.CustomPattern, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10261,45 +11280,49 @@ func awsRestjson1_deserializeDocumentIdentityProvider(v **types.IdentityProvider return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.IdentityProvider + var sv *types.CustomPattern if *v == nil { - sv = &types.IdentityProvider{} + sv = &types.CustomPattern{} } else { sv = *v } for key, value := range shape { switch key { - case "identityProviderArn": + case "keywordRegex": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SubresourceARN to be of type string, got %T instead", value) + return fmt.Errorf("expected Regex to be of type string, got %T instead", value) } - sv.IdentityProviderArn = ptr.String(jtv) + sv.KeywordRegex = ptr.String(jtv) } - case "identityProviderDetails": - if err := awsRestjson1_deserializeDocumentIdentityProviderDetails(&sv.IdentityProviderDetails, value); err != nil { - return err + case "patternDescription": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DescriptionSafe to be of type string, got %T instead", value) + } + sv.PatternDescription = ptr.String(jtv) } - case "identityProviderName": + case "patternName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected IdentityProviderName to be of type string, got %T instead", value) + return fmt.Errorf("expected PatternName to be of type string, got %T instead", value) } - sv.IdentityProviderName = ptr.String(jtv) + sv.PatternName = ptr.String(jtv) } - case "identityProviderType": + case "patternRegex": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected IdentityProviderType to be of type string, got %T instead", value) + return fmt.Errorf("expected Regex to be of type string, got %T instead", value) } - sv.IdentityProviderType = types.IdentityProviderType(jtv) + sv.PatternRegex = ptr.String(jtv) } default: @@ -10311,7 +11334,7 @@ func awsRestjson1_deserializeDocumentIdentityProvider(v **types.IdentityProvider return nil } -func awsRestjson1_deserializeDocumentIdentityProviderDetails(v *map[string]string, value interface{}) error { +func awsRestjson1_deserializeDocumentDataProtectionSettings(v **types.DataProtectionSettings, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10324,34 +11347,375 @@ func awsRestjson1_deserializeDocumentIdentityProviderDetails(v *map[string]strin return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]string + var sv *types.DataProtectionSettings if *v == nil { - mv = map[string]string{} + sv = &types.DataProtectionSettings{} } else { - mv = *v + sv = *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) + switch key { + case "additionalEncryptionContext": + if err := awsRestjson1_deserializeDocumentEncryptionContextMap(&sv.AdditionalEncryptionContext, value); err != nil { + return err } - parsedVal = jtv - } - mv[key] = parsedVal - } - *v = mv - return nil -} + case "associatedPortalArns": + if err := awsRestjson1_deserializeDocumentArnList(&sv.AssociatedPortalArns, value); err != nil { + return err + } -func awsRestjson1_deserializeDocumentIdentityProviderList(v *[]types.IdentityProviderSummary, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { + 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 "customerManagedKey": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected keyArn to be of type string, got %T instead", value) + } + sv.CustomerManagedKey = ptr.String(jtv) + } + + case "dataProtectionSettingsArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.DataProtectionSettingsArn = ptr.String(jtv) + } + + case "description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DescriptionSafe 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 DisplayNameSafe to be of type string, got %T instead", value) + } + sv.DisplayName = ptr.String(jtv) + } + + case "inlineRedactionConfiguration": + if err := awsRestjson1_deserializeDocumentInlineRedactionConfiguration(&sv.InlineRedactionConfiguration, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDataProtectionSettingsList(v *[]types.DataProtectionSettingsSummary, 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.DataProtectionSettingsSummary + if *v == nil { + cv = []types.DataProtectionSettingsSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.DataProtectionSettingsSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataProtectionSettingsSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentDataProtectionSettingsSummary(v **types.DataProtectionSettingsSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.DataProtectionSettingsSummary + if *v == nil { + sv = &types.DataProtectionSettingsSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + 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 "dataProtectionSettingsArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.DataProtectionSettingsArn = ptr.String(jtv) + } + + case "description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DescriptionSafe 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 DisplayNameSafe to be of type string, got %T instead", value) + } + sv.DisplayName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentEncryptionContextMap(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_deserializeDocumentGlobalInlineRedactionUrls(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 InlineRedactionUrl to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + 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 SubresourceARN 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 } @@ -10439,6 +11803,208 @@ func awsRestjson1_deserializeDocumentIdentityProviderSummary(v **types.IdentityP return nil } +func awsRestjson1_deserializeDocumentInlineRedactionConfiguration(v **types.InlineRedactionConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.InlineRedactionConfiguration + if *v == nil { + sv = &types.InlineRedactionConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "globalConfidenceLevel": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected ConfidenceLevel to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.GlobalConfidenceLevel = ptr.Int32(int32(i64)) + } + + case "globalEnforcedUrls": + if err := awsRestjson1_deserializeDocumentGlobalInlineRedactionUrls(&sv.GlobalEnforcedUrls, value); err != nil { + return err + } + + case "globalExemptUrls": + if err := awsRestjson1_deserializeDocumentGlobalInlineRedactionUrls(&sv.GlobalExemptUrls, value); err != nil { + return err + } + + case "inlineRedactionPatterns": + if err := awsRestjson1_deserializeDocumentInlineRedactionPatterns(&sv.InlineRedactionPatterns, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentInlineRedactionPattern(v **types.InlineRedactionPattern, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.InlineRedactionPattern + if *v == nil { + sv = &types.InlineRedactionPattern{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "builtInPatternId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BuiltInPatternId to be of type string, got %T instead", value) + } + sv.BuiltInPatternId = ptr.String(jtv) + } + + case "confidenceLevel": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected ConfidenceLevel to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ConfidenceLevel = ptr.Int32(int32(i64)) + } + + case "customPattern": + if err := awsRestjson1_deserializeDocumentCustomPattern(&sv.CustomPattern, value); err != nil { + return err + } + + case "enforcedUrls": + if err := awsRestjson1_deserializeDocumentInlineRedactionUrls(&sv.EnforcedUrls, value); err != nil { + return err + } + + case "exemptUrls": + if err := awsRestjson1_deserializeDocumentInlineRedactionUrls(&sv.ExemptUrls, value); err != nil { + return err + } + + case "redactionPlaceHolder": + if err := awsRestjson1_deserializeDocumentRedactionPlaceHolder(&sv.RedactionPlaceHolder, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentInlineRedactionPatterns(v *[]types.InlineRedactionPattern, 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.InlineRedactionPattern + if *v == nil { + cv = []types.InlineRedactionPattern{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.InlineRedactionPattern + destAddr := &col + if err := awsRestjson1_deserializeDocumentInlineRedactionPattern(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentInlineRedactionUrls(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 InlineRedactionUrl to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -11043,6 +12609,15 @@ func awsRestjson1_deserializeDocumentPortal(v **types.Portal, value interface{}) sv.CustomerManagedKey = ptr.String(jtv) } + case "dataProtectionSettingsArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.DataProtectionSettingsArn = ptr.String(jtv) + } + case "displayName": if value != nil { jtv, ok := value.(string) @@ -11272,6 +12847,15 @@ func awsRestjson1_deserializeDocumentPortalSummary(v **types.PortalSummary, valu } } + case "dataProtectionSettingsArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.DataProtectionSettingsArn = ptr.String(jtv) + } + case "displayName": if value != nil { jtv, ok := value.(string) @@ -11393,6 +12977,55 @@ func awsRestjson1_deserializeDocumentPortalSummary(v **types.PortalSummary, valu return nil } +func awsRestjson1_deserializeDocumentRedactionPlaceHolder(v **types.RedactionPlaceHolder, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", 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.RedactionPlaceHolder + if *v == nil { + sv = &types.RedactionPlaceHolder{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "redactionPlaceHolderText": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RedactionPlaceHolderText to be of type string, got %T instead", value) + } + sv.RedactionPlaceHolderText = ptr.String(jtv) + } + + case "redactionPlaceHolderType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RedactionPlaceHolderType to be of type string, got %T instead", value) + } + sv.RedactionPlaceHolderType = types.RedactionPlaceHolderType(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) diff --git a/service/workspacesweb/generated.json b/service/workspacesweb/generated.json index 8dc68d89843..3f4be1a5e33 100644 --- a/service/workspacesweb/generated.json +++ b/service/workspacesweb/generated.json @@ -9,12 +9,14 @@ "api_client.go", "api_client_test.go", "api_op_AssociateBrowserSettings.go", + "api_op_AssociateDataProtectionSettings.go", "api_op_AssociateIpAccessSettings.go", "api_op_AssociateNetworkSettings.go", "api_op_AssociateTrustStore.go", "api_op_AssociateUserAccessLoggingSettings.go", "api_op_AssociateUserSettings.go", "api_op_CreateBrowserSettings.go", + "api_op_CreateDataProtectionSettings.go", "api_op_CreateIdentityProvider.go", "api_op_CreateIpAccessSettings.go", "api_op_CreateNetworkSettings.go", @@ -23,6 +25,7 @@ "api_op_CreateUserAccessLoggingSettings.go", "api_op_CreateUserSettings.go", "api_op_DeleteBrowserSettings.go", + "api_op_DeleteDataProtectionSettings.go", "api_op_DeleteIdentityProvider.go", "api_op_DeleteIpAccessSettings.go", "api_op_DeleteNetworkSettings.go", @@ -31,6 +34,7 @@ "api_op_DeleteUserAccessLoggingSettings.go", "api_op_DeleteUserSettings.go", "api_op_DisassociateBrowserSettings.go", + "api_op_DisassociateDataProtectionSettings.go", "api_op_DisassociateIpAccessSettings.go", "api_op_DisassociateNetworkSettings.go", "api_op_DisassociateTrustStore.go", @@ -38,6 +42,7 @@ "api_op_DisassociateUserSettings.go", "api_op_ExpireSession.go", "api_op_GetBrowserSettings.go", + "api_op_GetDataProtectionSettings.go", "api_op_GetIdentityProvider.go", "api_op_GetIpAccessSettings.go", "api_op_GetNetworkSettings.go", @@ -49,6 +54,7 @@ "api_op_GetUserAccessLoggingSettings.go", "api_op_GetUserSettings.go", "api_op_ListBrowserSettings.go", + "api_op_ListDataProtectionSettings.go", "api_op_ListIdentityProviders.go", "api_op_ListIpAccessSettings.go", "api_op_ListNetworkSettings.go", @@ -62,6 +68,7 @@ "api_op_TagResource.go", "api_op_UntagResource.go", "api_op_UpdateBrowserSettings.go", + "api_op_UpdateDataProtectionSettings.go", "api_op_UpdateIdentityProvider.go", "api_op_UpdateIpAccessSettings.go", "api_op_UpdateNetworkSettings.go", diff --git a/service/workspacesweb/go.mod b/service/workspacesweb/go.mod index 6ae27dca8a6..fd3d34da07b 100644 --- a/service/workspacesweb/go.mod +++ b/service/workspacesweb/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/workspacesweb go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/workspacesweb/go.sum b/service/workspacesweb/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/workspacesweb/go.sum +++ b/service/workspacesweb/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/workspacesweb/go_module_metadata.go b/service/workspacesweb/go_module_metadata.go index 9b3500df89c..07367f2b2a6 100644 --- a/service/workspacesweb/go_module_metadata.go +++ b/service/workspacesweb/go_module_metadata.go @@ -3,4 +3,4 @@ package workspacesweb // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.5" +const goModuleVersion = "1.25.0" diff --git a/service/workspacesweb/serializers.go b/service/workspacesweb/serializers.go index 066d961ae3e..4cee871df13 100644 --- a/service/workspacesweb/serializers.go +++ b/service/workspacesweb/serializers.go @@ -90,6 +90,81 @@ func awsRestjson1_serializeOpHttpBindingsAssociateBrowserSettingsInput(v *Associ return nil } +type awsRestjson1_serializeOpAssociateDataProtectionSettings struct { +} + +func (*awsRestjson1_serializeOpAssociateDataProtectionSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpAssociateDataProtectionSettings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*AssociateDataProtectionSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/portals/{portalArn+}/dataProtectionSettings") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsAssociateDataProtectionSettingsInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsAssociateDataProtectionSettingsInput(v *AssociateDataProtectionSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.DataProtectionSettingsArn != nil { + encoder.SetQuery("dataProtectionSettingsArn").String(*v.DataProtectionSettingsArn) + } + + 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_serializeOpAssociateIpAccessSettings struct { } @@ -570,6 +645,123 @@ func awsRestjson1_serializeOpDocumentCreateBrowserSettingsInput(v *CreateBrowser return nil } +type awsRestjson1_serializeOpCreateDataProtectionSettings struct { +} + +func (*awsRestjson1_serializeOpCreateDataProtectionSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateDataProtectionSettings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*CreateDataProtectionSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/dataProtectionSettings") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, 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_serializeOpDocumentCreateDataProtectionSettingsInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateDataProtectionSettingsInput(v *CreateDataProtectionSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateDataProtectionSettingsInput(v *CreateDataProtectionSettingsInput, 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.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + if v.DisplayName != nil { + ok := object.Key("displayName") + ok.String(*v.DisplayName) + } + + if v.InlineRedactionConfiguration != nil { + ok := object.Key("inlineRedactionConfiguration") + if err := awsRestjson1_serializeDocumentInlineRedactionConfiguration(v.InlineRedactionConfiguration, ok); err != nil { + return err + } + } + + 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 { } @@ -1430,6 +1622,77 @@ func awsRestjson1_serializeOpHttpBindingsDeleteBrowserSettingsInput(v *DeleteBro return nil } +type awsRestjson1_serializeOpDeleteDataProtectionSettings struct { +} + +func (*awsRestjson1_serializeOpDeleteDataProtectionSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteDataProtectionSettings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DeleteDataProtectionSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/dataProtectionSettings/{dataProtectionSettingsArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteDataProtectionSettingsInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteDataProtectionSettingsInput(v *DeleteDataProtectionSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.DataProtectionSettingsArn == nil || len(*v.DataProtectionSettingsArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member dataProtectionSettingsArn must not be empty")} + } + if v.DataProtectionSettingsArn != nil { + if err := encoder.SetURI("dataProtectionSettingsArn").String(*v.DataProtectionSettingsArn); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpDeleteIdentityProvider struct { } @@ -1998,6 +2261,77 @@ func awsRestjson1_serializeOpHttpBindingsDisassociateBrowserSettingsInput(v *Dis return nil } +type awsRestjson1_serializeOpDisassociateDataProtectionSettings struct { +} + +func (*awsRestjson1_serializeOpDisassociateDataProtectionSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDisassociateDataProtectionSettings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*DisassociateDataProtectionSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/portals/{portalArn+}/dataProtectionSettings") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDisassociateDataProtectionSettingsInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDisassociateDataProtectionSettingsInput(v *DisassociateDataProtectionSettingsInput, 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_serializeOpDisassociateIpAccessSettings struct { } @@ -2504,6 +2838,77 @@ func awsRestjson1_serializeOpHttpBindingsGetBrowserSettingsInput(v *GetBrowserSe return nil } +type awsRestjson1_serializeOpGetDataProtectionSettings struct { +} + +func (*awsRestjson1_serializeOpGetDataProtectionSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetDataProtectionSettings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*GetDataProtectionSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/dataProtectionSettings/{dataProtectionSettingsArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetDataProtectionSettingsInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetDataProtectionSettingsInput(v *GetDataProtectionSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.DataProtectionSettingsArn == nil || len(*v.DataProtectionSettingsArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member dataProtectionSettingsArn must not be empty")} + } + if v.DataProtectionSettingsArn != nil { + if err := encoder.SetURI("dataProtectionSettingsArn").String(*v.DataProtectionSettingsArn); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpGetIdentityProvider struct { } @@ -3076,8 +3481,79 @@ func awsRestjson1_serializeOpHttpBindingsGetTrustStoreCertificateInput(v *GetTru 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 { + if v.TrustStoreArn != nil { + if err := encoder.SetURI("trustStoreArn").String(*v.TrustStoreArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetUserAccessLoggingSettings struct { +} + +func (*awsRestjson1_serializeOpGetUserAccessLoggingSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetUserAccessLoggingSettings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*GetUserAccessLoggingSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/userAccessLoggingSettings/{userAccessLoggingSettingsArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetUserAccessLoggingSettingsInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetUserAccessLoggingSettingsInput(v *GetUserAccessLoggingSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.UserAccessLoggingSettingsArn == nil || len(*v.UserAccessLoggingSettingsArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member userAccessLoggingSettingsArn must not be empty")} + } + if v.UserAccessLoggingSettingsArn != nil { + if err := encoder.SetURI("userAccessLoggingSettingsArn").String(*v.UserAccessLoggingSettingsArn); err != nil { return err } } @@ -3085,14 +3561,14 @@ func awsRestjson1_serializeOpHttpBindingsGetTrustStoreCertificateInput(v *GetTru return nil } -type awsRestjson1_serializeOpGetUserAccessLoggingSettings struct { +type awsRestjson1_serializeOpGetUserSettings struct { } -func (*awsRestjson1_serializeOpGetUserAccessLoggingSettings) ID() string { +func (*awsRestjson1_serializeOpGetUserSettings) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetUserAccessLoggingSettings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetUserSettings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -3104,13 +3580,13 @@ func (m *awsRestjson1_serializeOpGetUserAccessLoggingSettings) HandleSerialize(c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetUserAccessLoggingSettingsInput) + 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("/userAccessLoggingSettings/{userAccessLoggingSettingsArn+}") + 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" @@ -3126,7 +3602,7 @@ func (m *awsRestjson1_serializeOpGetUserAccessLoggingSettings) HandleSerialize(c return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetUserAccessLoggingSettingsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetUserSettingsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3139,16 +3615,16 @@ func (m *awsRestjson1_serializeOpGetUserAccessLoggingSettings) HandleSerialize(c span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetUserAccessLoggingSettingsInput(v *GetUserAccessLoggingSettingsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetUserSettingsInput(v *GetUserSettingsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.UserAccessLoggingSettingsArn == nil || len(*v.UserAccessLoggingSettingsArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member userAccessLoggingSettingsArn must not be empty")} + if v.UserSettingsArn == nil || len(*v.UserSettingsArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member userSettingsArn must not be empty")} } - if v.UserAccessLoggingSettingsArn != nil { - if err := encoder.SetURI("userAccessLoggingSettingsArn").String(*v.UserAccessLoggingSettingsArn); err != nil { + if v.UserSettingsArn != nil { + if err := encoder.SetURI("userSettingsArn").String(*v.UserSettingsArn); err != nil { return err } } @@ -3156,14 +3632,14 @@ func awsRestjson1_serializeOpHttpBindingsGetUserAccessLoggingSettingsInput(v *Ge return nil } -type awsRestjson1_serializeOpGetUserSettings struct { +type awsRestjson1_serializeOpListBrowserSettings struct { } -func (*awsRestjson1_serializeOpGetUserSettings) ID() string { +func (*awsRestjson1_serializeOpListBrowserSettings) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetUserSettings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListBrowserSettings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -3175,13 +3651,13 @@ func (m *awsRestjson1_serializeOpGetUserSettings) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetUserSettingsInput) + 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("/userSettings/{userSettingsArn+}") + 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" @@ -3197,7 +3673,7 @@ func (m *awsRestjson1_serializeOpGetUserSettings) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetUserSettingsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListBrowserSettingsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3210,31 +3686,30 @@ func (m *awsRestjson1_serializeOpGetUserSettings) HandleSerialize(ctx context.Co span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetUserSettingsInput(v *GetUserSettingsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListBrowserSettingsInput(v *ListBrowserSettingsInput, 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.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } - if v.UserSettingsArn != nil { - if err := encoder.SetURI("userSettingsArn").String(*v.UserSettingsArn); err != nil { - return err - } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) } return nil } -type awsRestjson1_serializeOpListBrowserSettings struct { +type awsRestjson1_serializeOpListDataProtectionSettings struct { } -func (*awsRestjson1_serializeOpListBrowserSettings) ID() string { +func (*awsRestjson1_serializeOpListDataProtectionSettings) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListBrowserSettings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListDataProtectionSettings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -3246,13 +3721,13 @@ func (m *awsRestjson1_serializeOpListBrowserSettings) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListBrowserSettingsInput) + input, ok := in.Parameters.(*ListDataProtectionSettingsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/browserSettings") + opPath, opQuery := httpbinding.SplitURI("/dataProtectionSettings") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -3268,7 +3743,7 @@ func (m *awsRestjson1_serializeOpListBrowserSettings) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListBrowserSettingsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListDataProtectionSettingsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3281,7 +3756,7 @@ func (m *awsRestjson1_serializeOpListBrowserSettings) HandleSerialize(ctx contex span.End() return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListBrowserSettingsInput(v *ListBrowserSettingsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListDataProtectionSettingsInput(v *ListDataProtectionSettingsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -4318,6 +4793,117 @@ func awsRestjson1_serializeOpDocumentUpdateBrowserSettingsInput(v *UpdateBrowser return nil } +type awsRestjson1_serializeOpUpdateDataProtectionSettings struct { +} + +func (*awsRestjson1_serializeOpUpdateDataProtectionSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateDataProtectionSettings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + 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.(*UpdateDataProtectionSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/dataProtectionSettings/{dataProtectionSettingsArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PATCH" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateDataProtectionSettingsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateDataProtectionSettingsInput(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 + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateDataProtectionSettingsInput(v *UpdateDataProtectionSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.DataProtectionSettingsArn == nil || len(*v.DataProtectionSettingsArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member dataProtectionSettingsArn must not be empty")} + } + if v.DataProtectionSettingsArn != nil { + if err := encoder.SetURI("dataProtectionSettingsArn").String(*v.DataProtectionSettingsArn); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateDataProtectionSettingsInput(v *UpdateDataProtectionSettingsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientToken != nil { + ok := object.Key("clientToken") + ok.String(*v.ClientToken) + } + + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + if v.DisplayName != nil { + ok := object.Key("displayName") + ok.String(*v.DisplayName) + } + + if v.InlineRedactionConfiguration != nil { + ok := object.Key("inlineRedactionConfiguration") + if err := awsRestjson1_serializeDocumentInlineRedactionConfiguration(v.InlineRedactionConfiguration, ok); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpUpdateIdentityProvider struct { } @@ -5191,6 +5777,33 @@ func awsRestjson1_serializeDocumentCookieSynchronizationConfiguration(v *types.C return nil } +func awsRestjson1_serializeDocumentCustomPattern(v *types.CustomPattern, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.KeywordRegex != nil { + ok := object.Key("keywordRegex") + ok.String(*v.KeywordRegex) + } + + if v.PatternDescription != nil { + ok := object.Key("patternDescription") + ok.String(*v.PatternDescription) + } + + if v.PatternName != nil { + ok := object.Key("patternName") + ok.String(*v.PatternName) + } + + if v.PatternRegex != nil { + ok := object.Key("patternRegex") + ok.String(*v.PatternRegex) + } + + return nil +} + func awsRestjson1_serializeDocumentEncryptionContextMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -5202,6 +5815,17 @@ func awsRestjson1_serializeDocumentEncryptionContextMap(v map[string]string, val return nil } +func awsRestjson1_serializeDocumentGlobalInlineRedactionUrls(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_serializeDocumentIdentityProviderDetails(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -5213,6 +5837,108 @@ func awsRestjson1_serializeDocumentIdentityProviderDetails(v map[string]string, return nil } +func awsRestjson1_serializeDocumentInlineRedactionConfiguration(v *types.InlineRedactionConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.GlobalConfidenceLevel != nil { + ok := object.Key("globalConfidenceLevel") + ok.Integer(*v.GlobalConfidenceLevel) + } + + if v.GlobalEnforcedUrls != nil { + ok := object.Key("globalEnforcedUrls") + if err := awsRestjson1_serializeDocumentGlobalInlineRedactionUrls(v.GlobalEnforcedUrls, ok); err != nil { + return err + } + } + + if v.GlobalExemptUrls != nil { + ok := object.Key("globalExemptUrls") + if err := awsRestjson1_serializeDocumentGlobalInlineRedactionUrls(v.GlobalExemptUrls, ok); err != nil { + return err + } + } + + if v.InlineRedactionPatterns != nil { + ok := object.Key("inlineRedactionPatterns") + if err := awsRestjson1_serializeDocumentInlineRedactionPatterns(v.InlineRedactionPatterns, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentInlineRedactionPattern(v *types.InlineRedactionPattern, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.BuiltInPatternId != nil { + ok := object.Key("builtInPatternId") + ok.String(*v.BuiltInPatternId) + } + + if v.ConfidenceLevel != nil { + ok := object.Key("confidenceLevel") + ok.Integer(*v.ConfidenceLevel) + } + + if v.CustomPattern != nil { + ok := object.Key("customPattern") + if err := awsRestjson1_serializeDocumentCustomPattern(v.CustomPattern, ok); err != nil { + return err + } + } + + if v.EnforcedUrls != nil { + ok := object.Key("enforcedUrls") + if err := awsRestjson1_serializeDocumentInlineRedactionUrls(v.EnforcedUrls, ok); err != nil { + return err + } + } + + if v.ExemptUrls != nil { + ok := object.Key("exemptUrls") + if err := awsRestjson1_serializeDocumentInlineRedactionUrls(v.ExemptUrls, ok); err != nil { + return err + } + } + + if v.RedactionPlaceHolder != nil { + ok := object.Key("redactionPlaceHolder") + if err := awsRestjson1_serializeDocumentRedactionPlaceHolder(v.RedactionPlaceHolder, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentInlineRedactionPatterns(v []types.InlineRedactionPattern, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentInlineRedactionPattern(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentInlineRedactionUrls(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_serializeDocumentIpRule(v *types.IpRule, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -5243,6 +5969,23 @@ func awsRestjson1_serializeDocumentIpRuleList(v []types.IpRule, value smithyjson return nil } +func awsRestjson1_serializeDocumentRedactionPlaceHolder(v *types.RedactionPlaceHolder, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.RedactionPlaceHolderText != nil { + ok := object.Key("redactionPlaceHolderText") + ok.String(*v.RedactionPlaceHolderText) + } + + if len(v.RedactionPlaceHolderType) > 0 { + ok := object.Key("redactionPlaceHolderType") + ok.String(string(v.RedactionPlaceHolderType)) + } + + return nil +} + func awsRestjson1_serializeDocumentSecurityGroupIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() diff --git a/service/workspacesweb/snapshot/api_op_AssociateDataProtectionSettings.go.snap b/service/workspacesweb/snapshot/api_op_AssociateDataProtectionSettings.go.snap new file mode 100644 index 00000000000..19508e634c0 --- /dev/null +++ b/service/workspacesweb/snapshot/api_op_AssociateDataProtectionSettings.go.snap @@ -0,0 +1,41 @@ +AssociateDataProtectionSettings + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/workspacesweb/snapshot/api_op_CreateDataProtectionSettings.go.snap b/service/workspacesweb/snapshot/api_op_CreateDataProtectionSettings.go.snap new file mode 100644 index 00000000000..8bd523b6914 --- /dev/null +++ b/service/workspacesweb/snapshot/api_op_CreateDataProtectionSettings.go.snap @@ -0,0 +1,42 @@ +CreateDataProtectionSettings + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + OperationIdempotencyTokenAutoFill + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/workspacesweb/snapshot/api_op_DeleteDataProtectionSettings.go.snap b/service/workspacesweb/snapshot/api_op_DeleteDataProtectionSettings.go.snap new file mode 100644 index 00000000000..b8953d30d3a --- /dev/null +++ b/service/workspacesweb/snapshot/api_op_DeleteDataProtectionSettings.go.snap @@ -0,0 +1,41 @@ +DeleteDataProtectionSettings + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/workspacesweb/snapshot/api_op_DisassociateDataProtectionSettings.go.snap b/service/workspacesweb/snapshot/api_op_DisassociateDataProtectionSettings.go.snap new file mode 100644 index 00000000000..8b00d0fc630 --- /dev/null +++ b/service/workspacesweb/snapshot/api_op_DisassociateDataProtectionSettings.go.snap @@ -0,0 +1,41 @@ +DisassociateDataProtectionSettings + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/workspacesweb/snapshot/api_op_GetDataProtectionSettings.go.snap b/service/workspacesweb/snapshot/api_op_GetDataProtectionSettings.go.snap new file mode 100644 index 00000000000..299186eb3e9 --- /dev/null +++ b/service/workspacesweb/snapshot/api_op_GetDataProtectionSettings.go.snap @@ -0,0 +1,41 @@ +GetDataProtectionSettings + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/workspacesweb/snapshot/api_op_ListDataProtectionSettings.go.snap b/service/workspacesweb/snapshot/api_op_ListDataProtectionSettings.go.snap new file mode 100644 index 00000000000..7922d18631d --- /dev/null +++ b/service/workspacesweb/snapshot/api_op_ListDataProtectionSettings.go.snap @@ -0,0 +1,40 @@ +ListDataProtectionSettings + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/workspacesweb/snapshot/api_op_UpdateDataProtectionSettings.go.snap b/service/workspacesweb/snapshot/api_op_UpdateDataProtectionSettings.go.snap new file mode 100644 index 00000000000..4593ea18a1b --- /dev/null +++ b/service/workspacesweb/snapshot/api_op_UpdateDataProtectionSettings.go.snap @@ -0,0 +1,42 @@ +UpdateDataProtectionSettings + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + OperationIdempotencyTokenAutoFill + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/workspacesweb/snapshot_test.go b/service/workspacesweb/snapshot_test.go index ff042657820..5dd80dccfbc 100644 --- a/service/workspacesweb/snapshot_test.go +++ b/service/workspacesweb/snapshot_test.go @@ -74,6 +74,18 @@ func TestCheckSnapshot_AssociateBrowserSettings(t *testing.T) { } } +func TestCheckSnapshot_AssociateDataProtectionSettings(t *testing.T) { + svc := New(Options{}) + _, err := svc.AssociateDataProtectionSettings(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "AssociateDataProtectionSettings") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_AssociateIpAccessSettings(t *testing.T) { svc := New(Options{}) _, err := svc.AssociateIpAccessSettings(context.Background(), nil, func(o *Options) { @@ -146,6 +158,18 @@ func TestCheckSnapshot_CreateBrowserSettings(t *testing.T) { } } +func TestCheckSnapshot_CreateDataProtectionSettings(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateDataProtectionSettings(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "CreateDataProtectionSettings") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_CreateIdentityProvider(t *testing.T) { svc := New(Options{}) _, err := svc.CreateIdentityProvider(context.Background(), nil, func(o *Options) { @@ -242,6 +266,18 @@ func TestCheckSnapshot_DeleteBrowserSettings(t *testing.T) { } } +func TestCheckSnapshot_DeleteDataProtectionSettings(t *testing.T) { + svc := New(Options{}) + _, err := svc.DeleteDataProtectionSettings(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "DeleteDataProtectionSettings") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_DeleteIdentityProvider(t *testing.T) { svc := New(Options{}) _, err := svc.DeleteIdentityProvider(context.Background(), nil, func(o *Options) { @@ -338,6 +374,18 @@ func TestCheckSnapshot_DisassociateBrowserSettings(t *testing.T) { } } +func TestCheckSnapshot_DisassociateDataProtectionSettings(t *testing.T) { + svc := New(Options{}) + _, err := svc.DisassociateDataProtectionSettings(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "DisassociateDataProtectionSettings") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_DisassociateIpAccessSettings(t *testing.T) { svc := New(Options{}) _, err := svc.DisassociateIpAccessSettings(context.Background(), nil, func(o *Options) { @@ -422,6 +470,18 @@ func TestCheckSnapshot_GetBrowserSettings(t *testing.T) { } } +func TestCheckSnapshot_GetDataProtectionSettings(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetDataProtectionSettings(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "GetDataProtectionSettings") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_GetIdentityProvider(t *testing.T) { svc := New(Options{}) _, err := svc.GetIdentityProvider(context.Background(), nil, func(o *Options) { @@ -554,6 +614,18 @@ func TestCheckSnapshot_ListBrowserSettings(t *testing.T) { } } +func TestCheckSnapshot_ListDataProtectionSettings(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListDataProtectionSettings(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "ListDataProtectionSettings") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_ListIdentityProviders(t *testing.T) { svc := New(Options{}) _, err := svc.ListIdentityProviders(context.Background(), nil, func(o *Options) { @@ -710,6 +782,18 @@ func TestCheckSnapshot_UpdateBrowserSettings(t *testing.T) { } } +func TestCheckSnapshot_UpdateDataProtectionSettings(t *testing.T) { + svc := New(Options{}) + _, err := svc.UpdateDataProtectionSettings(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "UpdateDataProtectionSettings") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_UpdateIdentityProvider(t *testing.T) { svc := New(Options{}) _, err := svc.UpdateIdentityProvider(context.Background(), nil, func(o *Options) { @@ -805,6 +889,18 @@ func TestUpdateSnapshot_AssociateBrowserSettings(t *testing.T) { } } +func TestUpdateSnapshot_AssociateDataProtectionSettings(t *testing.T) { + svc := New(Options{}) + _, err := svc.AssociateDataProtectionSettings(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "AssociateDataProtectionSettings") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_AssociateIpAccessSettings(t *testing.T) { svc := New(Options{}) _, err := svc.AssociateIpAccessSettings(context.Background(), nil, func(o *Options) { @@ -877,6 +973,18 @@ func TestUpdateSnapshot_CreateBrowserSettings(t *testing.T) { } } +func TestUpdateSnapshot_CreateDataProtectionSettings(t *testing.T) { + svc := New(Options{}) + _, err := svc.CreateDataProtectionSettings(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "CreateDataProtectionSettings") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_CreateIdentityProvider(t *testing.T) { svc := New(Options{}) _, err := svc.CreateIdentityProvider(context.Background(), nil, func(o *Options) { @@ -973,6 +1081,18 @@ func TestUpdateSnapshot_DeleteBrowserSettings(t *testing.T) { } } +func TestUpdateSnapshot_DeleteDataProtectionSettings(t *testing.T) { + svc := New(Options{}) + _, err := svc.DeleteDataProtectionSettings(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "DeleteDataProtectionSettings") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_DeleteIdentityProvider(t *testing.T) { svc := New(Options{}) _, err := svc.DeleteIdentityProvider(context.Background(), nil, func(o *Options) { @@ -1069,6 +1189,18 @@ func TestUpdateSnapshot_DisassociateBrowserSettings(t *testing.T) { } } +func TestUpdateSnapshot_DisassociateDataProtectionSettings(t *testing.T) { + svc := New(Options{}) + _, err := svc.DisassociateDataProtectionSettings(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "DisassociateDataProtectionSettings") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_DisassociateIpAccessSettings(t *testing.T) { svc := New(Options{}) _, err := svc.DisassociateIpAccessSettings(context.Background(), nil, func(o *Options) { @@ -1153,6 +1285,18 @@ func TestUpdateSnapshot_GetBrowserSettings(t *testing.T) { } } +func TestUpdateSnapshot_GetDataProtectionSettings(t *testing.T) { + svc := New(Options{}) + _, err := svc.GetDataProtectionSettings(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "GetDataProtectionSettings") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_GetIdentityProvider(t *testing.T) { svc := New(Options{}) _, err := svc.GetIdentityProvider(context.Background(), nil, func(o *Options) { @@ -1285,6 +1429,18 @@ func TestUpdateSnapshot_ListBrowserSettings(t *testing.T) { } } +func TestUpdateSnapshot_ListDataProtectionSettings(t *testing.T) { + svc := New(Options{}) + _, err := svc.ListDataProtectionSettings(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "ListDataProtectionSettings") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_ListIdentityProviders(t *testing.T) { svc := New(Options{}) _, err := svc.ListIdentityProviders(context.Background(), nil, func(o *Options) { @@ -1441,6 +1597,18 @@ func TestUpdateSnapshot_UpdateBrowserSettings(t *testing.T) { } } +func TestUpdateSnapshot_UpdateDataProtectionSettings(t *testing.T) { + svc := New(Options{}) + _, err := svc.UpdateDataProtectionSettings(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "UpdateDataProtectionSettings") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_UpdateIdentityProvider(t *testing.T) { svc := New(Options{}) _, err := svc.UpdateIdentityProvider(context.Background(), nil, func(o *Options) { diff --git a/service/workspacesweb/types/enums.go b/service/workspacesweb/types/enums.go index 0948f5f9a56..c2493ea4659 100644 --- a/service/workspacesweb/types/enums.go +++ b/service/workspacesweb/types/enums.go @@ -126,6 +126,23 @@ func (PortalStatus) Values() []PortalStatus { } } +type RedactionPlaceHolderType string + +// Enum values for RedactionPlaceHolderType +const ( + RedactionPlaceHolderTypeCustomText RedactionPlaceHolderType = "CustomText" +) + +// Values returns all known values for RedactionPlaceHolderType. 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 (RedactionPlaceHolderType) Values() []RedactionPlaceHolderType { + return []RedactionPlaceHolderType{ + "CustomText", + } +} + type RendererType string // Enum values for RendererType diff --git a/service/workspacesweb/types/types.go b/service/workspacesweb/types/types.go index 73000735c1b..b6df2ea8f0f 100644 --- a/service/workspacesweb/types/types.go +++ b/service/workspacesweb/types/types.go @@ -124,6 +124,89 @@ type CookieSynchronizationConfiguration struct { noSmithyDocumentSerde } +// The pattern configuration for redacting custom data types in session. +type CustomPattern struct { + + // The pattern name for the custom pattern. + // + // This member is required. + PatternName *string + + // The pattern regex for the customer pattern. The format must follow JavaScript + // regex format. The pattern must be enclosed between slashes, and can have flags + // behind the second slash. For example: “/ab+c/gi”. + // + // This member is required. + PatternRegex *string + + // The keyword regex for the customer pattern. After there is a match to the + // pattern regex, the keyword regex is used to search within the proximity of the + // match. If there is a keyword match, then the match is confirmed. If no keyword + // regex is provided, the pattern regex match will automatically be confirmed. The + // format must follow JavaScript regex format. The pattern must be enclosed between + // slashes, and can have flags behind the second slash. For example, “/ab+c/gi” + KeywordRegex *string + + // The pattern description for the customer pattern. + PatternDescription *string + + noSmithyDocumentSerde +} + +// The data protection settings resource that can be associated with a web portal. +type DataProtectionSettings struct { + + // The ARN of the data protection settings resource. + // + // This member is required. + DataProtectionSettingsArn *string + + // The additional encryption context of the data protection settings. + AdditionalEncryptionContext map[string]string + + // A list of web portal ARNs that this data protection settings resource is + // associated with. + AssociatedPortalArns []string + + // The creation date timestamp of the data protection settings. + CreationDate *time.Time + + // The customer managed key used to encrypt sensitive information in the data + // protection settings. + CustomerManagedKey *string + + // The description of the data protection settings. + Description *string + + // The display name of the data protection settings. + DisplayName *string + + // The inline redaction configuration for the data protection settings. + InlineRedactionConfiguration *InlineRedactionConfiguration + + noSmithyDocumentSerde +} + +// The summary of the data protection settings. +type DataProtectionSettingsSummary struct { + + // The ARN of the data protection settings. + // + // This member is required. + DataProtectionSettingsArn *string + + // The creation date timestamp of the data protection settings. + CreationDate *time.Time + + // The description of the data protection settings. + Description *string + + // The display name of the data protection settings. + DisplayName *string + + noSmithyDocumentSerde +} + // The identity provider. type IdentityProvider struct { @@ -226,6 +309,75 @@ type IdentityProviderSummary struct { noSmithyDocumentSerde } +// The configuration for in-session inline redaction. +type InlineRedactionConfiguration struct { + + // The inline redaction patterns to be enabled for the inline redaction + // configuration. + // + // This member is required. + InlineRedactionPatterns []InlineRedactionPattern + + // The global confidence level for the inline redaction configuration. This + // indicates the certainty of data type matches in the redaction process. + // Confidence level 3 means high confidence, and requires a formatted text pattern + // match in order for content to be redacted. Confidence level 2 means medium + // confidence, and redaction considers both formatted and unformatted text, and + // adds keyword associate to the logic. Confidence level 1 means low confidence, + // and redaction is enforced for both formatted pattern + unformatted pattern + // without keyword. This is applied to patterns that do not have a pattern-level + // confidence level. Defaults to confidence level 2. + GlobalConfidenceLevel *int32 + + // The global enforced URL configuration for the inline redaction configuration. + // This is applied to patterns that do not have a pattern-level enforced URL list. + GlobalEnforcedUrls []string + + // The global exempt URL configuration for the inline redaction configuration. + // This is applied to patterns that do not have a pattern-level exempt URL list. + GlobalExemptUrls []string + + noSmithyDocumentSerde +} + +// The set of patterns that determine the data types redacted in session. +type InlineRedactionPattern struct { + + // The redaction placeholder that will replace the redacted text in session for + // the inline redaction pattern. + // + // This member is required. + RedactionPlaceHolder *RedactionPlaceHolder + + // The built-in pattern from the list of preconfigured patterns. Either a + // customPattern or builtInPatternId is required. + BuiltInPatternId *string + + // The confidence level for inline redaction pattern. This indicates the certainty + // of data type matches in the redaction process. Confidence level 3 means high + // confidence, and requires a formatted text pattern match in order for content to + // be redacted. Confidence level 2 means medium confidence, and redaction considers + // both formatted and unformatted text, and adds keyword associate to the logic. + // Confidence level 1 means low confidence, and redaction is enforced for both + // formatted pattern + unformatted pattern without keyword. This overrides the + // global confidence level. + ConfidenceLevel *int32 + + // >The configuration for a custom pattern. Either a customPattern or + // builtInPatternId is required. + CustomPattern *CustomPattern + + // The enforced URL configuration for the inline redaction pattern. This will + // override the global enforced URL configuration. + EnforcedUrls []string + + // The exempt URL configuration for the inline redaction pattern. This will + // override the global exempt URL configuration for the inline redaction pattern. + ExemptUrls []string + + noSmithyDocumentSerde +} + // The IP access settings resource that can be associated with a web portal. type IpAccessSettings struct { @@ -373,6 +525,9 @@ type Portal struct { // The customer managed key used to encrypt sensitive information in the portal. CustomerManagedKey *string + // The ARN of the data protection settings. + DataProtectionSettingsArn *string + // The name of the web portal. DisplayName *string @@ -445,6 +600,9 @@ type PortalSummary struct { // The creation date of the web portal. CreationDate *time.Time + // The ARN of the data protection settings. + DataProtectionSettingsArn *string + // The name of the web portal. DisplayName *string @@ -483,6 +641,21 @@ type PortalSummary struct { noSmithyDocumentSerde } +// The redaction placeholder that will replace the redacted text in session. +type RedactionPlaceHolder struct { + + // The redaction placeholder type that will replace the redacted text in session. + // + // This member is required. + RedactionPlaceHolderType RedactionPlaceHolderType + + // The redaction placeholder text that will replace the redacted text in session + // for the custom text redaction placeholder type. + RedactionPlaceHolderText *string + + noSmithyDocumentSerde +} + // Information about a secure browser session. type Session struct { diff --git a/service/workspacesweb/validators.go b/service/workspacesweb/validators.go index cfa4719535d..18e4079d67a 100644 --- a/service/workspacesweb/validators.go +++ b/service/workspacesweb/validators.go @@ -30,6 +30,26 @@ func (m *validateOpAssociateBrowserSettings) HandleInitialize(ctx context.Contex return next.HandleInitialize(ctx, in) } +type validateOpAssociateDataProtectionSettings struct { +} + +func (*validateOpAssociateDataProtectionSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpAssociateDataProtectionSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*AssociateDataProtectionSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpAssociateDataProtectionSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpAssociateIpAccessSettings struct { } @@ -150,6 +170,26 @@ func (m *validateOpCreateBrowserSettings) HandleInitialize(ctx context.Context, return next.HandleInitialize(ctx, in) } +type validateOpCreateDataProtectionSettings struct { +} + +func (*validateOpCreateDataProtectionSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateDataProtectionSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateDataProtectionSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateDataProtectionSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateIdentityProvider struct { } @@ -310,6 +350,26 @@ func (m *validateOpDeleteBrowserSettings) HandleInitialize(ctx context.Context, return next.HandleInitialize(ctx, in) } +type validateOpDeleteDataProtectionSettings struct { +} + +func (*validateOpDeleteDataProtectionSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteDataProtectionSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteDataProtectionSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteDataProtectionSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteIdentityProvider struct { } @@ -470,6 +530,26 @@ func (m *validateOpDisassociateBrowserSettings) HandleInitialize(ctx context.Con return next.HandleInitialize(ctx, in) } +type validateOpDisassociateDataProtectionSettings struct { +} + +func (*validateOpDisassociateDataProtectionSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDisassociateDataProtectionSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DisassociateDataProtectionSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDisassociateDataProtectionSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDisassociateIpAccessSettings struct { } @@ -610,6 +690,26 @@ func (m *validateOpGetBrowserSettings) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpGetDataProtectionSettings struct { +} + +func (*validateOpGetDataProtectionSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetDataProtectionSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetDataProtectionSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetDataProtectionSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetIdentityProvider struct { } @@ -950,6 +1050,26 @@ func (m *validateOpUpdateBrowserSettings) HandleInitialize(ctx context.Context, return next.HandleInitialize(ctx, in) } +type validateOpUpdateDataProtectionSettings struct { +} + +func (*validateOpUpdateDataProtectionSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateDataProtectionSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateDataProtectionSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateDataProtectionSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpUpdateIdentityProvider struct { } @@ -1094,6 +1214,10 @@ func addOpAssociateBrowserSettingsValidationMiddleware(stack *middleware.Stack) return stack.Initialize.Add(&validateOpAssociateBrowserSettings{}, middleware.After) } +func addOpAssociateDataProtectionSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpAssociateDataProtectionSettings{}, middleware.After) +} + func addOpAssociateIpAccessSettingsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpAssociateIpAccessSettings{}, middleware.After) } @@ -1118,6 +1242,10 @@ func addOpCreateBrowserSettingsValidationMiddleware(stack *middleware.Stack) err return stack.Initialize.Add(&validateOpCreateBrowserSettings{}, middleware.After) } +func addOpCreateDataProtectionSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateDataProtectionSettings{}, middleware.After) +} + func addOpCreateIdentityProviderValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateIdentityProvider{}, middleware.After) } @@ -1150,6 +1278,10 @@ func addOpDeleteBrowserSettingsValidationMiddleware(stack *middleware.Stack) err return stack.Initialize.Add(&validateOpDeleteBrowserSettings{}, middleware.After) } +func addOpDeleteDataProtectionSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteDataProtectionSettings{}, middleware.After) +} + func addOpDeleteIdentityProviderValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteIdentityProvider{}, middleware.After) } @@ -1182,6 +1314,10 @@ func addOpDisassociateBrowserSettingsValidationMiddleware(stack *middleware.Stac return stack.Initialize.Add(&validateOpDisassociateBrowserSettings{}, middleware.After) } +func addOpDisassociateDataProtectionSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDisassociateDataProtectionSettings{}, middleware.After) +} + func addOpDisassociateIpAccessSettingsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDisassociateIpAccessSettings{}, middleware.After) } @@ -1210,6 +1346,10 @@ func addOpGetBrowserSettingsValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpGetBrowserSettings{}, middleware.After) } +func addOpGetDataProtectionSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetDataProtectionSettings{}, middleware.After) +} + func addOpGetIdentityProviderValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetIdentityProvider{}, middleware.After) } @@ -1278,6 +1418,10 @@ func addOpUpdateBrowserSettingsValidationMiddleware(stack *middleware.Stack) err return stack.Initialize.Add(&validateOpUpdateBrowserSettings{}, middleware.After) } +func addOpUpdateDataProtectionSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateDataProtectionSettings{}, middleware.After) +} + func addOpUpdateIdentityProviderValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateIdentityProvider{}, middleware.After) } @@ -1362,6 +1506,84 @@ func validateCookieSynchronizationConfiguration(v *types.CookieSynchronizationCo } } +func validateCustomPattern(v *types.CustomPattern) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CustomPattern"} + if v.PatternName == nil { + invalidParams.Add(smithy.NewErrParamRequired("PatternName")) + } + if v.PatternRegex == nil { + invalidParams.Add(smithy.NewErrParamRequired("PatternRegex")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateInlineRedactionConfiguration(v *types.InlineRedactionConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "InlineRedactionConfiguration"} + if v.InlineRedactionPatterns == nil { + invalidParams.Add(smithy.NewErrParamRequired("InlineRedactionPatterns")) + } else if v.InlineRedactionPatterns != nil { + if err := validateInlineRedactionPatterns(v.InlineRedactionPatterns); err != nil { + invalidParams.AddNested("InlineRedactionPatterns", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateInlineRedactionPattern(v *types.InlineRedactionPattern) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "InlineRedactionPattern"} + if v.CustomPattern != nil { + if err := validateCustomPattern(v.CustomPattern); err != nil { + invalidParams.AddNested("CustomPattern", err.(smithy.InvalidParamsError)) + } + } + if v.RedactionPlaceHolder == nil { + invalidParams.Add(smithy.NewErrParamRequired("RedactionPlaceHolder")) + } else if v.RedactionPlaceHolder != nil { + if err := validateRedactionPlaceHolder(v.RedactionPlaceHolder); err != nil { + invalidParams.AddNested("RedactionPlaceHolder", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateInlineRedactionPatterns(v []types.InlineRedactionPattern) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "InlineRedactionPatterns"} + for i := range v { + if err := validateInlineRedactionPattern(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateIpRule(v *types.IpRule) error { if v == nil { return nil @@ -1394,6 +1616,21 @@ func validateIpRuleList(v []types.IpRule) error { } } +func validateRedactionPlaceHolder(v *types.RedactionPlaceHolder) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "RedactionPlaceHolder"} + if len(v.RedactionPlaceHolderType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("RedactionPlaceHolderType")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateTag(v *types.Tag) error { if v == nil { return nil @@ -1447,6 +1684,24 @@ func validateOpAssociateBrowserSettingsInput(v *AssociateBrowserSettingsInput) e } } +func validateOpAssociateDataProtectionSettingsInput(v *AssociateDataProtectionSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AssociateDataProtectionSettingsInput"} + if v.PortalArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("PortalArn")) + } + if v.DataProtectionSettingsArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("DataProtectionSettingsArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpAssociateIpAccessSettingsInput(v *AssociateIpAccessSettingsInput) error { if v == nil { return nil @@ -1557,6 +1812,28 @@ func validateOpCreateBrowserSettingsInput(v *CreateBrowserSettingsInput) error { } } +func validateOpCreateDataProtectionSettingsInput(v *CreateDataProtectionSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateDataProtectionSettingsInput"} + if v.Tags != nil { + if err := validateTagList(v.Tags); err != nil { + invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) + } + } + if v.InlineRedactionConfiguration != nil { + if err := validateInlineRedactionConfiguration(v.InlineRedactionConfiguration); err != nil { + invalidParams.AddNested("InlineRedactionConfiguration", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateIdentityProviderInput(v *CreateIdentityProviderInput) error { if v == nil { return nil @@ -1745,6 +2022,21 @@ func validateOpDeleteBrowserSettingsInput(v *DeleteBrowserSettingsInput) error { } } +func validateOpDeleteDataProtectionSettingsInput(v *DeleteDataProtectionSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteDataProtectionSettingsInput"} + if v.DataProtectionSettingsArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("DataProtectionSettingsArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteIdentityProviderInput(v *DeleteIdentityProviderInput) error { if v == nil { return nil @@ -1865,6 +2157,21 @@ func validateOpDisassociateBrowserSettingsInput(v *DisassociateBrowserSettingsIn } } +func validateOpDisassociateDataProtectionSettingsInput(v *DisassociateDataProtectionSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DisassociateDataProtectionSettingsInput"} + if v.PortalArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("PortalArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDisassociateIpAccessSettingsInput(v *DisassociateIpAccessSettingsInput) error { if v == nil { return nil @@ -1973,6 +2280,21 @@ func validateOpGetBrowserSettingsInput(v *GetBrowserSettingsInput) error { } } +func validateOpGetDataProtectionSettingsInput(v *GetDataProtectionSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetDataProtectionSettingsInput"} + if v.DataProtectionSettingsArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("DataProtectionSettingsArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetIdentityProviderInput(v *GetIdentityProviderInput) error { if v == nil { return nil @@ -2244,6 +2566,26 @@ func validateOpUpdateBrowserSettingsInput(v *UpdateBrowserSettingsInput) error { } } +func validateOpUpdateDataProtectionSettingsInput(v *UpdateDataProtectionSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateDataProtectionSettingsInput"} + if v.DataProtectionSettingsArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("DataProtectionSettingsArn")) + } + if v.InlineRedactionConfiguration != nil { + if err := validateInlineRedactionConfiguration(v.InlineRedactionConfiguration); err != nil { + invalidParams.AddNested("InlineRedactionConfiguration", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpUpdateIdentityProviderInput(v *UpdateIdentityProviderInput) error { if v == nil { return nil diff --git a/service/xray/CHANGELOG.md b/service/xray/CHANGELOG.md index d6a3d3e237e..4e19498c09f 100644 --- a/service/xray/CHANGELOG.md +++ b/service/xray/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.29.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.29.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/service/xray/go.mod b/service/xray/go.mod index bfb99e54be7..5c75af8fd04 100644 --- a/service/xray/go.mod +++ b/service/xray/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/xray go 1.21 require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 - github.com/aws/smithy-go v1.22.0 + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 + github.com/aws/smithy-go v1.22.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/xray/go.sum b/service/xray/go.sum index 70a20636e37..bd2678891af 100644 --- a/service/xray/go.sum +++ b/service/xray/go.sum @@ -1,2 +1,2 @@ -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= +github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= diff --git a/service/xray/go_module_metadata.go b/service/xray/go_module_metadata.go index d3cfcf6b33f..c22504ef602 100644 --- a/service/xray/go_module_metadata.go +++ b/service/xray/go_module_metadata.go @@ -3,4 +3,4 @@ package xray // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.29.5" +const goModuleVersion = "1.29.6"